Skip to contentSkip to conversation

drivers: usb: gadget: fusb300_udc.h: Fix typo in include guard

PATCH Superseded Rasmus Villemoes 2 participants 7 messages Aug 22, 2014 – Aug 25, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: usb: gadget: fusb300_udc.h: Fix typo in include guard

---
 drivers/usb/gadget/udc/fusb300_udc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/gadget/udc/fusb300_udc.h +1 -1
index ae811d8..ad39f89 100644
@@ -12,7 +12,7 @@
 
 
 #ifndef __FUSB300_UDC_H__
-#define __FUSB300_UDC_H_
+#define __FUSB300_UDC_H__
 
 #include <linux/kernel.h>
 
Signature · 1 line
1.9.2
#1 lore raw

On Fri, Aug 22, 2014 at 02:59:32PM +0200, Rasmus Villemoes wrote:

you need a commit log. Has this always been there ? Which commit are you fixing ?

Quoted 21 lines
---
 drivers/usb/gadget/udc/fusb300_udc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/gadget/udc/fusb300_udc.h +1 -1
index ae811d8..ad39f89 100644
@@ -12,7 +12,7 @@
 
 
 #ifndef __FUSB300_UDC_H__
-#define __FUSB300_UDC_H_
+#define __FUSB300_UDC_H__
 
 #include <linux/kernel.h>
 
Signature · 1 line
1.9.2
Signature · 1 line
balbi
#2 lore raw

PATCH v2 1/1 drivers: usb: gadget: fusb300_udc.h: Fix typo in include guard

Clearly this was meant to be an include guard, but a trailing underscore was missing. It has been this way since the file was introduced in 0fe6f1d1 ("usb: udc: add Faraday fusb300 driver").

---
 drivers/usb/gadget/udc/fusb300_udc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/gadget/udc/fusb300_udc.h +1 -1
index ae811d8..ad39f89 100644
@@ -12,7 +12,7 @@
 
 
 #ifndef __FUSB300_UDC_H__
-#define __FUSB300_UDC_H_
+#define __FUSB300_UDC_H__
 
 #include <linux/kernel.h>
 
Signature · 1 line
2.0.4
#3 lore raw
Quoted 4 lines · Rasmus Villemoes

Clearly this was meant to be an include guard, but a trailing underscore was missing. It has been this way since the file was introduced in 0fe6f1d1 ("usb: udc: add Faraday fusb300 driver").

right here you need to have:

Fixes 0fe6f1d1 ("usb: udc: add Faraday fusb300 driver")
Quoted 21 lines
---
 drivers/usb/gadget/udc/fusb300_udc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/gadget/udc/fusb300_udc.h +1 -1
index ae811d8..ad39f89 100644
@@ -12,7 +12,7 @@
 
 
 #ifndef __FUSB300_UDC_H__
-#define __FUSB300_UDC_H_
+#define __FUSB300_UDC_H__
 
 #include <linux/kernel.h>
 
Signature · 1 line
2.0.4
Signature · 1 line
balbi
#4 lore raw
Quoted 10 lines · Felipe Balbi
Quoted 4 lines · Rasmus Villemoes

Clearly this was meant to be an include guard, but a trailing underscore was missing. It has been this way since the file was introduced in 0fe6f1d1 ("usb: udc: add Faraday fusb300 driver").

right here you need to have:

Fixes 0fe6f1d1 ("usb: udc: add Faraday fusb300 driver")

Really? I can't see that it satisfies the Documentation/stable_kernel_rules.txt. There's no chance of build error, since the file is only included directly from a single .c file. As you can see on LKML I've sent a few handfuls of similar patches all over the tree; IMHO none of them qualify for stable.

If you insist, I'll add the Fixes and Cc tags.

Thanks,
Rasmus

#5 lore raw

Hi,

Quoted 13 lines · Rasmus Villemoes
Quoted 10 lines · Felipe Balbi
Quoted 4 lines · Rasmus Villemoes

Clearly this was meant to be an include guard, but a trailing underscore was missing. It has been this way since the file was introduced in 0fe6f1d1 ("usb: udc: add Faraday fusb300 driver").

right here you need to have:

Fixes 0fe6f1d1 ("usb: udc: add Faraday fusb300 driver")
Quoted 7 lines

Really? I can't see that it satisfies the Documentation/stable_kernel_rules.txt. There's no chance of build error, since the file is only included directly from a single .c file. As you can see on LKML I've sent a few handfuls of similar patches all over the tree; IMHO none of them qualify for stable.

If you insist, I'll add the Fixes and Cc tags.

it's a bug fix nevertheless.

Signature · 1 line
balbi
#6 lore raw

PATCH v3 1/1 drivers: usb: gadget: fusb300_udc.h: Fix typo in include guard

Clearly this was meant to be an include guard, but a trailing underscore was missing. It has been this way since the file was introduced in 0fe6f1d1 ("usb: udc: add Faraday fusb300 driver").

Fixes 0fe6f1d1 ("usb: udc: add Faraday fusb300 driver")

---

Notes:
v2: Add proper commit message.

v3: Add "Fixes:" and "Cc: stable" tags as requested by Felipe Balbi.

 drivers/usb/gadget/udc/fusb300_udc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/gadget/udc/fusb300_udc.h +1 -1
index ae811d8..ad39f89 100644
@@ -12,7 +12,7 @@
 
 
 #ifndef __FUSB300_UDC_H__
-#define __FUSB300_UDC_H_
+#define __FUSB300_UDC_H__
 
 #include <linux/kernel.h>
 
Signature · 1 line
2.0.4