Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3201491ioa; Mon, 25 Apr 2022 21:18:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2HAkIQBjw6nrOfCGuOP/ZyZawfOH7+WAMZI0JKIg9t0y0K+9GtABsuOWS8eZfm0KCdeRE X-Received: by 2002:a17:906:4c93:b0:6f0:2de:f42d with SMTP id q19-20020a1709064c9300b006f002def42dmr19830343eju.648.1650946700697; Mon, 25 Apr 2022 21:18:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650946700; cv=none; d=google.com; s=arc-20160816; b=hWVVsSnejlCaSuH2EsddXzuFF1biLn037mC764TI2vxuq3I6i5l7E4u2Av+jxIeMQK kSClXq1j0a8dn5f5VZo3VDhZ81/6+i3ndfHyoDTBfP84fZ/p6Lkq5s8Y3JgJWwGbqZO+ 53E3GWrF+fNqY2v1zv+/pW8M5pi9NI5y6rydnvWN6I5Y8+rFj3EdnGW8jRpp4QgdCCc3 iYPC+qZEGAa67DFTNi0gfGiYf7Blz2Il5CQYT5d8iiB0iP9iCt2/oiY9Ebd247IvU+p/ AlhOAs1bhbUhwzNQWIGf5KS5HOUiMh7Jn12ekJ/IKhMdm1F7ozKHkx+o+iZOPMnCQwRZ eYOQ== 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=STVGjM5/JPt7hKxq9j6HSRM4WhmqixTDUXJ9vu3Rx9w=; b=bDj12cGcMJS3wgEQVZMLxZq+5buyTVennzNRpXh7FUharfCtupjUcbpbWFr9NMUpRK MYBpQQOlNfkXiVp0OJlj3QjlO6oNUQLTVyfuAeIePr7E9e/o7eKH1yZxpCB4R/lLDDad JdRcuPdbegM5kJQdQCynTEnggcH+Vo8Vn9Fn0rLG/6nkIVqVNN0ccnN1V5aepH3T3Ssu m8AsxstCmpiUXCTHHVH5uzgXpFm4v1fgAjXfR4na2ZGCq2+nh5/3SsvOo2Q4uPDJ8OcU J+UqQcFohBwWIIj4WsNxrb2jjH78lvSS2xpI0nW26MybLnPmFyeBSx5O0ALPNGc4BqLg Htsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="oWKy/UZG"; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g9-20020a056402090900b00418c2b5bd52si17622684edz.52.2022.04.25.21.17.55; Mon, 25 Apr 2022 21:18:20 -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=@linuxfoundation.org header.s=korg header.b="oWKy/UZG"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243084AbiDYP66 (ORCPT + 99 others); Mon, 25 Apr 2022 11:58:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243089AbiDYP6w (ORCPT ); Mon, 25 Apr 2022 11:58:52 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE86C3D487 for ; Mon, 25 Apr 2022 08:55:43 -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 ams.source.kernel.org (Postfix) with ESMTPS id 1D4C1B818A9 for ; Mon, 25 Apr 2022 15:55:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65F74C385A4; Mon, 25 Apr 2022 15:55:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650902140; bh=ZW82ZLMbhdXSy8UotfQV6E6jNOl+p7+/+EOiVUC+rF4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oWKy/UZGQWW/XrYnC4BpASPtoFJ41o0ES40ise3BoWQQECDs0pei+PfcT8BfBYQ1l ZX9tUANUnAygrpfRUigYf5VjSrszMir6eRzeb1os5HwVNg32fxWcREIfafzd4D+QVY YBcLINEr1FKxahg3zVwMnnxfwdI7/amRvdIwsDbg= Date: Mon, 25 Apr 2022 17:55:38 +0200 From: Greg Kroah-Hartman To: Mike Rapoport Cc: kernel test robot , llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Mark-PK Tsai Subject: Re: [stable:linux-5.10.y 2705/5321] WARNING: modpost: vmlinux.o(.text+0x8cc4): Section mismatch in reference from the function __arm_ioremap_pfn_caller() to the function .meminit.text:memblock_is_map_memory() Message-ID: References: <202204220723.zOZ7gZGT-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=-7.7 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 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 Fri, Apr 22, 2022 at 01:42:42PM +0300, Mike Rapoport wrote: > On Fri, Apr 22, 2022 at 07:37:19AM +0800, kernel test robot wrote: > > Hi Mike, > > > > FYI, the error/warning still remains. > > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.10.y > > head: 1052f9bce62982023737a95b7ff1ad26a5149af6 > > commit: 8dd559d53b3b2de960ca1ec1359f5a9b4a12e181 [2705/5321] arm: ioremap: don't abuse pfn_valid() to check if pfn is in RAM > > config: arm-hackkit_defconfig (https://download.01.org/0day-ci/archive/20220422/202204220723.zOZ7gZGT-lkp@intel.com/config) > > compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 5bd87350a5ae429baf8f373cb226a57b62f87280) > > reproduce (this is a W=1 build): > > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > > chmod +x ~/bin/make.cross > > # install arm cross compiling tool for clang build > > # apt-get install binutils-arm-linux-gnueabi > > # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=8dd559d53b3b2de960ca1ec1359f5a9b4a12e181 > > git remote add stable https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git > > git fetch --no-tags stable linux-5.10.y > > git checkout 8dd559d53b3b2de960ca1ec1359f5a9b4a12e181 > > # save the config file > > mkdir build_dir && cp config build_dir/.config > > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash > > > > If you fix the issue, kindly add following tag as appropriate > > Reported-by: kernel test robot > > > > All warnings (new ones prefixed by >>, old ones prefixed by <<): > > > > >> WARNING: modpost: vmlinux.o(.text+0x8cc4): Section mismatch in reference from the function __arm_ioremap_pfn_caller() to the function .meminit.text:memblock_is_map_memory() > > The function __arm_ioremap_pfn_caller() references > > the function __meminit memblock_is_map_memory(). > > This is often because __arm_ioremap_pfn_caller lacks a __meminit > > annotation or the annotation of memblock_is_map_memory is wrong. > > In 5.10 the hackkit defconfig does not select ARCH_KEEP_MEMBLOCK which is > required for memblock_is_map_memory() to function after boot. > > In upstream kernels ARCH_KEEP_MEMBLOCK is always selected by ARM after > commit 5e545df3292f ("arm: remove CONFIG_ARCH_HAS_HOLES_MEMORYMODEL") > > So the fix would be either to backport 5e545df3292f or unconditionally > select ARCH_KEEP_MEMBLOCK on ARM in 5.10. > > (the same applies to 5.4) > > Greg, what is your preference? I'll defer to you all, but normally I prefer whatever is in Linus's tree. thanks, greg k-h