Project

General

Profile

Actions

Feature #3247

open

128: EXPORT* macro should follow immediately after the closing function brace line

Added by Denis Efremov over 12 years ago. Updated over 12 years ago.

Status:
New
Priority:
Normal
Assignee:
Start date:
07/20/2012
Due date:
% Done:

0%

Estimated time:
Published in build:

Description

From documentation: (http://lxr.linux.no/#linux+v3.4.6/Documentation/CodingStyle)
If the function is exported, the EXPORT* macro for it should follow immediately after the closing function brace line. E.g.:

int system_is_up(void) {
return system_state == SYSTEM_RUNNING;
}
EXPORT_SYMBOL(system_is_up);

I have detected about 1500 violations of this rule(except for "}\n\nEXPORT"). It is possible to automatically relocate EXPORT* macros.

Actions

Also available in: Atom PDF