Skip to contentSkip to conversation

cpu/speculation: Add prototype for cpu_show_srbds

PATCH Applied Guenter Roeck 3 participants 3 messages Jun 17, 2020 – Jun 22, 2020 CPU hotplug

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpu/speculation: Add prototype for cpu_show_srbds

0-day is not happy that there is no prototype for cpu_show_srbds().

drivers/base/cpu.c:565:16: error:
no previous prototype for 'cpu_show_srbds'

Fixes 7e5b3c267d25 ("x86/speculation: Add Special Register Buffer Data Sampling (SRBDS) mitigation")
---
 include/linux/cpu.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/cpu.h +1 -0
index 52692587f7fe..8aa84c052fdf 100644
@@ -64,6 +64,7 @@ extern ssize_t cpu_show_tsx_async_abort(struct device *dev,
 					char *buf);
 extern ssize_t cpu_show_itlb_multihit(struct device *dev,
 				      struct device_attribute *attr, char *buf);
+extern ssize_t cpu_show_srbds(struct device *dev, struct device_attribute *attr, char *buf);
 
 extern __printf(4, 5)
 struct device *cpu_device_create(struct device *parent, void *drvdata,
Signature · 1 line
2.17.1
merge bot Applied
#1 lore raw

[tip: x86/cleanups] cpu/speculation: Add prototype for cpu_show_srbds()

The following commit has been merged into the x86/cleanups branch of tip:

The following commit has been merged into the x86/cleanups branch of tip:

Commit-ID:     2accfa69050c2a0d6fc6106f609208b3e9622b26
Gitweb:        https://git.kernel.org/tip/2accfa69050c2a0d6fc6106f609208b3e9622b26
Author:        Guenter Roeck <[email protected]>
AuthorDate:    Wed, 17 Jun 2020 07:14:10 -07:00
Committer:     Borislav Petkov <[email protected]>
CommitterDate: Wed, 17 Jun 2020 17:28:08 +02:00

cpu/speculation: Add prototype for cpu_show_srbds()

0-day is not happy that there is no prototype for cpu_show_srbds():

drivers/base/cpu.c:565:16: error: no previous prototype for 'cpu_show_srbds'

Fixes 7e5b3c267d25 ("x86/speculation: Add Special Register Buffer Data Sampling (SRBDS) mitigation")
---
 include/linux/cpu.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/cpu.h +1 -0
index 5269258..8aa84c0 100644
@@ -64,6 +64,7 @@ extern ssize_t cpu_show_tsx_async_abort(struct device *dev,
 					char *buf);
 extern ssize_t cpu_show_itlb_multihit(struct device *dev,
 				      struct device_attribute *attr, char *buf);
+extern ssize_t cpu_show_srbds(struct device *dev, struct device_attribute *attr, char *buf);
 
 extern __printf(4, 5)
 struct device *cpu_device_create(struct device *parent, void *drvdata,
Reviewed-by on v1 1/1
#2 lore raw
In reply to Guenter Roeck

ack

--mark

Quoted 27 lines · Guenter Roeck

0-day is not happy that there is no prototype for cpu_show_srbds().

drivers/base/cpu.c:565:16: error:
no previous prototype for 'cpu_show_srbds'

Fixes 7e5b3c267d25 ("x86/speculation: Add Special Register Buffer Data Sampling (SRBDS) mitigation")
---
 include/linux/cpu.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/cpu.h +1 -0
index 52692587f7fe..8aa84c052fdf 100644
@@ -64,6 +64,7 @@ extern ssize_t cpu_show_tsx_async_abort(struct device *dev,
 					char *buf);
 extern ssize_t cpu_show_itlb_multihit(struct device *dev,
 				      struct device_attribute *attr, char *buf);
+extern ssize_t cpu_show_srbds(struct device *dev, struct device_attribute *attr, char *buf);
 
 extern __printf(4, 5)
 struct device *cpu_device_create(struct device *parent, void *drvdata,
Signature · 1 line
2.17.1