[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1411072304.7106.287.camel@edumazet-glaptop2.roam.corp.google.com>
Date: Thu, 18 Sep 2014 13:31:44 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Joe Perches <joe@...ches.com>
Cc: Stephen Hemminger <stephen@...workplumber.org>,
Or Gerlitz <or.gerlitz@...il.com>,
Govindarajulu Varadarajan <_govind@....com>,
Yinghai Lu <yinghai@...nel.org>,
David Miller <davem@...emloft.net>,
NetDev <netdev@...r.kernel.org>, ssujith@...co.com,
gvaradar@...co.com, "Christian Benvenuti (benve)" <benve@...co.com>
Subject: Re: [PATCH net] net: sched: shrink struct qdisc_skb_cb to 28 bytes
On Thu, 2014-09-18 at 12:31 -0700, Joe Perches wrote:
> I don't mind the const argument, but casting
> the return to non-const seems like poor form.
This is the current way to do this, even if we do not like it.
C does not allow to have the same function name for different
parameters, there is nothing we can do about it at this moment.
->
static inline const struct ipoib_cb *ipoib_skb_cb(const struct sk_buff *skb)
static inline struct ipoib_cb *ipoib_skb_cb(struct sk_buff *skb)
--
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