Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5331419rwe; Tue, 18 Apr 2023 05:37:26 -0700 (PDT) X-Google-Smtp-Source: AKy350ba3NPI4SsjdL8vRmdLnPhNsynebhz3bOKSgmhC3MwfVHqbwTM9aWm6IesKFtTwKwZYI4X6 X-Received: by 2002:a17:90a:a392:b0:23d:1f95:de1c with SMTP id x18-20020a17090aa39200b0023d1f95de1cmr1712320pjp.28.1681821446127; Tue, 18 Apr 2023 05:37:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681821446; cv=none; d=google.com; s=arc-20160816; b=yfBCV2W1A1hSN1rSAU9Ft+HGQgJZ6xB84t//sRIiR3jc3KVom4gw6pb5rnXvRN570O /LG3g/pBfE1g4/GQwHZpr3DrMf9IV43Q5dXYAFpPwbWIeBctdCnTjVSo+0IRW8DU0TJU 2XXGpcwurD5oNvWXO4och+kOChfrEKVr+VCQFwhlUsvQhTIz/33MmYpbQlg2UbNbz3FP K9BKCW3kaOlkincPoVIq2PqOsZcdfiDEQiHoTrMBY/m3EUEFglRA3nfj6THOUaTwempJ ZVkKgGkShQGV3ntXeKYTpVHHekkz6MXfaSFxGWdG3GNy7ELemKzbSXBxPVreaEJ8V4bU Yh+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date; bh=4MoW8VfVZjn0jq5dVdA4m5w1c3mJQHG4dN+YvjNpMqc=; b=jk97qx4vkrqovRyNQw/xXL7A7qqV66FfU2n69/KsVViOhRimr8miBoodZ4lBMSuEgU Mqit9YbjBpUE3SoncEuwgZ59gbczkoDQ6wElbzeUuz1cHOn9rzmZUOs9QzQ1n2X08EyD x1XLuUG454mUYuDvuf4tz8hNGC9+VuHSUBOjJgahZcLDTeHCEZHUiYzqGFOv9G6/OSkl wUTD2JKH4d4SRTROLyIldrRIFEN8MoHJkNQhAi87E9u29nQs6O32Z1+EQpN0xkTkqYwu MqtQ7SZmpoeOr8vF6RZ6sIXcwZ17QEJ7Tdoz/nKg/O3OeSXBBPQ+BDzOpIopmr9/vfqF YzMw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mt24-20020a17090b231800b00233ebd4c537si9075467pjb.22.2023.04.18.05.37.14; Tue, 18 Apr 2023 05:37:26 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231751AbjDRMhD (ORCPT + 99 others); Tue, 18 Apr 2023 08:37:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231738AbjDRMhC (ORCPT ); Tue, 18 Apr 2023 08:37:02 -0400 Received: from andre.telenet-ops.be (andre.telenet-ops.be [IPv6:2a02:1800:120:4::f00:15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 707A212CA7 for ; Tue, 18 Apr 2023 05:36:56 -0700 (PDT) Received: from ramsan.of.borg ([84.195.187.55]) by andre.telenet-ops.be with bizsmtp id mCci290131C8whw01CciYR; Tue, 18 Apr 2023 14:36:53 +0200 Received: from geert (helo=localhost) by ramsan.of.borg with local-esmtp (Exim 4.95) (envelope-from ) id 1pokZe-00H56B-Ey; Tue, 18 Apr 2023 14:36:42 +0200 Date: Tue, 18 Apr 2023 14:36:42 +0200 (CEST) From: Geert Uytterhoeven 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, Biju Das , linux-renesas-soc@vger.kernel.org Subject: Re: [PATCH] [v2] mm: make arch_has_descending_max_zone_pfns() static In-Reply-To: <20230415081904.969049-1-arnd@kernel.org> Message-ID: References: <20230415081904.969049-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,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 Hi Arnd, On Sat, 15 Apr 2023, 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 Thanks, reverting commit 413d478d3b366d09 ("mm: make arch_has_descending_max_zone_pfns() static") in next-20230417 and applying your v2 makes Salvator-XS regain its DMA memory zone. Tested-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds