EDAC: Remove unused struct members
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Tue, 13 Feb 2024 11:20:49 +0000 (12:20 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 27 Mar 2024 17:26:58 +0000 (18:26 +0100)
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>
drivers/edac/edac_device.h
drivers/edac/edac_pci.h

index 55be019c12caae9ca451a7d0c0cbec42b4d86771..034711d71ebf63de1300283d4f49c2b7f683fa50 100644 (file)
@@ -22,7 +22,6 @@
 #ifndef _EDAC_DEVICE_H_
 #define _EDAC_DEVICE_H_
 
-#include <linux/completion.h>
 #include <linux/device.h>
 #include <linux/edac.h>
 #include <linux/kobject.h>
@@ -191,8 +190,6 @@ struct edac_device_ctl_info {
 
        unsigned long start_time;       /* edac_device load start time (jiffies) */
 
-       struct completion removal_complete;
-
        /* sysfs top name under 'edac' directory
         * and instance name:
         *      cpu/cpu0/...
index 5175f5724cfa5c304aea1cfae4952711a9393288..3f47cd9b2b036be382b0bba148b4d0f4fb91080c 100644 (file)
@@ -22,7 +22,6 @@
 #ifndef _EDAC_PCI_H_
 #define _EDAC_PCI_H_
 
-#include <linux/completion.h>
 #include <linux/device.h>
 #include <linux/edac.h>
 #include <linux/kobject.h>
@@ -48,8 +47,6 @@ struct edac_pci_ctl_info {
 
        int pci_idx;
 
-       struct bus_type *edac_subsys;   /* pointer to subsystem */
-
        /* the internal state of this controller instance */
        int op_state;
        /* work struct for this instance */
@@ -72,8 +69,6 @@ struct edac_pci_ctl_info {
 
        unsigned long start_time;       /* edac_pci load start time (jiffies) */
 
-       struct completion complete;
-
        /* sysfs top name under 'edac' directory
         * and instance name:
         *      cpu/cpu0/...