Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Nov 2023 16:38:32 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 2dd2dd2f25b6 - stable/13 - iwlwifi: local namespace change for sysctl
Message-ID:  <202311291638.3ATGcWNt046110@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=2dd2dd2f25b6a8868b541442c035dffd99dc0ef0

commit 2dd2dd2f25b6a8868b541442c035dffd99dc0ef0
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2023-09-21 22:05:02 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2023-11-29 16:36:09 +0000

    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)
---
 sys/contrib/dev/iwlwifi/pcie/drv.c | 3 +++
 1 file changed, 3 insertions(+)

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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202311291638.3ATGcWNt046110>