Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Sep 2024 03:24:20 GMT
From:      Kevin Bowling <kbowling@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 3167854b9d21 - main - ixgbe: remove circular dependency in ixgbe_mbx.h
Message-ID:  <202409200324.48K3OKZD068673@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/src/commit/?id=3167854b9d2188c4039239f741870e044b7507ac

commit 3167854b9d2188c4039239f741870e044b7507ac
Author:     Barbara Skobiej <barbara.skobiej@intel.com>
AuthorDate: 2024-09-20 03:22:35 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2024-09-20 03:22:35 +0000

    ixgbe: remove circular dependency in ixgbe_mbx.h
    
    DPDK commit message
    
    net/ixgbe/base: remove circular header dependency
    Including one header file in second header file should be avoided, so
    fix it by forward declaring the struct instead.
    
    Signed-off-by: Barbara Skobiej <barbara.skobiej@intel.com>
    
    Obtained from:  DPDK (0bc2af5)
    MFC after:      1 week
---
 sys/dev/ixgbe/ixgbe_mbx.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/ixgbe/ixgbe_mbx.h b/sys/dev/ixgbe/ixgbe_mbx.h
index 7a982ce89f93..3a9bd34a137f 100644
--- a/sys/dev/ixgbe/ixgbe_mbx.h
+++ b/sys/dev/ixgbe/ixgbe_mbx.h
@@ -35,7 +35,7 @@
 #ifndef _IXGBE_MBX_H_
 #define _IXGBE_MBX_H_
 
-#include "ixgbe_type.h"
+struct ixgbe_hw;
 
 struct ixgbe_mbx_operations {
 	void (*init_params)(struct ixgbe_hw *hw);



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