Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp722687pxb; Thu, 25 Feb 2021 13:25:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwTC6Pnr8LcIx26ztDyeqjgoPoVQ+Jw5RzsWpjwUZTb+Sk7IXfmiw4xdt+HNq+ugxPXU24G X-Received: by 2002:a17:907:7691:: with SMTP id jv17mr4650096ejc.75.1614288305159; Thu, 25 Feb 2021 13:25:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614288305; cv=none; d=google.com; s=arc-20160816; b=CvwOoLUBDXwHRgK8zysG9OVB67qurxbyLK6RabeW9VcQ/4hNvxIKo//LLA4oY3gvY8 Ag6rKR4cIZDM51wwzxTEEsFBDL6ErIMNdfmu+jtV0ZWw3izzqMMaUoMz/uMHHRYtBpCd FvtuHFluWtfjcnnOa9eTdB14EqEiIRhJb++4ahMIUQIoXmSUrDICkinYeY0Jt9lG8nKM e3udnTwGA4krpamuQzW/xD9yuxZHYBpOQksSHuqjsOf6/qdkNF3o+U2IsyAPOfEuCG7c 1WOOdigU+IhsVOdAoj6GsCH2+qgPFuZnAWBmSbVe2GJCcyB274buyt3pfNTIdRk85vMC ZQRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=CUceZmmKYCe4uDA9d20KnAAQBmJ4YXvutrC3PPx43P8=; b=MkrC4+xCsRPnx95TEvwtEKDPo4yLQE4/Bb5fotAMejsjQ6Zmw3H7I71Ue6/uyNX/UB NMoPQWrS8e2yVB7nYNj7WAiOKYoRW2a62ncx4dG0oKVlQoAWw6/OHGe4inaolelDE9zH K1zlEuktAFpdh06VEJSzl5ERee12zchSePT2srnYm1w4KWvJjAaIilzvUL3mH6q4Q/qs 4YNVyvN2YuLdmgqp9UiJfQLx1VHdYzLmB2d/8Gc+Qy1dqWXmiEMKA+Jd4cW1HJ7k48qv 7n0ElgFe8q0XywckLBWC6ubPZTTbwD50m/gANWywaudPbjGeEEaQ305Bi9DiL/mJwyoF fW5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Ybk2+KhD; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ia18si4234084ejc.60.2021.02.25.13.24.42; Thu, 25 Feb 2021 13:25:05 -0800 (PST) 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=@google.com header.s=20161025 header.b=Ybk2+KhD; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232403AbhBYVVp (ORCPT + 99 others); Thu, 25 Feb 2021 16:21:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233660AbhBYVVe (ORCPT ); Thu, 25 Feb 2021 16:21:34 -0500 Received: from mail-vs1-xe2d.google.com (mail-vs1-xe2d.google.com [IPv6:2607:f8b0:4864:20::e2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 317D5C06174A for ; Thu, 25 Feb 2021 13:20:48 -0800 (PST) Received: by mail-vs1-xe2d.google.com with SMTP id z65so1341320vsz.12 for ; Thu, 25 Feb 2021 13:20:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CUceZmmKYCe4uDA9d20KnAAQBmJ4YXvutrC3PPx43P8=; b=Ybk2+KhD4c1QmBDd+iixdlOR1rWo5nPl0N9OiNXNvfnFJzSlwLuua/YFUZYdyAf5gc M/IpCobY8mrDbsmniuWiSBllijkzgpF3vLD4w7osUXj7BQoZ1UBec+Jk8B2fOMvLrHs2 Vuhs9FliN6uMQpc/kvTC5+61qJ76pDVihAJSCtoHF4esstPzQsH1LwsQj7BfWixyXS55 T/JGr4DvjCpNNxBgJq9L0vzOorQceIwOwXGgxOMIIGu2aswNJJMONNVEqync+co+ZVme X39ZBml+LNdhrvSJM1pT7Wo67ROYjNDd3n4pFZZ5c2yyX1gMqLXZms6PhP/3dyzVpoLa WpGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CUceZmmKYCe4uDA9d20KnAAQBmJ4YXvutrC3PPx43P8=; b=af4XsFSfx/oc7W/jmzu3NZJGABlvQVFKT1TynUzoKwTmwDDXhT82ygS6TyImjWEzUd jUrxTQHAFPwgaUfDCByX3SaFlK2oyQYSvkZBm+0ZE2A+2lehESTVYrzTVtBgdk//q0Jq 2MvJl0lLtEBwuSwIUqtO7JueOYM8QKuU8TPr+Y8+AQ9U0yK0wLwmBi0dSfDsHNiYWUvf 8WIiRHJ84z2ZpJSECbiGB/Q2wSZ33VesYu/bwRG6XSbmqdviII2fEJFPTcE3oGe8Vn/C pYrQFmq4ElGG8eoIbylMw7DTPeypfJJ3mTDmOOsXd9SSQUR3wuTrnc2WRJVSM1MJNkY2 AMnw== X-Gm-Message-State: AOAM533qOmHgETQiqdo47brU6n0NYxzha3syN+HvVizx53UychQ9ihcc AC/hvc67rZ2wl9xCoyxHuyBkflYTwh9rxLjFMXfJ0Q== X-Received: by 2002:a67:1e87:: with SMTP id e129mr3132335vse.23.1614288046904; Thu, 25 Feb 2021 13:20:46 -0800 (PST) MIME-Version: 1.0 References: <20210225160247.2959903-5-masahiroy@kernel.org> <202102260245.2UUwdoDK-lkp@intel.com> In-Reply-To: From: Sami Tolvanen Date: Thu, 25 Feb 2021 13:20:35 -0800 Message-ID: Subject: Re: [PATCH 4/4] kbuild: re-implement CONFIG_TRIM_UNUSED_KSYMS to make it work in one-pass To: Masahiro Yamada Cc: kernel test robot , Linux Kbuild mailing list , kbuild-all@lists.01.org, Christoph Hellwig , Jessica Yu , Nicolas Pitre , Linux Kernel Mailing List , linux-arch Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Masahiro, On Thu, Feb 25, 2021 at 12:07 PM Masahiro Yamada wrote: > > On Fri, Feb 26, 2021 at 3:47 AM kernel test robot wrote: > > > > Hi Masahiro, > > > > I love your patch! Perhaps something to improve: > > > > [auto build test WARNING on linus/master] > > [also build test WARNING on next-20210225] > > [cannot apply to kbuild/for-next asm-generic/master arm64/for-next/core m68k/for-next openrisc/for-next hp-parisc/for-next arc/for-next uclinux-h8/h8300-next nios2/for-linus v5.11] > > [If your patch is applied to the wrong git tree, kindly drop us a note. > > And when submitting patch, we suggest to use '--base' as documented in > > https://git-scm.com/docs/git-format-patch] > > > > url: https://github.com/0day-ci/linux/commits/Masahiro-Yamada/kbuild-build-speed-improvment-of-CONFIG_TRIM_UNUSED_KSYMS/20210226-000929 > > base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 29c395c77a9a514c5857c45ceae2665e9bd99ac7 > > config: powerpc-mpc8313_rdb_defconfig (attached as .config) > > compiler: powerpc-linux-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://github.com/0day-ci/linux/commit/014940331790a8cd9bee92c7201494ec3217201e > > git remote add linux-review https://github.com/0day-ci/linux > > git fetch --no-tags linux-review Masahiro-Yamada/kbuild-build-speed-improvment-of-CONFIG_TRIM_UNUSED_KSYMS/20210226-000929 > > git checkout 014940331790a8cd9bee92c7201494ec3217201e > > # save the attached .config to linux build tree > > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc > > > > If you fix the issue, kindly add following tag as appropriate > > Reported-by: kernel test robot > > > > All warnings (new ones prefixed by >>): > > > > >> scripts/module.lds.S:7:5: warning: "CONFIG_TRIM_UNUSED_KSYMS" is not defined, evaluates to 0 [-Wundef] > > Thanks. This should be #ifdef, of course. I applied this series and changed these from #if to #ifdef, but I still see the following build error with TRIM_UNUSED_KSYMS + OF_UNITTEST: In file included from drivers/of/unittest-data/testcases.dtb.S:1: ../include/asm-generic/vmlinux.lds.h:54:10: fatal error: 'generated/keep-ksyms.h' file not found #include ^~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. This is with x86_64_defconfig and scripts/config -e OF -e OF_UNITTEST -e TRIM_UNUSED_KSYMS. Sami