From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752495AbdIVWML (ORCPT ); Fri, 22 Sep 2017 18:12:11 -0400 Received: from [195.159.176.226] ([195.159.176.226]:44240 "EHLO blaine.gmane.org" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1752161AbdIVWMK (ORCPT ); Fri, 22 Sep 2017 18:12:10 -0400 X-Injected-Via-Gmane: http://gmane.org/ To: linux-kernel@vger.kernel.org From: Akemi Yagi Subject: Build failure of kernel v4.14-rc due to error in tools/perf Date: Fri, 22 Sep 2017 22:11:53 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@blaine.gmane.org User-Agent: Pan/0.135 (Tomorrow I'll Wake Up and Scald Myself with Tea; GIT 30dc37b master) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, The build of kernel v4.14-rc1 for i686 fails on RHEL 6 with the error in tools/perf: util/syscalltbl.c:157: error: expected ';', ',' or ')' before '__maybe_unused' mv: cannot stat `util/.syscalltbl.o.tmp': No such file or directory This is fixed by placing/moving #include outside of #ifdef HAVE_SYSCALL_TABLE as shown in the patch below. Thanks, Akemi Yagi 2017-09-22 --- a/tools/perf/util/syscalltbl.c 2017-09-16 15:47:51.000000000 -0700 +++ b/tools/perf/util/syscalltbl.c 2017-09-22 00:16:16.119007615 -0700 @@ -15,9 +15,9 @@ #include "syscalltbl.h" #include +#include #ifdef HAVE_SYSCALL_TABLE -#include #include #include "string2.h" #include "util.h"