linux/scripts/mod
Daniel Tang 04130cc973 Fix a build warning in scripts/mod/file2alias.c
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>
Signed-off-by: Michal Marek <mmarek@suse.cz>
2013-07-03 14:30:40 +02:00
..
.gitignore mod/file2alias: make modalias generation safe for cross compiling 2013-01-24 22:48:04 +01:00
Makefile improve modalias building 2013-06-28 00:48:16 +02:00
devicetable-offsets.c mei: bus: Initial MEI Client bus type implementation 2013-03-29 08:35:47 -07:00
empty.c
file2alias.c Fix a build warning in scripts/mod/file2alias.c 2013-07-03 14:30:40 +02:00
mk_elfconfig.c module: make MODULE_SYMBOL_PREFIX into a CONFIG option 2009-12-15 16:28:26 +10:30
modpost.c modpost: fix unwanted VMLINUX_SYMBOL_STR expansion 2013-04-29 11:41:42 +09:30
modpost.h modpost: Fix modpost license checking of vmlinux.o 2012-04-09 20:52:56 -07:00
sumversion.c kbuild: Fix computing srcversion for modules 2011-03-13 15:59:58 -07:00