lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:   Thu, 21 Sep 2017 13:59:35 +0800
From:   Li Zhijian <lizhijian@...fujitsu.com>
To:     <peterz@...radead.org>, <mingo@...hat.com>, <acme@...nel.org>,
        <alexander.shishkin@...ux.intel.com>,
        <linux-kernel@...r.kernel.org>
CC:     <philip.li@...el.com>, Li Zhijian <lizhiijian@...fujitsu.com>
Subject: [PATCH] tool/perf: fix perf compiling errors

From: Li Zhijian <lizhiijian@...fujitsu.com>

since f045b8c, we failed to build perf with LIBCLANGLLVM=1, this patch is to
fix the following compiling errors
--------------
lizhijian@...well-OptiPlex-9020:~/lkp/linux/tools/perf$ make LLVM_CONFIG=/usr/bin/llvm-config-3.9 LIBCLANGLLVM=1
  BUILD:   Doing 'make -j8' parallel build

Auto-detecting system features:
...                         dwarf: [ on  ]
...            dwarf_getlocations: [ on  ]
...                         glibc: [ on  ]
...                          gtk2: [ on  ]
...                      libaudit: [ on  ]
...                        libbfd: [ on  ]
...                        libelf: [ on  ]
...                       libnuma: [ on  ]
...        numa_num_possible_cpus: [ on  ]
...                       libperl: [ OFF ]
...                     libpython: [ on  ]
...                      libslang: [ on  ]
...                     libcrypto: [ on  ]
...                     libunwind: [ on  ]
...            libdw-dwarf-unwind: [ on  ]
...                          zlib: [ on  ]
...                          lzma: [ on  ]
...                     get_cpuid: [ on  ]
...                           bpf: [ on  ]

Makefile.config:584: Missing perl devel files. Disabling perl scripting support, please install perl-ExtUtils-Embed/libperl-dev
Makefile.config:809: No openjdk development package found, please install JDK package
  CXX      util/c++/clang.o
  CXX      util/c++/clang-test.o
In file included from /home/lizj/linux/tools/include/linux/list.h:5:0,
                 from /home/lizj/linux/tools/perf/util/namespaces.h:13,
                 from /home/lizj/linux/tools/perf/util/util.h:15,
                 from /home/lizj/linux/tools/perf/util/util-cxx.h:20,
                 from util/c++/clang-c.h:5,
                 from util/c++/clang-test.cpp:2:
/home/lizj/linux/tools/include/linux/list.h: In function ‘void list_del(list_head*)’:
/home/lizj/linux/tools/include/linux/poison.h:14:31: error: pointer of type ‘void *’ used in arithmetic [-Werror=pointer-arith]
 # define POISON_POINTER_DELTA 0
                               ^
/home/lizj/linux/tools/include/linux/poison.h:22:41: note: in expansion of macro ‘POISON_POINTER_DELTA’
 #define LIST_POISON1  ((void *) 0x100 + POISON_POINTER_DELTA)
                                         ^
/home/lizj/linux/tools/include/linux/list.h:107:16: note: in expansion of macro ‘LIST_POISON1’
  entry->next = LIST_POISON1;
                ^
In file included from /home/lizj/linux/tools/perf/util/namespaces.h:13:0,
                 from /home/lizj/linux/tools/perf/util/util.h:15,
                 from /home/lizj/linux/tools/perf/util/util-cxx.h:20,
                 from util/c++/clang-c.h:5,
                 from util/c++/clang-test.cpp:2:
/home/lizj/linux/tools/include/linux/list.h:107:14: error: invalid conversion from ‘void*’ to ‘list_head*’ [-fpermissive]
--------------

Signed-off-by: Li Zhijian <lizhiijian@...fujitsu.com>
---
 tools/perf/util/namespaces.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tools/perf/util/namespaces.h b/tools/perf/util/namespaces.h
index 05d8260..2f88435 100644
--- a/tools/perf/util/namespaces.h
+++ b/tools/perf/util/namespaces.h
@@ -10,7 +10,6 @@
 #define __PERF_NAMESPACES_H
 
 #include "../perf.h"
-#include <linux/list.h>
 #include <linux/refcount.h>
 
 struct namespaces_event;
-- 
2.7.4



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ