]> git.baikalelectronics.ru Git - kernel.git/commit
smc91x: improve definition of debug macros
authorZi Shen Lim <zlim.lnx@gmail.com>
Wed, 23 Apr 2014 03:04:42 +0000 (20:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Apr 2014 17:07:48 +0000 (13:07 -0400)
commit3d8cad970843019d6781bbec6333a3d268ebda4c
tree2f7adac460770d495e43038a790f3ddd32b7f07f
parentbc8c532b1c3dd2fdf33d6cf8d340c7c67ce9259e
smc91x: improve definition of debug macros

Redefine some macros that were conditioned upon SMC_DEBUG level.

By allowing compiler to verify parameters used by these macros
unconditionally, we can flag compilation failures.

Compiler will still optimize out the unused code path depending on
SMC_DEBUG, so this is a net gain.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Zi Shen Lim <zlim.lnx@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/smsc/smc91x.c