Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp253361rwl; Wed, 9 Aug 2023 14:05:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH/T5SwNSfcK28aVgSXDKd6EN9Lv+NIZ0Kl37K7M2yW3wVbhFCsaNeUxq35SYaE53/6WM89 X-Received: by 2002:a5d:4dcd:0:b0:314:1d53:f3aa with SMTP id f13-20020a5d4dcd000000b003141d53f3aamr433899wru.50.1691615158560; Wed, 09 Aug 2023 14:05:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691615158; cv=none; d=google.com; s=arc-20160816; b=o+NRKDcY9ksAwzdeDNQyqnxWbxi+4lB6y9qZWiJQUW22p4p0BdiBtkGQTju7RBg2wb nEkg0K2fyOamNbO7atZaPIEAJSAGeV6X6Hy+83JiO9hSqI8r3wyOViIO1NlUA136w4VJ +oq/9uIhLT5B9O9S95JuSe3cjOOhMD4OWgk3ZqTrLhAVnAwwRLjm2Z5ArrejO70lZhMA bhczikvi8zYiI5RULoNnxHy51DTeS/Yk4z/ZurmcZeiuADEWP+OgPeHkPqwAtPEUqK26 6ApZ3RRuCyRocXSZlmLWgaH9nmPvTBNKjn+oQsMRmNTJLga/GUFT2muQR+QWLlUNVCH+ GdWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=PMoRv0SQqsc5MGIHtzgFAHhMEbqQtwxjg5aA9DqRinA=; fh=qetYyB+3+La3kKxdT11JfKrdpb5ThV2tqvMNL8irllE=; b=VrSh+gveW9wSewjjfBrsJp61HQEE4sFd3xldKx5ZWtosmT7R7XoyoBENiX3CMuqPLB xueqo6hwPIygXLmplgtdbowxtGdv3Kh0oDNZi462dNnTkyQszBLQ1K74DEVzPCd1jw9l ID2dsNQEcT5nOwqWFS7vINWlc0kjvdPBwRHpy66g/GzkWGH3p8iPKncXwVp6x9BBIoFn Jjx3N2LrlBnuNJMIigPSTy5Al5xn/KVY5fHCjka4PACvKAxJikhv1Y2e6CvzT28X5QV1 3DOYa7QYXsIlyVfqPCHBzEza0DH5A64m2OzNxdmFbddH/5zVLoByKPYsHwJLdqUJrGPz sCZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=M20E5QWg; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=h4cOz7Vy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k11-20020a17090646cb00b0098df1cbe2aesi10082ejs.1008.2023.08.09.14.05.34; Wed, 09 Aug 2023 14:05:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=M20E5QWg; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=h4cOz7Vy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231533AbjHIS0l (ORCPT + 99 others); Wed, 9 Aug 2023 14:26:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbjHIS0k (ORCPT ); Wed, 9 Aug 2023 14:26:40 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE949A3; Wed, 9 Aug 2023 11:26:39 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 304795C00A2; Wed, 9 Aug 2023 14:26:39 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Wed, 09 Aug 2023 14:26:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1691605599; x=1691691999; bh=PM oRv0SQqsc5MGIHtzgFAHhMEbqQtwxjg5aA9DqRinA=; b=M20E5QWg40a54/qD0n wl9H2+xs3ff/4Wytyp2Wwp+DlzoxE4CuYExuUfT5BV7ILYSbb5tYcOIKtg3FcFjI hTfumlaqkQcBX/EB3VHEGkiXevnhN9WMeSjyPSNigxpyfQyZg4/eWWrJk4zpwm2x v/oEqCPTS5MN2jHdUiO+W2FFigzFjXWgDG1Cbwl3Pt7ZutaGeCtCfD7nIKiRpr+y bplqY4BDFxdBN6GtVLkTseK8fZlbDkVDpQwafzxb2r5g8K0qkdGu29p38nlHPTxr P1+17Z0HkngNmBPXhD68Q6bDj91/Y974SwQgPztclBt9GUSBAZ53kDUb5jyg8VrL jNjQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1691605599; x=1691691999; bh=PMoRv0SQqsc5M GIHtzgFAHhMEbqQtwxjg5aA9DqRinA=; b=h4cOz7VyD3EyvNrMWIQ89W+cuhFqe KObaAPT8gDWm+mtqMl2bg93oopjpCsSsG252FkuNnJuB4h9Rq7PzcuTZUrpaXXeZ oyWFrKKdskzPCRePpiCSupmcBQAvW4+g3Ha3tWQ0LQitc1OTKvCPonPskHdMfP53 siyBw3mJ31rnzUJ8OovjZwUootOaXII8+nLYhRmYVfzkaAZa2H8rE+R2iDP5cliU mhjQG6IO1a2+KdVciC5YlUEOCC/4AXDREGXcghX95YEL63OH5V6DmDPjXexTqIKb UFmC4eK+LP/r7j5hQr3Mi3WbUOqQdg6CYDBO/2zN6GxBbSVOxzR/rRWOw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrleeggdduvddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 4621AB60089; Wed, 9 Aug 2023 14:26:38 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-624-g7714e4406d-fm-20230801.001-g7714e440 Mime-Version: 1.0 Message-Id: In-Reply-To: References: <20230809130530.1913368-1-arnd@kernel.org> <20230809130530.1913368-2-arnd@kernel.org> Date: Wed, 09 Aug 2023 20:26:17 +0200 From: "Arnd Bergmann" To: "Daniel Sneddon" , "Arnd Bergmann" , x86@kernel.org, "Thomas Gleixner" , "Ingo Molnar" , "Borislav Petkov" , "Dave Hansen" , "Sean Christopherson" , "Paolo Bonzini" , "Josh Poimboeuf" Cc: "H. Peter Anvin" , "Peter Zijlstra" , "Maxim Levitsky" , "Michal Luczaj" , linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH 2/2] x86: move gds_ucode_mitigated() declaration to header Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 9, 2023, at 18:54, Daniel Sneddon wrote: > HI Arnd, > > On 8/9/23 06:05, Arnd Bergmann wrote: >> From: Arnd Bergmann >> >> The declaration got placed in the .c file of the caller, but that >> causes a warning for the definition: >> >> arch/x86/kernel/cpu/bugs.c:682:6: error: no previous prototype for 'gds_ucode_mitigated' [-Werror=missing-prototypes] > > When I build with gcc 9.4 and the x86_64_defconfig I don't see this warning even > without this patch. I'm curious why you're seeing it and I'm not. Any ideas? The warning is currently disabled by default, unless you build with 'make W=1'. I'm in the process of getting my last patches out to change this so the warning is enabled by default though, so I was phrasing this based on the future behavior. Sorry if this was confusing. Arnd