[PATCH 23/74] backports: add DMI_OEM_STRING for older kernels
Johannes Berg <[email protected]> Fri, 24 May 2024 19:07:35 +0200
| Newsgroups | org.kernel.vger.backports |
|---|---|
| Message-ID | <20240524190907.e82b195cfd2f.I56742f3d6a096fd6c246fdf341af68b0962bdb90@changeid> |
From: Gregory Greenman <[email protected]> Signed-off-by: Gregory Greenman <[email protected]> Signed-off-by: Johannes Berg <[email protected]> --- backport/backport-include/linux/mod_devicetable.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backport/backport-include/linux/mod_devicetable.h b/backport/backport-include/linux/mod_devicetable.h index fc9beedb2d8d..07d66a6ba6ae 100644 --- a/backport/backport-include/linux/mod_devicetable.h +++ b/backport/backport-include/linux/mod_devicetable.h @@ -29,4 +29,8 @@ struct mhi_device_id { }; #endif +#if LINUX_VERSION_IS_LESS(4,17,0) +#define DMI_OEM_STRING (DMI_STRING_MAX + 1) +#endif /* < 4.17.0 */ + #endif /* __BACKPORT_MOD_DEVICETABLE_H */ -- 2.45.1