[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1400084983.19788.15.camel@joe-AO725>
Date: Wed, 14 May 2014 09:29:43 -0700
From: Joe Perches <joe@...ches.com>
To: Alexei Starovoitov <alexei.starovoitov@...il.com>
Cc: Veaceslav Falico <vfalico@...il.com>,
David Laight <David.Laight@...lab.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Jay Vosburgh <j.vosburgh@...il.com>,
Andy Gospodarek <andy@...yhouse.net>,
Veaceslav Falico <vfalico@...hat.com>
Subject: Re: [PATCH net-next 0/5] bonding: simple macro cleanup
On Wed, 2014-05-14 at 09:10 -0700, Alexei Starovoitov wrote:
> from compiler point of view it's actually easier to deal with inline functions
> than macros. I'd suggest to do the full conversion the other way around:
> convert all macros to static inline. Developers will enjoy better type safety
> and compiler will enjoy more opportunities to optimize code.
Agree about the type safety, but sometimes a compiler will
generate worse code with static inlines than #defines.
--
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