netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] cleanup for ieee802154 and mac802154
@ 2014-07-09  3:44 Varka Bhadram
  2014-07-09  3:44 ` [PATCH net-next 1/2] ieee802154: removed unwanted header files Varka Bhadram
  2014-07-09  3:44 ` [PATCH net-next 2/2] mac802154: " Varka Bhadram
  0 siblings, 2 replies; 5+ messages in thread
From: Varka Bhadram @ 2014-07-09  3:44 UTC (permalink / raw)
  To: netdev; +Cc: alex.aring, linux-zigbee-devel, davem, Varka Bhadram

This patch series remove the unwanted headerfiles for ieee802154 and mac802154

Varka Bhadram (2):
  ieee802154: removed unwanted header files
  mac802154: removed unwanted header files

 net/ieee802154/6lowpan_iphc.c  |    4 ----
 net/ieee802154/6lowpan_rtnl.c  |    7 -------
 net/ieee802154/af_ieee802154.c |   11 -----------
 net/ieee802154/dgram.c         |    6 ------
 net/ieee802154/header_ops.c    |    1 -
 net/ieee802154/netlink.c       |    2 --
 net/ieee802154/nl-mac.c        |    8 --------
 net/ieee802154/nl-phy.c        |    4 ----
 net/ieee802154/nl_policy.c     |    1 -
 net/ieee802154/raw.c           |    5 -----
 net/ieee802154/reassembly.c    |   11 -----------
 net/ieee802154/wpan-class.c    |    4 ----
 net/mac802154/ieee802154_dev.c |    5 -----
 net/mac802154/llsec.c          |    7 -------
 net/mac802154/llsec.h          |    4 ----
 net/mac802154/mac802154.h      |    2 --
 net/mac802154/mac_cmd.c        |    3 ---
 net/mac802154/mib.c            |    2 --
 net/mac802154/monitor.c        |    4 ----
 net/mac802154/rx.c             |    7 -------
 net/mac802154/tx.c             |    5 -----
 net/mac802154/wpan.c           |    6 ------
 22 files changed, 109 deletions(-)

-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH net-next 1/2] ieee802154: removed unwanted header files
  2014-07-09  3:44 [PATCH net-next 0/2] cleanup for ieee802154 and mac802154 Varka Bhadram
@ 2014-07-09  3:44 ` Varka Bhadram
  2014-07-09  3:56   ` David Miller
  2014-07-09  3:44 ` [PATCH net-next 2/2] mac802154: " Varka Bhadram
  1 sibling, 1 reply; 5+ messages in thread
From: Varka Bhadram @ 2014-07-09  3:44 UTC (permalink / raw)
  To: netdev; +Cc: alex.aring, linux-zigbee-devel, davem, Varka Bhadram


Signed-off-by: Varka Bhadram <varkab@cdac.in>
---
 net/ieee802154/6lowpan_iphc.c  |    4 ----
 net/ieee802154/6lowpan_rtnl.c  |    7 -------
 net/ieee802154/af_ieee802154.c |   11 -----------
 net/ieee802154/dgram.c         |    6 ------
 net/ieee802154/header_ops.c    |    1 -
 net/ieee802154/netlink.c       |    2 --
 net/ieee802154/nl-mac.c        |    8 --------
 net/ieee802154/nl-phy.c        |    4 ----
 net/ieee802154/nl_policy.c     |    1 -
 net/ieee802154/raw.c           |    5 -----
 net/ieee802154/reassembly.c    |   11 -----------
 net/ieee802154/wpan-class.c    |    4 ----
 12 files changed, 64 deletions(-)

diff --git a/net/ieee802154/6lowpan_iphc.c b/net/ieee802154/6lowpan_iphc.c
index 511ddee..d85caa2 100644
--- a/net/ieee802154/6lowpan_iphc.c
+++ b/net/ieee802154/6lowpan_iphc.c
@@ -49,12 +49,8 @@
  * SUCH DAMAGE.
  */
 
-#include <linux/bitops.h>
-#include <linux/if_arp.h>
 #include <linux/module.h>
-#include <linux/netdevice.h>
 #include <net/6lowpan.h>
-#include <net/ipv6.h>
 #include <net/af_ieee802154.h>
 
 /* Uncompress address function for source and
diff --git a/net/ieee802154/6lowpan_rtnl.c b/net/ieee802154/6lowpan_rtnl.c
index 016b77e..54cf80b 100644
--- a/net/ieee802154/6lowpan_rtnl.c
+++ b/net/ieee802154/6lowpan_rtnl.c
@@ -44,16 +44,9 @@
  * SUCH DAMAGE.
  */
 
-#include <linux/bitops.h>
-#include <linux/if_arp.h>
 #include <linux/module.h>
-#include <linux/moduleparam.h>
-#include <linux/netdevice.h>
-#include <net/af_ieee802154.h>
-#include <net/ieee802154.h>
 #include <net/ieee802154_netdev.h>
 #include <net/6lowpan.h>
-#include <net/ipv6.h>
 
 #include "reassembly.h"
 
diff --git a/net/ieee802154/af_ieee802154.c b/net/ieee802154/af_ieee802154.c
index 29e0de6..d19fd25 100644
--- a/net/ieee802154/af_ieee802154.c
+++ b/net/ieee802154/af_ieee802154.c
@@ -21,21 +21,10 @@
  * Maxim Gorbachyov <maxim.gorbachev@siemens.com>
  */
 
-#include <linux/net.h>
-#include <linux/capability.h>
 #include <linux/module.h>
 #include <linux/if_arp.h>
-#include <linux/if.h>
-#include <linux/termios.h>	/* For TIOCOUTQ/INQ */
-#include <linux/list.h>
-#include <linux/slab.h>
-#include <net/datalink.h>
-#include <net/psnap.h>
-#include <net/sock.h>
-#include <net/tcp_states.h>
 #include <net/route.h>
 
-#include <net/af_ieee802154.h>
 #include <net/ieee802154_netdev.h>
 
 #include "af802154.h"
diff --git a/net/ieee802154/dgram.c b/net/ieee802154/dgram.c
index ef2ad8a..7d929cd 100644
--- a/net/ieee802154/dgram.c
+++ b/net/ieee802154/dgram.c
@@ -21,15 +21,9 @@
  * Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
  */
 
-#include <linux/capability.h>
-#include <linux/net.h>
 #include <linux/module.h>
 #include <linux/if_arp.h>
-#include <linux/list.h>
-#include <linux/slab.h>
 #include <net/sock.h>
-#include <net/af_ieee802154.h>
-#include <net/ieee802154.h>
 #include <net/ieee802154_netdev.h>
 
 #include <asm/ioctls.h>
diff --git a/net/ieee802154/header_ops.c b/net/ieee802154/header_ops.c
index c09294e..959f56a 100644
--- a/net/ieee802154/header_ops.c
+++ b/net/ieee802154/header_ops.c
@@ -15,7 +15,6 @@
  */
 
 #include <net/mac802154.h>
-#include <net/ieee802154.h>
 #include <net/ieee802154_netdev.h>
 
 static int
diff --git a/net/ieee802154/netlink.c b/net/ieee802154/netlink.c
index 9222966..90deb70 100644
--- a/net/ieee802154/netlink.c
+++ b/net/ieee802154/netlink.c
@@ -22,8 +22,6 @@
  * Maxim Osipov <maxim.osipov@siemens.com>
  */
 
-#include <linux/kernel.h>
-#include <linux/gfp.h>
 #include <net/genetlink.h>
 #include <linux/nl802154.h>
 
diff --git a/net/ieee802154/nl-mac.c b/net/ieee802154/nl-mac.c
index c6bfe22..17c53397 100644
--- a/net/ieee802154/nl-mac.c
+++ b/net/ieee802154/nl-mac.c
@@ -22,18 +22,10 @@
  * Maxim Osipov <maxim.osipov@siemens.com>
  */
 
-#include <linux/gfp.h>
-#include <linux/kernel.h>
 #include <linux/if_arp.h>
-#include <linux/netdevice.h>
-#include <net/netlink.h>
 #include <net/genetlink.h>
 #include <net/sock.h>
 #include <linux/nl802154.h>
-#include <linux/export.h>
-#include <net/af_ieee802154.h>
-#include <net/nl802154.h>
-#include <net/ieee802154.h>
 #include <net/ieee802154_netdev.h>
 #include <net/wpan-phy.h>
 
diff --git a/net/ieee802154/nl-phy.c b/net/ieee802154/nl-phy.c
index 972baf8..a685f14 100644
--- a/net/ieee802154/nl-phy.c
+++ b/net/ieee802154/nl-phy.c
@@ -22,13 +22,9 @@
  * Maxim Osipov <maxim.osipov@siemens.com>
  */
 
-#include <linux/kernel.h>
-#include <linux/slab.h>
 #include <linux/if_arp.h>
-#include <net/netlink.h>
 #include <net/genetlink.h>
 #include <net/wpan-phy.h>
-#include <net/af_ieee802154.h>
 #include <net/ieee802154_netdev.h>
 #include <net/rtnetlink.h> /* for rtnl_{un,}lock */
 #include <linux/nl802154.h>
diff --git a/net/ieee802154/nl_policy.c b/net/ieee802154/nl_policy.c
index 3a703ab8..71fb7b0 100644
--- a/net/ieee802154/nl_policy.c
+++ b/net/ieee802154/nl_policy.c
@@ -18,7 +18,6 @@
  *
  */
 
-#include <linux/kernel.h>
 #include <net/netlink.h>
 #include <linux/nl802154.h>
 
diff --git a/net/ieee802154/raw.c b/net/ieee802154/raw.c
index 9d1f648..a5a448d 100644
--- a/net/ieee802154/raw.c
+++ b/net/ieee802154/raw.c
@@ -21,13 +21,8 @@
  * Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
  */
 
-#include <linux/net.h>
-#include <linux/module.h>
 #include <linux/if_arp.h>
-#include <linux/list.h>
-#include <linux/slab.h>
 #include <net/sock.h>
-#include <net/af_ieee802154.h>
 #include <net/ieee802154_netdev.h>
 
 #include "af802154.h"
diff --git a/net/ieee802154/reassembly.c b/net/ieee802154/reassembly.c
index b85bd3f..feff865 100644
--- a/net/ieee802154/reassembly.c
+++ b/net/ieee802154/reassembly.c
@@ -14,19 +14,8 @@
 
 #define pr_fmt(fmt) "6LoWPAN: " fmt
 
-#include <linux/net.h>
-#include <linux/list.h>
-#include <linux/netdevice.h>
-#include <linux/random.h>
-#include <linux/jhash.h>
-#include <linux/skbuff.h>
-#include <linux/slab.h>
-#include <linux/export.h>
-
 #include <net/ieee802154_netdev.h>
 #include <net/6lowpan.h>
-#include <net/ipv6.h>
-#include <net/inet_frag.h>
 
 #include "reassembly.h"
 
diff --git a/net/ieee802154/wpan-class.c b/net/ieee802154/wpan-class.c
index 4955e0f..9afbedb 100644
--- a/net/ieee802154/wpan-class.c
+++ b/net/ieee802154/wpan-class.c
@@ -16,11 +16,7 @@
  *
  */
 
-#include <linux/slab.h>
-#include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/device.h>
-
 #include <net/wpan-phy.h>
 
 #include "ieee802154.h"
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH net-next 2/2] mac802154: removed unwanted header files
  2014-07-09  3:44 [PATCH net-next 0/2] cleanup for ieee802154 and mac802154 Varka Bhadram
  2014-07-09  3:44 ` [PATCH net-next 1/2] ieee802154: removed unwanted header files Varka Bhadram
@ 2014-07-09  3:44 ` Varka Bhadram
  1 sibling, 0 replies; 5+ messages in thread
From: Varka Bhadram @ 2014-07-09  3:44 UTC (permalink / raw)
  To: netdev; +Cc: alex.aring, linux-zigbee-devel, davem, Varka Bhadram


Signed-off-by: Varka Bhadram <varkab@cdac.in>
---
 net/mac802154/ieee802154_dev.c |    5 -----
 net/mac802154/llsec.c          |    7 -------
 net/mac802154/llsec.h          |    4 ----
 net/mac802154/mac802154.h      |    2 --
 net/mac802154/mac_cmd.c        |    3 ---
 net/mac802154/mib.c            |    2 --
 net/mac802154/monitor.c        |    4 ----
 net/mac802154/rx.c             |    7 -------
 net/mac802154/tx.c             |    5 -----
 net/mac802154/wpan.c           |    6 ------
 10 files changed, 45 deletions(-)

diff --git a/net/mac802154/ieee802154_dev.c b/net/mac802154/ieee802154_dev.c
index 9b54370..cb87a10 100644
--- a/net/mac802154/ieee802154_dev.c
+++ b/net/mac802154/ieee802154_dev.c
@@ -20,14 +20,9 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/netdevice.h>
-
 #include <net/netlink.h>
 #include <linux/nl802154.h>
-#include <net/mac802154.h>
-#include <net/ieee802154_netdev.h>
 #include <net/route.h>
 #include <net/wpan-phy.h>
 
diff --git a/net/mac802154/llsec.c b/net/mac802154/llsec.c
index 4570581..7aa221c 100644
--- a/net/mac802154/llsec.c
+++ b/net/mac802154/llsec.c
@@ -14,13 +14,6 @@
  * Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
  */
 
-#include <linux/err.h>
-#include <linux/bug.h>
-#include <linux/completion.h>
-#include <net/ieee802154.h>
-#include <crypto/algapi.h>
-
-#include "mac802154.h"
 #include "llsec.h"
 
 static void llsec_key_put(struct mac802154_llsec_key *key);
diff --git a/net/mac802154/llsec.h b/net/mac802154/llsec.h
index 950578e..1befa80 100644
--- a/net/mac802154/llsec.h
+++ b/net/mac802154/llsec.h
@@ -17,12 +17,8 @@
 #ifndef MAC802154_LLSEC_H
 #define MAC802154_LLSEC_H
 
-#include <linux/slab.h>
 #include <linux/hashtable.h>
 #include <linux/crypto.h>
-#include <linux/kref.h>
-#include <linux/spinlock.h>
-#include <net/af_ieee802154.h>
 #include <net/ieee802154_netdev.h>
 
 struct mac802154_llsec_key {
diff --git a/net/mac802154/mac802154.h b/net/mac802154/mac802154.h
index 762a6f8..0f956a2 100644
--- a/net/mac802154/mac802154.h
+++ b/net/mac802154/mac802154.h
@@ -23,9 +23,7 @@
 #ifndef MAC802154_H
 #define MAC802154_H
 
-#include <linux/mutex.h>
 #include <net/mac802154.h>
-#include <net/ieee802154_netdev.h>
 
 #include "llsec.h"
 
diff --git a/net/mac802154/mac_cmd.c b/net/mac802154/mac_cmd.c
index bf80913..2041d61 100644
--- a/net/mac802154/mac_cmd.c
+++ b/net/mac802154/mac_cmd.c
@@ -22,13 +22,10 @@
  * Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
  */
 
-#include <linux/skbuff.h>
 #include <linux/if_arp.h>
 
-#include <net/ieee802154.h>
 #include <net/ieee802154_netdev.h>
 #include <net/wpan-phy.h>
-#include <net/mac802154.h>
 #include <net/nl802154.h>
 
 #include "mac802154.h"
diff --git a/net/mac802154/mib.c b/net/mac802154/mib.c
index 868a040..33c5699 100644
--- a/net/mac802154/mib.c
+++ b/net/mac802154/mib.c
@@ -23,8 +23,6 @@
 
 #include <linux/if_arp.h>
 
-#include <net/mac802154.h>
-#include <net/ieee802154_netdev.h>
 #include <net/wpan-phy.h>
 
 #include "mac802154.h"
diff --git a/net/mac802154/monitor.c b/net/mac802154/monitor.c
index a68230e..3c77821 100644
--- a/net/mac802154/monitor.c
+++ b/net/mac802154/monitor.c
@@ -21,13 +21,9 @@
  * Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
  */
 
-#include <linux/netdevice.h>
-#include <linux/skbuff.h>
 #include <linux/if_arp.h>
 #include <linux/crc-ccitt.h>
 
-#include <net/ieee802154.h>
-#include <net/mac802154.h>
 #include <net/netlink.h>
 #include <net/wpan-phy.h>
 #include <linux/nl802154.h>
diff --git a/net/mac802154/rx.c b/net/mac802154/rx.c
index 7f820a1..a1dfc88 100644
--- a/net/mac802154/rx.c
+++ b/net/mac802154/rx.c
@@ -21,15 +21,8 @@
  * Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
  */
 
-#include <linux/kernel.h>
-#include <linux/module.h>
-#include <linux/workqueue.h>
-#include <linux/netdevice.h>
 #include <linux/crc-ccitt.h>
 
-#include <net/mac802154.h>
-#include <net/ieee802154_netdev.h>
-
 #include "mac802154.h"
 
 /* The IEEE 802.15.4 standard defines 4 MAC packet types:
diff --git a/net/mac802154/tx.c b/net/mac802154/tx.c
index 8124353..b3ae9d34 100644
--- a/net/mac802154/tx.c
+++ b/net/mac802154/tx.c
@@ -21,12 +21,7 @@
  * Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
  */
 
-#include <linux/netdevice.h>
-#include <linux/if_arp.h>
 #include <linux/crc-ccitt.h>
-
-#include <net/ieee802154_netdev.h>
-#include <net/mac802154.h>
 #include <net/wpan-phy.h>
 
 #include "mac802154.h"
diff --git a/net/mac802154/wpan.c b/net/mac802154/wpan.c
index 3c3069f..6006429 100644
--- a/net/mac802154/wpan.c
+++ b/net/mac802154/wpan.c
@@ -21,16 +21,10 @@
  * Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
  */
 
-#include <linux/netdevice.h>
-#include <linux/module.h>
 #include <linux/if_arp.h>
 
 #include <net/rtnetlink.h>
 #include <linux/nl802154.h>
-#include <net/af_ieee802154.h>
-#include <net/mac802154.h>
-#include <net/ieee802154_netdev.h>
-#include <net/ieee802154.h>
 #include <net/wpan-phy.h>
 
 #include "mac802154.h"
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next 1/2] ieee802154: removed unwanted header files
  2014-07-09  3:44 ` [PATCH net-next 1/2] ieee802154: removed unwanted header files Varka Bhadram
@ 2014-07-09  3:56   ` David Miller
  2014-07-09  4:27     ` Varka Bhadram
  0 siblings, 1 reply; 5+ messages in thread
From: David Miller @ 2014-07-09  3:56 UTC (permalink / raw)
  To: varkabhadram; +Cc: netdev, alex.aring, linux-zigbee-devel, varkab

From: Varka Bhadram <varkabhadram@gmail.com>
Date: Wed,  9 Jul 2014 09:14:04 +0530

> diff --git a/net/ieee802154/6lowpan_iphc.c b/net/ieee802154/6lowpan_iphc.c
> index 511ddee..d85caa2 100644
> --- a/net/ieee802154/6lowpan_iphc.c
> +++ b/net/ieee802154/6lowpan_iphc.c
> @@ -49,12 +49,8 @@
>   * SUCH DAMAGE.
>   */
>  
> -#include <linux/bitops.h>
> -#include <linux/if_arp.h>
>  #include <linux/module.h>
> -#include <linux/netdevice.h>
>  #include <net/6lowpan.h>
> -#include <net/ipv6.h>
>  #include <net/af_ieee802154.h>
>  

These changes are completely bogus.

Where are the definitions of the data types for "struct in6_addr" and
"struct ipv6hdr" coming from.

I'm not even going to look at these patches until you:

1) Properly audit the files.  Removing an include and typing "make"
   is not auditing the header file requriements.  Reading the code
   and looking at where declarations and definitions actually come
   from _is_.

2) Write a real commit message, this one is way too terse and tells me
   nothing.  Explain why each header file was removed, and what the
   justification is.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next 1/2] ieee802154: removed unwanted header files
  2014-07-09  3:56   ` David Miller
@ 2014-07-09  4:27     ` Varka Bhadram
  0 siblings, 0 replies; 5+ messages in thread
From: Varka Bhadram @ 2014-07-09  4:27 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, alex.aring, linux-zigbee-devel, varkab

On 07/09/2014 09:26 AM, David Miller wrote:
> These changes are completely bogus.
>
> Where are the definitions of the data types for "struct in6_addr" and
> "struct ipv6hdr" coming from.
>
> I'm not even going to look at these patches until you:
>
> 1) Properly audit the files.  Removing an include and typing "make"
>     is not auditing the header file requriements.  Reading the code
>     and looking at where declarations and definitions actually come
>     from _is_.

I got your point. Thanks

>
> 2) Write a real commit message, this one is way too terse and tells me
>     nothing.  Explain why each header file was removed, and what the
>     justification is.

Ok i will explain about the changes. I thinks i have to change the entire
patch. I have to rework on it. Thanks


-- 
Regards,
Varka Bhadram.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-07-09  4:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-09  3:44 [PATCH net-next 0/2] cleanup for ieee802154 and mac802154 Varka Bhadram
2014-07-09  3:44 ` [PATCH net-next 1/2] ieee802154: removed unwanted header files Varka Bhadram
2014-07-09  3:56   ` David Miller
2014-07-09  4:27     ` Varka Bhadram
2014-07-09  3:44 ` [PATCH net-next 2/2] mac802154: " Varka Bhadram

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).