Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp60606rdb; Fri, 5 Jan 2024 02:46:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IGJkUanvZoJTXKtNB7IeedB71tb6kIw2SQXmU6DNlJZYOZvB7kL0PLduo7USsIthV3u7kfK X-Received: by 2002:a05:6a21:3295:b0:196:b157:a0a3 with SMTP id yt21-20020a056a21329500b00196b157a0a3mr1743837pzb.62.1704451587545; Fri, 05 Jan 2024 02:46:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704451587; cv=none; d=google.com; s=arc-20160816; b=lqDPIhdDrF4Yaf2Tb2NdQbxPOqFBNfYfyVRRkN7Au+G8NVbBNZjmQhEbctvrej1F52 G7DOOgTt4yML7mLbt+MfH4AuxO3JgbzEKfMLeX8ursmBoXO2hzhJyPpd1sDBcqmQCBPn UoQSYPtuIbChtzuzV8X33nnw4Pd8v1b4yVl0lOc/xrWbXFEU9VbkUWYxM0zu7jyVM0/E n46V98fGrX+AdDwXKBRjbtLM8b2l6jCVNQEhfhMHZs++o3lehv7lL09mCaIlV7l41qi9 4V4q/zNkguNWMWfk/RGOMlbxMvU41ydc/yYNtMXEAtBip1KvnKWomt+8fcIsE/FKAvVd YvQg== 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=u0NWzru5NpWplG3MtwbrlDuQ2qJ6q4k8/PVrz6ggq5o=; fh=k6vMLqumnxA9aM4XLxV4bR1HNwcPxP6Ze8k6/3VzpyU=; b=TDhRA4/4VAIPdzKm2hwW4higCHxcXGbpWS0qfJ2un14GlOHYwCpj+GP97AWWKV5tt8 yhnEEt8qHcbG91osxeGBRZKLmqpb/VM2oKVstqpkOqUCYLjCMiUZnTBw7UBWKh+nm/bz I05xo8EMW9fp56cJ+3goP+20wmQP94Gbk78x8XEMVi++ZtufOw2u4hQd2AEMDaDawnef rh3VyhROiookZst+cV2uO9OpOgbbes8+TJJaPiI2TRS4YL5mLY081KTXgCWjUSB7NULI RkfHcGz8xHpbf1m3wrzji2VbSll7uehg2Dkfwc3WrHgPZJSVA6dtBMXa3My9PxeZbxfN WN5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=Cwxb63r3; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=5nrcx3kc; spf=pass (google.com: domain of linux-kernel+bounces-17767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17767-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id f15-20020a17090aa78f00b0028d02fe4acesi624065pjq.79.2024.01.05.02.46.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 02:46:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=Cwxb63r3; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=5nrcx3kc; spf=pass (google.com: domain of linux-kernel+bounces-17767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17767-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 350EB28516A for ; Fri, 5 Jan 2024 10:46:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 360162510D; Fri, 5 Jan 2024 10:46:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="Cwxb63r3"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="5nrcx3kc" X-Original-To: linux-kernel@vger.kernel.org Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (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 A9729250E7 for ; Fri, 5 Jan 2024 10:46:18 +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 93CF95C012C; Fri, 5 Jan 2024 05:46:17 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Fri, 05 Jan 2024 05:46:17 -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=1704451577; x=1704537977; bh=u0NWzru5Np WplG3MtwbrlDuQ2qJ6q4k8/PVrz6ggq5o=; b=Cwxb63r3mNFLSakIK7Ki7zERTE Rfwy3G1wOmRwhG3EPCCBJWvXH6ffzJdX56hr7Mc8cO58elCzMQf4F3sjP9VdyB+V Xv9+4ou2noNAjl9hm/HCC0odicrH3mz4C93d+h3gcQei7rrOEa5cS8zzibf6CluV ogbaaa/F/VKRdiaMk+7+rhVVAuxL8YPyqQcUxRN7C/5Uz33qkqXPPeoCZLoL07+2 AIiIjaL8BuZWRkAUL8JK8rr88Cmdew/xgkt6rLJWTLgI/bYMZXkp1VR5/AzfEOg/ YjgsEh5eTNfAmImCfFqv9A5ELhXN3V0nNB1+VfmCEkn9bqi8OfGalIJdPBog== 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=1704451577; x=1704537977; bh=u0NWzru5NpWplG3MtwbrlDuQ2qJ6 q4k8/PVrz6ggq5o=; b=5nrcx3kcmY25shycuY70VQ0wyoF5MBa4qLEHPk0SX1i1 851AddFTWSWC/oi4esje8q59Wxi2jTQASPLCHKPJ1WPrJgxLATg9eYM1jrbdXZGf 0qspfrrpcw2JfzZ067E+OwSznC6SLL2bJBYwggyRrI6L3PDR4E3vQZAsY1PscOUX +XwEti3L75KYqBJIOP67nLMJ9S0SbmhtK0BCnhlEhxEGtpPaiN84RNJdPRW8VvqA Qtz6eK4YQvnlDBYt8vQph5YMbw7Vbm8DldmEzPGYp2X4kIW7HuCH1Svpq0ZxbjpW 9tzy+6BNRTcECTgsV8PMbO7SpqY1oJF9w/DZ5IxzYw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdegledgudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 6FA06B6008F; Fri, 5 Jan 2024 05:46:16 -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: <582b9eb1-b50b-4c41-80b4-9cc1444a7801@app.fastmail.com> In-Reply-To: <20240105041458.126602-3-leobras@redhat.com> References: <20240105041458.126602-3-leobras@redhat.com> Date: Fri, 05 Jan 2024 11:43:42 +0100 From: "Arnd Bergmann" To: "Leonardo Bras" , "Oleg Nesterov" , "Catalin Marinas" , "Will Deacon" , "Mark Brown" , "Mark Rutland" , "Steven Rostedt" , "Guo Hui" Cc: 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 05:15, Leonardo Bras wrote: > Currently some parts of the codebase will test for CONFIG_COMPAT before > testing is_compat_task(). > > is_compat_task() is a inlined function only present on CONFIG_COMPAT. > On the other hand, for !CONFIG_COMPAT, we have in linux/compat.h: > > #define is_compat_task() (0) > > Since we have this define available in every usage of is_compat_task() for > !CONFIG_COMPAT, it's unnecessary to keep the ifdefs, since the compiler is > smart enough to optimize-out those snippets on CONFIG_COMPAT=n > > Signed-off-by: Leonardo Bras Reviewed-by: Arnd Bergmann