staging: rtl8192e: Fix conflicting types error with net_device.
PATCH 1/1 staging: rtl8192e: Fix conflicting types error with net_device.
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 <[email protected]>
Reported-by kernel test robot <[email protected]>
--- drivers/staging/rtl8192e/rtl8192e/rtl_cam.h | 2 ++ drivers/staging/rtl8192e/rtl8192e/rtl_pci.h | 2 ++ 2 files changed, 4 insertions(+)
drivers/staging/rtl8192e/rtl8192e/rtl_cam.h +2 -0
@@ -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,
drivers/staging/rtl8192e/rtl8192e/rtl_pci.h +2 -0
@@ -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
Signature · 1 line
2.39.2
Greg Kroah-Hartman
maintainerQuoted 6 lines · Teddy Engel
Add a pre-declaration of struct
net_deviceso the compiler is able to usertl_pci.h/rtl_cam.h.Signed-off-by Teddy Engel <[email protected]>Reported-by kernel test robot <[email protected]>
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