]> git.baikalelectronics.ru Git - kernel.git/commit
tools: Copy lib/hweight.c from the kernel sources
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 9 Jul 2015 19:27:25 +0000 (16:27 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 9 Jul 2015 19:29:56 +0000 (16:29 -0300)
commite78aee1512bd855908cc57c906843b97a9676db1
treed4fab927d6e0ac7f50f398837317d479d3f66c37
parent2d07b6a63c616a38572b961d11f48064a560b43b
tools: Copy lib/hweight.c from the kernel sources

Instead of accessing it directly, as it uses EXPORT_SYMBOL, that has
no meaning in tools/perf and because we removed the stubs for it, i.e.
we removed the tools/include/linux/export.h file.

This fixes the build for the detached tarball sources cases and removes
one more source of entanglement with the kernel sources.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-oyqx541o7apa2cskjhcxi6nx@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/hweight.c [new file with mode: 0644]
tools/perf/MANIFEST
tools/perf/util/Build
tools/perf/util/python-ext-sources