Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2583275rda; Wed, 25 Oct 2023 07:01:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF9R4BwxM0ka5PpKEFKS2/0edqqJBV6gpm0WT52/bOi+ocfJqMoOS+YORQpPMLr0QMU2Fhr X-Received: by 2002:a9d:7cd5:0:b0:6c4:e81f:59b8 with SMTP id r21-20020a9d7cd5000000b006c4e81f59b8mr15951383otn.22.1698242476780; Wed, 25 Oct 2023 07:01:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698242476; cv=none; d=google.com; s=arc-20160816; b=Io/f8MrNxJG85cg7oifKkel2sbaV1PIf5SAPIIG/utr0P2Plf2W/SxgPqz5rbnodLz NkERHgkOm5P0fL1I8Dh9KUSRMjlBAVmdhXJKOpWNc25wnoZnou+PfOaAc8aSMVWmbczW 4XWBKNphdF3L2fyzB698RQUB8c1q99IFgcMATZFm5XsoBJtbV2vuOoYnDqxcxkAU7z3U 6sLCTI86NvSq25g83MFy+3cm1udJrRoJgjllotnB8z1jb8QhG2SSgVUpIVSc9w5w5Rn/ D5iuGJX0kY76AgFXvxLoq8T4sNveY7em08bT4xfizS5HCBIE84qd5Xi6uWK2WPScW1tg ucxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=KI5w58UTfABvjvptIvDrQdHkWsalGJQZedeBlycOud4=; fh=D8kSuF79I9V+/erOF89mEBE1wW9Wa+9fWM+coJKmVA8=; b=tuVnIZvGNnmWiIO5wRGmuY2/DqEvx2ERxL6Fkx9hPfFslwE1Tqvv5mDs2J1FAdb+bv YPuGsKybTzBSbcXkg2yy1nQ2jTUOD4dACPxUcaPooxqGtT3+XDHuNaUTHoFHFOwtLsZQ EDfO6PmlJ1pWygNWz4YbDdLKOjjVOlC7WadDX7YGPlfOjdbuqQA+pBwZYqel/ZGOSo6A wUW4+vB4PuODpYfHvEe5IgnvPv9wnmpH2E58u0lCRiktVwXsYzbs7dONRpgGdulv1kgk NgDXid1Rx/d/BCHwVnYFdDt/6N/N/V1AO/5+n+V9JMOtP4ZOMjUC14pGZnvQgQ49FbB4 k4Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=jkIviQ9q; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=gOJs7LGI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id f7-20020a67cf47000000b004577f2fb7dbsi1205748vsm.182.2023.10.25.07.01.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 07:01:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=jkIviQ9q; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=gOJs7LGI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 15DBF80C2547; Wed, 25 Oct 2023 07:00:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344712AbjJYOAh (ORCPT + 99 others); Wed, 25 Oct 2023 10:00:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234214AbjJYOAa (ORCPT ); Wed, 25 Oct 2023 10:00:30 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8C2C18A; Wed, 25 Oct 2023 07:00:25 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id B90105C03FA; Wed, 25 Oct 2023 10:00:22 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Wed, 25 Oct 2023 10:00:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type: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=fm2; t=1698242422; x=1698328822; bh=KI 5w58UTfABvjvptIvDrQdHkWsalGJQZedeBlycOud4=; b=jkIviQ9qbhFEllr47i upP2prLGMngnNzPF2D3xx1Kp7VMPqdBmX8kdZeQ6L3BPIpiveh6M1/YjBa8yyPi4 Y8AvETg4AwRuq2KWdiM4UO40g2DYRTNsQfzLnteGmHe/sEexC3wsDMe3YT4LHeX+ 5TwtL0cmArv4qkILCKL2+RZKU1wuMNAQ6NvSZ8IuiNhJSBCKfmMZI5ppvoIsAI8Z Xpcn+5GdEm0cSwXTLPZglYEj91eT4oHL4BigzhV1nhrv/pL0YAcUFY3KroSEv0uB 34vcsNsW0NtlqFLyGP4CTCB9X3IRZSWJeo8NqPyeYeyTwlEvIyUTjbIcVZML+kWm tzjQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type: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=fm3; t=1698242422; x=1698328822; bh=KI5w58UTfABvj vptIvDrQdHkWsalGJQZedeBlycOud4=; b=gOJs7LGImdiOAT4LGQkbRHYtNebd4 MQ0VH8jbq9fCFG/AVYgUocW8DY1Gjft6GBJ8TUWw7iSaonpCE72LPKuHNPfXeqPC NT+ZnAjy3tmyovZLJkhGFOdIDKHy7XYbNLSMMaJIF8o1fO2CMyTzOtcR4SQaEhex KevFlXZ7W5v0qHfnVPn95/jNhHWvx+SbXCO1lfxHyPCiZLNhk4XmcVDJNBJnlU1j Eqo0N04yNM36bBDuwE78nnNWmi9t/1WtcTwz432gKV0/AVp7WZB7c2fP7uAYhI3R v3o3WP79G+IerXIuw8CAjE52yEszmXEYvvq+IdDjaPjloEeGL0EHSRLgA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrledtgdejtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdetrhhn ugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrghtth gvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedtkeet ffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrh hnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 4884AB6008D; Wed, 25 Oct 2023 10:00:22 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1048-g9229b632c5-fm-20231019.001-g9229b632 MIME-Version: 1.0 Message-Id: <5e5e3e9b-dc16-428c-bd7f-d723960beb3c@app.fastmail.com> In-Reply-To: <20231025073802.117625-1-thuth@redhat.com> References: <20231025073802.117625-1-thuth@redhat.com> Date: Wed, 25 Oct 2023 15:59:44 +0200 From: "Arnd Bergmann" To: "Thomas Huth" , "Oleg Nesterov" , linux-hexagon@vger.kernel.org, "Brian Cain" Cc: linux-kernel@vger.kernel.org, "Richard Kuo" Subject: Re: [PATCH] hexagon: Remove unusable symbols from the ptrace.h uapi Content-Type: text/plain X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 25 Oct 2023 07:00:59 -0700 (PDT) On Wed, Oct 25, 2023, at 09:38, Thomas Huth wrote: > Kernel-internal prototypes, references to current_thread_info() > and code hidden behind a CONFIG_HEXAGON_ARCH_VERSION switch are > certainly not usable in userspace, so this should not reside > in a uapi header. Move the code into an internal version of > ptrace.h instead. > > Signed-off-by: Thomas Huth > --- > I've compile tested it now with a hexagon cross-compiler and the kernel > compiles fine with this change, so I think this should be good to go. I've applied this to the asm-generic tree, thanks for the patch. > +++ b/scripts/headers_install.sh > @@ -74,7 +74,6 @@ arch/arc/include/uapi/asm/page.h:CONFIG_ARC_PAGE_SIZE_16K > arch/arc/include/uapi/asm/page.h:CONFIG_ARC_PAGE_SIZE_4K > arch/arc/include/uapi/asm/swab.h:CONFIG_ARC_HAS_SWAPE > arch/arm/include/uapi/asm/ptrace.h:CONFIG_CPU_ENDIAN_BE8 > -arch/hexagon/include/uapi/asm/ptrace.h:CONFIG_HEXAGON_ARCH_VERSION > arch/hexagon/include/uapi/asm/user.h:CONFIG_HEXAGON_ARCH_VERSION > arch/m68k/include/uapi/asm/ptrace.h:CONFIG_COLDFIRE > arch/nios2/include/uapi/asm/swab.h:CONFIG_NIOS2_CI_SWAB_NO Would you like to send another patch for the other hexagon file? It looks trivial enough as we can just drop the #if portion there and keep the #else side. Arnd