Skip to contentSkip to conversation

compat: crc8: undef pr_fmt

PATCH In review Johannes Berg 3 participants 6 messages Mar 30, 2012

lore
Share & tools
lore
#0 lore raw

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
index fa8382d..753a5cb 100644
@@ -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
#1 lore raw

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

#2 lore raw
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_fmt has not been defined.

Really? I thought it would give a warning then, but couldn't test it since it was defined for me.

johannes

#3 lore raw
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_fmt has 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

#4 lore raw
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_fmt has 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

#5 lore raw
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_fmt has 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