netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: af802154: Fix wrong structure declaration
@ 2013-10-06 21:44 Guenter Roeck
       [not found] ` <1381095841-15031-1-git-send-email-linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
  2013-10-08 19:49 ` David Miller
  0 siblings, 2 replies; 4+ messages in thread
From: Guenter Roeck @ 2013-10-06 21:44 UTC (permalink / raw)
  To: Alexander Smirnov, Dmitry Eremin-Solenikov
  Cc: David S. Miller, netdev, linux-zigbee-devel, Guenter Roeck

net_devce doesn't exist.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
 net/ieee802154/af802154.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/ieee802154/af802154.h b/net/ieee802154/af802154.h
index b1ec525..62f5f63 100644
--- a/net/ieee802154/af802154.h
+++ b/net/ieee802154/af802154.h
@@ -25,7 +25,7 @@
 #define AF802154_H
 
 struct sk_buff;
-struct net_devce;
+struct net_device;
 extern struct proto ieee802154_raw_prot;
 extern struct proto ieee802154_dgram_prot;
 void ieee802154_raw_deliver(struct net_device *dev, struct sk_buff *skb);
-- 
1.7.9.7

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

* Re: [PATCH] net: af802154: Fix wrong structure declaration
       [not found] ` <1381095841-15031-1-git-send-email-linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
@ 2013-10-06 22:20   ` Joe Perches
  2013-10-06 23:18     ` Guenter Roeck
  0 siblings, 1 reply; 4+ messages in thread
From: Joe Perches @ 2013-10-06 22:20 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: Dmitry, netdev-u79uwXL29TY76Z2rM5mHXA,
	linux-zigbee-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	David S. Miller

On Sun, 2013-10-06 at 14:44 -0700, Guenter Roeck wrote:
> net_devce doesn't exist.
[]
> diff --git a/net/ieee802154/af802154.h b/net/ieee802154/af802154.h
[]
> @@ -25,7 +25,7 @@
>  #define AF802154_H
>  
>  struct sk_buff;
> -struct net_devce;
> +struct net_device;

That argues more for deletion than correction.



------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk

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

* Re: [PATCH] net: af802154: Fix wrong structure declaration
  2013-10-06 22:20   ` Joe Perches
@ 2013-10-06 23:18     ` Guenter Roeck
  0 siblings, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2013-10-06 23:18 UTC (permalink / raw)
  To: Joe Perches
  Cc: Alexander Smirnov, Dmitry Eremin-Solenikov, David S. Miller,
	netdev, linux-zigbee-devel

On 10/06/2013 03:20 PM, Joe Perches wrote:
> On Sun, 2013-10-06 at 14:44 -0700, Guenter Roeck wrote:
>> net_devce doesn't exist.
> []
>> diff --git a/net/ieee802154/af802154.h b/net/ieee802154/af802154.h
> []
>> @@ -25,7 +25,7 @@
>>   #define AF802154_H
>>
>>   struct sk_buff;
>> -struct net_devce;
>> +struct net_device;
>
> That argues more for deletion than correction.
>

I thought the idea was to ensure that every structure is declared.
In this case it appears that the structure happens to be declared
in other include files, so we are lucky. On the other side, if so,
"struct proto", "struct net" and "struct ieee802154_addr" should
probably be declared as well ...

Ultimately, I don't really care one way or another. I just happened
to stumble over it. Fine with me to remove it. Maybe the maintainers
should decide what if anything to do.

Guenter

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

* Re: [PATCH] net: af802154: Fix wrong structure declaration
  2013-10-06 21:44 [PATCH] net: af802154: Fix wrong structure declaration Guenter Roeck
       [not found] ` <1381095841-15031-1-git-send-email-linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
@ 2013-10-08 19:49 ` David Miller
  1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2013-10-08 19:49 UTC (permalink / raw)
  To: linux; +Cc: alex.bluesman.smirnov, dbaryshkov, netdev, linux-zigbee-devel

From: Guenter Roeck <linux@roeck-us.net>
Date: Sun,  6 Oct 2013 14:44:01 -0700

> net_devce doesn't exist.
> 
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>

This is simply rediculous.

The reason I say this is that every user of this header includes
net/sock.h which in turn includes linux/skbuff.h and linux/netdevice.h
which therefore bring in all the necessary structure definitions.

Really, the most correct change is to make af802154.h explicitly
include those header files.

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

end of thread, other threads:[~2013-10-08 19:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-06 21:44 [PATCH] net: af802154: Fix wrong structure declaration Guenter Roeck
     [not found] ` <1381095841-15031-1-git-send-email-linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
2013-10-06 22:20   ` Joe Perches
2013-10-06 23:18     ` Guenter Roeck
2013-10-08 19:49 ` David Miller

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).