struct ar9170_eeprom sys;
} __packed;
-static const struct ar9170_rom rom __section(eeprom);
+static const struct ar9170_rom rom __in_section(eeprom);
#endif /* __CARL9170FW_ROM_H */
#include "wl.h"
#include "printf.h"
-struct ar9170_dma_memory dma_mem __section(sram);
+struct ar9170_dma_memory dma_mem __in_section(sram);
static void copy_dma_desc(struct dma_desc *dst,
struct dma_desc *src)
more \
}
-const struct carl9170_firmware_descriptor __section(fwdsc) __visible carl9170fw_desc = {
+const struct carl9170_firmware_descriptor __in_section(fwdsc) __visible carl9170fw_desc = {
FILL(otus, OTUS,
.feature_set = cpu_to_le32(BIT(CARL9170FW_DUMMY_FEATURE) |
BIT(CARL9170FW_USB_RESP_EP2) |
* we put _start() there with the linker script carl9170.lds.
*/
-void __section(boot) __noreturn __visible start(void)
+void __in_section(boot) __noreturn __visible start(void)
{
clock_set(AHB_40MHZ_OSC, true);
#define __cold __attribute__((cold))
#define __unused __attribute__((unused))
#define __force __attribute__((force))
-#define __section(s) __attribute__((section("." # s)))
+#define __in_section(s) __attribute__((section("." # s)))
#define __aligned(a) __attribute__((aligned(a)))
#define __packed __attribute__((packed))
#define __visible __attribute__((externally_visible))