From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (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 CDE521C5D4D; Thu, 23 Jan 2025 16:22:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737649377; cv=none; b=sdtZqZRd4dwvIec6ZjS5yB/rBc0c9nR8TlMD5YTwBkXoM4dRoybxGQrDthIsxKzutVrLFZMfzE4oJsHzvTw1c/7NiIp+e7AkPSZHIpXITH6sKSJt+s+KBsBEneNIQTXUN8qIdhffU799uJa9dI/N/qI0QrLZ9xXja7QBIEH0D0w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737649377; c=relaxed/simple; bh=N6HZrAsYICGN9MzebeZPm2VLnTBchujah17HfU33zjc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EOF3s8XdpnqS8Xc4QsJyPDA4yIH0UEcuXNVigtEV9VMh/1YMjXqNt2gCgv3irPqcNIim818CW9tNayNomkUV3ExQmzx0EaKulWYjxUnbJ1HCSqbGJ5NWPolOdv1q1Nzw+FaWsaK0Js7ZJUM3OgNTtGK6+8SIoTIGmwAAyARx3NM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=OVdQG0EY; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="OVdQG0EY" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1737649370; bh=N6HZrAsYICGN9MzebeZPm2VLnTBchujah17HfU33zjc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OVdQG0EYhyJoVMggmIPGVJN5Kz1UNA8Vd9HJ4dFpeKJ1liSRMc0efxIpxSLpkR8p+ 0P7x3WDUSNboHWlpUe7Nr6taiXVz98XIqgkUHuClYOuxZAd8z+Yh7vMW5DovyY+IK6 qfV8x8MND8+WBwTpTeV74XB9E59zgCFBMfSz7slg= Date: Thu, 23 Jan 2025 17:22:49 +0100 From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Arnd Bergmann , Richard Cochran Cc: Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Anna-Maria Gleixner , Frederic Weisbecker , Thomas Gleixner , John Stultz , Netdev , linux-kernel@vger.kernel.org, Cyrill Gorcunov , stable@vger.kernel.org Subject: Re: [PATCH] posix-clock: Explicitly handle compat ioctls Message-ID: <82861179-dfd5-4330-86cb-048d124487b0@t-8ch.de> References: <20250121-posix-clock-compat_ioctl-v1-1-c70d5433a825@weissschuh.net> <603100b4-3895-4b7c-a70e-f207dd961550@app.fastmail.com> <0ecf1a72-d6ae-46ab-ad20-c088c6888747@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 In-Reply-To: <0ecf1a72-d6ae-46ab-ad20-c088c6888747@app.fastmail.com> On 2025-01-22 18:15:13+0100, Arnd Bergmann wrote: > A simpler variant of the patch would move the switch/case logic > into posix_clock_compat_ioctl() and avoid the extra function > pointer, simply calling posix_clock_ioctl() with the modified > argument. That would work, but be a layering violation. Or a "compat_mode" argument to ptp_ioctl() I'm fine with either approach. Thomas