diff options
author | Johannes Berg <johannes.berg@intel.com> | 2017-09-08 13:13:20 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-09-08 13:25:31 +0200 |
commit | 8de4a835ebf57eabe0166cb41d4f61fb52b9fb80 (patch) | |
tree | 728a86e66c77a45acf8c01567553079d41a2e174 | |
parent | 8964c02546124f949cb9780c16ccc5e694be1171 (diff) |
change protection of module_param_hw_array
Some (distro) kernels backported this, so simply protect the
backport definition with #ifndef.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r-- | backport/backport-include/linux/moduleparam.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backport/backport-include/linux/moduleparam.h b/backport/backport-include/linux/moduleparam.h index 9a8e03b5..914baadc 100644 --- a/backport/backport-include/linux/moduleparam.h +++ b/backport/backport-include/linux/moduleparam.h @@ -36,7 +36,7 @@ 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) +#ifndef module_param_hw_array #define module_param_hw_array(name, type, hwtype, nump, perm) \ module_param_array(name, type, nump, perm) #endif |