Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5813931rwb; Wed, 9 Aug 2023 09:24:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFIcJmoMQfbYBBYBT4csb9bf/uY9+wgFcUzKRr+QMKfg+kt3u/1861b4B8VWdrC+uz7bCLp X-Received: by 2002:a05:6a20:258c:b0:13e:8ce5:bed4 with SMTP id k12-20020a056a20258c00b0013e8ce5bed4mr3749342pzd.7.1691598297937; Wed, 09 Aug 2023 09:24:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691598297; cv=none; d=google.com; s=arc-20160816; b=KCosrNuCAxRkW/WHzTsower7ckZ6XwF1T//1CRYjDj57VdME4+3nhH8lkfORUtb608 ZBI8jH9qo//r/kpK17Kvc+DlUR41px4EieliG0NmVMLhSzlCZbUKbET+ICrDYld2N6rA Bzqxtsu5HOWXAblVUDjeEtDu34V+jF0eMF+dJKcYPZ5zf9sye7Rr2eZfA6PsHDzyXwpG CeZ46A2z+UFjwNM3U0C0l2OZ3H5WSC5E3L75CGQIumgqRkYjCL38Rg6EsMrtLlUxlg09 51K8r7f/v5201s8Am5SA0bXahZUZGlKJ3f81EuJKCX8nFQXLJdwiyxhDmtKQmI7ZYGau LPTA== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ckDZjcwddhqaU8PbIbv4sTbmw0xXY29UWEBn+HWtQY0=; fh=H+Rwj7BEptGtPsdfitarm3g+zDxrhLvG9Yn4iY5R+9M=; b=eLEic6V7+TIE/Ug6FnEv0V3GFLvbX60FX9n/NT6R2L+Gzz9ijzKwoGnZDYvvbmOkxn xojuAZrtEYNV9SZR38th7/lAx70xtGOtFN2qGqd1xHu6NMv9kM3BR9Gu94qG6eMvHCNe 0y5sI1QWT9r5ZrHugX7b+bDy0w1n1LIBdn/585VyPlhJg0U76QKoLfDA8hVksY4jwdgH Mxspj54buLgEA1ADc6z8Sl1LU/GG1DfItOMyIIXLMJ246oa5zFwClL7R4mkflqJRDIOv 3TWe9H7z0A15QDvWGynLRlsIs1MvD6Bssoib6yaqO3Rnudvfl4eiQFqHAY25oU/IYx+j QJ9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YW6Ug1Ow; 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 h28-20020a63575c000000b0055b635b788fsi6708611pgm.199.2023.08.09.09.24.44; Wed, 09 Aug 2023 09:24:57 -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=YW6Ug1Ow; 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 S233587AbjHIPqt (ORCPT + 99 others); Wed, 9 Aug 2023 11:46:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232667AbjHIPqt (ORCPT ); Wed, 9 Aug 2023 11:46:49 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A78202111 for ; Wed, 9 Aug 2023 08:46:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691596008; x=1723132008; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=ujARW7+TwgnCssPWqb49cF4kWewzTeUeqmp0ikcWG6s=; b=YW6Ug1OwM5/SRv3Vr7smq9DBcbP85UBUeN/ShLHIQNtwJrq50IgcKy1q isQKkuOgqy+7idToV7QMa2zDsPkUR22bVk0C6ZQq014/tvCt2z/fAOYvb HX4w0N8hBarkqSROMi6LVMQuedyybCPAdCF9CHoxqaIkIsoIkGdc91Ak0 pCJve3AEtFgaT0tfM4VigE8NesIZ/VfG+ueIDLnq82tjv1nmw8MZ3rEIX N0dLocYZfXNAZH7bb+DNBqF7r0vtkyBfYrN1h1VSYHtu+KYyHptVerJkV PM0w3oT7FlJrlc27Yahq6PltI0r8n0BnS0dQqRWQT0xfOyLZ9/nj/WwDj Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10797"; a="371145344" X-IronPort-AV: E=Sophos;i="6.01,159,1684825200"; d="scan'208";a="371145344" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Aug 2023 08:46:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10797"; a="761443446" X-IronPort-AV: E=Sophos;i="6.01,159,1684825200"; d="scan'208";a="761443446" Received: from sajohns2-mobl.amr.corp.intel.com (HELO [10.213.185.172]) ([10.213.185.172]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Aug 2023 08:46:47 -0700 Message-ID: Date: Wed, 9 Aug 2023 08:46:19 -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 1/2] x86/speculation: add cpu_show_gds() prototype To: Arnd Bergmann , x86@kernel.org, Thomas Gleixner , Peter Zijlstra , Josh Poimboeuf , Dave Hansen Cc: Borislav Petkov , Ingo Molnar , Arnd Bergmann , linux-kernel@vger.kernel.org References: <20230809130530.1913368-1-arnd@kernel.org> Content-Language: en-US From: Daniel Sneddon In-Reply-To: <20230809130530.1913368-1-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 On 8/9/23 06:04, Arnd Bergmann wrote: > From: Arnd Bergmann > > The newly added function has two definitions but no prototypes: > > drivers/base/cpu.c:605:16: error: no previous prototype for 'cpu_show_gds' [-Werror=missing-prototypes] > > Add a declaration next to the other ones for this file to avoid the > warning. > > Fixes: 8974eb588283b ("x86/speculation: Add Gather Data Sampling mitigation") > Signed-off-by: Arnd Bergmann > --- > include/linux/cpu.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/linux/cpu.h b/include/linux/cpu.h > index 9d43b734170d6..0abd60a7987b6 100644 > --- a/include/linux/cpu.h > +++ b/include/linux/cpu.h > @@ -73,6 +73,8 @@ extern ssize_t cpu_show_retbleed(struct device *dev, > struct device_attribute *attr, char *buf); > extern ssize_t cpu_show_spec_rstack_overflow(struct device *dev, > struct device_attribute *attr, char *buf); > +extern ssize_t cpu_show_gds(struct device *dev, > + struct device_attribute *attr, char *buf); > > extern __printf(4, 5) > struct device *cpu_device_create(struct device *parent, void *drvdata, Sorry I missed that. Shouldn't stable be CC'd here as well? Thanks, Dan