diff mbox

[07/21] header: add module_param_hw_array()

Message ID 20170821222817.17376-8-hauke@hauke-m.de (mailing list archive)
State Accepted
Headers show

Commit Message

Hauke Mehrtens Aug. 21, 2017, 10:28 p.m. UTC
This macro is used for some module parameters.

This hwtype was newly introduced for module parameters in kernel 4.12,
just ignore it on older kernel versions.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 backport/backport-include/linux/moduleparam.h | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Johannes Berg Sept. 6, 2017, 3 p.m. UTC | #1
Applied 3-7.

johannes
--
To unsubscribe from this list: send the line "unsubscribe backports" in
diff mbox

Patch

diff --git a/backport/backport-include/linux/moduleparam.h b/backport/backport-include/linux/moduleparam.h
index 1c7dfad4..9a8e03b5 100644
--- a/backport/backport-include/linux/moduleparam.h
+++ b/backport/backport-include/linux/moduleparam.h
@@ -36,4 +36,9 @@  extern int param_get_ullong(char *buffer, const struct kernel_param *kp);
 #define param_check_ullong(name, p) __param_check(name, p, unsigned long long)
 #endif
 
+#if LINUX_VERSION_IS_LESS(4,12,0)
+#define module_param_hw_array(name, type, hwtype, nump, perm) \
+	module_param_array(name, type, nump, perm)
+#endif
+
 #endif /* __BACKPORT_LINUX_MODULEPARAM_H */