From patchwork Fri Sep 12 10:31:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 388570 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 31A52140086 for ; Fri, 12 Sep 2014 20:31:25 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; q=dns; s= default; b=CZGKP6YO93gt2kivYg40Tk6u6OS/13Q2KjqtcCHvotg5FJnAW3Ng2 B+uL9guAYAPUkH9YLkWe9bQsF47Qlts3K7HI1gEfmder8DhZvv304y6FqDfJhxIv lx2aqexfCfuLVkx4DTRDbv0m+/v0eLyDngLs8E2PYkoHnxRKzeW2nU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; s=default; bh=bq2FoaR18LTw6EqTRFADM1ZRQDg=; b=G0VB9Dt/MniJJft0WzoAfxqBGSat cfF9ITKrd2j72UTZru5V2OQb5dZjRvtMc2nX0righe/GmXKcbXEKq9bN6Simlmsh kboxs4Pgefs2xZynIAHc80U1A6jyqG4vdhCah1uSyxB8E73FAIn5UnzeXD9+tiQD CLdilP6m7HDWU28= Received: (qmail 9214 invoked by alias); 12 Sep 2014 10:31:19 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 9196 invoked by uid 89); 12 Sep 2014 10:31:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-we0-f182.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=gkWkxjo8Mv2N8GyWsO7QcBD/qXVKT7+fkxc6s4Da/mg=; b=HQNqBaCbL1XvG3exhVnI7V7KwlU1MdNk2cQV/6RxGLVDcbxo79ZVK8rbLfXOk/b8Ek gr0mCBoVw7LORVe3jIBbOirCSU/oEX80RgVGKzoAN9g7t8qodtVTaOhRDRrCH9pnpJ6H EWeeqvp7ti9ZnYXFzRpdKtIouaIN3qvkBMAkJa8eDCEUbh8WaNv2L2zZJiJiN6p1Rg6t WhE/I/3clKknX9n2qMi28m5g7Etj+zDqwnGl7yx53EtWMNBfxaz6lsJDKvCij24gvF2l hy7RoIhbe8E6EYIj8tq8e/vmoMXSAsn+ioGlKcFU+W04JWJvmHCHK149vzsx2uutn7Nc SR7A== X-Gm-Message-State: ALoCoQkRBSj3yhYF/NMpTveK5VaeEh1yvA42SQLGkjcx3eLGWZrPoSQhxZWU6lgEjRLgzw6c7XxQ X-Received: by 10.180.187.7 with SMTP id fo7mr1162815wic.58.1410517874612; Fri, 12 Sep 2014 03:31:14 -0700 (PDT) From: Will Newton To: libc-alpha@sourceware.org Subject: [PATCH] ARM: Don't define _SYS_AUXV_H in sysdep.h Date: Fri, 12 Sep 2014 11:31:08 +0100 Message-Id: <1410517868-11916-1-git-send-email-will.newton@linaro.org> sysdep.h was defining _SYS_AUXV_H in order to avoid an include guard check in hwcap.h. Unfortunately it didn't undefine it so it could leak out into code and caused a build failure with -Wimplicit-function-declaration building tst-auxv on ARM. ChangeLog: 2014-09-11 Will Newton * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for _LINUX_ARM_SYSDEP_H include guard too. * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove define. --- sysdeps/unix/sysv/linux/arm/bits/hwcap.h | 2 +- sysdeps/unix/sysv/linux/arm/sysdep.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/sysdeps/unix/sysv/linux/arm/bits/hwcap.h b/sysdeps/unix/sysv/linux/arm/bits/hwcap.h index cd8f93c..2ddc5a6 100644 --- a/sysdeps/unix/sysv/linux/arm/bits/hwcap.h +++ b/sysdeps/unix/sysv/linux/arm/bits/hwcap.h @@ -16,7 +16,7 @@ License along with the GNU C Library; if not, see . */ -#ifndef _SYS_AUXV_H +#if !defined (_SYS_AUXV_H) && !defined (_LINUX_ARM_SYSDEP_H) # error "Never include directly; use instead." #endif diff --git a/sysdeps/unix/sysv/linux/arm/sysdep.h b/sysdeps/unix/sysv/linux/arm/sysdep.h index 52e27d0..91bdca5 100644 --- a/sysdeps/unix/sysv/linux/arm/sysdep.h +++ b/sysdeps/unix/sysv/linux/arm/sysdep.h @@ -40,7 +40,6 @@ #undef SYS_ify #define SYS_ify(syscall_name) (__NR_##syscall_name) -#define _SYS_AUXV_H 1 #include #ifdef __ASSEMBLER__