Commit 3667a35a authored by Jiri Slaby (SUSE)'s avatar Jiri Slaby (SUSE) Committed by Borislav Petkov (AMD)

EDAC/device: Remove edac_dev_sysfs_block_attribute::{block,value}

They're unused. And they were never used since their addition in

  fd309a9d ("drivers/edac: fix leaf sysfs attribute")

Drop it.

Found by https://github.com/jirislaby/clang-struct.
Signed-off-by: default avatarJiri Slaby (SUSE) <jirislaby@kernel.org>
Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20240213112051.27715-3-jirislaby@kernel.orgSigned-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
parent f5ca0d51
...@@ -162,8 +162,6 @@ edac_device_alloc_ctl_info(unsigned pvt_sz, char *dev_name, unsigned nr_instance ...@@ -162,8 +162,6 @@ edac_device_alloc_ctl_info(unsigned pvt_sz, char *dev_name, unsigned nr_instance
attrib->show = attrib_spec[attr].show; attrib->show = attrib_spec[attr].show;
attrib->store = attrib_spec[attr].store; attrib->store = attrib_spec[attr].store;
attrib->block = blk; /* up link */
edac_dbg(4, "alloc-attrib=%p attrib_name='%s' attrib-spec=%p spec-name=%s\n", edac_dbg(4, "alloc-attrib=%p attrib_name='%s' attrib-spec=%p spec-name=%s\n",
attrib, attrib->attr.name, attrib, attrib->attr.name,
&attrib_spec[attr], &attrib_spec[attr],
......
...@@ -99,18 +99,12 @@ struct edac_dev_sysfs_attribute { ...@@ -99,18 +99,12 @@ struct edac_dev_sysfs_attribute {
* can have an array of the following. The show and store functions * can have an array of the following. The show and store functions
* will be filled in with the show/store function in the * will be filled in with the show/store function in the
* low level driver. * low level driver.
*
* The 'value' field will be the actual value field used for
* counting
*/ */
struct edac_dev_sysfs_block_attribute { struct edac_dev_sysfs_block_attribute {
struct attribute attr; struct attribute attr;
ssize_t (*show)(struct kobject *, struct attribute *, char *); ssize_t (*show)(struct kobject *, struct attribute *, char *);
ssize_t (*store)(struct kobject *, struct attribute *, ssize_t (*store)(struct kobject *, struct attribute *,
const char *, size_t); const char *, size_t);
struct edac_device_block *block;
unsigned int value;
}; };
/* device block control structure */ /* device block control structure */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment