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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AA497CDB474 for ; Tue, 17 Oct 2023 19:51:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344422AbjJQTvE (ORCPT ); Tue, 17 Oct 2023 15:51:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344412AbjJQTvD (ORCPT ); Tue, 17 Oct 2023 15:51:03 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06E7A9E for ; Tue, 17 Oct 2023 12:51:00 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1697572259; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=fU3PjbOBEICWOY9geuV7YVLEe9SL9UWyFkhVyXQhTgQ=; b=huYkDnXDCRTZwPXAh+BhOQqVEwJVQ9lLc3Xq91xlaSR1ImoBhfxCBH59w3T8YKfbWFRZL8 alPmsUKk4RGR5Y4kTtzmzf8+8/qcuz8fq50gi5iaz0f+Ld637x71lZgVpVo84PGcdjXebD 4jobHsDTNXOEJ7vdfePSNNCvr2OEGLyLIfy8mDCA1AfcGYKyxNFeP7TvlJ8bIZhHQXRG7b pAM+ikZYKENEdoKe1Ow866vv2d7/VJf1BcyNOenqMrfnT504upf0V0U2HWxFMMYh4zzEUl 945mgqJf7eRY6h/kUx8Y47aVFuGBWOSThTNuqWKtJvnT+FEZSpkzWpxUaXSBzQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1697572259; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=fU3PjbOBEICWOY9geuV7YVLEe9SL9UWyFkhVyXQhTgQ=; b=EnQf5wBryklsDFGMJoVEdNzGsR4fXm6CAv8iJug5eVfDg8FWKo6VDoZ7qshCmYQlRh17IC yGAh4IzBGWLhmIBQ== To: Ingo Molnar , Hou Wenlong Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Borislav Petkov , Dave Hansen , "maintainer:X86 ARCHITECTURE 32-BIT AND 64-BIT" , "H. Peter Anvin" , Andy Lutomirski , Peter Zijlstra , Tom Lendacky , Andrew Morton , Steve Rutherford , Michael Kelley , Alexander Shishkin , Arnd Bergmann Subject: Re: [PATCH 2/2] x86/sme: Mark the code as __head in mem_encrypt_identity.c In-Reply-To: References: Date: Tue, 17 Oct 2023 21:50:58 +0200 Message-ID: <874jip58pp.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 17 2023 at 14:52, Ingo Molnar wrote: > * Hou Wenlong wrote: >> -static inline void __init sme_encrypt_kernel(struct boot_params *bp) { } >> -static inline void __init sme_enable(struct boot_params *bp) { } >> +static inline void sme_encrypt_kernel(struct boot_params *bp) { } >> +static inline void sme_enable(struct boot_params *bp) { } > > So I think we should preserve the previous convention of marking functions > __init in the header-declaration and at the definition site as well, and do > the same with __head as well? I'm not convinced about the value of prototype annotations, but have no strong preference either. Thanks, tglx