Skip to content

Commit 9679fec

Browse files
jdelvareAlexander Gordeev
authored andcommitted
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: Jean Delvare <jdelvare@suse.de> Cc: Niklas Schnelle <schnelle@linux.ibm.com> Cc: Gerald Schaefer <gerald.schaefer@linux.ibm.com> Acked-by: Niklas Schnelle <schnelle@linux.ibm.com> Link: https://lore.kernel.org/r/20240423162724.3966265a@endymion.delvare Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
1 parent fe742c0 commit 9679fec

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

arch/s390/pci/pci_sysfs.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ static ssize_t uid_is_unique_show(struct device *dev,
172172
}
173173
static DEVICE_ATTR_RO(uid_is_unique);
174174

175-
#ifndef CONFIG_DMI
176175
/* analogous to smbios index */
177176
static ssize_t index_show(struct device *dev,
178177
struct device_attribute *attr, char *buf)
@@ -202,7 +201,6 @@ static struct attribute_group zpci_ident_attr_group = {
202201
.attrs = zpci_ident_attrs,
203202
.is_visible = zpci_index_is_visible,
204203
};
205-
#endif
206204

207205
static struct bin_attribute *zpci_bin_attrs[] = {
208206
&bin_attr_util_string,
@@ -245,8 +243,6 @@ static struct attribute_group pfip_attr_group = {
245243
const struct attribute_group *zpci_attr_groups[] = {
246244
&zpci_attr_group,
247245
&pfip_attr_group,
248-
#ifndef CONFIG_DMI
249246
&zpci_ident_attr_group,
250-
#endif
251247
NULL,
252248
};

0 commit comments

Comments
 (0)