Modify

Opened 6 years ago

Last modified 4 years ago

#11797 new defect

atheros kmod-led-gpio error: static declaration of '__raw_writel' follows non-static declaration

Reported by: ben@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: kernel Version: Trunk
Keywords: atheros, kmod-leds-gpio, led Cc:

Description

When compiling kmod-leds-gpio module for atheros target in trunk r31639, build fails on this error. When I disable kmod-leds-gpio module, build completes w/o error.

...
  CC [M]  drivers/leds/leds-gpio.o
In file included from /home/me/Documents/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/gpio.h:4:0,
                 from /home/me/Documents/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/gpio.h:4,
                 from include/linux/gpio.h:30,
                 from include/linux/of_gpio.h:20,
                 from drivers/leds/leds-gpio.c:18:
/home/me/Documents/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h: In function 'ar231x_read_reg':
/home/me/Documents/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h:32:2: error: implicit declaration of function '__raw_readl' [-Werror=implicit-function-declaration]
/home/me/Documents/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h: In function 'ar231x_write_reg':
/home/me/Documents/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h:38:2: error: implicit declaration of function '__raw_writel' [-Werror=implicit-function-declaration]
In file included from /home/me/Documents/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/page.h:51:0,
                 from include/linux/mmzone.h:20,
                 from include/linux/gfp.h:4,
                 from include/linux/slab.h:12,
                 from drivers/leds/leds-gpio.c:19:
/home/me/Documents/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/io.h: At top level:
/home/me/Documents/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/io.h:421:1: warning: conflicting types for '__raw_writel' [enabled by default]
/home/me/Documents/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/io.h:421:1: error: static declaration of '__raw_writel' follows non-static declaration
/home/me/Documents/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h:38:2: note: previous implicit declaration of '__raw_writel' was here
/home/me/Documents/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/io.h:421:1: error: conflicting types for '__raw_readl'
/home/me/Documents/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h:32:9: note: previous implicit declaration of '__raw_readl' was here
cc1: some warnings being treated as errors

make[7]: *** [drivers/leds/leds-gpio.o] Error 1
make[6]: *** [drivers/leds] Error 2
...

This module compiles fine for ar71xx target on trunk r31639.

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.