From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30648C433E3 for ; Wed, 31 Mar 2021 01:11:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 15561619FB for ; Wed, 31 Mar 2021 01:11:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233428AbhCaBLE (ORCPT ); Tue, 30 Mar 2021 21:11:04 -0400 Received: from ozlabs.org ([203.11.71.1]:52835 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233184AbhCaBKd (ORCPT ); Tue, 30 Mar 2021 21:10:33 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 4F97Xm1ZNmz9sjD; Wed, 31 Mar 2021 12:10:31 +1100 (AEDT) From: Michael Ellerman To: Michael Ellerman , Nathan Chancellor Cc: Paul Mackerras , linuxppc-dev@lists.ozlabs.org, clang-built-linux@googlegroups.com, linux-kernel@vger.kernel.org, Benjamin Herrenschmidt In-Reply-To: <20210302195013.2626335-1-nathan@kernel.org> References: <20210302195013.2626335-1-nathan@kernel.org> Subject: Re: [PATCH] powerpc/fadump: Mark fadump_calculate_reserve_size as __init Message-Id: <161715296549.226945.14575193524004441168.b4-ty@ellerman.id.au> Date: Wed, 31 Mar 2021 12:09:25 +1100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2 Mar 2021 12:50:14 -0700, Nathan Chancellor wrote: > If fadump_calculate_reserve_size() is not inlined, there is a modpost > warning: > > WARNING: modpost: vmlinux.o(.text+0x5196c): Section mismatch in > reference from the function fadump_calculate_reserve_size() to the > function .init.text:parse_crashkernel() > The function fadump_calculate_reserve_size() references > the function __init parse_crashkernel(). > This is often because fadump_calculate_reserve_size lacks a __init > annotation or the annotation of parse_crashkernel is wrong. > > [...] Applied to powerpc/next. [1/1] powerpc/fadump: Mark fadump_calculate_reserve_size as __init https://git.kernel.org/powerpc/c/fbced1546eaaab57a32e56c974ea8acf10c6abd8 cheers