Commit Graph
100 Commits
Author SHA1 Message Date
Joe Perches b75a9e6bfb Blackfin: use more standard pr_fmt in the module loader
Changed pr_fmt(fmt) to make the format arguments match the format.
Changed an argument name in apply_relocate from me to mod so that
the pr_err is consistent with the other uses.
Added missing '\n' to a format.

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Mike Frysinger <[email protected]>
2011-03-25 16:54:12 -04:00
Joe Perches 116ab806e8 MAINTAINERS: update WINBOND CIR pattern
commit 5b2e303f6d ("[media] rc-core: convert winbond-cir") moved the
files, update the pattern.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: David Härdeman <[email protected]>
Acked-by: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-03-22 17:44:14 -07:00
Joe Perches f1d2313025 MAINTAINERS: uSB SE401 moved to staging, update pattern
And set the status to Orphan.

Signed-off-by: Joe Perches <[email protected]>
Cc: Jeroen Vreeken <[email protected]>
Cc: Hans Verkuil <[email protected]>
Acked-by: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-03-22 17:44:14 -07:00
Joe Perches 943fc810bd MAINTAINERS: update SFI pattern
commit 937f961a65 ("x86: Move sfi to platform") moved the files, update
the pattern.

Signed-off-by: Joe Perches <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-03-22 17:44:14 -07:00
Joe Perches 4e850855d7 MAINTAINERS: remove SHARP LH7A40X section
commit 82e6923e18 ("ARM: lh7a40x: remove unmaintained platform support")
removed support, remove it from MAINTAINERS.

Signed-off-by: Joe Perches <[email protected]>
Cc: Russell King <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-03-22 17:44:14 -07:00
Joe Perches 390889b6da MAINTAINERS: update SCX200 file pattern
commit 3b3da9d25a ("x86: Move scx200 to platform") moved it, convert the
pattern too.

Signed-off-by: Joe Perches <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-03-22 17:44:14 -07:00
Joe Perches 3a83ea6ecd MAINTAINERS: remove unused TIMEKEEPING timekeeping.h
Commit 88606e80da ("MAINTAINERS: Update timer related entries") added a
file pattern that didn't actually exist.

Signed-off-by: Joe Perches <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-03-22 17:44:14 -07:00
Joe Perches c45e98a274 MAINTAINERS: remove IEEE1394 entry
commit 66fa12c571 ("ieee1394: remove the old IEEE 1394 driver stack")

removed the code, remove the MAINTAINERS entry.

Signed-off-by: Joe Perches <[email protected]>
Cc: Stefan Richter <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-03-22 17:44:14 -07:00
Joe Perches 2a8374492b MAINTAINERS: update media path
Commit 52b661449a ("[media] rc: Rename remote controller type to rc_type
instead of ir_type") moved it around.

Signed-off-by: Joe Perches <[email protected]>
Cc: Maxim Levitsky <[email protected]>
Acked-by: Harry Wei <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-03-22 17:44:14 -07:00
Joe Perches 4fa2651db4 MAINTAINERS: update clkdev location
Commit 6d803ba736 ("ARM: 6483/1: arm & sh: factorised duplicated
clkdev.c") moved it to a separate directory.

Signed-off-by: Joe Perches <[email protected]>
Cc: Russell King <[email protected]>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-03-22 17:44:13 -07:00
Joe Perches 6e08bbb883 MAINTAINERS: remove unnecessary [email protected] entries
CC'ing lkml is the default and doesn't need separate entries.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Harry Wei <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-03-22 17:44:13 -07:00
Joe Perches e801dc5cf4 MAINTAINERS: add missing : after HR Timers F tag
Signed-off-by: Joe Perches <[email protected]>
Acked-by: Harry Wei <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-03-22 17:44:13 -07:00
Joe Perches 0ddf20e374 MAINTAINERS: remove ASOC CODEC DRIVERS files not in tree
Remove these patterns until such files are actually in the tree.

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-03-22 17:44:13 -07:00
Joe Perches a3f531ac55 MAINTAINERS: change web links from wiki-analog to wiki.analog
wiki-analog doesn't seem to work, but wiki.analog does.

Signed-off-by: Joe Perches <[email protected]>
Cc: Mike Frysinger <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-03-22 17:44:13 -07:00
Joe Perches 45b4e0d54b MAINTAINERS: update ADP5520 pattern
Typo in path.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Michael Hennerich <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-03-22 17:44:13 -07:00
Joe Perches 706e69d676 MAINTAINERS: quote non-alphanumeric email addresses
Add quotes around email address with periods and commas.  So they don't
explode when pasted into certain email clients.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Harry Wei <[email protected]>
Cc: "Mark F. Brown" <[email protected]>
Cc: "Gustavo F. Padovan" <[email protected]>
Cc: "Stephen M. Cameron" <[email protected]>
Cc: "Lee, Chun-Yi" <[email protected]>
Acked-by: Harry Wei <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-03-22 17:44:13 -07:00
Joe Perches 7764dcb534 get_maintainer.pl: allow "K:" pattern tests to match non-patch text
Extend the usage of the K section in the MAINTAINERS file to support
matching regular expressions to any arbitrary text that may precede the
patch itself.  For example, the commit message or mail headers generated
by git-format-patch.

Signed-off-by: Joe Perches <[email protected]>
Original-patch-by: L. Alberto Giménez <[email protected]>
Acked-by: L. Alberto Giménez <[email protected]>

Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-03-22 17:44:13 -07:00
Joe Perches 26297607e0 vsprintf: neaten %pK kptr_restrict, save a bit of code space
If kptr restrictions are on, just set the passed pointer to NULL.

$ size lib/vsprintf.o.*
   text	   data	    bss	    dec	    hex	filename
   8247	      4	      2	   8253	   203d	lib/vsprintf.o.new
   8282	      4	      2	   8288	   2060	lib/vsprintf.o.old

Signed-off-by: Joe Perches <[email protected]>
Cc: Dan Rosenberg <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-03-22 17:44:12 -07:00
Joe Perches 2feb690c20 [CPUFREQ] drivers/cpufreq: Remove unnecessary semicolons
Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Dave Jones <[email protected]>
2011-03-16 17:54:31 -04:00
Joe Perches 8d7b1c70b3 ata: pata: Convert pr_*(DRV_NAME ...) to pr_fmt/pr_<level>
Commit 40d69ba029
("pata_hpt{37x|3x2n}: use pr_*(DRV_NAME ...) instead of printk(KERN_* ...)")
used pr_<level>.

Add #define pr_fmt and remove DRV_NAME.
Increment driver version numbers.

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
2011-03-14 02:56:31 -04:00
Joe Perches 256ee435b9 netdevice: Convert printk to pr_info in netif_tx_stop_queue
This allows any caller to be prefaced by any specific
pr_fmt to better identify which device driver is using
this function inappropriately.

Add terminating newline.

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2011-03-07 12:34:01 -08:00
Joe Perches 63f9742516 eql: Convert printks to pr_<level> and netdev_<level>
Add pr_fmt.

Removed trailing "\n" from version,
add back via pr_info("%s\n", version);

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2011-03-03 13:30:20 -08:00
Joe Perches 967faf3b71 mii: Convert printks to netdev_info
Add a bit more data to the output.
Convert string speeds to integer.
Object size reduced a tiny bit.
$ size drivers/net/mii.o*
   text	   data	    bss	    dec	    hex	filename
   4155	     56	   1000	   5211	   145b	drivers/net/mii.o.new
   4184	     56	   1000	   5240	   1478	drivers/net/mii.o.old

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2011-03-03 13:02:32 -08:00
Joe Perches 7542db8b1c mv643xx_eth: Use netdev_<level> and pr_<level>
Use the current logging styles.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Lennert Buytenhek <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2011-03-03 13:02:31 -08:00
Joe Perches 50624aab53 tlan: Use pr_fmt, pr_<level> and netdev_<level>
Neatening and standardization to the current logging mechanisms.
Miscellaneous speen/speed typo correction.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Sakari Ailus <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2011-03-03 13:02:31 -08:00
Joe Perches a576cd8700 tlan: Remove changelog
As it isn't necessary nor really useful any longer.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Sakari Ailus <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2011-03-03 13:02:30 -08:00
Joe Perches 6b8a66ee91 tun: Convert logging messages to pr_<level> and tun_debug
Use the current logging forms with pr_fmt.
Convert DBG macro to tun_debug, use netdev_printk as well.
Add printf verification when TUN_DEBUG not defined.
Miscellaneous comment typo fix.

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2011-03-03 12:21:14 -08:00
Joe Perches dc5ecf45f3 Staging: samsung-laptop: Constify samsung-laptop.c
Change sabi_config to const.
Reduces data, increases text ~200 bytes.

$ size drivers/platform/x86/samsung-laptop.o*
   text	   data	    bss	    dec	    hex	filename
   6933	   5084	   1560	  13577	   3509	drivers/platform/x86/samsung-laptop.o.new
   6765	   5252	   1560	  13577	   3509	drivers/platform/x86/samsung-laptop.o.old

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-02-27 07:16:26 -08:00
Joe Perches a2e6093c63 MAINTAINERS: Update HVC file patterns
Commit 728674a7e4
("tty: move hvc drivers to drivers/tty/hvc/")
moved the files, update the patterns as appropriate.

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-02-25 09:57:31 -08:00
Joe Perches 008536e845 connector: Convert char *name to const char *name
Allow more const declarations.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Evgeniy Polyakov <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-02-23 13:22:26 -08:00
Joe Perches 4f69cef0a9 staging: ath6kl: Remove #define A_OK
Just use 0.

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-02-02 14:34:51 -08:00
Joe Perches a1d4652963 staging: ath6kl: Convert (status != A_OK) to (status)
Just use the status variable as a test not a comparison.

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-02-02 14:34:51 -08:00
Joe Perches f68057e6fa staging: ath6kl: Convert A_INT32 to s32
Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-02-02 14:34:51 -08:00
Joe Perches cb1e370987 staging: ath6kl: Convert A_INT16 to s16
Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-02-02 14:34:50 -08:00
Joe Perches f2ab1275cb staging: ath6kl: Convert A_INT8 to s8
Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-02-02 14:34:50 -08:00
Joe Perches c353f4b397 staging: ath6kl: Convert A_UINT64 to u64
Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-02-02 14:34:50 -08:00
Joe Perches e1ce2a3afe staging: ath6kl: Convert A_UINT32 to u32
Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-02-02 14:34:50 -08:00
Joe Perches 4853ac05cf staging: ath6kl: Convert A_UINT16 to u16
Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-02-02 14:34:50 -08:00
Joe Perches ab3655dae4 staging: ath6kl: Convert A_UINT8 to u8
Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-02-02 14:34:49 -08:00
Joe Perches 4c42080f3e staging: ath6kl: Convert A_CHAR to char
Remove obfuscating A_CHAR uses, just use char.

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-02-02 14:34:49 -08:00
Joe Perches 1071a134d0 staging: ath6kl: Remove A_BOOL and TRUE/FALSE
Use kernel bool and true/false.

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-02-02 14:34:49 -08:00
Joe Perches 8205669a40 staging: ath6kl: Convert tspecCompliance from A_BOOL to int
Make the use in wmi_verify_tspec_params match the declaration
of the variable.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Vipin Mehta <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-01-31 13:53:14 -08:00
Joe Perches 34603829c4 staging: ath6kl: Convert sets of scanSpecificSsid to TRUE/FALSE.
Don't use 0/1 for an A_BOOL.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Vipin Mehta <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-01-31 13:53:14 -08:00
Joe Perches 5bb5572ab6 staging: ath6kl: Convert A_NETBUF_QUEUE_EMPTY to return TRUE or FALSE
Make the return an A_BOOL not int.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Vipin Mehta <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-01-31 13:53:14 -08:00
Joe Perches ebb8e49098 staging: ath6kl: Convert A_UINT8 is_amsdu and is_acl_data_frame to A_BOOL
Use A_BOOL as appropriate for actual variable uses.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Vipin Mehta <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-01-31 13:53:13 -08:00
Joe Perches e2ad9082eb staging: ath6kl: cfg80211: Convert forceFgScan to A_UINT32
It's declared that way in the prototype, use it that way too.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Vipin Mehta <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-01-31 13:53:13 -08:00
Joe Perches 6be02be5f9 staging: ath6kl: Convert 0 to FALSE
Convert a set of an A_BOOL from 0 to FALSE.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Vipin Mehta <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-01-31 13:53:13 -08:00
Joe Perches bd1188851e staging: ath6kl: Convert A_BOOL compressed sets from 0 to FALSE
Use the appropriate define.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Vipin Mehta <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-01-31 13:53:12 -08:00
Joe Perches 807208fe77 staging: ath6kl: Convert BDADDR_Present uses to TRUE/FALSE bugfix
The previous uses of BDADDR_Present set the initial value to
A_ERROR (-1) when not present and A_OK (0) when present.

A later test for (!BDADDR_Present) was therefore logically inverted.
Convert the values to TRUE/FALSE and the test is now logically correct.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Vipin Mehta <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-01-31 13:53:12 -08:00
Joe Perches 879cf160ed staging: ath6kl: Convert type of streamExists to A_UINT8
Make the declaration type match the assigned from type.
It's not a bool, it's a u8.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Vipin Mehta <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-01-31 13:53:12 -08:00
Joe Perches f192c2bded staging: ath6kl: Convert bypasswmi to bool
Types should match logical uses.
Remove unused extern, make static.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Vipin Mehta <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-01-31 13:53:12 -08:00
Joe Perches ae8e1e7ad2 staging: ath6kl: wmi.h: Convert packed structures with A_BOOL to u32
These structures are device native and need to be 4 bytes long.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Vipin Mehta <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-01-31 13:53:12 -08:00
Joe Perches 391bb2116a staging: ath6kl: Remove A_FAILED macro
Remove obfuscating A_FAILED(foo) macro.
Just test for foo instead.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Vipin Mehta <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-01-31 13:53:11 -08:00
Joe Perches 509c9d9730 staging: ath6kl: Remove A_SUCCESS macro
Remove obfuscating A_SUCCESS(foo) macro.
Just test for !foo instead.

Reformat a few macros that used A_SUCCESS for better readability.
Add do { foo } while (0) surrounds to those macros too.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Vipin Mehta <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-01-31 13:53:11 -08:00
Joe Perches 1f4c34bded staging: ath6kl: Convert enum A_STATUS to int
Convert enum members to int as well.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Vipin Mehta <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-01-31 13:53:11 -08:00
Joe Perches a789325dc3 staging: ath6kl: Update cfg80211 to recent calling convention changes
Add bool unicast and bool multicast to set_default_key
Return struct net_device * to add_virtual_intf

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Vipin Mehta <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-01-31 13:49:55 -08:00
Joe Perches 0bbfc0edb7 staging: brcm80211: Remove unnecessary memset(,0,)
kzalloc'd memory doesn't need a memset to 0.

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-01-20 15:34:35 -08:00
Joe Perches 0bec405e8e MIPS: Use printf extension %pR for struct resource
Using %pR standardizes the struct resource output.

Signed-off-by: Joe Perches <[email protected]>
To: Jiri Kosina <[email protected]>
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/1772/
Signed-off-by: Ralf Baechle <[email protected]>
2011-01-18 19:30:21 +01:00
Joe Perches a1181caac9 MIPS: Sibyte: Use vzalloc in sbbus profiler
Signed-off-by: Joe Perches <[email protected]>
To: Jiri Kosina <[email protected]>
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/1756/
Signed-off-by: Ralf Baechle <[email protected]>
2011-01-18 19:30:21 +01:00
Joe Perches 888d57bbc9 fs/ecryptfs: Add printf format/argument verification and fix fallout
Add __attribute__((format... to __ecryptfs_printk
Make formats and arguments match.
Add casts to (unsigned long long) for %llu.

Signed-off-by: Joe Perches <[email protected]>
[tyhicks: 80 columns cleanup and fixed typo]
Signed-off-by: Tyler Hicks <[email protected]>
2011-01-17 13:01:23 -06:00
Joe Perches 1db0b427ee gpio: Fix cs5535 printk warnings
drivers/gpio/cs5535-gpio.c: In function 'cs5535_gpio_probe':
drivers/gpio/cs5535-gpio.c:269: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'resource_size_t'
drivers/gpio/cs5535-gpio.c:269: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'resource_size_t'

Use vsprintf extension %pR to format resource.

Original-patch-by: Randy Dunlap <[email protected]>
Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
2011-01-14 12:38:11 +01:00
Joe Perches 7eb19812ee misc: Fix cs5535 printk warnings
drivers/misc/cs5535-mfgpt.c: In function 'cs5535_mfgpt_probe':
drivers/misc/cs5535-mfgpt.c:320: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'resource_size_t'
drivers/misc/cs5535-mfgpt.c:320: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'resource_size_t'

Use vsprintf extension %pR to format resource.

Original-patch-by: Randy Dunlap <[email protected]>
Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
2011-01-14 12:38:10 +01:00
Joe Perches 3f3d4310bd mfd: Use printf extension %pR for struct resource
Using %pR standardizes the struct resource output.

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
2011-01-14 12:37:38 +01:00
Joe Perches e0084aa9e0 mfd: Update WARN uses
Remove KERN_<level>.

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
2011-01-14 12:37:30 +01:00
Joe Perches f767b6df8a netdev: bfin_mac: Remove is_multicast_ether_addr use in netdev_for_each_mc_addr
Remove code that has no effect.

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2011-01-13 21:48:25 -08:00
Joe Perches 62c70bce8a mm: convert sprintf_symbol to %pS
Signed-off-by: Joe Perches <[email protected]>
Acked-by: Pekka Enberg <[email protected]>
Cc: Jiri Kosina <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-01-13 17:32:33 -08:00
Joe Perches 067032bc62 md: Fix single printks with multiple KERN_<level>s
Noticed-by: Russell King <[email protected]>
Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: NeilBrown <[email protected]>
2011-01-14 09:14:33 +11:00
Joe Perches 34e49d4f63 fs/proc/base.c, kernel/latencytop.c: convert sprintf_symbol() to %ps
Use temporary lr for struct latency_record for improved readability and
fewer columns used.  Removed trailing space from output.

[[email protected]: coding-style fixes]
Signed-off-by: Joe Perches <[email protected]>
Cc: Jiri Kosina <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-01-13 08:03:16 -08:00
Joe Perches 3d130fd03e checkpatch.pl: add "prefer __packed" check
There's a __packed #define for __attribute__((packed)).  Add a checkpatch
to tell people about it.

Signed-off-by: Joe Perches <[email protected]>
Cc: Andy Whitcroft <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-01-13 08:03:11 -08:00
Joe Perches caf2a54f10 scripts/checkpatch.pl: add check for multiple terminating semicolons and casts of vmalloc
Signed-off-by: Joe Perches <[email protected]>
Cc: Andy Whitcroft <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-01-13 08:03:11 -08:00
Joe Perches ab6c937dba scripts/get_maintainer.pl: use --git-fallback more often
On Fri, 2010-11-05 at 13:50 -0700, Andrew Morton wrote:
> z:/usr/src/git26> perl scripts/get_maintainer.pl -file mm/mempolicy.c
> [email protected]
> [email protected]

Turns out this is an arguable defect in the script.

The MAINTAINERS entry for mm is:

MEMORY MANAGEMENT
L:	[email protected]
W:	http://www.linux-mm.org
S:	Maintained
F:	include/linux/mm.h
F:	mm/

There's a maintainer entry, but no named individual, so the script doesn't
use git history via --git-fallback.

This is also a defect for MAINTAINERS with status entries marked "Orphan"
or "Odd fixes".

The script now checks a section for any "M:" entry and that an "S:" entry
is supported or maintained.  If both those conditions are not satisified,
use --git-fallback as appropriate.

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-01-13 08:03:10 -08:00
Joe Perches 7e1863af16 scripts/get_maintainer.pl: make --rolestats the default
This script now requires a user to add --norolestats to the command line
so it's harder to feed the output of this script to programs that send
mass emails.

Update --help to correct command line defaults.

Change version to 0.26.

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-01-13 08:03:10 -08:00
Joe Perches a3f938bf6f include/linux/printk.h: use tab not spaces for indent
Signed-off-by: Joe Perches <[email protected]>
Cc: Matt Mackall <[email protected]>
Cc: Ingo Molnar <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-01-13 08:03:10 -08:00
Joe Perches 6ec42a56e2 include/linux/printk.h: organize printk_ratelimited macros
- Use no_printk for !CONFIG_PRINTK printk_ratelimited.

- Whitespace cleanup.

Signed-off-by: Joe Perches <[email protected]>
Cc: Matt Mackall <[email protected]>
Cc: Ingo Molnar <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-01-13 08:03:10 -08:00
Joe Perches ac83ed6878 include/linux/printk.h lib/hexdump.c: neatening and add CONFIG_PRINTK guard
- Move prototypes and align arguments.

- Add CONFIG_PRINTK guard for print_hex functions

Signed-off-by: Joe Perches <[email protected]>
Cc: Matt Mackall <[email protected]>
Cc: Ingo Molnar <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-01-13 08:03:10 -08:00
Joe Perches 16cb839f13 include/linux/printk.h: add pr_<level>_once macros
- Move printk_once definitions and add an #ifdef CONFIG_PRINTK

- Add pr_<level>_once so printks can use pr_fmt

Signed-off-by: Joe Perches <[email protected]>
Cc: Matt Mackall <[email protected]>
Cc: Ingo Molnar <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-01-13 08:03:09 -08:00
Joe Perches 5264f2f75d include/linux/printk.h: use and neaten no_printk
- Move no_printk above first CONFIG_PRINTK block so it can be used by
  printk_once.

- Convert statement expression if (0) printk macros to no_printk.

- Convert printk_once(x...) to more normally used (fmt, ...) fmt,
  ##__VA_ARGS__.

- Standardize __attribute__ use.

- Expand single line inline functions.

- Remove space before pointer.

Signed-off-by: Joe Perches <[email protected]>
Cc: Matt Mackall <[email protected]>
Cc: Ingo Molnar <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-01-13 08:03:09 -08:00
Joe Perches 7d1e91aeb3 include/linux/printk.h: use space after #define
Signed-off-by: Joe Perches <[email protected]>
Cc: Matt Mackall <[email protected]>
Cc: Ingo Molnar <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-01-13 08:03:09 -08:00
Joe Perches a9747cc3ad include/linux/printk.h: move console functions and variables together
There are many uses of printk_once(KERN_<level>, so add pr_<level>_once
macros to avoid printk_once(KERN_<level> pr_fmt(fmt).

Add an #ifdef CONFIG_PRINTK for print_hex_dump and static inline void
functions for the #else cases to reduce embedded code size.  Neaten and
organize the rest of the code.

This patch:

Move console functions and variables together.

Signed-off-by: Joe Perches <[email protected]>
Cc: Matt Mackall <[email protected]>
Cc: Ingo Molnar <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-01-13 08:03:09 -08:00
Joe Perches 35ab7b798a bna: Remove unnecessary memset(,0,)
kzalloc'd memory doesn't need a memset to 0.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Rasesh Mody <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2011-01-12 19:00:39 -08:00
Joe Perches 1ca28218eb hwmon: (w83781d) Use pr_fmt and pr_<level>
Added #define pr_fmt KBUILD_MODNAME ": " fmt
Converted printks to pr_<level>
Coalesced any long formats
Removed prefixes from formats

[JD: Optimize repeated debug messages]

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Jean Delvare <[email protected]>
2011-01-12 21:55:11 +01:00
Joe Perches 5e24e0c365 hwmon: (pc87427) Use pr_fmt and pr_<level>
Added #define pr_fmt KBUILD_MODNAME ": " fmt
Converted printks to pr_<level>
Coalesced any long formats
Removed prefixes from formats

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Jean Delvare <[email protected]>
2011-01-12 21:55:11 +01:00
Joe Perches 9e991c6fad hwmon: (pc87360) Use pr_fmt and pr_<level>
Added #define pr_fmt KBUILD_MODNAME ": " fmt
Converted printks to pr_<level>
Coalesced any long formats
Removed prefixes from formats

[JD: Also convert debug messages]

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Jean Delvare <[email protected]>
2011-01-12 21:55:11 +01:00
Joe Perches ce47da742d hwmon: (lm78) Use pr_fmt and pr_<level>
Added #define pr_fmt KBUILD_MODNAME ": " fmt
Converted printks to pr_<level>
Coalesced any long formats
Removed prefixes from formats

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Jean Delvare <[email protected]>
2011-01-12 21:55:10 +01:00
Joe Perches a8ca103793 hwmon: (it87) Use pr_fmt and pr_<level>
Added #define pr_fmt KBUILD_MODNAME ": " fmt
Converted printks to pr_<level>
Coalesced any long formats
Removed prefixes from formats

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Jean Delvare <[email protected]>
2011-01-12 21:55:10 +01:00
Joe Perches 948579cd8c RDMA: Use vzalloc() to replace vmalloc()+memset(0)
Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Roland Dreier <[email protected]>
2011-01-12 11:11:58 -08:00
Joe Perches 43e7ee33f2 drivers/regulator: Update WARN uses
Align arguments.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Mark Brown <[email protected]>
Signed-off-by: Liam Girdwood <[email protected]>
2011-01-12 14:33:01 +00:00
Joe Perches 5da84fd99b regulator: Add and use rdev_<level> macros
On Tue, 2010-11-30 at 10:52 +0000, Mark Brown wrote:
> On Mon, Nov 29, 2010 at 05:12:56PM -0800, Joe Perches wrote:
> > Just to please broonie...
> > Signed-off-by: Joe Perches <[email protected]>
> As usual when fixing review issues please revise your original patch
> rather than posting a fresh patch.

Here's an earlier comment:

On Thu, 2010-11-18 at 13:30 +0000, Mark Brown wrote:
> This looks reasonable, please rebase on top of Daniel's patches and
> submit it properly (with changelog and so on).

Sometimes it's simpler for an upstream maintainer to do
something like:

git am -s <patch1.mbox>
patch -p1 < patch2.mbox
git commit --amend file

instead of back and forthing.

Signed-off-by: Liam Girdwood <[email protected]>
2011-01-12 14:33:01 +00:00
Joe Perches 009ca3897e fs/9p: Remove unnecessary semicolons
Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Eric Van Hensbergen <[email protected]>
2011-01-11 09:58:07 -06:00
Joe Perches 601d87b079 RDMA/nes: Fix string continuation line
Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Roland Dreier <[email protected]>
2011-01-10 17:42:14 -08:00
Joe Perches 1eba27e87a IB/ipath: Use printf extension %pR for struct resource
Using %pR standardizes the struct resource output.

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Roland Dreier <[email protected]>
2011-01-10 17:41:50 -08:00
Joe Perches b18a5c80eb i2c-nforce2: Remove unnecessary cast of pci_get_drvdata
Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Jean Delvare <[email protected]>
2011-01-10 22:11:22 +01:00
Joe Perches 055adcbd7d quota: Use %pV and __attribute__((format (printf in __quota_error and fix fallout
Use %pV in __quota_error so a single printk can not be
interleaved with other logging messages.
Add __attribute__((format (printf, 3, 4))) so format
and arguments can be verified by compiler.
Make sure printk formats and arguments match.

Block # needed a pointer dereference.

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
2011-01-10 19:04:05 +01:00
Joe Perches b004a5eb0b fs/nilfs2/super.c: Use printf extension %pV
Using %pV reduces the number of printk calls and
eliminates any possible message interleaving from
other printk calls.

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Ryusuke Konishi <[email protected]>
2011-01-10 14:05:45 +09:00
Joe Perches 150ee73d1b mmc: davinci_mmc: Remove unnecessary semicolon
Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Chris Ball <[email protected]>
2011-01-08 22:48:04 -05:00
Joe Perches 1ee7c71bd1 hwmon: (applesmc) Use pr_fmt and pr_<level>
Added #define pr_fmt KBUILD_MODNAME ": " fmt
Converted printks to pr_<level>
Coalesced any long formats
Removed prefixes from formats

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Henrik Rydberg <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
2011-01-08 10:55:37 -08:00
Joe Perches 18de030f1d hwmon: (w83627hf) Use pr_fmt and pr_<level>
Added #define pr_fmt KBUILD_MODNAME ": " fmt
Converted printks to pr_<level>
Coalesced any long formats
Removed prefixes from formats

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
2011-01-08 10:55:33 -08:00
Joe Perches abdc6fd189 hwmon: (w83627ehf) Use pr_fmt and pr_<level>
Added #define pr_fmt KBUILD_MODNAME ": " fmt
Converted printks to pr_<level>
Coalesced any long formats
Removed prefixes from formats

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
2011-01-08 10:55:32 -08:00
Joe Perches 9d72be0da1 hwmon: (vt8231) Use pr_fmt and pr_<level>
Added #define pr_fmt KBUILD_MODNAME ": " fmt
Converted printks to pr_<level>
Coalesced any long formats
Removed prefixes from formats

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
2011-01-08 10:55:31 -08:00
Joe Perches 5ed9ba6b87 hwmon: (vt1211) Use pr_fmt and pr_<level>
Added #define pr_fmt KBUILD_MODNAME ": " fmt
Converted printks to pr_<level>
Coalesced any long formats
Removed prefixes from formats

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
2011-01-08 10:55:30 -08:00