--- zzzz-none-000/linux-2.6.39.4/arch/x86/include/asm/prom.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/arch/x86/include/asm/prom.h 2021-11-10 13:23:10.000000000 +0000 @@ -42,7 +42,7 @@ } #else -static inline void add_dtb(u64 data) { } +static inline void add_dtb(u64 data __attribute__((unused))) { } static inline void x86_add_irq_domains(void) { } static inline void x86_of_pci_init(void) { } static inline void x86_dtb_init(void) { } @@ -61,9 +61,14 @@ * FIXME: We really should implement proper virq handling like power, * but that's going to be major surgery. */ -static inline void irq_dispose_mapping(unsigned int virq) { } +static inline void irq_dispose_mapping(unsigned int virq __attribute__((unused))) { } + +extern char *prom_getenv(char *name); #define HAVE_ARCH_DEVTREE_FIXUPS +struct mtd_info; +extern int init_wlan_dect_config(struct mtd_info *mtd); + #endif /* __ASSEMBLY__ */ #endif