Skip to contentSkip to conversation

ixp4xx_hss: fix build failure after logging conversion

PATCH In review Florian Fainelli 3 participants 4 messages Sep 10, 2012

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

PATCH 1/1 ixp4xx_hss: fix build failure after logging conversion

Commit c75bb2c6f0cf455c23e60f14d780e841dd47f801 (ixp4xx_hss: Update to current logging forms) converted the ixp4xx_hss module to use the current logging macros, but forgot to include linux/module.h, leading to the following build failures:

CC [M] drivers/net/wan/ixp4xx_hss.o
drivers/net/wan/ixp4xx_hss.c:1412:20: error: expected ';', ',' or ')' before string constant drivers/net/wan/ixp4xx_hss.c:1413:25: error: expected ';', ',' or ')' before string constant drivers/net/wan/ixp4xx_hss.c:1414:21: error: expected ';', ',' or ')' before string constant drivers/net/wan/ixp4xx_hss.c:1415:19: error: expected ';', ',' or ')' before string constant
make[8]: *** [drivers/net/wan/ixp4xx_hss.o] Error 1

---
[stable: 3.1+]

 drivers/net/wan/ixp4xx_hss.c |    1 +
 1 file changed, 1 insertion(+)
drivers/net/wan/ixp4xx_hss.c +1 -0
index aaaca9a..3f575af 100644
@@ -10,6 +10,7 @@
 
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
+#include <linux/module.h>
 #include <linux/bitops.h>
 #include <linux/cdev.h>
 #include <linux/dma-mapping.h>
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 4 lines · Florian Fainelli

Commit c75bb2c6f0cf455c23e60f14d780e841dd47f801 (ixp4xx_hss: Update to current logging forms) converted the ixp4xx_hss module to use the current logging macros, but forgot to include linux/module.h, leading to the following build failures:

Bad explanation.
This commit had nothing to do with any missing module.h.

#2 lore raw
Quoted 8 lines · On Monday 10 September 2012 02:04:15 Joe Perches wrote:
Quoted 4 lines · Florian Fainelli

Commit c75bb2c6f0cf455c23e60f14d780e841dd47f801 (ixp4xx_hss: Update to current logging forms) converted the ixp4xx_hss module to use the current logging macros, but forgot to include linux/module.h, leading to the following build failures:

Bad explanation.
This commit had nothing to do with any missing module.h.

You are right, this issue dates back from day one when this driver got merged, I will repost a v2 with the proper commit.
--
Florian

#3 lore raw
In reply to Florian Fainelli
Quoted 16 lines · Florian Fainelli

Commit c75bb2c6f0cf455c23e60f14d780e841dd47f801 (ixp4xx_hss: Update to current logging forms) converted the ixp4xx_hss module to use the current logging macros, but forgot to include linux/module.h, leading to the following build failures:

CC [M] drivers/net/wan/ixp4xx_hss.o
drivers/net/wan/ixp4xx_hss.c:1412:20: error: expected ';', ',' or ')' before string constant drivers/net/wan/ixp4xx_hss.c:1413:25: error: expected ';', ',' or ')' before string constant drivers/net/wan/ixp4xx_hss.c:1414:21: error: expected ';', ',' or ')' before string constant drivers/net/wan/ixp4xx_hss.c:1415:19: error: expected ';', ',' or ')' before string constant
make[8]: *** [drivers/net/wan/ixp4xx_hss.o] Error 1

Quoted 4 lines

---
[stable: 3.1+]

The versions to receive stable updates should be noted on the inline Cc line, not in non-committed comments. (But David prefers to collect up networking patches in his own stable queue rather than using the inline Cc mechanism. So the Cc may not be appropriate at all.)

Ben.

Quoted 15 lines
 drivers/net/wan/ixp4xx_hss.c |    1 +
 1 file changed, 1 insertion(+)
drivers/net/wan/ixp4xx_hss.c +1 -0
index aaaca9a..3f575af 100644
@@ -10,6 +10,7 @@
 
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
+#include <linux/module.h>
 #include <linux/bitops.h>
 #include <linux/cdev.h>
 #include <linux/dma-mapping.h>
Signature · 3 lines
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.