--- zzzz-none-000/linux-4.1.38/include/linux/types.h 2017-01-18 18:48:06.000000000 +0000 +++ bcm63-7582-715/linux-4.1.38/include/linux/types.h 2020-11-25 10:06:48.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 */