Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6DACCC64ED9 for ; Fri, 17 Feb 2023 21:01:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229725AbjBQVBv (ORCPT ); Fri, 17 Feb 2023 16:01:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbjBQVBs (ORCPT ); Fri, 17 Feb 2023 16:01:48 -0500 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD3053B659; Fri, 17 Feb 2023 13:01:47 -0800 (PST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 9AD4932003C0; Fri, 17 Feb 2023 16:01:46 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Fri, 17 Feb 2023 16:01:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1676667706; x=1676754106; bh=DFgKMC/SX2 GHEv/K1zSNb50CZY81Bm7Tski0B3YhSjA=; b=c0+G8UEtbiX/7kN5amNNnRLD1K 0RItuR0X9mJe9yNAYgVJN0g7vzH6FFPs2IQLiX6XGuarxryDJKS8w70dLlF27iWa b7ZRPFNPA309arLGH9oe5l1LClscUjDsxpfJE6FE3eZh0cqxOHlh3LZGT8eNB+56 IF5lEZTP8G3V58WXFjnlA9bwQQZxvjrmuQ0RKl9JFSNk81pH9jxEWbn2LpxTjz6z 5Of5+RXsuu/OTqDjOu0mRxUNNsXXrEr0M69HFK95ZhooEBjPeq1tUCk74Mak9A9F Dhq3+TLnGU8TXyLcM2u9+cbxIR4xs78jgxsNkgs01fQ+IsbmE5l3ht4ohzPw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1676667706; x=1676754106; bh=DFgKMC/SX2GHEv/K1zSNb50CZY81 Bm7Tski0B3YhSjA=; b=lXCavbrXc/HI3IwjB9kY3IbUjA4Z7h/TAeDg13K1+3zX b96nkCDQZ083YRygMuWIOHq+epFW7jXsf/tuWm1CQ9x2Fw4+Yp8IzU7DMGNncN8P l6TWvMTU0fvBR1sXYzquK+Tkb1yam6Ubu22sWHYIcX78FO1ICMUqK34WsxfS260Y QK8frgJeHqYjIkBVtk8etOB1ECCegOurbAl45bRLoODw/FUgwjLwP9lkeW8EJrry RL0Wf/KDj3HN7lrKyYTtoyF0tYfb+psTAlOwtN1Z9q3rI4ZUtPi74Um45U+uOkrG zluo/4xD2O+KE478exZWQGFFSARbs8kO8KNNnOkZ8w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudeiledgudegudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedt keetffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id C3A6AB60086; Fri, 17 Feb 2023 16:01:45 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-156-g081acc5ed5-fm-20230206.001-g081acc5e Mime-Version: 1.0 Message-Id: In-Reply-To: <20230217202301.436895-4-thuth@redhat.com> References: <20230217202301.436895-1-thuth@redhat.com> <20230217202301.436895-4-thuth@redhat.com> Date: Fri, 17 Feb 2023 22:01:28 +0100 From: "Arnd Bergmann" To: "Thomas Huth" , linux-kernel@vger.kernel.org Cc: Linux-Arch , "Chas Williams" <3chas3@gmail.com>, "Palmer Dabbelt" , linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-atm-general@lists.sourceforge.net, Netdev , "Andrew Waterman" , "Albert Ou" Subject: Re: [PATCH 3/4] Move bp_type_idx to include/linux/hw_breakpoint.h Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 17, 2023, at 21:23, Thomas Huth wrote: > From: Palmer Dabbelt > > This has a "#ifdef CONFIG_*" that used to be exposed to userspace. > > The names in here are so generic that I don't think it's a good idea > to expose them to userspace (or even the rest of the kernel). There are > multiple in-kernel users, so it's been moved to a kernel header file. > > Signed-off-by: Palmer Dabbelt > Reviewed-by: Andrew Waterman > Reviewed-by: Albert Ou > Message-Id: <1447119071-19392-10-git-send-email-palmer@dabbelt.com> > [thuth: Remove it also from tools/include/uapi/linux/hw_breakpoint.h] > Signed-off-by: Thomas Huth It took me a while to understand this code enough to be confident this is the right solution. Note that CONFIG_HAVE_MIXED_BREAKPOINTS_REGS is purely dependent on the architecture and could be replaced with something that checks for x86||sh but it should be safe to assume that the enum should never have been part of the uapi header. Reviewed-by: Arnd Bergmann Arnd