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 68E79C54EBE for ; Fri, 13 Jan 2023 12:59:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241322AbjAMM7y (ORCPT ); Fri, 13 Jan 2023 07:59:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241074AbjAMM64 (ORCPT ); Fri, 13 Jan 2023 07:58:56 -0500 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A23D5B16D; Fri, 13 Jan 2023 04:45:59 -0800 (PST) Received: by mail-ej1-x631.google.com with SMTP id ud5so52100634ejc.4; Fri, 13 Jan 2023 04:45:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=AcHErRJ45q81GGjXiRiribjr5Anofis06MFnaHfQP8A=; b=gE5v/WSVjrSut5xsLiOn7g1on0KaAbtIMutebQ2onxicQ+j4sdTSHu3jnH4FTYJg3t nVOsvPPcRVfY7T9THsEk7GLAWyEiRl4sB/zr6HnxnKXeuvJIZf1MEfDbFrIbgJIeu9Zn PQANGv90Y4oC10zujvSBzrdUCcKJ4wKBhaM3n2Qd4/7zV8F3cAbyJh6E+wISja3jxksG Ge3YjllyPU8HEU1EA/p41Aui0ZEsV/oHxR+e3f1Vnr8p04eDk/ODfvG5GUHhvi2N+3qf ephPmCC2NUBjWVYtAqrHWSeFobLjAjUtK/PtwiTK1wUmA5PQqDAvJ1/0P0INym8ELFTp jfDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AcHErRJ45q81GGjXiRiribjr5Anofis06MFnaHfQP8A=; b=33BLRoGY9s0zX/y/ftwHQYWOZoCb5Q5/mAPa+Vok8C0RRaKUWHeiAjLDYI+PNYUKhL bEhv+519IjZ96uH6cs9pTiCwAgCLkL6Iz3r1EJS1r1HFvLuJLqZyLfU4Lzaspe24KCIV Zs7RMYbnOT0SZAxBmAX53gNA0uDoOKYLRiqC0PwkEKARWUVRj91zjm5RdmIvOereHH4g f67pobrNO3ewEMg0sTEMWBe21QHRlvglK8Y7rjUEqPEw1uBBRM0Dxl9Pt6kg9YkrI3If Sp82NHvwNsl/1w4llFEzohMTZeCdgyu+tzo0WaowTqzoV5Geo8SsutZ84FN1ONSefvdz 4KYQ== X-Gm-Message-State: AFqh2kozShmX0rTEdFgWcv5m+XnVbSBNGV89YkkjogPoNpyXB/O0nqrn 5ye6gCkahyIRj2oETFLJyic= X-Google-Smtp-Source: AMrXdXvVr/9yNhQpjOFOJXlU0GdHaAOCYq+3W9OAzkBY/ShZ3eCuqjVnT1dNuTlNluFaFeVqoKIulQ== X-Received: by 2002:a17:906:5a71:b0:84d:4a2b:73b9 with SMTP id my49-20020a1709065a7100b0084d4a2b73b9mr14662505ejc.59.1673613957932; Fri, 13 Jan 2023 04:45:57 -0800 (PST) Received: from gmail.com ([31.46.242.235]) by smtp.gmail.com with ESMTPSA id 18-20020a170906211200b007c0b28b85c5sm8462298ejt.138.2023.01.13.04.45.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 04:45:57 -0800 (PST) Sender: Ingo Molnar Date: Fri, 13 Jan 2023 13:45:53 +0100 From: Ingo Molnar To: Stephen Rothwell Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Peter Zijlstra , Xin Li , Linux Kernel Mailing List , Linux Next Mailing List Subject: [PATCH] x86/gsseg: Add the new header to Message-ID: References: <20230113125321.4c60d02f@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230113125321.4c60d02f@canb.auug.org.au> Precedence: bulk List-ID: X-Mailing-List: linux-next@vger.kernel.org * Stephen Rothwell wrote: > Hi all, > > After merging the tip tree, today's linux-next build (x86_64 allmodconfig) > produced this warning: > > WARNING: modpost: EXPORT symbol "asm_load_gs_index" [vmlinux] version generation failed, symbol will not be versioned. > Is "asm_load_gs_index" prototyped in ? > > Introduced by commit > > ae53fa187030 ("x86/gsseg: Move load_gs_index() to its own new header file") Yeah - the new header moved the asm_load_gs_index() prototype out of the list of includes in - needs to be added explicitly. Patch below should solve this. Thanks, Ingo ===========> From: Ingo Molnar Date: Fri, 13 Jan 2023 13:43:20 +0100 Subject: [PATCH] x86/gsseg: Add the new header to Module build needs to be able to pick up the C prototype: WARNING: modpost: EXPORT symbol "asm_load_gs_index" [vmlinux] version generation failed, symbol will not be versioned. Is "asm_load_gs_index" prototyped in ? Fixes: ae53fa187030 ("x86/gsseg: Move load_gs_index() to its own new header file") Reported-by: Stephen Rothwell Signed-off-by: Ingo Molnar Cc: linux-kernel@vger.kernel.org --- arch/x86/include/asm/asm-prototypes.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/asm-prototypes.h b/arch/x86/include/asm/asm-prototypes.h index 8f80de627c60..b1a98fa38828 100644 --- a/arch/x86/include/asm/asm-prototypes.h +++ b/arch/x86/include/asm/asm-prototypes.h @@ -12,6 +12,7 @@ #include #include #include +#include #ifndef CONFIG_X86_CMPXCHG64 extern void cmpxchg8b_emu(void);