Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4399739rwe; Mon, 17 Apr 2023 12:02:30 -0700 (PDT) X-Google-Smtp-Source: AKy350bwuWJ7TWwirJPjEtAzncLeLSlInH/4Q4ArNYUCE/KVJrv4WyImBts9izvFMp7ZqtkXe052 X-Received: by 2002:a05:6a20:3d96:b0:ef:1057:d80 with SMTP id s22-20020a056a203d9600b000ef10570d80mr9753254pzi.39.1681758150148; Mon, 17 Apr 2023 12:02:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681758150; cv=none; d=google.com; s=arc-20160816; b=xAWwuNpYUqMotZVd1n8Bta/GUupAgoH8Xj9UdvvZyaH2bNiodVSkltFpnW1709Qz3t VHVNl6AKb7tBxipCKIrzjcOCHm/kqGBZA1065gXeUs5aHkTZH+6FgadYbitKZYPBwCj/ pP9TsPmzpCPqK6eXorxw+b0yu1UKGeYyy5ZNeWvNlLYgb6xa/bbxPFltgU+32TihucTY LZPnwmHEfREMiaGul4sLeKd7ozygOgEYC2LPeunIMDA3PLb/e1U9ndAzv4j4oC6emmU+ 2E2r8/hstTo/Y0YZ0Oc8TQ0qO0MnoKrIsVQD6vnOpZlJp/E6Cv1XyZuh6YCvtj/CEky4 oPNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jycDFvLYVeDmAHqm1HmQN40t3cR2kBxJszjWbQ9gDes=; b=Ub2qufbFHd1QEyJRH3+jNx5SEVInhQpI9Fd3Nczg4Ogc5ztxdvldE1Y1Fu3uoHM0PR nYeJe8j2c627izLPWKvBasrBkzwzRbqmyhAzCNfLAF4vERm65as3NJGni7eA1Oq9WuqX Um/39UQ9ztAgpDx/HVrkTkLFgEgBJ+7Z3UlUUb4qC/YLL8nwP46HpjEuiHVjrQWJG/vP 4KNPvpqStdLw6xLwIzgv0DcDXbfwSWXrdtOjkEiT3aEjnygyfJBjEbiWTkflmnUH2trC 5ku2xTUHImGYqOa6jlKqiz8RodgifGOXy5fZXqjx4hNX5DHjOOfvpLC0eynuTzARn96l VNsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nOK8sMjE; 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 i191-20020a6387c8000000b0051b36b64070si12843244pge.255.2023.04.17.12.02.14; Mon, 17 Apr 2023 12:02:30 -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=nOK8sMjE; 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 S230229AbjDQSzc (ORCPT + 99 others); Mon, 17 Apr 2023 14:55:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230005AbjDQSzb (ORCPT ); Mon, 17 Apr 2023 14:55:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B7F4171A for ; Mon, 17 Apr 2023 11:55:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 29E9961FE9 for ; Mon, 17 Apr 2023 18:55:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 245CAC433EF; Mon, 17 Apr 2023 18:55:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681757728; bh=jpvGVC73BKKb3zx3vqvMtfK1QJtXKHouU9cI0yUXfAI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nOK8sMjEU4Wb4MD/qUb4cZSsCxNFAA3MKO0hekNxrSMI973fsTIRwQbtfPWlHiUOZ CL1UxIVw2mK5N1SyVVJufbiWMVt9zAvrnGQrLsb2Y/VP+C5vRUX0/K+H772BxBrnqW gV76kKx1vWJgQ/GSQMsAmsvKeNWqBpQZAejLoQVL7+2ISot2MyJVxgxHl3mzMKqghK fSxQgS/yktU520k2AyHVAefJzS0Vv3xSOSgHn0ZyLM8JVhlOjLNY2YlcF7yE6WZqp2 nUASHScS5EGGleflSPArRKwjWGJOmiX0SIfs+JOLrRUXEE4PGZke7FTHmbREz9aX/P SCV2DFfCIIaFw== From: SeongJae Park To: Arnd Bergmann Cc: Andrew Morton , Arnd Bergmann , llvm@lists.linux.dev, Vineet Gupta , Mike Rapoport , Nathan Chancellor , Nick Desaulniers , Tom Rix , David Hildenbrand , "Liam R. Howlett" , "Matthew Wilcox (Oracle)" , Suren Baghdasaryan , Naoya Horiguchi , linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, SeongJae Park Subject: Re: [PATCH] [v2] mm: make arch_has_descending_max_zone_pfns() static Date: Mon, 17 Apr 2023 18:55:25 +0000 Message-Id: <20230417185525.1420-1-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230415081904.969049-1-arnd@kernel.org> References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Sat, 15 Apr 2023 10:18:20 +0200 Arnd Bergmann wrote: > From: Arnd Bergmann > > clang produces a build failure on x86 for some randconfig builds > after a change that moves around code to mm/mm_init.c: > > Cannot find symbol for section 2: .text. > mm/mm_init.o: failed > > I have not been able to figure out why this happens, but the __weak > annotation on arch_has_descending_max_zone_pfns() is the trigger here. > > Removing the weak function in favor of an open-coded Kconfig option > check avoids the problem and becomes clearer as well as better to > optimize by the compiler. > > Fixes: 9420f89db2dd ("mm: move most of core MM initialization to mm/mm_init.c") > Cc: llvm@lists.linux.dev > Signed-off-by: Arnd Bergmann > --- > v2: fix logic bug reported-by: kernel test robot , > see https://lore.kernel.org/oe-lkp/202304151422.5e4d380b-oliver.sang@intel.com I was also encountering similar issue, and confirmed replacing the old version of this patch with this one fixes it. Tested-by: SeongJae Park Thanks, SJ > --- > arch/arc/mm/init.c | 5 ----- > include/linux/mm.h | 1 - > mm/mm_init.c | 4 ++-- > 3 files changed, 2 insertions(+), 8 deletions(-)