Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1682445rdb; Mon, 8 Jan 2024 07:08:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IFGlnBWa/HRiLR8Bla22vGkj2HRcoMr5MPeuAlFNtuAaknZE4IWWyOtNCAc2uNVYyckQP8C X-Received: by 2002:a9d:7555:0:b0:6dc:86a8:2d78 with SMTP id b21-20020a9d7555000000b006dc86a82d78mr3185868otl.19.1704726489559; Mon, 08 Jan 2024 07:08:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704726489; cv=none; d=google.com; s=arc-20160816; b=HXrpSrNYEoYuUWAan76DUMO+5J6sS7krT5XK7VYdfkGs7jAcWQUVrRE0YShligStBV p/2lIoGobF0YBOcJzzt8jZDQjcAvPfrEppEdHQMjMZyNyLu3VAa2lsprTtrRMDsd9QVJ rFV21nn8FNXEevJPi5GC0KBm+Wg7VaAxvvjEgL45NjVnMqNqIM5ojzNMsWQtUd97ZS2m VC3BxS13go1y3TuQE+fCYe2d92tXx7rcw1aoNKZ0Ju5aLQsbv6NrtxD6QK9SsXu4Xw3+ 8INqB1GFOl7/orz0MZO4e41xtG1P47wGOa+2aMxmCJHNv2ASJWzyvqJO66uVxVh4/64e qeQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=XGkGg6RWYBQE5b/vbAuEGwRY5SKVcqrmQKtMawiQB5k=; fh=wO8Yu/U4BlcoWPVzRHVSsKwjlVHgd5GSsp2wDCx/FlU=; b=dpj8rT14rzj6NZt19QZbDoC1Gv4ap6bQW3WHdrcjc5EQIapoMJh2FEa5MHcrZYXXnQ hPEzZIQE8LbBAOPMIDfcmoSt17CfMdAlx7Hit4QF0GvL8u0DJjyrNu4csQ2F0SeLchlG JLGyKu4/q4/p6YX71tZxcx+eDj3+srJQiG9H3EIolu7ysSfzmAsXXEwptGDH/jDfI4ky X4u6BZQGQOmCQNbffwrC4fAxZFwgQqvfJ3pywPbrido0dLTuWmLBrzpfqAYo8jkKhPAd WSxT+TjYvZoQMQAE+RkFeDiGYrkPsV5RQQ9ihCj6dq3/sWCjqAIa9Voy22bVz9cEebNV YF7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dSMoNcme; spf=pass (google.com: domain of linux-kernel+bounces-19737-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19737-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id l2-20020ab02542000000b007cdfbe85b28si16764uan.10.2024.01.08.07.08.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 07:08:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19737-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dSMoNcme; spf=pass (google.com: domain of linux-kernel+bounces-19737-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19737-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 475131C22B41 for ; Mon, 8 Jan 2024 15:08:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6CF1D4C3D4; Mon, 8 Jan 2024 15:08:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="dSMoNcme" X-Original-To: linux-kernel@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 F40414C3AD for ; Mon, 8 Jan 2024 15:07:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1704726478; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XGkGg6RWYBQE5b/vbAuEGwRY5SKVcqrmQKtMawiQB5k=; b=dSMoNcmeTLjbuSMR994oEA4/zBFkkJqbatSx47utKNgBjf3mO210wLAyKQJ4PDLEJw0n/0 l5eUGAHhbLxc/i5ja+arLU2Pn6YkCo/BFPmngtBwKaXJRzRR/AGuu1f+r+R3RfRNGCAVeG oNEJx0MpogBoVbj3+1uxZvNwX5YyjyM= Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-689-gj-nvBZ5NdCJ12wRdbxCGQ-1; Mon, 08 Jan 2024 10:07:55 -0500 X-MC-Unique: gj-nvBZ5NdCJ12wRdbxCGQ-1 Received: by mail-pg1-f200.google.com with SMTP id 41be03b00d2f7-5c6245bc7caso521227a12.3 for ; Mon, 08 Jan 2024 07:07:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704726475; x=1705331275; h=content-transfer-encoding:content-disposition:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XGkGg6RWYBQE5b/vbAuEGwRY5SKVcqrmQKtMawiQB5k=; b=rET88xeaGYnjJTUfq7CcgZxK8gfhD5zB7gWo9chcBg70y+qZIM/GUcrr7bMAgy/sJF 9GISUBIgnjn8osXNlW20fxx0POeomuGa6MMl4mprlFdmssOlUwd9VKZ87lrozMpDG+qr MvD51UoBg4qjUn4PJYh4zsPYX7IL6c676YG3RL9o6sSZqayWATfJjTfYDkag0uz6pL/j sKksQdlYJsMNaJKjA9TnrwWPT5HSDbzrSV2qeDaq5Y/OAQ9E3//f29ZHpKO6iT2JN/TV cVkmvSWO/GMRV124fl5wCxKRiKYZBlnPYAmTmeL2+OMJnqjBPWFBPTLihLB5uqkZ6WJU MScA== X-Gm-Message-State: AOJu0YwsHWu179OrPAeLwlOxzqyNodOwQaOY67AcVXbz7Fs7ZSXRl1Sq hdSmgNDDNaY5t6M1aLRasK+x2X8W2167LcmSMmylLQtnia+/55RIU8nUNWvW54kU735HAyMHOwD TyzYhfy9Z50bJ+xd2btkI/vZ0KsggMnUK X-Received: by 2002:a17:90a:9a92:b0:28c:6529:ec9c with SMTP id e18-20020a17090a9a9200b0028c6529ec9cmr1176640pjp.92.1704726474805; Mon, 08 Jan 2024 07:07:54 -0800 (PST) X-Received: by 2002:a17:90a:9a92:b0:28c:6529:ec9c with SMTP id e18-20020a17090a9a9200b0028c6529ec9cmr1176622pjp.92.1704726474474; Mon, 08 Jan 2024 07:07:54 -0800 (PST) Received: from LeoBras.redhat.com ([2804:1b3:a803:26a5:3f32:e12b:5335:3c2d]) by smtp.gmail.com with ESMTPSA id l21-20020a17090ac59500b0028acb86f7b5sm57168pjt.44.2024.01.08.07.07.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 07:07:54 -0800 (PST) From: Leonardo Bras To: Arnd Bergmann Cc: Leonardo Bras , Mark Rutland , 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() Date: Mon, 8 Jan 2024 12:07:48 -0300 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: <112ae7d5-61b2-4887-a56f-35ea7c3b1bfa@app.fastmail.com> References: <20240105041458.126602-3-leobras@redhat.com> <112ae7d5-61b2-4887-a56f-35ea7c3b1bfa@app.fastmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8bit On Fri, Jan 05, 2024 at 03:38:05PM +0100, Arnd Bergmann wrote: > 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... Thanks for noticing, Mark! > > 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 Sure, I sill send a v2 soon. Thanks! Leo >