--- zzzz-none-000/linux-4.1.52/include/linux/types.h 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/include/linux/types.h 2022-03-02 11:37:13.000000000 +0000 @@ -215,5 +215,14 @@ /* clocksource cycle base type */ typedef u64 cycle_t; + +#if defined(CONFIG_BCM_KF_UNALIGNED_EXCEPTION) +#if defined(CONFIG_MIPS_BCM963XX) +#define LINUX_NET_PACKED __attribute__((packed)) +#else +#define LINUX_NET_PACKED +#endif /* CONFIG_MIPS_BCM963XX */ +#endif /* CONFIG_BCM_KF_UNALIGNED_EXCEPTION */ + #endif /* __ASSEMBLY__ */ #endif /* _LINUX_TYPES_H */