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-11-29 16:36:09 +0000
commit2dd2dd2f25b6a8868b541442c035dffd99dc0ef0 (patch)
tree1256d87a8fba743026b169704f6e32037bc7bfad
parent3d97482b9bcff74038dce1d56e410b38f0ae3ca4 (diff)
downloadsrc-2dd2dd2f25b6a8868b541442c035dffd99dc0ef0.tar.gz
src-2dd2dd2f25b6a8868b541442c035dffd99dc0ef0.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 (cherry picked from commit 0a22677bce28bc9ad39f219b726b5791852d84ba)
-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>