]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0beb35f03168ed2b57d840d742fab89f376a7d67
treee3053c23297b57bb85b5abcabfd49635511ec140
parent4e7ddbdd6a2aec77a2e241dcc6d6be57a1027256
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