* [PATCH] staging: rtl8192e: Fix conflicting types error with net_device.
@ 2024-06-25 12:56 Teddy Engel
2024-06-25 14:35 ` Greg Kroah-Hartman
0 siblings, 1 reply; 2+ messages in thread
From: Teddy Engel @ 2024-06-25 12:56 UTC (permalink / raw)
To: Greg Kroah-Hartman, oe-kbuild-all, devel; +Cc: Teddy Engel, kernel test robot
Add a pre-declaration of struct net_device so the compiler is able to
use rtl_pci.h / rtl_cam.h.
Signed-off-by: Teddy Engel <engel.teddy@gmail.com>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202406250858.L8rJMHQm-lkp@intel.com/
---
drivers/staging/rtl8192e/rtl8192e/rtl_cam.h | 2 ++
drivers/staging/rtl8192e/rtl8192e/rtl_pci.h | 2 ++
2 files changed, 4 insertions(+)
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_cam.h b/drivers/staging/rtl8192e/rtl8192e/rtl_cam.h
index 3a5635494385..9deffdf96072 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_cam.h
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_cam.h
@@ -12,6 +12,8 @@
#include <linux/types.h>
+struct net_device;
+
void rtl92e_cam_reset(struct net_device *dev);
void rtl92e_enable_hw_security_config(struct net_device *dev);
void rtl92e_set_key(struct net_device *dev, u8 EntryNo, u8 KeyIndex,
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_pci.h b/drivers/staging/rtl8192e/rtl8192e/rtl_pci.h
index c645775b2150..3e39c4835ac8 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_pci.h
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_pci.h
@@ -13,6 +13,8 @@
#include <linux/types.h>
#include <linux/pci.h>
+struct net_device;
+
bool rtl92e_check_adapter(struct pci_dev *pdev, struct net_device *dev);
#endif
--
2.39.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] staging: rtl8192e: Fix conflicting types error with net_device.
2024-06-25 12:56 [PATCH] staging: rtl8192e: Fix conflicting types error with net_device Teddy Engel
@ 2024-06-25 14:35 ` Greg Kroah-Hartman
0 siblings, 0 replies; 2+ messages in thread
From: Greg Kroah-Hartman @ 2024-06-25 14:35 UTC (permalink / raw)
To: Teddy Engel; +Cc: oe-kbuild-all, devel
On Tue, Jun 25, 2024 at 01:56:38PM +0100, Teddy Engel wrote:
> Add a pre-declaration of struct net_device so the compiler is able to
> use rtl_pci.h / rtl_cam.h.
>
> Signed-off-by: Teddy Engel <engel.teddy@gmail.com>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202406250858.L8rJMHQm-lkp@intel.com/
What commit id does this fix?
Also note, your mailing list address is wrong for staging stuff, you
need to cc: the public one before I can take this.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-06-25 14:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-25 12:56 [PATCH] staging: rtl8192e: Fix conflicting types error with net_device Teddy Engel
2024-06-25 14:35 ` Greg Kroah-Hartman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.