Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp471092lqb; Wed, 29 May 2024 00:44:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWG2H6KzRyov3vzIM2u0Rjt84AbHvua734XAy4cAidLT8WRGG9L7YEHAOX+l+ON7CmmmYmc5WiSBj5Vvo0nkaZmToPgjhad1RHhNZ0xQw== X-Google-Smtp-Source: AGHT+IEIb+yu5FgjoIApYCJae9b1VjhCHVbu0jZ3fYecadjjCDPPXCNY1yerNK1GlWAJVXZPFZMO X-Received: by 2002:ac8:5e0e:0:b0:43d:eaa0:f2ba with SMTP id d75a77b69052e-43fe1125f59mr22327171cf.12.1716968675243; Wed, 29 May 2024 00:44:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716968675; cv=pass; d=google.com; s=arc-20160816; b=ahwhCNxCHzOHKQC1klP4IiIjcuu/Uoaptt+DBkwBE3SMarRezIFLs1+g0YCVUQpl+I lA23qTzeaONo9BE07ZJnn4P6qEnMrKLBa0XRQS8r+7ub5gN+Ny1b2CQXOxhYxGNqGWAw 9CyNXkbtccihN8WT/wE13SJAMloJy36ycioFPkGW2FO9Cw18vrhIbLCWJDltW3LnWLRU dRaJHAyG32Splqi2RF62cLqkyjh34qYqpvLYrbXsSZo4dt33UKDTdpmGfTu5YZtFUCzi SdUaFXOx1NRQHzvHMROFWOb5uicNerTg2ZKSR+qLVSUvfIfADx66a1geumCgGxAm0FfF /5iw== ARC-Message-Signature: i=2; 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; bh=tY0b1kiTqz+yiJQzBg2eP4D0tlDdVwYQn4V11b9iTWs=; fh=fBBR4LJq3352GDv9jRbHxOaWMDrtZ1SnrzqcCLfHh7Y=; b=L/UyER/NnprxwY1W1HL1ou/vufuBzhc6W4g+hZiafGaIRszQhA9adD77yYgYH54CJn GAHMc8gEWUINX0bcWkV5HyDOWO/tBM8Oc+X9zR6oLMpKj9qIlJVYwlGUZyGLafeJ/alQ lpDayp9NNcpngYaTlrl2Uhhz++ac4UcI1MOKAlxHaZhpr4dwBq7KUSGX+63yntUc9Ru2 yBBr4QpTft/xc1WfbTfGn7mPrSDnLq89TA9GzyxMiIWf1iDBoBLJ08tof7O6MXl3lkfh HJDSDG0pELnEHb3T09/YRCzYqxcXDH8fLASFON9EfHUVta7AVtiRlsSIeJoWVbHlmKjo 0OGw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IuFc0cXg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-193616-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193616-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43fe0cfedccsi13372881cf.496.2024.05.29.00.44.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 00:44:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193616-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=@kernel.org header.s=k20201202 header.b=IuFc0cXg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-193616-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193616-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 F23921C22968 for ; Wed, 29 May 2024 07:44:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E8D4C167DB1; Wed, 29 May 2024 07:44:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IuFc0cXg" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 1221E167D82; Wed, 29 May 2024 07:44:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716968668; cv=none; b=gFhNPInb1Z9vCxDiF5SMUUvof204Rrg9mqWttxc+J+tXJDlVqmQu2cD8plgxDlwEOjuKPMX2UQMFSz6wbmGY/j3enBEV8XFf+M8h4JGo+q/D+Biw3WxQoTMTDAfAXR0flpR7EfJfcI9UYsg+JavDNfzU/ryosjc+bleUrr7plkM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716968668; c=relaxed/simple; bh=AzzDMJdA28GXgKKNDPed4G6wzS0vsyy1cTbdGo0qXx4=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=SQYB5ZuJrbdLDzkWoZiGB8xmKHFsNCGYRoRwVpbsH1NSkZLBa9WolELGvsmaumbp3ISFQWeDAj0Xs92qQQqrGt54CLkxt1DkaAmlmjgcap6WpW+6mxcWVDjNbu1UAvQ9CvHqB2DOoNQh0sxpCJjFmlUoB6q1FhqxSj2+afyKdDU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IuFc0cXg; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F07FEC32786; Wed, 29 May 2024 07:44:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716968667; bh=AzzDMJdA28GXgKKNDPed4G6wzS0vsyy1cTbdGo0qXx4=; h=In-Reply-To:References:Date:From:To:Cc:Subject:From; b=IuFc0cXg7QZcBM/e78aPfrhBLd64oyBQbj++bPzquLHjN1El6N7G2cxjH1GnojcRA UAKgr8AanpQgN8kkqaHAe8P0V7JngaFfbCjhgzUImu22Xgy+mGBaWrA9phVcoHfHqO UPXcvCCmHqylLRul5mz4vw/TWykgIHybn23Iry3+RSb0wmoETVk5GDR59Vy9XVXEoj qi2YbSTTRB2zolkkfCW3W6YbxsKuatjmKdN6zpVfi0iYx38TvZehfY2onAdGON1EVG bx0Iddop5HCFibaQ+9aiEJq4H/zC3vZMNTddS9VtdcCgX5afQqorzRtPF97+YQCRGM RpgA1b5BXBrsA== Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfauth.nyi.internal (Postfix) with ESMTP id BCF861200032; Wed, 29 May 2024 03:44:25 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Wed, 29 May 2024 03:44:25 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdektddgudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusehkvghrnhgvlhdrohhrgheqnecuggftrf grthhtvghrnhepvdeviefgtedugeevieelvdfgveeuvdfgteegfeeiieejjeffgeeghedu gedtveehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghrnhguodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdduvdekhedujedt vdegqddvkeejtddtvdeigedqrghrnhgupeepkhgvrhhnvghlrdhorhhgsegrrhhnuggsrd guvg X-ME-Proxy: Feedback-ID: i36794607:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 7935EB6008D; Wed, 29 May 2024 03:44:25 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-491-g033e30d24-fm-20240520.001-g033e30d2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: In-Reply-To: <0da9785e-ba44-4718-9d08-4e96c1ba7ab2@kernel.org> References: <2024041836-most-ablaze-f417@gregkh> <0da9785e-ba44-4718-9d08-4e96c1ba7ab2@kernel.org> Date: Wed, 29 May 2024 09:44:04 +0200 From: "Arnd Bergmann" To: "Jiri Slaby" , "Greg Kroah-Hartman" , "Alexey Gladkov" Cc: LKML , kbd@lists.linux.dev, linux-api@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-serial@vger.kernel.org, "Alexander Viro" Subject: Re: [PATCH v5 1/3] VT: Use macros to define ioctls Content-Type: text/plain On Wed, May 29, 2024, at 09:29, Jiri Slaby wrote: > On 18. 04. 24, 8:18, Greg Kroah-Hartman wrote: >> >> This is a nice cleanup, thanks for doing it, I'll just take this one >> change now if you don't object. > > Unfortunately, _IOC_NONE is 1 on some archs as noted by Arnd, and this > commit changed the kd ioctl values in there which broke stuff as noted > by Al. > > We either: > * use _IOC(0, X, Y) in here, instead of _IO(X, Y), or > * define KDIOC(X) as _IOC(0, KD_IOCTL_BASE, X), or > * revert the commit which landed to -rc1 already. I would prefer a simple revert, as the other options may end up more confusing. Another option might be a new global macro, if we then go an convert all plain ioctl command numbers to that. Arnd