TX2 Compile error message

/home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/wireless/bcmdhd/wl_cfg80211.c: In function ‘wl_cfg80211_get_station’:
/home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/wireless/bcmdhd/wl_cfg80211.c:5200:3:

warning: passing argument 2 of ‘dhd_is_associated’ makes integer from pointer without a cast [enabled by default] fw_assoc_state = dhd_is_associated(dhd, NULL, &err);
^
In file included from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/wireless/bcmdhd/wl_cfg80211.c:45:0:
/home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/wireless/bcmdhd/dhd.h:776:13: note: expected ‘uint8’ but argument is of type ‘void *’
extern bool dhd_is_associated(dhd_pub_t *dhd, uint8 ifidx, int *retval);
^
/home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/wireless/bcmdhd/wl_cfg80211.c: At top level:

CC [M] drivers/net/ethernet/intel/ixgbe/ixgbe_main.o
In file included from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h:66:0,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.h:28,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe.h:45,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:52:
/home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_osdep.h:51:0: warning: “IOMEM” redefined [enabled by default]
#define IOMEM __iomem
^
In file included from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/include/linux/io.h:25:0,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/include/linux/pci.h:31,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:30:
/home/johnnyli/AIB-TX201/kernel/kernel-4.4/arch/arm64/include/asm/io.h:212:0: note: this is the location of the previous definition
#define IOMEM(x) ((void __force __iomem *)(x))
^
CC [M] drivers/net/ethernet/intel/ixgbe/ixgbe_common.o
In file included from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h:66:0,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_common.h:28,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c:25:
/home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_osdep.h:51:0: warning: “IOMEM” redefined [enabled by default]
#define IOMEM __iomem
^
In file included from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/include/linux/io.h:25:0,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/include/linux/pci.h:31,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_osdep.h:33,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h:66,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_common.h:28,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c:25:
/home/johnnyli/AIB-TX201/kernel/kernel-4.4/arch/arm64/include/asm/io.h:212:0: note: this is the location of the previous definition
#define IOMEM(x) ((void __force __iomem *)(x))
^
CC [M] drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.o
In file included from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h:66:0,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.h:28,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe.h:45,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c:38:
/home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_osdep.h:51:0: warning: “IOMEM” redefined [enabled by default]
#define IOMEM __iomem
^
In file included from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/include/linux/io.h:25:0,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/include/linux/pci.h:31,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c:29:
/home/johnnyli/AIB-TX201/kernel/kernel-4.4/arch/arm64/include/asm/io.h:212:0: note: this is the location of the previous definition
#define IOMEM(x) ((void __force __iomem *)(x))
^
CC [M] drivers/net/ethernet/intel/ixgbe/ixgbe_82599.o
In file included from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h:66:0,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c:25:
/home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_osdep.h:51:0: warning: “IOMEM” redefined [enabled by default]
#define IOMEM __iomem
^
In file included from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/include/linux/io.h:25:0,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/include/linux/pci.h:31,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_osdep.h:33,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h:66,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c:25:
/home/johnnyli/AIB-TX201/kernel/kernel-4.4/arch/arm64/include/asm/io.h:212:0: note: this is the location of the previous definition
#define IOMEM(x) ((void __force __iomem *)(x))
^
CC [M] drivers/net/ethernet/intel/ixgbe/ixgbe_82598.o
In file included from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h:66:0,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c:25:
/home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_osdep.h:51:0: warning: “IOMEM” redefined [enabled by default]
#define IOMEM __iomem
^
In file included from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/include/linux/io.h:25:0,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/include/linux/pci.h:31,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_osdep.h:33,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h:66,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c:25:
/home/johnnyli/AIB-TX201/kernel/kernel-4.4/arch/arm64/include/asm/io.h:212:0: note: this is the location of the previous definition
#define IOMEM(x) ((void __force __iomem *)(x))
^
CC [M] drivers/net/ethernet/intel/ixgbe/ixgbe_phy.o
In file included from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h:66:0,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_api.h:28,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c:25:
/home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_osdep.h:51:0: warning: “IOMEM” redefined [enabled by default]
#define IOMEM __iomem
^
In file included from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/include/linux/io.h:25:0,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/include/linux/pci.h:31,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_osdep.h:33,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h:66,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_api.h:28,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c:25:
/home/johnnyli/AIB-TX201/kernel/kernel-4.4/arch/arm64/include/asm/io.h:212:0: note: this is the location of the previous definition
#define IOMEM(x) ((void __force __iomem *)(x))
^
CC [M] drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.o
In file included from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h:66:0,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.h:28,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe.h:45,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c:37:
/home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_osdep.h:51:0: warning: “IOMEM” redefined [enabled by default]
#define IOMEM __iomem
^
In file included from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/include/linux/io.h:25:0,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/include/linux/pci.h:31,
from /home/johnnyli/AIB-TX201/kernel/kernel-4.4/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c:28:
/home/johnnyli/AIB-TX201/kernel/kernel-4.4/arch/arm64/include/asm/io.h:212:0: note: this is the location of the previous definition
#define IOMEM(x) ((void __force __iomem *)(x))

  1. Did you have any config change?
  2. Please check the tool chain

https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%2520Linux%2520Driver%2520Package%2520Development%2520Guide%2Fxavier_toolchain.html%23