From patchwork Wed Sep 9 21:08:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 7149021 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EFA6A9F1D3 for ; Wed, 9 Sep 2015 21:13:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2FDBA20959 for ; Wed, 9 Sep 2015 21:13:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5215A20957 for ; Wed, 9 Sep 2015 21:13:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755109AbbIIVJ3 (ORCPT ); Wed, 9 Sep 2015 17:09:29 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:36219 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754837AbbIIVI7 (ORCPT ); Wed, 9 Sep 2015 17:08:59 -0400 Received: by padhk3 with SMTP id hk3so20677493pad.3 for ; Wed, 09 Sep 2015 14:08:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:cc:cc:cc:cc:cc:cc:cc:cc:cc:cc:cc:cc :cc:cc:subject:date:message-id:in-reply-to:references; bh=m2x6ZLiQwuw96ZT6AiE03Fag8s59GloBy7vk8kGEy9Q=; b=mqL64HyMdHbZAUruZIxGCDsqFj4F3J0lXfuMXQnc3/uGTCNq8+MsOT6mj1QNgYpDoo ouvX3BtkZ3fWNFBGWyES2DuTctZp3KIensYHlJzfxsJ0SLBl07sQDQCzx54DHNpDrq9j hu0tH3mjLKQDE40UGiESqrrKXuTAlbkeC5du3T1FFcRKCPk1Qk2jdY2a0mszzqUBJ7fQ wJxmLz6UiSPnq+m6pmRW+dG2bG6tIsY/VJil+Z/vp/4+Ar73d058ILkvJUtO/Z+6OWAe 0LqU205avtC1R1ULaBrsPZMt+kPVowmEQFPE9RiCVnamoplItGfGXQ7M2bMbhLLUTBir ZlmA== X-Gm-Message-State: ALoCoQmYwijZCCNJTc57Onq6RyctOoR70frc+vXD/Zat4/0WCrUgFmTw8veOOynFU4LtgMfHevR1 X-Received: by 10.68.103.5 with SMTP id fs5mr75589226pbb.55.1441832938694; Wed, 09 Sep 2015 14:08:58 -0700 (PDT) Received: from localhost (wap-cal.CS.Berkeley.EDU. [128.32.35.228]) by smtp.gmail.com with ESMTPSA id qi7sm6323254pbb.64.2015.09.09.14.08.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Sep 2015 14:08:58 -0700 (PDT) From: Palmer Dabbelt To: arnd@arndb.de Cc: 3chas3@gmail.com Cc: hpa@zytor.com Cc: mingo@redhat.com Cc: plagnioj@jcrosoft.com Cc: jikos@kernel.org Cc: linux-api@vger.kernel.org Cc: linux-arch@vger.kernel.org Cc: linux-atm-general@lists.sourceforge.net Cc: linux-fbdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: netdev@vger.kernel.org Cc: tglx@linutronix.de Cc: tomi.valkeinen@ti.com Cc: x86@kernel.org Cc: Palmer Dabbelt Subject: [PATCH 12/13] Hide AT_VECTOR_SIZE_ARCH behind #ifdef __KERNEL__ Date: Wed, 9 Sep 2015 14:08:21 -0700 Message-Id: <1441832902-28993-13-git-send-email-palmer@dabbelt.com> X-Mailer: git-send-email 2.4.6 In-Reply-To: <1441832902-28993-1-git-send-email-palmer@dabbelt.com> References: <2644177.lVCYzIBfPW@wuerfel> <1441832902-28993-1-git-send-email-palmer@dabbelt.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP I think this actually isn't a good idea, but I can't find anything outside of the kernel that's using this so I'm going to hide it. Signed-off-by: Palmer Dabbelt Reviewed-by: Andrew Waterman Reviewed-by: Albert Ou --- arch/x86/include/uapi/asm/auxvec.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/include/uapi/asm/auxvec.h b/arch/x86/include/uapi/asm/auxvec.h index 77203ac352de..88e5fa6d97e7 100644 --- a/arch/x86/include/uapi/asm/auxvec.h +++ b/arch/x86/include/uapi/asm/auxvec.h @@ -9,11 +9,13 @@ #endif #define AT_SYSINFO_EHDR 33 +#ifdef __KERNEL__ /* entries in ARCH_DLINFO: */ #if defined(CONFIG_IA32_EMULATION) || !defined(CONFIG_X86_64) # define AT_VECTOR_SIZE_ARCH 2 #else /* else it's non-compat x86-64 */ # define AT_VECTOR_SIZE_ARCH 1 #endif +#endif /* __KERNEL__ */ #endif /* _ASM_X86_AUXVEC_H */