From patchwork Fri Sep 18 09:54:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 11784463 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 031B6618 for ; Fri, 18 Sep 2020 09:55:33 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C48D22076D for ; Fri, 18 Sep 2020 09:55:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="RaV0wIeM" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C48D22076D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arndb.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=+4EbmW5EL4Bpda9IUa5rvx+4QVI3RXszdfWmI/xSk4g=; b=RaV0wIeMIEET1aGAseg2oZ5qia TPonEVWFWWjrd33jt6GP/PRI3YJZycCOv/qVqtarB7vWzxhrJ+bGcsEbOA1ft+MtrAag6fGFHVS22 NoN3cweVLmKRlrKr/bly+Fa6OccnfMoFMJDi1N5xUcRavtAybkd1qBGgVKNOGYvljEv2mXUIF4mnr /49frdwgzs/A7ATTXMHbJsv8pl7T/5a0tq1YGUKvANAy1Hc2nmAT7fl+PdJubER5L2LSM7wSnluZd 0zy8B7aU2PyItsLxleZaZb4gaFMDPCcQuHtewnoGV1dxCCntOAEETUs5qD48tZhXcLPxtFpRpBIrR zJi6P30Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJD6t-0000cW-JW; Fri, 18 Sep 2020 09:55:19 +0000 Received: from mout.kundenserver.de ([217.72.192.74]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJD6e-0000XU-Tn; Fri, 18 Sep 2020 09:55:07 +0000 Received: from threadripper.lan ([149.172.98.151]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.145]) with ESMTPA (Nemesis) id 1M597q-1kI7Am0ZlM-001EGb; Fri, 18 Sep 2020 11:54:52 +0200 From: Arnd Bergmann To: linux-rpi-kernel@lists.infradead.org, nsaenzjulienne@suse.de Subject: [PATCH 0/5] staging: vchiq: stop using compat_alloc_user_space Date: Fri, 18 Sep 2020 11:54:36 +0200 Message-Id: <20200918095441.1446041-1-arnd@arndb.de> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:RIMQCO9sg3s7Q8uUPOZE8Q3ZaERCR8FzdWbwg646liLFhy7ixQA 2jT7XzbAVGuaTErny+Vn/YxqDlCJk+rupKSMEl3Wf2thyWaXOONIcRbLmrVXD0IzHZavQKu UOUJPU4NYOTyZLFwZHHMQYqfUudD8RWjvAKgXbUk+iWiRIqOJuor2tB0WGRMP5NWxF2lRcn l+LCNOW5M0kDOb4MYZSCw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:0u4mE8JqKjw=:6Y0WvuNn4FoaFfGM/Jqg70 Yb0XhB2dy3ufIBhZqj+aYi+QcfbtjOjAvvmu9htz615k9TWylT3xGtqk+SAlHtCYgXiyoq5Cm StEv/hF84Q57nt6rB36m0yLtnMjUnF+ey71eeAbWVRBYHRXgagevMIXn/696sHxzdlciv0gdr tt1wO26rP9JkfX/QhhxvQQPuBJIxuYdXk9vyGNeTukiwVCPAtQIMMxw6aDnxehTuc4mr2/m3v 7qmgHxIc44kADlaEifJFS0fDbX1UivPBOTLVDfZ8g42+73Ut9m5XCDBLp7W2uOl1MtA1kmDaU 6y4N6ih/ED9ZM6Wc7qcP6wwwPJOVLwO1vFgqhlqSCntFLDp9cR+H54Q3GVnRa825NDLRVnl5g 8DnFUFEE5FHs7a9h3HXAPj8SXtg1cjqNd0OP/EkTnIf9TsP5vzw9yE9G+zZ4D564ZXbxBxNWh W36Go+I0Qmp1hjb4cZBxnPI1uqK9ZjrK9VaDUtQ+XXaZICqantajSs4oEfs3Y82iACCu008zp eKxOVgiFOwAXmzuifLeyyePq39Ja2wNBXPxteE+mht0mkjShFsOems1eEyZplhSE5ut4sGz/L SxxGIqzFJ33v6P2MPHs9PxQEyQG3ymLwdooIZf39lnM5UebR1Di4GH0OEIavaDAMLiDrlDoXT kVXXBfyUyMsDw374X3NBiutwHv7+mskcp5h8wTmBNBiIOGObx2YLd+TMXhh2CZoarlImR46zI IlL0/NwLpiyHLxXstgJ7PTfpUl0S9Z+ajChN6Cf3QUgmd9PDTy/87vqr29W96gOmudmBwR3ci CpOMk0lEHLlHzrJ3Az20i2Na2Ci11VdjSWMk1U5wHALh1eeuJaJFaKn8dEbOrLLFe90g1Yl X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200918_055505_180611_B781894B X-CRM114-Status: UNSURE ( 9.98 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [217.72.192.74 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [217.72.192.74 listed in wl.mailspike.net] 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, stefan.wahren@i2se.com, Arnd Bergmann , gregkh@linuxfoundation.org, marcgonzalez@google.com, linux-kernel@vger.kernel.org, hch@lst.de, bcm-kernel-feedback-list@broadcom.com, jamal.k.shareef@gmail.com, inf.braun@fau.de, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This driver is one of only a few remaining files using compat_alloc_user_space() and copy_in_user() to implement the compat_ioctl handlers. Change it to be more like the other drivers, calling the underlying implementation directly, which is generally simpler and less error-prone. This is only build tested so far. Arnd Arnd Bergmann (5): staging: vchiq: rework compat handling staging: vchiq: convert compat create_service staging: vchiq: convert compat dequeue_message staging: vchiq: convert compat bulk transfer staging: vchiq: convert compat await_completion .../interface/vchiq_arm/vchiq_arm.c | 1194 ++++++++--------- 1 file changed, 551 insertions(+), 643 deletions(-)