[PATCH] drivers/net/fsl_ucc: Do not prefix header guard with CONFIG_

Subsystems: freescale quicc engine ucc hdlc driver, networking drivers, the rest

STALE3710d

2 messages, 2 authors, 2016-06-08 · open the first message on its own page

[PATCH] drivers/net/fsl_ucc: Do not prefix header guard with CONFIG_

From: Andreas Ziegler <hidden>
Date: 2016-06-08 09:50:20

The CONFIG_ prefix should only be used for options which
can be configured through Kconfig and not for guarding headers.

Signed-off-by: Andreas Ziegler <redacted>
---
 drivers/net/wan/fsl_ucc_hdlc.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wan/fsl_ucc_hdlc.h b/drivers/net/wan/fsl_ucc_hdlc.h
index 525786a..881ecde 100644
--- a/drivers/net/wan/fsl_ucc_hdlc.h
+++ b/drivers/net/wan/fsl_ucc_hdlc.h
@@ -8,8 +8,8 @@
  * option) any later version.
  */
 
-#ifndef CONFIG_UCC_HDLC_H
-#define CONFIG_UCC_HDLC_H
+#ifndef _UCC_HDLC_H_
+#define _UCC_HDLC_H_
 
 #include <linux/kernel.h>
 #include <linux/list.h>
-- 
1.9.1

Re: [PATCH] drivers/net/fsl_ucc: Do not prefix header guard with CONFIG_

From: David Miller <davem@davemloft.net>
Date: 2016-06-08 18:08:52

From: Andreas Ziegler <redacted>
Date: Wed,  8 Jun 2016 11:40:28 +0200
The CONFIG_ prefix should only be used for options which
can be configured through Kconfig and not for guarding headers.

Signed-off-by: Andreas Ziegler <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help