From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5AF60318BA8 for ; Thu, 23 Jul 2026 21:59:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784844006; cv=none; b=c1SZ6fhBWT5/xdWXTxWIaQas/G3j7d1GxqRdl6PdJE9jHXaYm8xrZ6wu4NpjoxRcJu3Y2qe7A2c6lNlQo9X8lrv6C3+W7+BpRXL6IDnGvxZPm6GrmixzhK7mKtP7Z5w2eok3iP6nAKZ8Df9pbehkzxJO4nkhc1UF+3XgzYk+neM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784844006; c=relaxed/simple; bh=9SvqJnk21iIfEfn5MotBDIMDCUbR89IUULCvtbQ4U98=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sWKBFDIimV9UVOiuOjPtdWbXv+z974znzm3SqKkh635t/yfMIqGtI6/hmndqgFcO81YqOG7SYAqQfJz2ozwHJihWEKLP+nlCWBguPuXzTDwvEDiaWzt0LlzlXgSa8PWEGXnLJJpYPPhNWR2AZ0bR+EFvZhAAceKo1UaRxaYbjFw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=Ax5QKjlE; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="Ax5QKjlE" Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id DB7A540E014C; Thu, 23 Jul 2026 21:59:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id WsJnCXk2IarN; Thu, 23 Jul 2026 21:59:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1784843984; bh=7Jhx3OuJbEDdsSSsXaqPPUx169LpZd6Yo6COE6d5ndA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ax5QKjlE54yydhF+Sfo8H0cW6DIhOqKh71pUTskSTe6OgR0lyRpB/PQahU8BX0MSv ynUhDTvRXKsdcardX/S6szI2T6dCMWVb49nzlUKY8t1nsoAnr85p+gO8nwtDfOlbqh 0TxhT4Lt1lliwbJ9RMcZdSh8+76DHSkyhM9i4YAC079uyYKY7w8up0ln88waElX3Ws I1Adh4B0BdIDPzKxRakm7nNJQy/eG7dGxIKIA7BmRdpBcPn3Q5mAqHn8Dz5cIgvGpg /n298iTumHy64OjY0ZJ5tdT3aYIXY28s5+fKOQ9djx9z7zlphgiTZSwTdzy9BPscnp qNaUAluc2L9/P9eXvNn7qiFA/RBkqMar/yId54tn8kyJ25wl8gaMiqk7qz3douKQ9m dNmCgsjkeVJWKEGC5DTNgpwFgtyaxB0LiMr4EaimA6CkR7YBBL7uqvoKcNXoAVg1qu iG0ayGHepCIe8ArU8B8cY3/5wJI5u07gzRn0gthpBi2GQO+RFTozz1zHhUj82jV31m mFwEJFcuXTg9ZtA3OPY5mQ1J5LrmsGqbTYGAtESOvSJeaZKHnouLrEjSygbRDqBH4c qCefy9K+FgVC3S++daKtf+uiVnCNioB32mZUz34TYWb7PODayMYRkqa3PlR2NfWl5M LEjKQ2InfHfeb4zyj6Fw6i0g= Received: from stx.tnic (unknown [IPv6:2600:1700:38ca:c00::1b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id A4E7340E00E6; Thu, 23 Jul 2026 21:59:31 +0000 (UTC) Date: Thu, 23 Jul 2026 14:59:28 -0700 From: Borislav Petkov To: Mauricio Faria de Oliveira Cc: Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Juergen Gross , Alexey Dobriyan , Boris Ostrovsky , kernel-dev@igalia.com, linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org Subject: Re: [PATCH v7 3/5] x86/asm: group inline string functions Message-ID: <20260723215928.GBamKOwB3PIaHrQFbs@fat_crate.local> References: <20260721-pvh-kasan-inline-v7-0-38979a50cef0@igalia.com> <20260721-pvh-kasan-inline-v7-3-38979a50cef0@igalia.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20260721-pvh-kasan-inline-v7-3-38979a50cef0@igalia.com> On Tue, Jul 21, 2026 at 12:56:44PM -0300, Mauricio Faria de Oliveira wrote: > Group the __inline string functions in the same header. > > Use since __inline_memcmp() must remain there for use > by arch/x86/boot/string.c. "No functional changes." > Signed-off-by: Mauricio Faria de Oliveira > --- > arch/x86/include/asm/shared/string.h | 26 ++++++++++++++++++++++++++ > arch/x86/include/asm/string.h | 21 +-------------------- > 2 files changed, 27 insertions(+), 20 deletions(-) > > diff --git a/arch/x86/include/asm/shared/string.h b/arch/x86/include/asm/shared/string.h > index 166274e44f3cb49e3dccab3cdac281d67aef5d44..9714fbda8b734e20686bfb88a6ca857bfee59e1a 100644 > --- a/arch/x86/include/asm/shared/string.h > +++ b/arch/x86/include/asm/shared/string.h > @@ -2,6 +2,32 @@ > #ifndef _ASM_X86_SHARED_STRING_H > #define _ASM_X86_SHARED_STRING_H > > +/* > + * The __inline string functions are grouped in this file for consistency and > + * for use by arch/x86/boot code due to limitations on including asm/string.h. What limitations? Either explain them or don't bother adding a comment. asm/shared/ is generally an understood concept if you grep the tree and you don't really need a comment here. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette