From patchwork Tue Aug 9 11:24:17 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 1049152 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p79BOg1J024850 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 9 Aug 2011 11:25:03 GMT Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QqkQ7-0006RQ-K7; Tue, 09 Aug 2011 11:24:27 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QqkQ7-0006c3-4j; Tue, 09 Aug 2011 11:24:27 +0000 Received: from mail-wy0-f177.google.com ([74.125.82.177]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QqkQ3-0006bl-IK for linux-arm-kernel@lists.infradead.org; Tue, 09 Aug 2011 11:24:24 +0000 Received: by wyh11 with SMTP id 11so316951wyh.36 for ; Tue, 09 Aug 2011 04:24:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:subject:date:user-agent:organization:cc:mime-version :content-type:content-transfer-encoding:message-id; bh=35q4bmCYcn96Yx/WmeU1S1a7axWY7rYcpsUnCO3Ro9M=; b=j75Hs4MYj1VuwHlZ0EBa1CuU6ghYgIZPQKuR2wn+wOfvAhpBJVTi+hCGF0rd3gltOt avVhHwOmdMIVgBBPLGD/DKd/MWumXHFQyX3wOoZOV2x26Au0gYx2kuaABRmAs84PFtRB cHa6qMTHadW+KSOun4EEYBsCNjQBsgGWIfz94= Received: by 10.216.6.194 with SMTP id 44mr5301421wen.112.1312889060552; Tue, 09 Aug 2011 04:24:20 -0700 (PDT) Received: from flexo.localnet (bobafett.staff.proxad.net [213.228.1.121]) by mx.google.com with ESMTPS id c58sm1046523wed.32.2011.08.09.04.24.19 (version=SSLv3 cipher=OTHER); Tue, 09 Aug 2011 04:24:19 -0700 (PDT) From: Florian Fainelli To: Will Deacon Subject: [PATCH] ARM: fix perf build with uclibc toolchains Date: Tue, 9 Aug 2011 13:24:17 +0200 User-Agent: KMail/1.13.6 (Linux/2.6.38-10-server; KDE/4.6.2; x86_64; ; ) Organization: OpenWrt MIME-Version: 1.0 Message-Id: <201108091324.17750.florian@openwrt.org> X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110809_072423_831283_E0B3631A X-CRM114-Status: GOOD ( 12.62 ) X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.82.177 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (f.fainelli[at]gmail.com) 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Tue, 09 Aug 2011 11:25:03 +0000 (UTC) libio.h is not provided by uClibc, in order to be able to test the definition of __UCLIBC__ we need to include stdlib.h, which also includes stddef.h, providing the definition of 'NULL'. Signed-off-by: Florian Fainelli diff --git a/tools/perf/arch/arm/util/dwarf-regs.c b/tools/perf/arch/arm/util/dwarf-regs.c index fff6450..e8d5c55 100644 --- a/tools/perf/arch/arm/util/dwarf-regs.c +++ b/tools/perf/arch/arm/util/dwarf-regs.c @@ -8,7 +8,10 @@ * published by the Free Software Foundation. */ +#include +#ifndef __UCLIBC__ #include +#endif #include struct pt_regs_dwarfnum {