Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp914168ybg; Fri, 18 Oct 2019 09:12:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxcnxH8RHxrLwLWtPuysxq9rYSMOnZob5oF78Z93vXe6pCU3ErhBKTpDmilelqyuT57PVdW X-Received: by 2002:a17:906:a294:: with SMTP id i20mr9235663ejz.165.1571415122131; Fri, 18 Oct 2019 09:12:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571415122; cv=none; d=google.com; s=arc-20160816; b=pRtRwFOPilODN9DE/fo025lAhRee0pru9YnT8SrHDQN3spu6Gisr6Qfh4xK90eEBqU LEruniprUTcpZlN1ikQvyZvMQytUs3gfdu0pDg2pRqyXdM3/h+9QrJZlio4aKgcKrWsc YHNCYK2fUX2zFBtvnfR3wBiVtNgFRfqIw2FLJ5bZ9qvf19XmBCNDF4BO16juHeMNyRwO Cfhun6bnWVphF80RO4qf1ffhjLXk6zanmyPa3wDHEVlTrxLKbwtzQAC14+kT2cNeKpi/ 9QZ8zfpVWPdnds8+PgVOFmqf2TxIbupyaxJHxFoGeIov88UWMHNSp6s7EQVUp/ltgGIB 3E5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=p8bbfz9QAvKBbmbsCOz4GQPd5M0SFIbDubcTTqn/J5w=; b=pQq+iW/kq4H+xaRjtt3cZI/BaqzgTA/ZLS4DKNzHaz+pplFFCmCsHAzWQrXvAkrfBo phBSJ7gBwywsM1yO5zG3puBE41cUBDOpOJ35KW99+j8jDETTzQJWGa9M3XLM1AtwoUTg LczJhWqBjQvanwv27fnYmzf0zsOHLJyJCdK4nojM6NbDtCVxjE7A9ZyXFDyVFribZptc grUNEWguSJAK4Vyy6I+yqhKIPbkNkWCdNJC9kI867d3sRN7vVkyJUH88woQs7MV9l2wS bCJblNiLgiQSRatWB+VUBAqj/MK0daWDP8lNTpaYAS39tvzuJi2ZFv3eOjEYT3UfUtjh PwOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u27si3773555ejb.172.2019.10.18.09.11.39; Fri, 18 Oct 2019 09:12:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436744AbfJQNmy (ORCPT + 99 others); Thu, 17 Oct 2019 09:42:54 -0400 Received: from imap1.codethink.co.uk ([176.9.8.82]:57832 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727368AbfJQNmy (ORCPT ); Thu, 17 Oct 2019 09:42:54 -0400 Received: from [167.98.27.226] (helo=xylophone) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1iL63F-0007wo-MD; Thu, 17 Oct 2019 14:42:49 +0100 Message-ID: Subject: Re: [Y2038] [PATCH v6 10/43] compat_ioctl: move rtc handling into rtc-dev.c From: Ben Hutchings To: Arnd Bergmann , Al Viro Cc: y2038@lists.linaro.org, linux-fsdevel@vger.kernel.org, Alexandre Belloni , linux-kernel@vger.kernel.org Date: Thu, 17 Oct 2019 14:42:48 +0100 In-Reply-To: <20191009191044.308087-10-arnd@arndb.de> References: <20191009190853.245077-1-arnd@arndb.de> <20191009191044.308087-10-arnd@arndb.de> Organization: Codethink Ltd. Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-10-09 at 21:10 +0200, Arnd Bergmann wrote: > We no longer need the rtc compat handling to be in common code, now that > all drivers are either moved to the rtc-class framework, or (rarely) > exist in drivers/char for architectures without compat mode (m68k, > alpha and ia64, respectively). > > I checked the list of ioctl commands in drivers, and the ones that are > not already handled are all compatible, again with the one exception of > m68k driver, which implements RTC_PLL_GET and RTC_PLL_SET, but has no > compat mode. > > Since the ioctl commands are either compatible or differ in both structure > and command code between 32-bit and 64-bit, we can merge the compat > handler into the native one and just implement the two common compat > commands (RTC_IRQP_READ, RTC_IRQP_SET) there. [...] I don't think this can work properly on s390, because some of them take integers and some take pointers. Ben. -- Ben Hutchings, Software Developer Codethink Ltd https://www.codethink.co.uk/ Dale House, 35 Dale Street Manchester, M1 2HF, United Kingdom