Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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) <jirislaby@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20240213112051.27715-6-jirislaby@kernel.org
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>

authored by

Jiri Slaby (SUSE) and committed by
Borislav Petkov (AMD)
c8d37084 48bc8869

-8
-3
drivers/edac/edac_device.h
··· 22 22 #ifndef _EDAC_DEVICE_H_ 23 23 #define _EDAC_DEVICE_H_ 24 24 25 - #include <linux/completion.h> 26 25 #include <linux/device.h> 27 26 #include <linux/edac.h> 28 27 #include <linux/kobject.h> ··· 189 190 void *pvt_info; /* pointer to 'private driver' info */ 190 191 191 192 unsigned long start_time; /* edac_device load start time (jiffies) */ 192 - 193 - struct completion removal_complete; 194 193 195 194 /* sysfs top name under 'edac' directory 196 195 * and instance name:
-5
drivers/edac/edac_pci.h
··· 22 22 #ifndef _EDAC_PCI_H_ 23 23 #define _EDAC_PCI_H_ 24 24 25 - #include <linux/completion.h> 26 25 #include <linux/device.h> 27 26 #include <linux/edac.h> 28 27 #include <linux/kobject.h> ··· 47 48 48 49 int pci_idx; 49 50 50 - struct bus_type *edac_subsys; /* pointer to subsystem */ 51 - 52 51 /* the internal state of this controller instance */ 53 52 int op_state; 54 53 /* work struct for this instance */ ··· 68 71 void *pvt_info; /* pointer to 'private driver' info */ 69 72 70 73 unsigned long start_time; /* edac_pci load start time (jiffies) */ 71 - 72 - struct completion complete; 73 74 74 75 /* sysfs top name under 'edac' directory 75 76 * and instance name: