Skip to contentSkip to conversation

power, max8998: Include linux/module.h just once in drivers/power/max8998_charger.c

PATCH Applied 함명주 4 participants 4 messages Feb 6, 2012 – Mar 15, 2012

lore
Share & tools
lore

함명주

author Acked-by
#0 lore raw
Quoted 3 lines

Remove the duplicate.

Quoted 25 lines
---
 drivers/power/max8998_charger.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/power/max8998_charger.c +0 -1
index 9b3f2bf..5c5f281 100644
@@ -21,7 +21,6 @@
 
 #include <linux/module.h>
 #include <linux/err.h>
-#include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/platform_device.h>
 #include <linux/power_supply.h>
Signature · 7 lines
1.7.9


-- 
Jesper Juhl <[email protected]>       http://www.chaosbits.net/
Don't top-post http://www.catb.org/jargon/html/T/top-post.html
Plain text mails only, please.

�淸�{.n�+돴윯돪�+%듚�깁負쪐w��{.n�+돴쪐{깸G쳺��{ay����,j�f"톒쉹��묎�z_溫(�쉸듶줷"얎�m����G쳺�◀?솳鈺�&x�~뤳턨O뺞촾퇉v�^�m��� �띠�◀?뻀�

#1 lore raw
Quoted 5 lines · 함명주
Quoted 3 lines

Remove the duplicate.

Applied, thanks!

Quoted 19 lines
Quoted 19 lines
---
 drivers/power/max8998_charger.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/power/max8998_charger.c +0 -1
index 9b3f2bf..5c5f281 100644
@@ -21,7 +21,6 @@
 
 #include <linux/module.h>
 #include <linux/err.h>
-#include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/platform_device.h>
 #include <linux/power_supply.h>
Signature · 1 line
1.7.9
Signature · 2 lines
Anton Vorontsov
Email: [email protected]
#2 lore raw
Quoted 8 lines · Anton Vorontsov
Quoted 5 lines · 함명주
Quoted 3 lines

Remove the duplicate.

Applied, thanks!

There is already a commit queued in linux-next that deletes all the duplicates at once. It just so happens to delete the other instance vs the one shown here. So if both commits are present, then there won't be *any* module.h left, and the build will fail. If it is possible, please just drop this patch, since the treewide duplicate patch will still have to exist to fix the other instances.

https://lkml.org/lkml/2012/2/29/586

Thanks,
Paul.

Quoted 21 lines
Quoted 20 lines
Quoted 20 lines

---
 drivers/power/max8998_charger.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/power/max8998_charger.c +0 -1
index 9b3f2bf..5c5f281 100644
@@ -21,7 +21,6 @@
 
 #include <linux/module.h>
 #include <linux/err.h>
-#include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/platform_device.h>
 #include <linux/power_supply.h>
Signature · 1 line
1.7.9
#3 lore raw
Quoted 18 lines · Paul Gortmaker
Quoted 8 lines · Anton Vorontsov
Quoted 5 lines · 함명주
Quoted 3 lines

Remove the duplicate.

Applied, thanks!

There is already a commit queued in linux-next that deletes all the duplicates at once. It just so happens to delete the other instance vs the one shown here. So if both commits are present, then there won't be *any* module.h left, and the build will fail. If it is possible, please just drop this patch, since the treewide duplicate patch will still have to exist to fix the other instances.

Quoted 2 lines

https://lkml.org/lkml/2012/2/29/586

I agree. Drop this one.

Signature · 3 lines
Jesper Juhl <[email protected]>       http://www.chaosbits.net/
Don't top-post http://www.catb.org/jargon/html/T/top-post.html
Plain text mails only, please.