]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Fix include for non x86 architectures
authorFrancesco Fusco <ffusco@redhat.com>
Mon, 27 Jan 2014 13:39:13 +0000 (14:39 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 31 Jan 2014 20:21:42 +0000 (17:21 -0300)
commit8e6e3661d91893de6f162bc263740b303c80d970
treea92f53b12ae78fcf9bc29db744845eea239edb44
parent36dd157f79ad75f653532252e446470c1142ea97
perf tools: Fix include for non x86 architectures

Commit 024dc738 ("lib: introduce arch optimized hash library") added an
include to <linux/hash.h> for setting up an architecture specific fast
hash.

Since perf includes directly the non-uapi kernel header, it cannot find
<asm/hash.h> on non-x86 and thus prevents perf to be compiled on every
architecture other than x86.

The problem is the inclusion of <asm/hash.h> in hash.h that results in
the following error originating from util/evlist.c:

  fatal error: asm/hash.h: No such file or directory

This commit simply adds an empty <asm/hash.h> stub/file to fix the
compile issue on non-x86 architectures.

As perf does not use any of these new functions, it fixes the
compilation and therefore seems to be the most appropriate solution to
go with.

Signed-off-by: Francesco Fusco <ffusco@redhat.com>
Link: http://lkml.kernel.org/r/2cf8143aad65a6aa6fe30325ef8a65847141afa2.1390829373.git.ffusco@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/include/asm/hash.h [new file with mode: 0644]