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=unavailable 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 D1CE4C4338F for ; Wed, 18 Aug 2021 13:46:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BDAE8610C7 for ; Wed, 18 Aug 2021 13:46:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237916AbhHRNrB (ORCPT ); Wed, 18 Aug 2021 09:47:01 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:42241 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237797AbhHRNqn (ORCPT ); Wed, 18 Aug 2021 09:46:43 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 4GqTgy4TBLz9t2g; Wed, 18 Aug 2021 23:46:06 +1000 (AEST) From: Michael Ellerman To: Michael Ellerman , Nathan Chancellor Cc: "Gautham R. Shenoy" , Paul Mackerras , linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, linux-pm@vger.kernel.org, Nick Desaulniers , linuxppc-dev@lists.ozlabs.org, Benjamin Herrenschmidt In-Reply-To: <20210803211547.1093820-1-nathan@kernel.org> References: <20210803211547.1093820-1-nathan@kernel.org> Subject: Re: [PATCH] cpuidle: pseries: Mark pseries_idle_proble() as __init Message-Id: <162929392065.3619265.16135263225670762399.b4-ty@ellerman.id.au> Date: Wed, 18 Aug 2021 23:38:40 +1000 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, 3 Aug 2021 14:15:47 -0700, Nathan Chancellor wrote: > After commit 7cbd631d4dec ("cpuidle: pseries: Fixup CEDE0 latency only > for POWER10 onwards"), pseries_idle_probe() is no longer inlined when > compiling with clang, which causes a modpost warning: > > WARNING: modpost: vmlinux.o(.text+0xc86a54): Section mismatch in > reference from the function pseries_idle_probe() to the function > .init.text:fixup_cede0_latency() > The function pseries_idle_probe() references > the function __init fixup_cede0_latency(). > This is often because pseries_idle_probe lacks a __init > annotation or the annotation of fixup_cede0_latency is wrong. > > [...] Applied to powerpc/next. [1/1] cpuidle: pseries: Mark pseries_idle_proble() as __init https://git.kernel.org/powerpc/c/d04691d373e75c83424b85c0e68e4a3f9370c10d cheers