Re: [PATCH] perf symbol: Include elf.h header regardlessLIBELF_SUPPORT

From: Jiri Olsa
Date: Wed Jan 02 2013 - 10:11:45 EST


On Fri, Dec 28, 2012 at 04:16:49PM +0900, Namhyung Kim wrote:
> From: Namhyung Kim <namhyung.kim@xxxxxxx>
>
> The elf.h header file is used for NO_LIBELF build too so it should be
> included anyway. Also remove duplicated include of the header file in
> symbol-*.c. This patch fixes following build error on NO_LIBELF build:
>
> CC tests/hists_link.o
> tests/hists_link.c: In function âsetup_fake_machineâ:
> tests/hists_link.c:132:8: error: âSTB_GLOBALâ undeclared (first use in this function)
> tests/hists_link.c:132:8: note: each undeclared identifier is reported only once for each function it appears in
>
> Cc: Jiri Olsa <jolsa@xxxxxxxxxx>
> Cc: David Ahern <dsahern@xxxxxxxxx>
> Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxxx>

Acked-by: Jiri Olsa <jolsa@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/