aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2023-09-21 22:05:02 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2023-09-21 22:09:00 +0000
commit0a22677bce28bc9ad39f219b726b5791852d84ba (patch)
tree6e3699fbe191f932e7d90372bfd56d3db508a3cb
parent242f314842767c36eaaacca9f433c80d34def39c (diff)
downloadsrc-0a22677bce28bc9ad39f219b726b5791852d84ba.tar.gz
src-0a22677bce28bc9ad39f219b726b5791852d84ba.zip
iwlwifi: local namespace change for sysctl
In order for the FreeBSD-specific sysctl (which gives us a full list of PCI device IDs/names/and firmware prefixes) to be in the proper namespace add a LINUXKPI_PARAM_PREFIX definition to the file as well. The sysctl can now be used as: sysctl -n compat.linuxkpi.iwlwifi_pci_ids_name Sponsored by: The FreeBSD Foundation MFC after: 3 days
-rw-r--r--sys/contrib/dev/iwlwifi/pcie/drv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/contrib/dev/iwlwifi/pcie/drv.c b/sys/contrib/dev/iwlwifi/pcie/drv.c
index 3bde223e3f9c..0aab7a1fdc8e 100644
--- a/sys/contrib/dev/iwlwifi/pcie/drv.c
+++ b/sys/contrib/dev/iwlwifi/pcie/drv.c
@@ -4,6 +4,9 @@
* Copyright (C) 2013-2015 Intel Mobile Communications GmbH
* Copyright (C) 2016-2017 Intel Deutschland GmbH
*/
+#if defined(__FreeBSD__)
+#define LINUXKPI_PARAM_PREFIX iwlwifi_
+#endif
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h>