From patchwork Mon Dec 9 15:42:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 181053 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp4517455ile; Mon, 9 Dec 2019 07:42:52 -0800 (PST) X-Google-Smtp-Source: APXvYqwvyohSq7VTG2raVtd9bGs6LR5gcQ7DReBmHKwqmXubWKxYdQac1/jHE64su0EasCKmWC/6 X-Received: by 2002:aca:cf83:: with SMTP id f125mr23676013oig.15.1575906172347; Mon, 09 Dec 2019 07:42:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575906172; cv=none; d=google.com; s=arc-20160816; b=RYT69vxATPLUxLQfcMTKyR8jF1Hhs3vkj1VgFrgFpU4ARc8tDgBxlSG2OALUoAvckN UeLx/sZSupIJ3LapE55WZpYnlYpg3E71czVR10BfhCZfUzjwfY93Kb2ZSUuPYOl6BkMd 1r+1FDCBHESLam59HXpy0hzBkMlRixa2LOOZEwGmVC+BTDtAHoXNkNpYpiuXDHe2kSL0 kwCtz0pTAsSiBVzcqpPtbu2DYBqap4Iz6SGsYC+U8qAGSdKglz8aLejvBk/M7zpnAZUv pKe6t+n4EjYHDmOE7sxEHMvkmncsvz8ynbLMz5/Blii02wG6D9xVcusCBAy0BC1t6GY0 HUsQ== 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 :message-id:date:subject:cc:to:from; bh=j5RNgKxHKa2rv85of3at/j0XpbIuwbcGH4uYSPCPexg=; b=luxcImDAG2g/qwkAkoGwGVlXKx0DxRA768iSsXXLywRHS8r3BdxxVWP9QTYssmk/pt LyzGNjcQsOZWRqxJZH4yWA8EwUnRDFr07AJgM1JyBjIs18SyW9pB/2dKrkpGgZR6M4qc xzimb+gZoIQd0446nbrmAuTbPrbvmp8spCNW4WCqvoPfIXvHXcV0HKgUN9Q0DfuQFBRF JqF+8vktnxamwW1z9Oyt4nL1V//VzQc0+sp+9l1kr8OFAoy0mpC8am4raXFmqAT1EEe0 u7VWlxS+ogQQ4l6FlWyRsDoeibFyT45JNUX+dXCgR8UlRTj6Mty+xWNAe8mLLHVFU2qN qhrg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r1si7985153otq.298.2019.12.09.07.42.52; Mon, 09 Dec 2019 07:42:52 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726647AbfLIPmt (ORCPT + 27 others); Mon, 9 Dec 2019 10:42:49 -0500 Received: from mout.kundenserver.de ([212.227.126.134]:46853 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726293AbfLIPmt (ORCPT ); Mon, 9 Dec 2019 10:42:49 -0500 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPA (Nemesis) id 1M5wc7-1igGr43rMB-007VUy; Mon, 09 Dec 2019 16:42:42 +0100 From: Arnd Bergmann To: linux-block@vger.kernel.org, Jens Axboe Cc: Arnd Bergmann , Hannes Reinecke , Martin Wilck , linux-kernel@vger.kernel.org Subject: [PATCH] [regression fix] pktcdvd: fix regression on 64-bit architectures Date: Mon, 9 Dec 2019 16:42:29 +0100 Message-Id: <20191209154240.2588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ufg1zlcV9XTd1YJzpe6V yRS6oFyY8sfHF048Yf/9JQ3YglnErA0CTpVT1BgdFr+k/YANgGa+UTHTRYkwKqUpenUmcgBMu VaBHuy4yXhA9bvC8Js8kfTNBINSIdl0ToUyhCG/XWvwKoECeIUfg3rq4rLWVpdZ6WlO28grcE h0NG84+uxZGAhAa+7OLQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The support for the compat ioctl did not actually do what it was supposed to do because of a typo, instead it broke native support for CDROM_LAST_WRITTEN and CDROM_SEND_PACKET on all architectures with CONFIG_COMPAT enabled. Fixes: 1b114b0817cc ("pktcdvd: add compat_ioctl handler") Signed-off-by: Arnd Bergmann ---- Please apply for v5.5, I just noticed the regression while rebasing some of the patches I created on top. --- drivers/block/pktcdvd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.0 diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c index 48c2eb4bbba2..ab4d3be4b646 100644 --- a/drivers/block/pktcdvd.c +++ b/drivers/block/pktcdvd.c @@ -2705,7 +2705,7 @@ static const struct block_device_operations pktcdvd_ops = { .release = pkt_close, .ioctl = pkt_ioctl, #ifdef CONFIG_COMPAT - .ioctl = pkt_compat_ioctl, + .compat_ioctl = pkt_compat_ioctl, #endif .check_events = pkt_check_events, };