From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com ([66.111.4.27]:55376 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752434AbbF2X7b (ORCPT ); Mon, 29 Jun 2015 19:59:31 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 3C07522D70 for ; Mon, 29 Jun 2015 19:59:31 -0400 (EDT) Date: Mon, 29 Jun 2015 16:59:29 -0700 From: Greg KH To: Vinson Lee Cc: stable@vger.kernel.org, "Kirill A. Shutemov" , Ingo Molnar , Paul Mackerras , Peter Zijlstra , Arnaldo Carvalho de Melo Subject: Re: [stable request 3.2 3.4 3.10] perf tools: Fix build with perl 5.18 Message-ID: <20150629235929.GD29763@kroah.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: stable-owner@vger.kernel.org List-ID: On Thu, May 21, 2015 at 12:34:40PM -0700, Vinson Lee wrote: > Hi. > > Please backport upstream 3.12 commit > 575bf1d04e908469d26da424b52fc1b12a1db9d8 "perf tools: Fix build with > perl 5.18" to stable kernels 3.2, 3.4, and 3.10. > > commit 575bf1d04e908469d26da424b52fc1b12a1db9d8 > Author: Kirill A. Shutemov > Date: Mon Jun 24 11:43:14 2013 +0300 > > perf tools: Fix build with perl 5.18 > > perl.h from new Perl release doesn't like -Wundef and -Wswitch-default: > > /usr/lib/perl5/core_perl/CORE/perl.h:548:5: error: > "SILENT_NO_TAINT_SUPPORT" is not defined [-Werror=undef] > #if SILENT_NO_TAINT_SUPPORT && !defined(NO_TAINT_SUPPORT) > ^ > /usr/lib/perl5/core_perl/CORE/perl.h:556:5: error: > "NO_TAINT_SUPPORT" is not defined [-Werror=undef] > #if NO_TAINT_SUPPORT > ^ > In file included from /usr/lib/perl5/core_perl/CORE/perl.h:3471:0, > from util/scripting-engines/trace-event-perl.c:30: > /usr/lib/perl5/core_perl/CORE/sv.h:1455:5: error: > "NO_TAINT_SUPPORT" is not defined [-Werror=undef] > #if NO_TAINT_SUPPORT > ^ > In file included from /usr/lib/perl5/core_perl/CORE/perl.h:3472:0, > from util/scripting-engines/trace-event-perl.c:30: > /usr/lib/perl5/core_perl/CORE/regexp.h:436:5: error: > "NO_TAINT_SUPPORT" is not defined [-Werror=undef] > #if NO_TAINT_SUPPORT > ^ > In file included from /usr/lib/perl5/core_perl/CORE/hv.h:592:0, > from /usr/lib/perl5/core_perl/CORE/perl.h:3480, > from util/scripting-engines/trace-event-perl.c:30: > /usr/lib/perl5/core_perl/CORE/hv_func.h: In function > ‘S_perl_hash_siphash_2_4’: > /usr/lib/perl5/core_perl/CORE/hv_func.h:222:3: error: switch > missing default case [-Werror=switch-default] > switch( left ) > ^ > /usr/lib/perl5/core_perl/CORE/hv_func.h: In function > ‘S_perl_hash_superfast’: > /usr/lib/perl5/core_perl/CORE/hv_func.h:274:5: error: switch > missing default case [-Werror=switch-default] > switch (rem) { \ > ^ > /usr/lib/perl5/core_perl/CORE/hv_func.h: In function ‘S_perl_hash_murmur3’: > /usr/lib/perl5/core_perl/CORE/hv_func.h:398:5: error: switch > missing default case [-Werror=switch-default] > switch(bytes_in_carry) { /* how many bytes in carry */ > ^ > > Let's disable the warnings for code which uses perl.h. > > Signed-off-by: Kirill A. Shutemov > Cc: Ingo Molnar > Cc: Paul Mackerras > Cc: Peter Zijlstra > Link: http://lkml.kernel.org/r/1372063394-20126-1-git-send-email-kirill@shutemov.name > Signed-off-by: Arnaldo Carvalho de Melo Doesn't apply to 3.10-stable :(