MIPS: alchemy: xxs1500: add gpio-au1000.h header file
PATCH 1/1 MIPS: alchemy: xxs1500: add gpio-au1000.h header file
board-xxs1500.c references 2 functions without declaring them, so add the header file to placate the build.
../arch/mips/alchemy/board-xxs1500.c: In function 'board_setup':../arch/mips/alchemy/board-xxs1500.c:56:2: error: implicit declaration of function 'alchemy_gpio1_input_enable' [-Werror=implicit-function-declaration]
56 | alchemy_gpio1_input_enable();../arch/mips/alchemy/board-xxs1500.c:57:2: error: implicit declaration of function 'alchemy_gpio2_enable'; did you mean 'alchemy_uart_enable'? [-Werror=implicit-function-declaration]
57 | alchemy_gpio2_enable();
--- arch/mips/alchemy/board-xxs1500.c | 1 + 1 file changed, 1 insertion(+)
arch/mips/alchemy/board-xxs1500.c +1 -0
@@ -18,6 +18,7 @@#include <asm/reboot.h> #include <asm/setup.h> #include <asm/mach-au1x00/au1000.h> +#include <asm/mach-au1x00/gpio-au1000.h> #include <prom.h> const char *get_system_type (void )
Hello,
Quoted 23 lines · Randy Dunlap
board-xxs1500.creferences 2 functions without declaring them, so add the header file to placate the build.
../arch/mips/alchemy/board-xxs1500.c: In function 'board_setup':../arch/mips/alchemy/board-xxs1500.c:56:2: error: implicit declaration of function 'alchemy_gpio1_input_enable' [-Werror=implicit-function-declaration]
56 |alchemy_gpio1_input_enable();../arch/mips/alchemy/board-xxs1500.c:57:2: error: implicit declaration of function 'alchemy_gpio2_enable'; did you mean 'alchemy_uart_enable'? [-Werror=implicit-function-declaration]
57 |alchemy_gpio2_enable();Fixes 8e026910fcd4 ("MIPS: Alchemy: merge GPR/MTX-1/XXS1500 board code into single files")Signed-off-by Randy Dunlap <[email protected]>Cc Thomas Bogendoerfer <[email protected]>Cc Manuel Lauss <[email protected]>Cc Ralf Baechle <[email protected]>--- arch/mips/alchemy/board-xxs1500.c | 1 + 1 file changed, 1 insertion(+)
arch/mips/alchemy/board-xxs1500.c line 21
Quoted 4 lines
arch/mips/alchemy/board-xxs1500.c +1
-0@@ -18,6 +18,7 @@#include <asm/reboot.h> #include <asm/setup.h> #include <asm/mach-au1x00/au1000.h> +#include <asm/mach-au1x00/gpio-au1000.h>
Thank you!
Manuel
Quoted 15 lines · Randy Dunlap
board-xxs1500.creferences 2 functions without declaring them, so add the header file to placate the build.
../arch/mips/alchemy/board-xxs1500.c: In function 'board_setup':../arch/mips/alchemy/board-xxs1500.c:56:2: error: implicit declaration of function 'alchemy_gpio1_input_enable' [-Werror=implicit-function-declaration]
56 |alchemy_gpio1_input_enable();../arch/mips/alchemy/board-xxs1500.c:57:2: error: implicit declaration of function 'alchemy_gpio2_enable'; did you mean 'alchemy_uart_enable'? [-Werror=implicit-function-declaration]
57 |alchemy_gpio2_enable();Fixes 8e026910fcd4 ("MIPS: Alchemy: merge GPR/MTX-1/XXS1500 board code into single files")Signed-off-by Randy Dunlap <[email protected]>Cc Thomas Bogendoerfer <[email protected]>Cc Manuel Lauss <[email protected]>Cc Ralf Baechle <[email protected]>
Quoted 3 lines
--- arch/mips/alchemy/board-xxs1500.c | 1 + 1 file changed, 1 insertion(+)
applied to mips-fixes.
Thomas.
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]