[PATCH 0/7] arch/powerpc: convert single variable sscanf to kstrto<type>

Fabian Frederick fabf at skynet.be
Sat Jul 12 21:36:13 EST 2014


Here is a small untested patchset to use the current string manipulation kstrto<type> functions
instead of sscanf like specified in checkpatch: "Prefer kstrto<type> to single variable sscanf"

autodetect base 0 has been used for both %d, %i, %ld, %lu, %u
and base 16 for %lx

Fabian Frederick (7):
  powerpc: fadump: replace sscanf by kstrtoint
  powerpc/mv64x60_pci: replace sscanf by kstrtou32
  powerpc/powernv: replace sscanf %lx by kstrtoul 16
  powerpc/sysfs: replace sscanf by kstrtol
  hugetlb: replace sscanf by kstrtoul
  powerpc/cell: replace sscanf by kstrtouint
  powerpc/pseries: replace sscanf by kstrtoul

 arch/powerpc/kernel/fadump.c              | 5 +++--
 arch/powerpc/kernel/sysfs.c               | 7 +++----
 arch/powerpc/mm/hugetlbpage.c             | 2 +-
 arch/powerpc/platforms/cell/cbe_thermal.c | 4 ++--
 arch/powerpc/platforms/powernv/subcore.c  | 6 +++---
 arch/powerpc/platforms/pseries/power.c    | 5 ++---
 arch/powerpc/sysdev/mv64x60_pci.c         | 7 +++++--
 7 files changed, 19 insertions(+), 17 deletions(-)

-- 
1.9.1



More information about the Linuxppc-dev mailing list