Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp915012pxf; Wed, 7 Apr 2021 14:58:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+aNgcwTmuqzIMRXkQQtYezL8Mwt9Aw23xu3MtEmfompFPzNcLAnhLszx+JuNQFN8+Iuhn X-Received: by 2002:a17:90a:14c3:: with SMTP id k61mr5261788pja.206.1617832715912; Wed, 07 Apr 2021 14:58:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617832715; cv=none; d=google.com; s=arc-20160816; b=aw+dzJulBiSCsXCM3SaHMcftQ/fPCq/PTPJ47a5UuveTmG4pz2Pvx89WHxzysl/8nU fyN25ejlkofl7SpNmoGVhKwxjVg/Te+t3dtA17p2bBQDH0ythGKQ1YnA1zrXzETlDg94 poZjWqT7eDfutPoOXDiVK9mP/2m1jv5UOIxScg6cf5C4A7RTe/1oZmo0ncDHIUdboaJJ uM1bizrY8lj5QGzFOnS3W/V8gcJfYdESX+Hz8Dv89exyqVSIGQe0foSfJJLty1/FvaVa J5U+FVUJ/SXTAjctQttECKezUWiNE/fw5qEOtv9Jd7/8XPVSQko37tH/A6YMjWqNmjTq 4zjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wjpLZJAP8ODkOI6RVsD0JKJ4FjWnlxV4QLszMGiVHq4=; b=mA9TLeuH6Xac1VzautbANJHZIlznaI2pJ4vRkZxH2AJGaLtMIPEHXi20BPZLYjVg/N QPSia1zIjRXsdwuLOFtYuKENzHEUywShYLbMN10m7+tNSNeqaZqYgGpV9cwdx8evpb/T JMunvXZs5qIQMerb6Tlct+2ullJLkXxmNUewpr3Nb2lT+IpTdTS4Ws7dxa5ybyckTFPp JYeUkhP05SPuqZTWUkXjyn9r4cI9/kadOBg/8q0k3S8w7iUGHZYnrrgZ7HHo8RfC2oQi W+5llA+RlJ97DHS/7So1W6CYTDLphg/6NNOnNFjl/QNz2OjljQrZsa/g7jo6SZXJoGiz 5Lrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=QsjUlY5x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mm20si6968703pjb.22.2021.04.07.14.58.23; Wed, 07 Apr 2021 14:58:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=QsjUlY5x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236301AbhDGTl7 (ORCPT + 99 others); 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-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