lkml.org 
[lkml]   [2013]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] Fix a build warning in scripts/mod/file2alias.c
On 9.6.2013 04:33, Daniel Tang wrote:
> On some systems, __used is already defined in sys/cdefs.h and causes
> a build warning:
>
> scripts/mod/file2alias.c:85:1: warning: "__used" redefined
> In file included from /usr/include/stdio.h:64,
> from scripts/mod/modpost.h:1,
> from scripts/mod/file2alias.c:13:
> /usr/include/sys/cdefs.h:146:1: warning: this is the location of the previous definition
>
> This adds an extra check before defining the __used macro to see if
> the macro was already defined elsewhere.
>
> Signed-off-by: Daniel Tang <dt.tangr@gmail.com>

Applied to kbuild.git#kbuild.

Michal



\
 
 \ /
  Last update: 2013-07-03 15:01    [W:0.945 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site