Skip to content

Commit

Permalink
staging, rts5208, LLVMLinux: Change extern inline to static inline
Browse files Browse the repository at this point in the history
With compilers which follow the C99 standard (like modern versions of gcc and
clang), "extern inline" does the opposite thing from older versions of gcc
(emits code for an externally linkable version of the inline function). "static
inline" does the intended behavior in both gcc and clang.

Signed-off-by: Behan Webster <behanw@converseincode.com>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Behan Webster authored and Greg Kroah-Hartman committed Oct 29, 2014
1 parent 6c3773d commit 33de8f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/rts5208/rtsx_transport.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void rtsx_add_cmd(struct rtsx_chip *chip,
void rtsx_send_cmd_no_wait(struct rtsx_chip *chip);
int rtsx_send_cmd(struct rtsx_chip *chip, u8 card, int timeout);

extern inline u8 *rtsx_get_cmd_data(struct rtsx_chip *chip)
static inline u8 *rtsx_get_cmd_data(struct rtsx_chip *chip)
{
#ifdef CMD_USING_SG
return (u8 *)(chip->host_sg_tbl_ptr);
Expand Down

0 comments on commit 33de8f2

Please sign in to comment.