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=-9.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,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 BA6F6C433DB for ; Sun, 3 Jan 2021 16:45:26 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 79B8020780 for ; Sun, 3 Jan 2021 16:45:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 79B8020780 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Subject:To:From: Message-ID:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=lzxQ5ATgCFUsszFsLz20d1yJawkMzbmHduxFqdUc6Qc=; b=PFXxH/QHuyg/BWOlq0NcVsrea qpXmMgn+2XJmCQPkFN3oPE4uzXvov4XaDITBiE+tSY7k7yDSFV5cfrSBXAQBcgFIfbpTqqgrA1Iit lmU5LH5jhbMwqRcu4TmPU3yzIPiInOsnz2gS8aiExEzePoUHXzCZm1VeP8CzyoTVoGzaH5eMF9GW3 BbDpsYjs3LFtDFgD0Mqr4poaJpn9g4gSjwru89oV8sbRBozJkt9zGnRkWsYh0xF7fwND5TVot18aT EMJ6XnL+XobGbDFZ6kCuHSXveKeY79+EGiv/VZw9atdS6PgXzPwHwrgJACxfAwcbXXE00w7KCjwdA KvGyRgNBA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kw6U8-0005C5-Vg; Sun, 03 Jan 2021 16:44:05 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kw6U4-00059q-Nt for linux-arm-kernel@lists.infradead.org; Sun, 03 Jan 2021 16:44:02 +0000 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2404D20780; Sun, 3 Jan 2021 16:43:59 +0000 (UTC) Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kw6U0-0055el-Us; Sun, 03 Jan 2021 16:43:57 +0000 Date: Sun, 03 Jan 2021 16:43:55 +0000 Message-ID: <871rf2km2c.wl-maz@kernel.org> From: Marc Zyngier To: Arnd Bergmann Subject: Re: [PATCH] KVM: arm64: remove incorrect __init annotation In-Reply-To: <20210103140104.3853922-1-arnd@kernel.org> References: <20210103140104.3853922-1-arnd@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: arnd@kernel.org, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de, james.morse@arm.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com, dbrazdil@google.com, pbonzini@redhat.com, seanjc@google.com, ascull@google.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210103_114400_918280_5483C0FF X-CRM114-Status: GOOD ( 20.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Suzuki K Poulose , Catalin Marinas , linux-kernel@vger.kernel.org, James Morse , Andrew Scull , Sean Christopherson , Paolo Bonzini , David Brazdil , Will Deacon , kvmarm@lists.cs.columbia.edu, Julien Thierry Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, 03 Jan 2021 14:00:50 +0000, Arnd Bergmann wrote: > > From: Arnd Bergmann > > When hyp_cpu_pm_exit() is not inlined, it causes a link time warning: > > WARNING: modpost: vmlinux.o(.text+0x39974): Section mismatch in reference from the function kvm_arch_init() to the function .init.text:hyp_cpu_pm_exit() > The function kvm_arch_init() references > the function __init hyp_cpu_pm_exit(). > This is often because kvm_arch_init lacks a __init > annotation or the annotation of hyp_cpu_pm_exit is wrong. > > This is not only called at boot time, so remove the annotation > to prevent undefined behavior in case it gets called after being > freed. It *is* only called at boot time (despite these functions being called from module_init(), KVM cannot be built as a module on arm64). The annotations are wrong nonetheless. > > Signed-off-by: Arnd Bergmann Posted here [1], and queued for the next batch of fixes. M. [1] https://lore.kernel.org/linux-arm-kernel/20201223120854.255347-1-maz@kernel.org -- Without deviation from the norm, progress is not possible. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel