compat: crc8: undef pr_fmt
PATCH 1/1 compat: crc8: undef pr_fmt
From: Johannes Berg <[email protected]>
--- compat/crc8.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
compat/crc8.c +3 -0
@@ -14,6 +14,9 @@* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#ifdef pr_fmt +#undef pr_fmt +#endif #define pr_fmt (fmt) KBUILD_MODNAME ": " fmt#include <linux/module.h>
Signature · 1 line
1.7.9.1
compat/crc8.c
Quoted 7 lines · Johannes Berg
compat/crc8.c +3
-0+#ifdef pr_fmt +#undef pr_fmt +#endif #define pr_fmt (fmt) KBUILD_MODNAME ": " fmt#include <linux/module.h>
Trivial remark. Not really necessary to do the #ifdef. #undef works fine if pr_fmt has not been defined.
Gr. AvS
Quoted 11 lines · Arend van Spriel
compat/crc8.c
Quoted 7 lines · Johannes Berg
compat/crc8.c +3
-0+#ifdef pr_fmt +#undef pr_fmt +#endif #define pr_fmt (fmt) KBUILD_MODNAME ": " fmt#include <linux/module.h> Trivial remark. Not really necessary to do the #ifdef. #undef works fine if
pr_fmthas not been defined.
Really? I thought it would give a warning then, but couldn't test it since it was defined for me.
johannes
Quoted 13 lines · Johannes Berg
Quoted 11 lines · Arend van Spriel
compat/crc8.c
Quoted 7 lines · Johannes Berg
compat/crc8.c +3
-0+#ifdef pr_fmt +#undef pr_fmt +#endif #define pr_fmt (fmt) KBUILD_MODNAME ": " fmt#include <linux/module.h> Trivial remark. Not really necessary to do the #ifdef. #undef works fine if
pr_fmthas not been defined.
Quoted 6 lines
Really? I thought it would give a warning then, but couldn't test it since it was defined for me.
johannes
I made a little test program to confirm my thought, before sending my previous email. Retried compiling with '-W -Wall -ansi -pedantic' and no complaints about the #undef.
Gr. AvS
Quoted 17 lines · Arend van Spriel
Quoted 16 lines · Johannes Berg
Quoted 11 lines · Arend van Spriel
compat/crc8.c
Quoted 7 lines · Johannes Berg
compat/crc8.c +3
-0+#ifdef pr_fmt +#undef pr_fmt +#endif #define pr_fmt (fmt) KBUILD_MODNAME ": " fmt#include <linux/module.h> Trivial remark. Not really necessary to do the #ifdef. #undef works fine if
pr_fmthas not been defined.Really? I thought it would give a warning then, but couldn't test it since it was defined for me.
Quoted 7 lines
Quoted 3 lines
johannes
I made a little test program to confirm my thought, before sending my previous email. Retried compiling with '-W -Wall -ansi -pedantic' and no complaints about the #undef.
Ok. I'm too lazy to send a new patch, but maybe Luis wants to change it when he applies it :)
johannes
Quoted 22 lines · Johannes Berg
Quoted 21 lines · Arend van Spriel
Quoted 19 lines · Johannes Berg
Quoted 11 lines · Arend van Spriel
compat/crc8.c
Quoted 7 lines · Johannes Berg
compat/crc8.c +3
-0+#ifdef pr_fmt +#undef pr_fmt +#endif #define pr_fmt (fmt) KBUILD_MODNAME ": " fmt#include <linux/module.h> Trivial remark. Not really necessary to do the #ifdef. #undef works fine if
pr_fmthas not been defined.Really? I thought it would give a warning then, but couldn't test it since it was defined for me.
johannes
Quoted 6 lines
Quoted 3 lines
I made a little test program to confirm my thought, before sending my previous email. Retried compiling with '-W -Wall -ansi -pedantic' and no complaints about the #undef.
Ok. I'm too lazy to send a new patch, but maybe Luis wants to change it when he applies it :)
I changed it, and applied, thanks!!!
Luis