Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp180457rdb; Fri, 5 Jan 2024 06:39:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IEwiMlXU1kL583VjZQYzwcIiKZjgPbrTpYzoNfhGY5rf6TQdEt++14dseOpsNjMmBRXVu7G X-Received: by 2002:a17:90b:30c7:b0:28c:bb4d:45f4 with SMTP id hi7-20020a17090b30c700b0028cbb4d45f4mr2681298pjb.20.1704465542798; Fri, 05 Jan 2024 06:39:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704465542; cv=none; d=google.com; s=arc-20160816; b=B0gJW7Y4IgRsdOYwMlNwhS0eXwKOeOMaE7U9tcqmyYU980tY0ND6vs2l6k916AXgxy DDa8EEM7e2bAtiGWJnRVxIjyIaeOe1a1JRNT/8sK7LkApRQoqTOp9c5Ch20rl1r3pbw2 HLa9AgOOiThU45BKn4flKe9BwKJmXrX8PBjBHi3gf5J2GG6FlfI59ULtbBF1fJGCXYtJ bQmfhksjBW+Uv8Qu4R+W6voIIkdqNyJDzIm3I1XTUBsjXDiCqJ6nN66WnoHiMNSYefUV Xe8HDcNCOqCZPB8zM+cyjs8E/XA4qwgJePN953b/+RWN0Xymw5uOEvB2lgDMAXa6HjyV tL1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=PuOOcZVM21gvZ/ZF8zREl/JKU6SeL7edQiXakF+8FHU=; fh=s7QGwbkJU0WXYxtZKlscaPB08TDgZfQzRm//6VcxHA0=; b=fCmeoDBBnzqaksLcEn2RM8FHPfMiuR/C9Br4cnrPNCmBeVW7VL+nn9wakjT4YTCFKL Ml34jsOPkn7WOA5BsH/fDExmybFGWlogsQN5YbMMSHkEzlI9U0OcIQup/DpeVWbwxUKA 7WkP5eE/+pZadn5jzgjTtEgwpuwG2l7d0UiN2lFPQUXaWVRkj7G2QIb4vBMyNpyHMjIC AQsUjF/nBI69lG35zGp4yGf5AQV1GCV5RFtKUhgGJsfQx5q6ZTbBDRSJ9PoOwOI9QYIk WBhj/P5PqVfc0g0I/xdJGj2k0+0qK8nOjGO6DIYuam02alZ/04kUrvls4+xpLahy7D0q KMtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=AQt5b4Tj; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=4r1fPsMF; spf=pass (google.com: domain of linux-kernel+bounces-17945-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17945-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id i10-20020a17090ad34a00b0028c347d3bbfsi939219pjx.44.2024.01.05.06.39.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 06:39:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17945-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=AQt5b4Tj; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=4r1fPsMF; spf=pass (google.com: domain of linux-kernel+bounces-17945-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17945-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E6832B217A0 for ; Fri, 5 Jan 2024 14:38:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EA9022D7B0; Fri, 5 Jan 2024 14:38:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="AQt5b4Tj"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="4r1fPsMF" X-Original-To: linux-kernel@vger.kernel.org Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 219F72E637 for ; Fri, 5 Jan 2024 14:38:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id EFAA75C0231; Fri, 5 Jan 2024 09:38:49 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Fri, 05 Jan 2024 09:38:49 -0500 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:subject :subject:to:to; s=fm1; t=1704465529; x=1704551929; bh=PuOOcZVM21 gvZ/ZF8zREl/JKU6SeL7edQiXakF+8FHU=; b=AQt5b4TjoaXbIqqk+EIOMW3nQF 1OcKuXI4BGV7jzrmJthiTnnHKnrKWuceIG0GdPIcS7Mcm9IPXB0rMoVzzcu4UDLa D7QPJeYD43bo/oxgA8TGSw9DNPq8yl4UMdjYTwd0YqIF+adIS8bgsISYYkFrIig8 ul4YIeGGqb4gFapfgO4elo/XaE8GNwL7FJMstTFsZqPea6xkB/s5TNhnyUGaAuyP ld/qZ58QjkR6Bo9hEanLlGyjIiQM/4yp7RPCt/cPAI+kud6izBfyHBHujjN8oe6J fvZ+2AbNFS5/e9baqyhG0y50v50OGZ7Fb1j3bNmcqLzJL1kGhaUGP9mTm/4g== 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:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1704465529; x=1704551929; bh=PuOOcZVM21gvZ/ZF8zREl/JKU6Se L7edQiXakF+8FHU=; b=4r1fPsMF4dW2iF6HVH/EQsinrQBd693Tq0Sj/tdhj+lb AFEkVyANLWrneduMVfeiIU740wFd1SXM/NuhC3LaUtGUUGi9k5AfnRWOkGgCFZdZ 7ceeYow6GXMi5i2QRaUCkXFodAdjJmtJEsmuVUS4JnLATyj9/DJ5CbQ+tQhF8GV7 wHVzDaRyo7w03GWZ9y4O9MZfenMrk+qxIhey+qSDEL2fHfHxsQZB0vLeUpi53wzT kj4mNaqi2Y8hMWLVawdAzmFLvVbfM2qifM9D7RXfcWcVrbbM86znvoUFWs892/WS maLObG1REGIqR3sw0TDyW1xJMa+rekwLtG5c62yhlQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdegledgieegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 5FB43B6008F; Fri, 5 Jan 2024 09:38:49 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1364-ga51d5fd3b7-fm-20231219.001-ga51d5fd3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <112ae7d5-61b2-4887-a56f-35ea7c3b1bfa@app.fastmail.com> In-Reply-To: References: <20240105041458.126602-3-leobras@redhat.com> Date: Fri, 05 Jan 2024 15:38:05 +0100 From: "Arnd Bergmann" To: "Mark Rutland" , "Leonardo Bras" Cc: "Oleg Nesterov" , "Catalin Marinas" , "Will Deacon" , "Mark Brown" , "Steven Rostedt" , "Guo Hui" , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 1/1] arm64: remove unnecessary ifdefs around is_compat_task() Content-Type: text/plain On Fri, Jan 5, 2024, at 14:14, Mark Rutland wrote: > On Fri, Jan 05, 2024 at 01:15:00AM -0300, Leonardo Bras wrote: > arch/arm64/kernel/ptrace.c:2121:25: note: each undeclared identifier is > reported only once for each function it appears in > arch/arm64/kernel/ptrace.c:2123:25: error: 'user_aarch32_ptrace_view' > undeclared (first use in this function) > 2123 | return &user_aarch32_ptrace_view; > | ^~~~~~~~~~~~~~~~~~~~~~~~ > make[4]: *** [scripts/Makefile.build:243: arch/arm64/kernel/ptrace.o] > Error 1 > make[3]: *** [scripts/Makefile.build:480: arch/arm64/kernel] Error 2 > make[2]: *** [scripts/Makefile.build:480: arch/arm64] Error 2 > make[1]: *** [/home/mark/src/linux/Makefile:1911: .] Error 2 > make: *** [Makefile:234: __sub-make] Error 2 > > ... and looking at the code, user_aarch32_view and user_aarch32_ptrace_view are > both defined under ifdeffery for CONFIG_COMPAT, so that's obviously not going > to work... I suspect it's enough to remove all of the other "#ifdef CONFIG_COMPAT" checks in this file and rely on dead code elimination to remove the rest, but there might be additional problems if some extern declarations are hidden in an #ifdef as well. Arnd