Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp142362rwl; Wed, 9 Aug 2023 12:13:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHEIuRNr8Nj2qNndinWoXcNXnU7RvPrJCBZQzW94kPnQleMxZv0GwKoCZ0BpbN3yBmS8Gxt X-Received: by 2002:a2e:8455:0:b0:2b6:da66:2d69 with SMTP id u21-20020a2e8455000000b002b6da662d69mr81439ljh.28.1691608393317; Wed, 09 Aug 2023 12:13:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691608393; cv=none; d=google.com; s=arc-20160816; b=b6PeiU0/vxgeSHZ5ij3T0OBfGUd6/EGiDXICu8e4/k8XMY1yF7JfhbBDDkFGbpEIJO VFjstuUXzvIk9N+7yOgBQsdSnV49aT2hfKatbG/t2SXwrPi1sbrGPm3JOMEqHl/d290J xCON1LBjIgo911fsfN4DUaANhusfhMqTyU/nWmm4Fa+73objo0Mx9l0NNdV2oVaAvrli MlVCK93PEGtuqtiWTprS0s+846Hp6COgWAmS3cl5NnO5SP29Ke/0x/rKka8g8HRQXuBZ qgDrlx1eGdHliMKS148E36hilmWb12y/qZIqT5gC53mLm2WSJylWb24wCynqAZndCxoN KEgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=m6snSsV3b2w3N50w9jHxN8MzpisPzglFSj7VxHNDhZ4=; fh=KL1BHWd9fjKQ0dpp92ka5cJ6c8Yco9f2PjIca6g096A=; b=FltKOxGQFieXFMAbZoJfjQs0FU5aNdKi4KFEDrBzaTHuzZM1aMLxY0BFphX72mRG4M WCtCu1SxCZJNVYRjXWVXYke7sIk2dldoRzHPol4ygCyqXF14geeWvM1KHohNAmqs6htP /BrNVed3s6aSq/6jGghci7kXFG1oiYXDbFkIhkbIyDhl1U/DCqiymoi8J5XUzyxNrPxL MrHdi1Usy8Kewo7lRTzqFGodA/GiXnrqJtk9nstwF9kzt3w+ATk9X8ItFRaTOydfjGaD rBk8iK5HI51sII7YtMU8amb2RRtVB7VJqJJpBr12ROt9RYMgGg8bDuo9R9bRGYFU0b2Z e9hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ITuPxZkK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j1-20020a170906278100b0099bc91d70cdsi8873610ejc.545.2023.08.09.12.12.49; Wed, 09 Aug 2023 12:13:13 -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=@intel.com header.s=Intel header.b=ITuPxZkK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231538AbjHIQym (ORCPT + 99 others); Wed, 9 Aug 2023 12:54:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbjHIQyl (ORCPT ); Wed, 9 Aug 2023 12:54:41 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D04DA1FCC; Wed, 9 Aug 2023 09:54:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691600080; x=1723136080; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=cWd+WJtraePHa8yoIsytNwHvyearb/8mHjcRzWKS4Cw=; b=ITuPxZkKcJ45A3mH1pQkDyE7xXVsK/qm699VtHwJlmgQHsZVofx9nNgG Yg6WhDS3PVELvr7dOnFb7fLNQT68gWJuMm6HxK/w3ls7xwrdO5SU0L0tx hShZFU9CDt3dOtuKYF8fQQdmi/bk43xLrV3ZVl+yskG6YqZB2ADeFIIbx IlsOzjWX4Y9v5xBbqXUter5tftS50EbWUcN9X75kTq8qpU9Uw4eFAgYMa QsfKOOt/SG0TyHd3LCuL3sr01XJzg8T5fbaNW3zKuYACCCuhPHSMfhMuy rm4L8CmR03f77b4mHXy2B86OcuQrhV0exL6JZKIwc0ZchuRooBwm/afqO g==; X-IronPort-AV: E=McAfee;i="6600,9927,10797"; a="435065794" X-IronPort-AV: E=Sophos;i="6.01,159,1684825200"; d="scan'208";a="435065794" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Aug 2023 09:54:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10797"; a="681752880" X-IronPort-AV: E=Sophos;i="6.01,159,1684825200"; d="scan'208";a="681752880" Received: from sakkired-mobl1.amr.corp.intel.com (HELO [10.212.9.77]) ([10.212.9.77]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Aug 2023 09:54:38 -0700 Message-ID: Date: Wed, 9 Aug 2023 09:54:34 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH 2/2] x86: move gds_ucode_mitigated() declaration to header Content-Language: en-US To: Arnd Bergmann , x86@kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , Sean Christopherson , Paolo Bonzini , Josh Poimboeuf Cc: Arnd Bergmann , "H. Peter Anvin" , "Peter Zijlstra (Intel)" , Maxim Levitsky , Michal Luczaj , linux-kernel@vger.kernel.org, kvm@vger.kernel.org References: <20230809130530.1913368-1-arnd@kernel.org> <20230809130530.1913368-2-arnd@kernel.org> From: Daniel Sneddon In-Reply-To: <20230809130530.1913368-2-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,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 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? Thanks, Dan