From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1EE16C433B4 for ; Wed, 7 Apr 2021 19:41:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D479F61353 for ; Wed, 7 Apr 2021 19:41:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345859AbhDGTl7 (ORCPT ); Wed, 7 Apr 2021 15:41:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236501AbhDGTl5 (ORCPT ); Wed, 7 Apr 2021 15:41:57 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC3E4C061760 for ; Wed, 7 Apr 2021 12:41:47 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id i4so1437038pjk.1 for ; Wed, 07 Apr 2021 12:41:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=wjpLZJAP8ODkOI6RVsD0JKJ4FjWnlxV4QLszMGiVHq4=; b=QsjUlY5xevUJL2fig0Uj27ongzXDSYWEdRrCtN255vUmp5nzlGeZTRVFOzToOjCMI1 igt/QNjRwruaIY60+d9ahn3OAgeLDvOGqyzU0IrxBiheKCA8pf2Djr6HpvjUwpTcLrGM JSmXg6kQS4e31TIrsh4Mf5kmwAcKB45lwURzg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=wjpLZJAP8ODkOI6RVsD0JKJ4FjWnlxV4QLszMGiVHq4=; b=ulabxlMd+HrYR22fkYxoM8faZulEoyVcK2G0kze7xdHvhu8f97C0apDpdoBDeDCylO C/Rrj8z7HPURuFZ8zFe8oBQec0z9BahsXUN4nLJQgYcAjgLL4Z7vSeAZDdzj6ttk5O09 7w+rGWWttLsMIdvn2m0vFJ9rM4L4S+csnSSpTT5K7CCArdF+aGOOLG3QkPmdYg16XdFy iXEscwV6iE4thmmlHWor3q5ylozB7YXwKjhAcVibtEXc08mkCWxIrqKvqK9f0pPFjbDI 03YAGM6h+4W+0ty+0qNDuvwLK0gUmADE90aPJHfsWklbJZbbiz+5pODtNwUyjlVgsW9i JxFQ== X-Gm-Message-State: AOAM530mAx3WmQZx+Yia+AtcXuL1smGAl1HlCQjEEMagvY3jO/wjVQeF IlVkHzVxYUmCdu07CEcyKBfGzA== X-Google-Smtp-Source: ABdhPJy3YzHzlbtgHWUicyJIEw+XU2sO1OtxQtdU/87LiMH3Ry9/uvmuw5PuhceWShum7fd7hdFxSA== X-Received: by 2002:a17:90b:1490:: with SMTP id js16mr4638576pjb.131.1617824507237; Wed, 07 Apr 2021 12:41:47 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id q95sm6017353pjq.20.2021.04.07.12.41.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Apr 2021 12:41:46 -0700 (PDT) Date: Wed, 7 Apr 2021 12:41:45 -0700 From: Kees Cook To: Nick Desaulniers Cc: Arnd Bergmann , Masahiro Yamada , kbuild-all@lists.01.org, LKML , Ingo Molnar , kernel test robot , Linux ARM , Linux Kbuild mailing list , Miguel Ojeda Subject: Re: arm-linux-gnueabi-ld: warning: orphan section `__cpuidle_method_of_table' from `arch/arm/mach-omap2/pm33xx-core.o' being placed in section `__cpuidle_method_of_table' Message-ID: <202104071241.DDD60D1B49@keescook> References: <202104071815.lq85YO6c-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 07, 2021 at 11:28:08AM -0700, Nick Desaulniers wrote: > On Wed, Apr 7, 2021 at 11:23 AM Arnd Bergmann wrote: > > > > On Wed, Apr 7, 2021 at 8:07 PM Nick Desaulniers wrote: > > > > > > On Wed, Apr 7, 2021 at 3:52 AM kernel test robot wrote: > > > > > > > > Hi Kees, > > > > > > > > FYI, the error/warning still remains. > > > > > > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > > > head: 2d743660786ec51f5c1fefd5782bbdee7b227db0 > > > > commit: 5a17850e251a55bba6d65aefbfeacfa9888cd2cd arm/build: Warn on orphan section placement > > > > date: 7 months ago > > > > config: arm-randconfig-r033-20210407 (attached as .config) > > > > compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0 > > > > reproduce (this is a W=1 build): > > > > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > > > > chmod +x ~/bin/make.cross > > > > # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5a17850e251a55bba6d65aefbfeacfa9888cd2cd > > > > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > > > > git fetch --no-tags linus master > > > > git checkout 5a17850e251a55bba6d65aefbfeacfa9888cd2cd > > > > # save the attached .config to linux build tree > > > > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm > > > > > > > > If you fix the issue, kindly add following tag as appropriate > > > > Reported-by: kernel test robot > > > > > > > > All warnings (new ones prefixed by >>): > > > > > > > > >> arm-linux-gnueabi-ld: warning: orphan section `__cpuidle_method_of_table' from `arch/arm/mach-omap2/pm33xx-core.o' being placed in section `__cpuidle_method_of_table' > > > > >> arm-linux-gnueabi-ld: warning: orphan section `__cpuidle_method_of_table' from `arch/arm/mach-omap2/pm33xx-core.o' being placed in section `__cpuidle_method_of_table' > > > > >> arm-linux-gnueabi-ld: warning: orphan section `__cpuidle_method_of_table' from `arch/arm/mach-omap2/pm33xx-core.o' being placed in section `__cpuidle_method_of_table' > > > > > > Looks like arch/arm/include/asm/cpuidle.h defines > > > `CPUIDLE_METHOD_OF_DECLARE` to create a static struct in such a > > > section. Only arch/arm/mach-omap2/pm33xx-core.c uses that macro. > > > > Nick, Kees, > > > > Should I resend my patch, or are you taking care of it? > > > > https://lore.kernel.org/lkml/20201230155506.1085689-1-arnd@kernel.org/T/#u > > Your patch looks like it has multiple reviewed-by tags, so it should > be ready to be submitted/merged? Waiting on anything else? Yeah, that looks ready to go. Does that go via SoC tree or arm32 tree? -- Kees Cook