From: Pavel Pisa Date: Tue, 30 Sep 2008 10:16:00 +0000 (+0000) Subject: Suppress warning the address of __this_module will always evaluate as true. X-Git-Tag: v0.1-sssa~31 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/omk.git/commitdiff_plain/af7a6b2ce2e2c62d2160da2f8cef8b1b3e95468d?hp=05e03b4c05fcbf11ace71c76418bce33685665c6 Suppress warning the address of __this_module will always evaluate as true. darcs-hash:20080930101609-ff715-5f35f260a2d9152e591d7ebd2b812d0512667f36.gz --- diff --git a/snippets/linux b/snippets/linux index cbfe981..4c071d6 100644 --- a/snippets/linux +++ b/snippets/linux @@ -433,7 +433,7 @@ KERN_AR = $(AR) endif ifeq ($(LINUX_QUOTE_MODNAME),y) KERN_MQ=\" -KERN_KBUILD_MODNAME=-D"KBUILD_MODNAME=((THIS_MODULE)?(THIS_MODULE)->name:NULL)" +KERN_KBUILD_MODNAME=-D"KBUILD_MODNAME=((THIS_MODULE)!=NULL?(THIS_MODULE)->name:NULL)" endif endif # CONFIG_RTLINUX