Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1142347pxb; Wed, 10 Feb 2021 00:44:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJydYCEMi4/h2iH+xJTk3F+UYvUkuvONU6CuWvJYgghJTeHCYwbZpUPIVYk5gZzQQgAey5Ds X-Received: by 2002:a17:906:2a8b:: with SMTP id l11mr1907408eje.1.1612946645886; Wed, 10 Feb 2021 00:44:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612946645; cv=none; d=google.com; s=arc-20160816; b=REH7up57k+LsOuj9YS1vvRdqzeKwMrkHyG+O22v7zlwLengRzdM5mtYiwhcZwmHsjs cy6WDoFs/LtWP9bVHG9iS8Wv/WwPCMuH+4zn1C02QWIjVFAYhrBSX3CrMGQMFrmWEGJz 5metPQP3e6ovAtybj00n4Ap7dsZAsBk8UQgP7P8qrzNEW4sA4gkRDHPpC08UCO0kTdAC 9j+Kv8mEz+eQ6ioyyZPd6fabpqHZY5fN8+5Nn7mlAHWEoREL3Zkvlqdv9y6FetUTfVnG ifap93kQFC2DGMlhmm5Av8uq6NuJB8rfNxQom2OV46jMUAQWicv5ylsmyU+KHyEW/KD4 Olfw== 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=rqQUrAplPBXpRwQKuLyuIfjxkqviYB3uoWCIKgD9pvg=; b=SEdeyv3fsS3zREMpjFftP0f8Hl5ehQtZcxj+TGuJBnRMGG2ECNwaGTfWNhTeI2apy8 xzUdm5EeW9NQI6LiZTbvgmygXSSiSbQ1A4xJBCbVVFjh1qQooi5gAd4GiLoHJLXiH5vj CMzsRfAg7mvpeGcuMBbkDpclT/0wsbrN9DdRr/kbH0HnvBtLKvdxI0CLDRwXYW1cL5o+ RAlFt16sGMGEBKj81z7kX/aTGx5PV4oBdtBYwMKlaPNiyjBlUqPVPGzSgHAu47r7dlMB JDkaz+L7eW0RIQpgQSsWFLmNuVLatmeawtLwqF/C3Dsg/r5zCm8qv2vmwb0g96XQsPxz AFAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HRFdIh5h; 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 q20si181922ejb.298.2021.02.10.00.43.42; Wed, 10 Feb 2021 00:44: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=@kernel.org header.s=k20201202 header.b=HRFdIh5h; 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 S233517AbhBJIHl (ORCPT + 99 others); Wed, 10 Feb 2021 03:07:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:44738 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233237AbhBJIHd (ORCPT ); Wed, 10 Feb 2021 03:07:33 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 142A564DF5; Wed, 10 Feb 2021 08:06:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612944413; bh=JSySFpnSJmoR8zhZOCgk841D38I73vAelpyUEZpCaBU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HRFdIh5hE3dN1iD1xl/OMlhB37JnEH3m3pUw5RgXwf8Voiydu+ZD9P4VgjYSH9xHO ldKEGMXuRRrSdD71P1up/uzY9IBOcpYl+rJNna0aa3YYVgxcpeuEOR7U0PlZ6k1/iW UqIFvW1sZZQNrhfQNAeQRtD5FaLqh+aOuY1YlqgDqOELhtRjZnAAEiRg6teesQ7oZn +Vz9UNBgEWYaLn82L7F9YQBMQATnCv4veyjV+bV7sgbkA9ilQXjPSHjVnJhaW3NGEt qd1Rd0J6P7tuifOSLeMGpel4JXrUPc9043/ouveCqWLqKuCrzBkCZAM1hgTotx4ybH veT7ed3L0pCKg== Date: Wed, 10 Feb 2021 09:06:48 +0100 From: Jessica Yu To: Stephen Rothwell Cc: Christoph Hellwig , Linux Kernel Mailing List , Linux Next Mailing List , Michael Ellerman , Masahiro Yamada Subject: Re: linux-next: build failure after merge of the modules tree Message-ID: References: <20210209210843.3af66662@canb.auug.org.au> <20210210085051.7fb951d1@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210210085051.7fb951d1@canb.auug.org.au> X-OS: Linux gunter 5.10.12-1-default x86_64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +++ Stephen Rothwell [10/02/21 08:50 +1100]: >Hi Jessica, > >On Tue, 9 Feb 2021 16:16:20 +0100 Jessica Yu wrote: >> >> Hmm, these errors don't look like it's related to that particular commit. I was > >I found this commit by bisection and then tested by reverting it. > >Before this commit, CONFIG_TRIM_UNUSED_KSYMS would not be set in the >allyesconfig build because CONFIG_UNUSED_SYMBOLS was set. After this >commit, CONFIG_TRIM_UNUSED_KSYMS will be set in the allyesconfig build. Ah, that makes sense then. I would get the error on powerpc whenever CONFIG_TRIM_UNUSED_KSYMS was enabled. >> able to reproduce these weird autoksym errors even without any modules-next >> patches applied, and on a clean v5.11-rc7 tree. To reproduce it, >> CONFIG_TRIM_UNUSED_KSYMS needs to be enabled. I guess that's why we run into >> these errors with allyesconfig. I used a gcc-7 ppc64le cross compiler and got >> the same compiler warnings. It seems to not compile on powerpc properly because >> it looks like some symbols have an extra dot "." prefix, for example in >> kthread.o: >> >> 168: 0000000000000318 24 NOTYPE GLOBAL DEFAULT 6 kthread_create_worker >> 169: 0000000000001d90 104 FUNC GLOBAL DEFAULT 1 .kthread_create_worker >> 170: 0000000000000330 24 NOTYPE GLOBAL DEFAULT 6 kthread_create_worker_on_cpu >> 171: 0000000000001e00 88 FUNC GLOBAL DEFAULT 1 .kthread_create_worker_on_cpu >> 172: 0000000000000348 24 NOTYPE GLOBAL DEFAULT 6 kthread_queue_work >> 173: 0000000000001e60 228 FUNC GLOBAL DEFAULT 1 .kthread_queue_work >> >> So I suppose this dot prefix is specific to powerpc. From the ppc64 elf abi docs: >> >> 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". >> >> I guess the presence of the extra dot symbols is confusing >> scripts/gen_autoksyms.sh, so we get the dot symbols in autoksyms.h, which the >> preprocessor doesn't like. I am wondering how this was never caught until now >> and also now curious if this feature was ever functional on powerpc.. > >Which feature? Sorry, by "feature" I meant CONFIG_TRIM_UNUSED_KSYMS. This config option was introduced around v4.7. If simply enabling it produces these compilation errors I was wondering if it ever built properly on powerpc. Thanks, Jessica