Commit 9679fec2 authored by Jean Delvare's avatar Jean Delvare Committed by Alexander Gordeev

s390/pci: Drop unneeded reference to CONFIG_DMI

The S/390 architecture doesn't support SMBIOS, so CONFIG_DMI will
never be defined there. So we can simply omit these preprocessing
directives and speed up the build a bit.
Signed-off-by: default avatarJean Delvare <jdelvare@suse.de>
Cc: Niklas Schnelle <schnelle@linux.ibm.com>
Cc: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Acked-by: default avatarNiklas Schnelle <schnelle@linux.ibm.com>
Link: https://lore.kernel.org/r/20240423162724.3966265a@endymion.delvareSigned-off-by: default avatarAlexander Gordeev <agordeev@linux.ibm.com>
parent fe742c08
...@@ -172,7 +172,6 @@ static ssize_t uid_is_unique_show(struct device *dev, ...@@ -172,7 +172,6 @@ static ssize_t uid_is_unique_show(struct device *dev,
} }
static DEVICE_ATTR_RO(uid_is_unique); static DEVICE_ATTR_RO(uid_is_unique);
#ifndef CONFIG_DMI
/* analogous to smbios index */ /* analogous to smbios index */
static ssize_t index_show(struct device *dev, static ssize_t index_show(struct device *dev,
struct device_attribute *attr, char *buf) struct device_attribute *attr, char *buf)
...@@ -202,7 +201,6 @@ static struct attribute_group zpci_ident_attr_group = { ...@@ -202,7 +201,6 @@ static struct attribute_group zpci_ident_attr_group = {
.attrs = zpci_ident_attrs, .attrs = zpci_ident_attrs,
.is_visible = zpci_index_is_visible, .is_visible = zpci_index_is_visible,
}; };
#endif
static struct bin_attribute *zpci_bin_attrs[] = { static struct bin_attribute *zpci_bin_attrs[] = {
&bin_attr_util_string, &bin_attr_util_string,
...@@ -245,8 +243,6 @@ static struct attribute_group pfip_attr_group = { ...@@ -245,8 +243,6 @@ static struct attribute_group pfip_attr_group = {
const struct attribute_group *zpci_attr_groups[] = { const struct attribute_group *zpci_attr_groups[] = {
&zpci_attr_group, &zpci_attr_group,
&pfip_attr_group, &pfip_attr_group,
#ifndef CONFIG_DMI
&zpci_ident_attr_group, &zpci_ident_attr_group,
#endif
NULL, NULL,
}; };
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