Project

General

Profile

Actions

Bug #5328

open

Missing extern for inline functions

Added by Vadim Mutilin over 9 years ago. Updated about 8 years ago.

Status:
Open
Priority:
High
Category:
C back-end
Start date:
10/13/2014
Due date:
% Done:

0%

Estimated time:
Detected in build:
2c42610
Platform:
Published in build:

Description

The kernel code contains extern inline function declarations, e.g. drivers/staging/rts5208/rtsx_transport.h

 49 extern inline u8 *rtsx_get_cmd_data(struct rtsx_chip *chip)
 50 {
 51 #ifdef CMD_USING_SG
 52         return (u8 *)(chip->host_sg_tbl_ptr);
 53 #else
 54         return (u8 *)(chip->host_cmds_ptr);
 55 #endif
 56 }

CIF prints these declarations without extern, and GCC returns an error

The other examples are in drivers/staging/rtl8192e/rtllib.h

extern inline void rtllib_increment_scans(struct rtllib_device *ieee)
extern inline int rtllib_get_scans(struct rtllib_device *ieee)

Actions

Also available in: Atom PDF