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

From: Fabian Frederick
Date: Sat Jul 12 2014 - 07:36:49 EST


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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/