From: Al Viro Subject: Re: [RFC][PATCH] new byteorder primitives - ..._{replace,get}_bits() Date: Wed, 13 Dec 2017 01:51:25 +0000 Message-ID: <20171213015125.GC21978@ZenIV.linux.org.uk> References: <20171211200224.23bc5df4@cakuba.netronome.com> <20171212062002.GY21978@ZenIV.linux.org.uk> <20171212194532.GA7062@ZenIV.linux.org.uk> <20171212120409.64b6362e@cakuba.netronome.com> <20171212234856.GZ21978@ZenIV.linux.org.uk> <20171212155933.03c88eab@cakuba.netronome.com> <20171213003659.GA21978@ZenIV.linux.org.uk> <20171212170437.4b129e50@cakuba.netronome.com> <20171213013056.GB21978@ZenIV.linux.org.uk> <20171212173528.340cd002@cakuba.netronome.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Linus Torvalds , netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: Jakub Kicinski Return-path: Received: from zeniv.linux.org.uk ([195.92.253.2]:41422 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751729AbdLMBv2 (ORCPT ); Tue, 12 Dec 2017 20:51:28 -0500 Content-Disposition: inline In-Reply-To: <20171212173528.340cd002@cakuba.netronome.com> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, Dec 12, 2017 at 05:35:28PM -0800, Jakub Kicinski wrote: > It used to be __always_inline, but apparently LLVM/clang doesn't > propagate constants :( > > 4e59532541c8 ("nfp: don't depend on compiler constant propagation") Doesn't propagate constants or doesn't have exact same set of rules for __builtin_constant_p()? IOW, if you dropped that BUILD_BUG_ON(), what would be left after optimizations?