Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5588812rwb; Wed, 9 Aug 2023 06:31:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGRKZtndQ9ftUbYZzvP/wth/7e2tijEQQqT9V7tD5Yg691lXvZ5QtBdGpoXGEb9KVxx+NNp X-Received: by 2002:aa7:cb42:0:b0:521:a4bb:374f with SMTP id w2-20020aa7cb42000000b00521a4bb374fmr2806181edt.5.1691587904812; Wed, 09 Aug 2023 06:31:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691587904; cv=none; d=google.com; s=arc-20160816; b=FXzqL5n5YfM2BA8lM3KdqAyomt+0KrAdaR/7gi0vE3w0OCERK6K7TcE242Y7LtbucE /K0kM8qGR4fNBZdaiqNG9pctgSL6Ge52uNYzOvCOiGjbhzcfWxDstyyRjr+qdh+jjOnU niN/W+cEw03/T7ul1DXreJN4I7mC0RS5IH4EM3hbdiHXlJVB8xFcUl397MS8DOBwD1Qf aRfyX6tg5egcV85oyYY5RR8yZuEeL9YshtDB3oGXZuFLFRImEAf2dvst+I5WD8AVdOXa jSHlhVHFIFfOYnzGhK/UbvqgOQMTnI9p8Ky9iN68iP7uXpcfAdRYtusfmwA+g0e4CxeT 5/cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=wddt9ZmUm0kSxVQsjzaJFCPVLX61YK1B95vcCAEnDTU=; fh=ZXwcS4olMzxRehQZS9/nqjzGeirfZZLdDeWsT3aal54=; b=cMNuoTyEulVqp5w3Xu9VvcIyk6dCOB1b2oMdUMMX5UZnHvxWhBLfmjVQwlnWcum2pQ UZJmCO0THyroMoZf0WkJ225/RsYeXdhpC+U5vPFNfP+MkypqfYDdlHw7wDpkG2RhT98F ZmqxKaP3uCKWcUXFH7CVu1Chwl2G2zUUq5CJLHB5Os3Ql8+RXipoIJJ8miATP+Dw7F6F n2+++64JK8nL/nmmHhL7ehcUsFJiN3CevymXyKXyIcGwVJdcb3Q+IaKk6i11VnKqA0Ps CFfKciOlTczGDuWpFlh6z2ZmYxtF5N1p1SqxNhW0fHpd9wqrH6yUPmJJ1pdpd0uOYE0I HBdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=El283Dsh; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n8-20020aa7db48000000b005236eaf7fe8si222551edt.384.2023.08.09.06.31.18; Wed, 09 Aug 2023 06:31:44 -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=@kernel.org header.s=k20201202 header.b=El283Dsh; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232228AbjHINFn (ORCPT + 99 others); Wed, 9 Aug 2023 09:05:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230339AbjHINFm (ORCPT ); Wed, 9 Aug 2023 09:05:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B2A010C for ; Wed, 9 Aug 2023 06:05:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 17B1162234 for ; Wed, 9 Aug 2023 13:05:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4DDC0C433C8; Wed, 9 Aug 2023 13:05:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691586341; bh=/2+Rz/4Mvfb+BTdnPW9lmX19HjJ0G8O8R9zMJDuyBek=; h=From:To:Cc:Subject:Date:From; b=El283Dsh+ETqywhxKk2pJNZd4qRbnrQsW3Qq49zWUuI98/i7y8XBUnVuLJouYvyrC +XBRXtSDr4fFpupyR6h7WWO2KrqvX1yTm4UvhjIEONtQOlCpFKUsjNCQvs9IvgAi6m mhb2Q03/Pq/UDSIxwNDOPVurH8ccIIrkSMzBgR1Pmow9wRYzpBUd921YM2lLf70cOw c1B7Pxf0q/WuMMQX1C8OcGRb0LwMNrvmLPBppE7gFHz5NVKy915DFOja0gFIaBr4cz Hvno4r9X5XCNxgBd9HhYb82AXQUr8ptx8kfXK0WDk/3yt7cDdUphCIhFZp6XkHi2j6 HrMVLtVHU1Afw== From: Arnd Bergmann To: x86@kernel.org, Thomas Gleixner , Peter Zijlstra , Josh Poimboeuf , Dave Hansen , Daniel Sneddon Cc: Borislav Petkov , Ingo Molnar , Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH 1/2] x86/speculation: add cpu_show_gds() prototype Date: Wed, 9 Aug 2023 15:04:59 +0200 Message-Id: <20230809130530.1913368-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 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, -- 2.39.2