From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753818AbbIJLL4 (ORCPT ); Thu, 10 Sep 2015 07:11:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41428 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751263AbbIJLLY (ORCPT ); Thu, 10 Sep 2015 07:11:24 -0400 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <1441832902-28993-10-git-send-email-palmer@dabbelt.com> References: <1441832902-28993-10-git-send-email-palmer@dabbelt.com> <2644177.lVCYzIBfPW@wuerfel> <1441832902-28993-1-git-send-email-palmer@dabbelt.com> To: Palmer Dabbelt Cc: dhowells@redhat.com, arnd@arndb.de, 3chas3@gmail.com, hpa@zytor.com, mingo@redhat.com, plagnioj@jcrosoft.com, jikos@kernel.org, linux-api@vger.kernel.org, linux-arch@vger.kernel.org, linux-atm-general@lists.sourceforge.net, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, tglx@linutronix.de, tomi.valkeinen@ti.com, x86@kernel.org Subject: Re: [PATCH 09/13] Hide bp_type_idx behind #ifdef __KERNEL__ MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18024.1441883475.1@warthog.procyon.org.uk> Date: Thu, 10 Sep 2015 12:11:15 +0100 Message-ID: <18025.1441883475@warthog.procyon.org.uk> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Palmer Dabbelt wrote: > +#ifdef __KERNEL__ > enum bp_type_idx { > TYPE_INST = 0, > -#ifdef CONFIG_HAVE_MIXED_BREAKPOINTS_REGS > +#if defined(CONFIG_HAVE_MIXED_BREAKPOINTS_REGS) > TYPE_DATA = 0, > #else > TYPE_DATA = 1, > #endif > TYPE_MAX > }; > +#endif /* __KERNEL__ */ This should be in include/linux/hw_breakpoint.h without __KERNEL__ markings. David