@@ -509,7 +509,7 @@ static void __init cpu_dev_register_generic(void)
509
509
}
510
510
511
511
#ifdef CONFIG_GENERIC_CPU_VULNERABILITIES
512
- ssize_t cpu_show_not_affected (struct device * dev ,
512
+ static ssize_t cpu_show_not_affected (struct device * dev ,
513
513
struct device_attribute * attr , char * buf )
514
514
{
515
515
return sysfs_emit (buf , "Not affected\n" );
@@ -534,12 +534,6 @@ CPU_SHOW_VULN_FALLBACK(retbleed);
534
534
CPU_SHOW_VULN_FALLBACK (spec_rstack_overflow );
535
535
CPU_SHOW_VULN_FALLBACK (gather_data_sampling );
536
536
537
- ssize_t __weak cpu_show_gds (struct device * dev ,
538
- struct device_attribute * attr , char * buf )
539
- {
540
- return sysfs_emit (buf , "Not affected\n" );
541
- }
542
-
543
537
static DEVICE_ATTR (meltdown , 0444 , cpu_show_meltdown , NULL );
544
538
static DEVICE_ATTR (spectre_v1 , 0444 , cpu_show_spectre_v1 , NULL );
545
539
static DEVICE_ATTR (spectre_v2 , 0444 , cpu_show_spectre_v2 , NULL );
@@ -552,7 +546,7 @@ static DEVICE_ATTR(srbds, 0444, cpu_show_srbds, NULL);
552
546
static DEVICE_ATTR (mmio_stale_data , 0444 , cpu_show_mmio_stale_data , NULL );
553
547
static DEVICE_ATTR (retbleed , 0444 , cpu_show_retbleed , NULL );
554
548
static DEVICE_ATTR (spec_rstack_overflow , 0444 , cpu_show_spec_rstack_overflow , NULL );
555
- static DEVICE_ATTR (gather_data_sampling , 0444 , cpu_show_gds , NULL );
549
+ static DEVICE_ATTR (gather_data_sampling , 0444 , cpu_show_gather_data_sampling , NULL );
556
550
557
551
static struct attribute * cpu_root_vulnerabilities_attrs [] = {
558
552
& dev_attr_meltdown .attr ,
0 commit comments