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 #1

Updated by Evgeny Novikov over 9 years ago

  • Status changed from New to Open
  • Assignee set to Evgeny Novikov

As far as I remember C-backend doesn't print keyword extern at all. Usually this even doesn't lead to warnings but this isn't the case here.

Actions #2

Updated by Evgeny Novikov about 8 years ago

  • Category set to C back-end
  • Priority changed from Normal to High
Actions

Also available in: Atom PDF