aboutsummaryrefslogtreecommitdiffstats
path: root/module/icp/os
diff options
context:
space:
mode:
authorMark Wright <[email protected]>2017-11-29 10:33:48 +1100
committerBrian Behlendorf <[email protected]>2017-11-28 17:33:48 -0600
commit56d8d8ace4724bde16145be25b75d8f551961813 (patch)
treea8b73d0e193fa5a6c649ff6318466a7fc29c932c /module/icp/os
parent48ac22d8559313b2a33a80b9690aeea9acb9976c (diff)
Linux 4.14 compat: CONFIG_GCC_PLUGIN_RANDSTRUCT
Fix build errors with gcc 7.2.0 on Gentoo with kernel 4.14 built with CONFIG_GCC_PLUGIN_RANDSTRUCT=y such as: module/nvpair/nvpair.c:2810:2:error: positional initialization of field in ?struct? declared with 'designated_init' attribute [-Werror=designated-init] nvs_native_nvlist, ^~~~~~~~~~~~~~~~~ Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Mark Wright <[email protected]> Closes #5390 Closes #6903
Diffstat (limited to 'module/icp/os')
-rw-r--r--module/icp/os/modconf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/module/icp/os/modconf.c b/module/icp/os/modconf.c
index eb50767b7..3743416ed 100644
--- a/module/icp/os/modconf.c
+++ b/module/icp/os/modconf.c
@@ -36,7 +36,9 @@ static int mod_infonull(void *, struct modlinkage *, int *);
* Cryptographic Modules
*/
struct mod_ops mod_cryptoops = {
- mod_null, mod_null, mod_infonull
+ .modm_install = mod_null,
+ .modm_remove = mod_null,
+ .modm_info = mod_infonull
};
/*