Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2364024pxb; Thu, 11 Feb 2021 10:25:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJx11gw4/KZ06pfhYdVF0unzuQWnKNqFgA1OUZ5qkx/yHJS2nr9Wd9FuP7lp6NrM2PYcpP6f X-Received: by 2002:a17:906:2898:: with SMTP id o24mr9583145ejd.215.1613067927529; Thu, 11 Feb 2021 10:25:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613067927; cv=none; d=google.com; s=arc-20160816; b=cEeD1r+xZ3eEo9UPkPoKz5IwXyG8MP9FVYhJsM+0MVPvXgUz1BaYpIIG1r348QkACt V9z6kY8lUGkK2frAjVM1WjUiDqw7KYOleb4wWsy1H1EOxMkjab2tMj3hbr2fK+HqCdPm ZZsFmv5Tuh+kYVbg6D2li7yw6MoewvW4mu+XKPTRkhunN6AB7Zm0UgKn2QKhLAzGKzBK bfeycbcqkomBDkgfHxST5GX+l+LNztOKhzuIWZ2ffUCy9uiLLRawl+pf0yNNlrsLml3L DHPurmNG0qmca5IemiRZgpD0ny4vLErINMNw2N2dMyZCjdefmvV3qtWffNoHlOv+dmsM Fz+w== 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:dkim-filter; bh=aS3nyEL/blW5wl23rHjvf+MLUviMkrYPfXwTmR8wSjY=; b=gjbxS9m+bl6jqoOurx873T8g+ZV9Z7OzgH1xLG6ez3MJjE+22wYvkXayMKSKC+tIlO lpMHFeoDzzMSrdy/2lIN4NCmt/opjFBC2rm/4NohNVRk81dTqVQJ9EsehZr5yz6T9gAf JOTiroZAP3VJdpMNlNJhIChNcBfwQlll3uSGkeKuCQsjfFAzAZBIN16USF3VwA9xlGQo 8aTSv5LU7NVUv1ZZ4WWTVmcBnumgwbDHZjX5fO5E5qi7g8pZkYSRFlZxsrjOdL1dpbM7 4x4dwLHrDt2omUGW1cR9vvoLN9R0BRi1gcrthXeWZWPo2pR246rdELsmNYZya7yJ9jlB AcUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=S9kLixX3; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b2si4140447ejk.68.2021.02.11.10.24.39; Thu, 11 Feb 2021 10:25:27 -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=@nifty.com header.s=dec2015msa header.b=S9kLixX3; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231791AbhBKSVR (ORCPT + 99 others); Thu, 11 Feb 2021 13:21:17 -0500 Received: from conssluserg-01.nifty.com ([210.131.2.80]:45357 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232490AbhBKSH0 (ORCPT ); Thu, 11 Feb 2021 13:07:26 -0500 Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) (authenticated) by conssluserg-01.nifty.com with ESMTP id 11BI68ph007158; Fri, 12 Feb 2021 03:06:09 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com 11BI68ph007158 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1613066769; bh=aS3nyEL/blW5wl23rHjvf+MLUviMkrYPfXwTmR8wSjY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=S9kLixX3pD9FKGMhONjpCHVDG75yKZ74Txol3Cn0AjuwMtTh0TJ6ATylA9FAa9DMy DqC1QnFzpnoRgp9NMmwa+RMmQeXWDxOhxGWPLOFS6M+rCF64KssgHZLTl5SNgSFZ6M 8A7a8gZqdjzUgnmZq5hiUSp1uTc5+pSgc+HIrhdLM6Agm38Ha2NA9paC9lb7OQw7DP 8uw45aa2PZLCSsSF+DJJTYpKu4fmXuiNZ4cVgDmpktHh+tLjWm+dfZt/KfUIbp8CrF q6hrGdTISGbOBAtCmeCt2f8bgxb43jer/ooS0QvsZdMNWY8XMfBpJ2yjb76Jpu8/Q0 vQqwtED9eB/Ng== X-Nifty-SrcIP: [209.85.210.171] Received: by mail-pf1-f171.google.com with SMTP id c11so4157368pfp.10; Thu, 11 Feb 2021 10:06:09 -0800 (PST) X-Gm-Message-State: AOAM53339D35ytcJxSq0m3rQ7Rtjn0tLvTbBoILv0enhtj6lXkNilr0u BmC+3AOAyF0wJQ24bdbiiCTy9Zm2TCXiUKydZoM= X-Received: by 2002:a62:2f07:0:b029:1bb:5f75:f985 with SMTP id v7-20020a622f070000b02901bb5f75f985mr8783784pfv.76.1613066768263; Thu, 11 Feb 2021 10:06:08 -0800 (PST) MIME-Version: 1.0 References: <20210211061416.3747231-1-masahiroy@kernel.org> In-Reply-To: From: Masahiro Yamada Date: Fri, 12 Feb 2021 03:05:31 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kbuild: fix CONFIG_TRIM_UNUSED_KSYMS build for ppc64 To: Jessica Yu Cc: Linux Kbuild mailing list , Stephen Rothwell , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 11, 2021 at 7:43 PM Jessica Yu wrote: > > +++ Masahiro Yamada [11/02/21 15:14 +0900]: > >Stephen Rothwell reported a build error on ppc64 when > >CONFIG_TRIM_UNUSED_KSYMS is enabled. > > > >Jessica Yu pointed out the cause of the error with the reference to the > >ppc64 elf ABI: > > "Symbol names with a dot (.) prefix are reserved for holding entry > > point addresses. The value of a symbol named ".FN", if it exists, > > is the entry point of the function "FN". > > > >As it turned out, CONFIG_TRIM_UNUSED_KSYMS has never worked for ppc64, > >which has been unnoticed until recently because this option depends on > >!UNUSED_SYMBOLS hence is disabled by all{mod,yes}config. (Then, it was > >uncovered by another patch removing UNUSED_SYMBOLS.) > > > >Removing the dot prefix in scripts/gen_autoksyms.sh fixes the issue. > >Please note it must be done before 'sort -u', because modules have > >both ._mcount and _mcount undefined when CONFIG_FUNCTION_TRACER=y. > > > >Link: https://lore.kernel.org/lkml/20210209210843.3af66662@canb.auug.org.au/ > >Reported-by: Stephen Rothwell > >Signed-off-by: Masahiro Yamada > > Thanks a lot for the quick fix. This fixes the ppc64 build issue on my end: > > Tested-by: Jessica Yu > > Do you plan to take this through the kbuild tree? If so, please let me > know when you've applied it, then I can undo the temporary workaround > I currently have in modules-next. > > Thank you! > > Jessica Applied to linux-kbuild/fixes. -- Best Regards Masahiro Yamada