Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1310288pxy; Fri, 23 Apr 2021 05:24:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5XDRdWoOyhHr6JNgWxrZhCmWYitM80pgtVXBFU+wqmcrDtjuyeJheAvmzKBcgS/7rIyaL X-Received: by 2002:a17:906:5248:: with SMTP id y8mr3872553ejm.150.1619180643059; Fri, 23 Apr 2021 05:24:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619180643; cv=none; d=google.com; s=arc-20160816; b=IokAX6zCdE+jM3XF/a2J4YD5XQfqc3/ANJ8iEVx/XvBXSeU+jATRNHhdhLmEoWpi2j GRU+dFnHYZV4BruzYmAh61mbQcXwME9OBPpx7NUIc7iJGk3U+MfhgNaVir6X/Pafe95V DzXHizP0a616iJs8kAETifCvArK6wQQRf6ZI0cZjmTI4AX6O/Q+1CogL80pAQmTDU1bt WkR9XSK9BAi85/hHLqwPnr5lLCoCl64pmhV+yjnArFm4VJmkqpFebIq0Vkb6TZ7/2d1r 0LJ6HsYcyEOs8nXmVxgNQ1sBLFn5eMQuf+etT0b/N6UE4aZjeBh+FzRJWd82qN4NQwcR N7Fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=/spZNva/oYGvIvecwRP3iEN3CT9K0MDOk6hm/bjAf4k=; b=q2rJavRgRKJpPlMfNqhahfzPzhZIBUv6oRlybM1HifcI3kDteSLB+67PMgds8ksE0q XrIwi3CDVA9eWiLCBVYeK0E3uxuR31hh46xuMl5q4EkiFbkjTa+7rtbDvTvqgDSMjS+Z yuxEu9KrrjCWnrTfA2WrNxRDCWLsmNI4NKfFRdhPb4p+5uT4VuOFDDK0KoYJWG+9hezj /l8DOtLrIaZHDghXEbMeYJqN/ao7ZWxX2zy7OsWsVogqFFbAIBUs1Kjxry4qcVAcZ3zv tlKXWVduVtyGePEHi46fpxDcYK13v5kCGCETFmjZwnTKLHP6V9t7xEcAGn9d1pNA+N05 bpeA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u6si4945214edq.126.2021.04.23.05.23.39; Fri, 23 Apr 2021 05:24:03 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242391AbhDWMXP (ORCPT + 99 others); Fri, 23 Apr 2021 08:23:15 -0400 Received: from elvis.franken.de ([193.175.24.41]:38488 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230305AbhDWMXK (ORCPT ); Fri, 23 Apr 2021 08:23:10 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1lZupM-00019R-04; Fri, 23 Apr 2021 14:22:32 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 59296C0B3B; Fri, 23 Apr 2021 14:11:32 +0200 (CEST) Date: Fri, 23 Apr 2021 14:11:32 +0200 From: Thomas Bogendoerfer To: Nick Desaulniers Cc: Linux Kbuild mailing list , Masahiro Yamada , Guenter Roeck , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] MIPS: select ARCH_KEEP_MEMBLOCK unconditionally Message-ID: <20210423121132.GE8582@alpha.franken.de> References: <20210407173543.3598006-1-ndesaulniers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210407173543.3598006-1-ndesaulniers@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 07, 2021 at 10:35:43AM -0700, Nick Desaulniers wrote: > While removing allnoconfig_y from Kconfig, ARCH=mips allnoconfig builds > started failing with the error: > > WARNING: modpost: vmlinux.o(.text+0x9c70): Section mismatch in reference > from the function reserve_exception_space() to the function > .meminit.text:memblock_reserve() > The function reserve_exception_space() references the function __meminit > memblock_reserve(). > This is often because reserve_exception_space lacks a __meminit > annotation or the annotation of memblock_reserve is wrong. > ERROR: modpost: Section mismatches detected. > Set CONFIG_SECTION_MISMATCH_WARN_ONLY=y to allow them. > > allnoconfig disables DEBUG_KERNEL and thus ARCH_KEEP_MEMBLOCK, which > changes __init_memblock to be equivalent to __meminit triggering the > above error. > > Link: https://lore.kernel.org/linux-kbuild/20210313194836.372585-11-masahiroy@kernel.org/ > Fixes: commit a8c0f1c634507 ("MIPS: Select ARCH_KEEP_MEMBLOCK if > DEBUG_KERNEL to enable sysfs memblock debug") > Cc: Masahiro Yamada > Reported-by: Guenter Roeck > Signed-off-by: Nick Desaulniers > --- > arch/mips/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) applied to mips-next. I've dropped the Fixes tag, because it doesn't fix this commit. Sidenode wouldn't it make sence to make reserve_exception_space() as __meminit ? Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]