Message ID | 20170821222817.17376-8-hauke@hauke-m.de (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Applied 3-7. johannes -- To unsubscribe from this list: send the line "unsubscribe backports" in
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 */
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(+)