Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3379983rdg; Tue, 17 Oct 2023 12:51:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHcIEDwhAFF5dbb1d6dIzlW10dua+ebfIXG+mjP+NGDPVQZ0gdi9rDCm6smFymUNULK5bzK X-Received: by 2002:a05:6e02:1aae:b0:352:6a32:59d5 with SMTP id l14-20020a056e021aae00b003526a3259d5mr4143470ilv.9.1697572291704; Tue, 17 Oct 2023 12:51:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697572291; cv=none; d=google.com; s=arc-20160816; b=mmby/JVNt7DLf/ivQUYLZV8jGk+VuGtmIiXNCBUo6JSy+iokoNOk75UWnaFtVcG76S 4iTXiNjT6llyc78ZlgAKwoYal0W6QEqf/+K23LTSo82wA5Jc9o7wTQjJm20EeqUOhnsc jbnqux9YASWjLwFc8e5BM7AK5NrDY4rkgzSsICf4lARuaN44vtFk1Mq9t1GHqLUOFaNm r7xptUhO0mxgdneCgpe1re4lkGMdwwO2dc7yB0Nuzm/OKUvTjyAS2ZwMyP9lP7EGALct IOjlD+iUhFch3hQ3KtC1HizZGmF98VKavKH6QseoWy0DiH9DQMVkCbTyoryS5pFtWYYY uGxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=fU3PjbOBEICWOY9geuV7YVLEe9SL9UWyFkhVyXQhTgQ=; fh=F8LtIb5e2JMuzbeLjFcy6aNrJg4V0LjicqCm83sRSu0=; b=n/AB8HRuvE5vz08TdyEBP02j+hto1QHcUgCgJOeXPCLWBav8HhMXJyf/KoeiRYq5CJ YJtz/TCseajWcZnUPovyVT9gTFwW4RsXg2nuW0lPwf3Rt48chGvEREmrE6nf5/QCbMfe egT8tVygPss5Ckp/2f4KS19/SEXdScgCsspRPcqUVzJrStKGoSwOnUWPTI0X8sSqMIKm SUCYqqJhBSUPWQHi6dV9kooJ3XD6krkoomI/HFIsL4o+RB41XtS47EDLXK7YXUs8q8T2 Bx/qV+GJCfGajNtgYvJ5EPu3pM28z1eZuwSl1Cqs60pBRFuS2DFkZU4hTGJSSdMLFPRX mcBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=huYkDnXD; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=EnQf5wBr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id by22-20020a056a02059600b0058afac51c12si597016pgb.545.2023.10.17.12.51.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 12:51:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=huYkDnXD; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=EnQf5wBr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id BFD7B808727D; Tue, 17 Oct 2023 12:51:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344410AbjJQTvE (ORCPT + 99 others); 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 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 17 Oct 2023 12:51:21 -0700 (PDT) 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