param: don't deref arg in __same_type() checks
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 12 Aug 2010 05:04:40 +0000 (23:04 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 11 Aug 2010 13:34:41 +0000 (23:04 +0930)
commita6de51b2787012ba3ab62c7d50df1b749b83d5f0
treee3053c23297b57bb85b5abcabfd49635511ec140
parent4ef2db016aab27af05a95aeab1c30ad3f2fed7b9
param: don't deref arg in __same_type() checks

gcc allows this when arg is a function, but sparse complains:

drivers/char/ipmi/ipmi_watchdog.c:303:1: error: cannot dereference this type
drivers/char/ipmi/ipmi_watchdog.c:307:1: error: cannot dereference this type
drivers/char/ipmi/ipmi_watchdog.c:311:1: error: cannot dereference this type

Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Tested-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/linux/moduleparam.h