[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110524142928.105d66ef@nehalam>
Date: Tue, 24 May 2011 14:29:28 -0700
From: Stephen Hemminger <shemminger@...tta.com>
To: Mahesh Bandewar <maheshb@...gle.com>
Cc: David Miller <davem@...emloft.net>,
netdev <netdev@...r.kernel.org>,
Tom Herbert <therbert@...gle.com>
Subject: Re: [PATCH] net: Abstract features usage.
On Tue, 24 May 2011 11:52:42 -0700
Mahesh Bandewar <maheshb@...gle.com> wrote:
> Define macros to set/clear/test bits for feature set usage. This will eliminate
> the direct use of these fields and enable future ease in managing these fields.
>
> Signed-off-by: Mahesh Bandewar <maheshb@...gle.com>
> ---
> include/linux/netdev_features.h | 137 +++++++++++++++++++++++++++++++++++++++
> include/linux/netdevice.h | 35 ++---------
> 2 files changed, 142 insertions(+), 30 deletions(-)
> create mode 100644 include/linux/netdev_features.h
>
> diff --git a/include/linux/netdev_features.h b/include/linux/netdev_features.h
> new file mode 100644
> index 0000000..97bf8c4
> --- /dev/null
> +++ b/include/linux/netdev_features.h
> @@ -0,0 +1,137 @@
> +#ifndef _NETDEV_FEATURES_H
> +#define _NETDEV_FEATURES_H
> +
> +/* Forward declarations */
> +struct net_device;
> +
> +typedef unsigned long *nd_feature_t
typedef'ing a pointer is strongly discouraged by kernel coding style.
You need to use another way such as open coding it.
--
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists