Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp79256rdb; Mon, 14 Aug 2023 10:01:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGs8faXYPdDEpnK4MCauJDXSjec/XaaTYDhU2t/zgUfCgd//e8oqoeqRA+4EWntXPeH/hkL X-Received: by 2002:a17:907:a062:b0:99b:bf82:75fc with SMTP id ia2-20020a170907a06200b0099bbf8275fcmr7254787ejc.32.1692032476934; Mon, 14 Aug 2023 10:01:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692032476; cv=none; d=google.com; s=arc-20160816; b=LBJe73zGzZ6OQqFjb4GSuJtcrTkXJyUvc1EwHr1wyaFgHmqepCT0JpdMhanQInsf/7 MS7rHuludYclup3ARvdP5md06VtRQv1iK0D44chzt04JGKCQ9BZG62zP5I/JZZs2PeuC YCt49cp4t1YeB5sCFx7IwOf8wQ/BkCgzy5/YIaSkxbDYbg6f4B73P950RXHcce3ijuEE AELsnXOGfx6JRXQ4SJTcq7UJffWeAvhdIkIRlidju/Me83IBmGzd4OWk/iiPXj6S8jUA 4q7un1G6icrG+7KIuEBkwG4w+2sse1St1Zwi9AjurjjEAeSpI1PoRfRLBpCp49EoWy/7 gdhA== 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=RAVg3M4wYYC8SYAvhvUJBF3kG+n6GPhcm0Ssa9z+30o=; fh=HyhlFP965NNuMwbWIzZHIFMBTRSw8zHs/gVVdi4lmTs=; b=lDl3HuUsjjNIkCm9/BoXfD19D3mHrFpcCKqbwDmadyJzEUZN3npdCtS0rgozRxsnMR I4UeysBpdrbk8QoMjNvZDodTdiToFQVw+Vi0VgkiJqOV7UC3oOC4dYAVejUiTaie3DsW qDhU3KSX9pKQu/I+XsamJ6DP0B2kvm9NrB8hSfPJm9h2XuV+RWYJOuRHykYAYZX6rKOU dzEVdMPxA1Dxgww6VO8AwkhJrLSmY0xwazHQ10Yphb35K8AzovyiJmDw9qsBraiubPUT AZx2hN9G7mWqQ2AdajVo4pluFttWsEgOGXW2huYN7trHN9hpr1MXyTBcMP8NGL09wJUq KUXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="q/ndevMR"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i23-20020a170906265700b0099bcd480030si9269667ejc.879.2023.08.14.10.00.41; Mon, 14 Aug 2023 10:01:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="q/ndevMR"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230267AbjHNPrt (ORCPT + 99 others); Mon, 14 Aug 2023 11:47:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230021AbjHNPre (ORCPT ); Mon, 14 Aug 2023 11:47:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73F3210E3 for ; Mon, 14 Aug 2023 08:47:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 08EA6634DE for ; Mon, 14 Aug 2023 15:47:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3AA0C433C7; Mon, 14 Aug 2023 15:47:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692028052; bh=t1R8otRM3E6EZ1Itt7NVpdWmmwTSamBHRUIDFtKrf0k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=q/ndevMRJb5n5ncJkJ3CYnQYNdkZV0xZH25Y/IgZp7pjuX9n8HoAGDXd76z9630mC uAYYgjI8Eiwzx48ahKOAc1kGVfLcLQPBDUz11ZkPEIrnIVRuaYk9S28lA3/NIBaayn R0sbNwHn2V5H/zFmRe8gMiMqeY5Uu89wbSM9Vl5cgsErf2Xg4zylY4zS6nP/JOk3/f ciVqZp+KUbnJ5pVVyk1cEZUmxRq+z+1ShDl46yOsW9HRQa8FqFbk9C3BOk87+8WNP1 mAfwj1+ZvWWZIpUaHe02+FKGB0J0oANBaHDrtFV5jlkjq/H83j+SzrSLI02pdtUYKg 8PCWesEzXvi1Q== Date: Mon, 14 Aug 2023 08:47:30 -0700 From: Nathan Chancellor To: Peter Xu , lkp@intel.com Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List , "Huang, Ying" Subject: Re: Cannot find symbol for section 69: .text.arch_max_swapfile_size. Message-ID: <20230814154730.GA3072@dev-arch.thelio-3990X> References: <202308120906.Efohswpa-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 14, 2023 at 11:38:18AM -0400, Peter Xu wrote: > On Sat, Aug 12, 2023 at 09:11:33AM +0800, kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > head: 190bf7b14b0cf3df19c059061be032bd8994a597 > > commit: be45a4902c7caa717fee6b2f671e59b396ed395c mm/swap: cache maximum swapfile size when init swap > > date: 11 months ago > > config: mips-randconfig-r014-20230811 (https://download.01.org/0day-ci/archive/20230812/202308120906.Efohswpa-lkp@intel.com/config) > > compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) > > reproduce: (https://download.01.org/0day-ci/archive/20230812/202308120906.Efohswpa-lkp@intel.com/reproduce) > > > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > > the same patch/commit), kindly add following tags > > | Reported-by: kernel test robot > > | Closes: https://lore.kernel.org/oe-kbuild-all/202308120906.Efohswpa-lkp@intel.com/ > > > > All errors (new ones prefixed by >>): > > > > >> Cannot find symbol for section 69: .text.arch_max_swapfile_size. > > mm/swapfile.o: failed > > Hmm.. I don't really know what's the issue here, neither can I reproduce > this locally - the cross build seems to all work with the reproducer and I > can see mm/swapfile.o correctly generated. This is https://github.com/ClangBuiltLinux/linux/issues/1830 and https://github.com/ClangBuiltLinux/linux/issues/981, which is a bug in recordmcount with regards to section symbols that occurs when building with clang's integrated assembler. It happens when the there are only weak symbols in a .text section, which occurs more often with MIPS due to LD_DEAD_CODE_DATA_ELIMINATION implying -ffunction-sections (i.e., any __weak symbol will trigger this) and I can see this randconfig setting it. Unfortunately, the robot seems to have tripped over this a lot over the weekend :/ Intel folks, can this type of warning please be added to your filter for at least MIPS + LD_DEAD_CODE_DATA_ELIMINATION so that people don't get bothered? https://lore.kernel.org/202308121810.APAJIBxn-lkp@intel.com/ https://lore.kernel.org/202308121535.otQuZept-lkp@intel.com/ https://lore.kernel.org/202308121810.APAJIBxn-lkp@intel.com/ https://lore.kernel.org/202308121246.0TYkHC1K-lkp@intel.com/ https://lore.kernel.org/202308120553.IRzzfaXL-lkp@intel.com/ https://lore.kernel.org/202308111956.QRc8XJVr-lkp@intel.com/ Cheers, Nathan