Skip to content

Commit c8d3708

Browse files
Jiri Slaby (SUSE)bp3tk0v
authored andcommitted
EDAC: Remove unused struct members
Remove unused - edac_pci_ctl_info::edac_subsys - edac_pci_ctl_info::complete - edac_device_ctl_info::removal_complete members. Found by https://github.com/jirislaby/clang-struct. [ bp: Squash three almost identical trivial patches into one. ] Signed-off-by: Jiri Slaby (SUSE) <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Borislav Petkov (AMD) <[email protected]>
1 parent 48bc886 commit c8d3708

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

drivers/edac/edac_device.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#ifndef _EDAC_DEVICE_H_
2323
#define _EDAC_DEVICE_H_
2424

25-
#include <linux/completion.h>
2625
#include <linux/device.h>
2726
#include <linux/edac.h>
2827
#include <linux/kobject.h>
@@ -191,8 +190,6 @@ struct edac_device_ctl_info {
191190

192191
unsigned long start_time; /* edac_device load start time (jiffies) */
193192

194-
struct completion removal_complete;
195-
196193
/* sysfs top name under 'edac' directory
197194
* and instance name:
198195
* cpu/cpu0/...

drivers/edac/edac_pci.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#ifndef _EDAC_PCI_H_
2323
#define _EDAC_PCI_H_
2424

25-
#include <linux/completion.h>
2625
#include <linux/device.h>
2726
#include <linux/edac.h>
2827
#include <linux/kobject.h>
@@ -48,8 +47,6 @@ struct edac_pci_ctl_info {
4847

4948
int pci_idx;
5049

51-
struct bus_type *edac_subsys; /* pointer to subsystem */
52-
5350
/* the internal state of this controller instance */
5451
int op_state;
5552
/* work struct for this instance */
@@ -72,8 +69,6 @@ struct edac_pci_ctl_info {
7269

7370
unsigned long start_time; /* edac_pci load start time (jiffies) */
7471

75-
struct completion complete;
76-
7772
/* sysfs top name under 'edac' directory
7873
* and instance name:
7974
* cpu/cpu0/...

0 commit comments

Comments
 (0)