Skip to contentSkip to conversation

Fix duplicate #include headers

PATCH In review Jean Sacren 3 participants 5 messages Apr 5, 2014 – Apr 7, 2014

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

cover Fix duplicate #include headers

This tiny series fixes the same issue of duplicate #include headers.

Jean Sacren (2):
sxgbe: fix duplicate #include headers
mac802154: fix duplicate #include headers

 drivers/net/ethernet/samsung/sxgbe/sxgbe_dma.c | 1 -
 net/mac802154/mib.c                            | 1 -
 2 files changed, 2 deletions(-)
#1 lore raw

PATCH 1/2 sxgbe: fix duplicate #include headers

The commit 1edb9ca69e8a ("net: sxgbe: add basic framework for Samsung 10Gb ethernet driver") added support for Samsung 10Gb ethernet driver(sxgbe) with a minor issue of including linux/io.h header twice in sxgbe_dma.c file. Fix the duplicate #include by deleting the top one so that all the rest good #include headers would be preserved in the alphabetical order.

Cc Byungho An <[email protected]>
Cc Girish K S <[email protected]>
Cc Siva Reddy Kallam <[email protected]>
Cc Vipul Pandya <[email protected]>
---
 drivers/net/ethernet/samsung/sxgbe/sxgbe_dma.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/ethernet/samsung/sxgbe/sxgbe_dma.c +0 -1
index 28f89c41d0cd..4d989ff6c978 100644
@@ -9,7 +9,6 @@
  * it under the terms of the GNU General Public License version 2 as
  * published by the Free Software Foundation.
  */
-#include <linux/io.h>
 #include <linux/delay.h>
 #include <linux/export.h>
 #include <linux/io.h>
#3 lore raw

PATCH 2/2 mac802154: fix duplicate #include headers

In reply to Jean Sacren

The commit e6278d92005e ("mac802154: use header operations to create/parse headers") included the header

		net/ieee802154_netdev.h

which had been included by the commit b70ab2e87f17 ("ieee802154:
enforce consistent endianness in the 802.15.4 stack"). Fix this duplicate #include by deleting the latter one as the required header has already been in place.

Cc Alexander Smirnov <[email protected]>
Cc Dmitry Eremin-Solenikov <[email protected]>
Cc Phoebe Buckheister <[email protected]>
---
 net/mac802154/mib.c | 1 -
 1 file changed, 1 deletion(-)
net/mac802154/mib.c +0 -1
index 153bd1ddbfbb..f0991f2344d4 100644
@@ -26,7 +26,6 @@
 #include <net/mac802154.h>
 #include <net/ieee802154_netdev.h>
 #include <net/wpan-phy.h>
-#include <net/ieee802154_netdev.h>
 
 #include "mac802154.h"
 
maintainer Acked-by on v1 1/2
#2 lore raw

RE: [PATCH net 1/2] sxgbe: fix duplicate #include headers

In reply to Jean Sacren
Quoted 10 lines · Jean Sacren

The commit 1edb9ca69e8a ("net: sxgbe: add basic framework for Samsung 10Gb ethernet driver") added support for Samsung 10Gb ethernet driver(sxgbe) with a minor issue of including linux/io.h header twice in sxgbe_dma.c file. Fix the duplicate #include by deleting the top one so that all the rest good #include headers would be preserved in the alphabetical order.

Thanks,
Byungho

Quoted 20 lines
Cc Girish K S <[email protected]>
Cc Siva Reddy Kallam <[email protected]>
Cc Vipul Pandya <[email protected]>
---
 drivers/net/ethernet/samsung/sxgbe/sxgbe_dma.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/ethernet/samsung/sxgbe/sxgbe_dma.c +0 -1
index 28f89c41d0cd..4d989ff6c978 100644
@@ -9,7 +9,6 @@
  * it under the terms of the GNU General Public License version 2 as
  * published by the Free Software Foundation.
  */
-#include <linux/io.h>
 #include <linux/delay.h>
 #include <linux/export.h>
 #include <linux/io.h>
maintainer
#4 lore raw
In reply to Jean Sacren

From: Jean Sacren <[email protected]>
Date: Sat, 5 Apr 2014 00:28:59 -0600

Quoted 5 lines

This tiny series fixes the same issue of duplicate #include headers.

Jean Sacren (2):
sxgbe: fix duplicate #include headers
mac802154: fix duplicate #include headers

Both applied, thanks.