]> git.sur5r.net Git - u-boot/commit
microblaze: Fix C99/gnu99 compatiblity for inline functions
authorNathan Rossi <nathan@nathanrossi.com>
Fri, 6 Nov 2015 09:25:06 +0000 (19:25 +1000)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 19 Nov 2015 12:09:41 +0000 (13:09 +0100)
commite0f21e1cbc26faa558cb955ccda65638a34f4bb1
tree27a10dd86c429b307a13e7e73cefb52a2b5044f9
parent7cb73730c85051e8fe53592ba3a92b899571ade4
microblaze: Fix C99/gnu99 compatiblity for inline functions

'extern inline' is not portable across various C standards. To ensure
compatiblity with various standards/compilers change the functions to
static inline. This is a portable construct and serves as a comparable
definition to 'extern inline' from the gnu90 standard.

Additionally remove the function prototypes as they are not required due
to the functions being declared static and functions are correctly
ordered based on dependence.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Cc: Michal Simek <monstr@monstr.eu>
Cc: Tom Rini <trini@konsulko.com>
Acked-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/include/asm/bitops.h
arch/microblaze/include/asm/system.h