linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] arch/powerpc: convert single variable sscanf to kstrto<type>
@ 2014-07-12 11:36 Fabian Frederick
  2014-07-12 11:36 ` [PATCH 1/7] powerpc: fadump: replace sscanf by kstrtoint Fabian Frederick
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Fabian Frederick @ 2014-07-12 11:36 UTC (permalink / raw)
  To: linux-kernel; +Cc: Fabian Frederick, paulus, linuxppc-dev

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-07-12 11:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-12 11:36 [PATCH 0/7] arch/powerpc: convert single variable sscanf to kstrto<type> Fabian Frederick
2014-07-12 11:36 ` [PATCH 1/7] powerpc: fadump: replace sscanf by kstrtoint Fabian Frederick
2014-07-12 11:36 ` [PATCH 2/7] powerpc/mv64x60_pci: replace sscanf by kstrtou32 Fabian Frederick
2014-07-12 11:36 ` [PATCH 3/7] powerpc/powernv: replace sscanf %lx by kstrtoul 16 Fabian Frederick
2014-07-12 11:36 ` [PATCH 4/7] powerpc/sysfs: replace sscanf by kstrtol Fabian Frederick
2014-07-12 11:36 ` [PATCH 5/7] hugetlb: replace sscanf by kstrtoul Fabian Frederick
2014-07-12 11:36 ` [PATCH 6/7] powerpc/cell: replace sscanf by kstrtouint Fabian Frederick
2014-07-12 11:36 ` [PATCH 7/7] powerpc/pseries: replace sscanf by kstrtoul Fabian Frederick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).