Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 May 2025 22:09:58 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 845b81cf9080 - main - LinuxKPI: 802.11: fix wiphy_info[_once]
Message-ID:  <202505042209.544M9wKD025161@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/src/commit/?id=845b81cf908002b14ac08ce8c42246720a5b30d9

commit 845b81cf908002b14ac08ce8c42246720a5b30d9
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-05-02 20:14:35 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2025-05-04 22:09:30 +0000

    LinuxKPI: 802.11: fix wiphy_info[_once]
    
    The dev field in wiphy is a pointer already; no need for &.
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      3 days
    Fixes:          ac1d519c01ca8
---
 sys/compat/linuxkpi/common/include/net/cfg80211.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/compat/linuxkpi/common/include/net/cfg80211.h b/sys/compat/linuxkpi/common/include/net/cfg80211.h
index 328563b4a125..aae60983f5f6 100644
--- a/sys/compat/linuxkpi/common/include/net/cfg80211.h
+++ b/sys/compat/linuxkpi/common/include/net/cfg80211.h
@@ -2281,9 +2281,9 @@ wiphy_delayed_work_cancel(struct wiphy *wiphy, struct wiphy_delayed_work *wdwk)
 #define	wiphy_err(_wiphy, _fmt, ...)					\
     dev_err((_wiphy)->dev, _fmt, __VA_ARGS__)
 #define	wiphy_info(wiphy, fmt, ...)					\
-    dev_info(&(wiphy)->dev, fmt, ##__VA_ARGS__)
+    dev_info((wiphy)->dev, fmt, ##__VA_ARGS__)
 #define	wiphy_info_once(wiphy, fmt, ...)				\
-    dev_info_once(&(wiphy)->dev, fmt, ##__VA_ARGS__)
+    dev_info_once((wiphy)->dev, fmt, ##__VA_ARGS__)
 
 #ifndef LINUXKPI_NET80211
 #define	ieee80211_channel		linuxkpi_ieee80211_channel



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