From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752310AbdFUVTj (ORCPT ); Wed, 21 Jun 2017 17:19:39 -0400 Received: from mail-pf0-f175.google.com ([209.85.192.175]:32918 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752140AbdFUVTf (ORCPT ); Wed, 21 Jun 2017 17:19:35 -0400 Date: Wed, 21 Jun 2017 14:19:32 -0700 From: Matthias Kaehlcke To: Arnd Bergmann Cc: Masahiro Yamada , Doug Anderson , Michal Marek , Linux Kbuild mailing list , "linux-kernel@vger.kernel.org" , Grant Grundler , Greg Hackmann , Michael Davidson , Nick Desaulniers , Alexander Potapenko , Bernhard =?utf-8?Q?Rosenkr=C3=A4nzer?= Subject: Re: [PATCH 2/2] kbuild: clang: Disable the 'duplicate-decl-specifier' warning Message-ID: <20170621211932.GC52338@google.com> References: <20170421213931.155210-3-mka@chromium.org> <20170517184529.GG141096@google.com> <20170524000419.GQ141096@google.com> <20170621165832.GB52338@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org El Wed, Jun 21, 2017 at 07:59:42PM +0200 Arnd Bergmann ha dit: > On Wed, Jun 21, 2017 at 6:58 PM, Matthias Kaehlcke wrote: > > El Wed, Jun 21, 2017 at 12:11:55PM +0200 Arnd Bergmann ha dit: > >> I see that container_of() has been modified in linux-next and no longer adds > >> the 'const' keyword, do we actually still need the patch? > > > > There is still (at least) the case of const arrays passed to > > MODULE_DEVICE_TABLE. > > Does the 'const' have any effect there? As it's just an alias, it > should at least > not impact the placement of the symbol in the object file, right? I agree, it shouldn't make a difference. > Maybe we can just remove that 'const' too. Seems worth a try. Do you want to send a patch for the removal? > Do you see any other instances? For both x86 and arm64 defconfig the instances are all from container_of() or MODULE_DEVICE_TABLE.