From patchwork Fri Sep 18 10:08:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 313171 Delivered-To: patch@linaro.org Received: by 2002:a92:5ad1:0:0:0:0:0 with SMTP id b78csp1181790ilg; Fri, 18 Sep 2020 03:14:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqsmsXn7xqvR343nyNsSYiN9cNADPlMcA3D9855H3NgWE4aebAG9CdMYhx2ydAy+6aywYl X-Received: by 2002:a17:906:3ca2:: with SMTP id b2mr36125187ejh.460.1600424043773; Fri, 18 Sep 2020 03:14:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600424043; cv=none; d=google.com; s=arc-20160816; b=z9uGeNwiygKT7taC7O7jgQ2xWf2o+eTJANmNTwFRvd1P93jjVAdeliPUxIvGPQW6W3 BdKQsXjyjEISFpTaNtISlAzA+DmiKhbhbtXHIDSBGt3GPdUq5sDLMzyp8Ahc6JTgBzLX OQ1njVTD6OeHqVDa32HMcRRV9k+qDGP+abm7RgsHDikC8hh279qLSRCzpkThvR2ueNE8 r1yftvciaX35IS1YzWevqkkwRKSiq65sdUrIq76NF+GzJM/C3K88xYvIKqcUC2Ig/LTG l/faQDPU38s7+gW0v1PSIFFnWxcQvmgkQ2urgaCZ+g6zp2RLAkMMfzuvwDNhQjFkJ9jd 0/Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=HMMrF96kMP4wImGpsuOZDeSx0mTagZKPqvRSgZ+S0Wk=; b=06QDRrLf8JHwPlyedA01F84UJhACzQkeHdLMPQ1z9L3WvPG1PkBeisHFXsrpAZx1iw pBD0hfxoM2a/Dgyrx21hjDLYCrpDSzemUGdn13sG4/lShJNe2YPbT6aVjZKqcEam2aEm xwKuKtTe6J028hP6LqBoZrdBKrOLzHa6S5jrTpkYfvtGeXRZ8Mw24AIXKj9NGso3kUwV QGIDe2S6lkgoikxUNkEtUXRRXvuRX59Mp9oqKghM10/PqNh86/HGmDNGSgYYSI4Qcur1 EJW9W757IjWaFEAKFUeXi/26YznwUM/mgB3gmduRyniNzPe48C/jm+s8zrW/hXhE5qeP Lc/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-fbdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-fbdev-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e18si1646429edy.386.2020.09.18.03.14.03 for ; Fri, 18 Sep 2020 03:14:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-fbdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-fbdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-fbdev-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726149AbgIRKOD (ORCPT ); Fri, 18 Sep 2020 06:14:03 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:33079 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726009AbgIRKOC (ORCPT ); Fri, 18 Sep 2020 06:14:02 -0400 X-Greylist: delayed 313 seconds by postgrey-1.27 at vger.kernel.org; Fri, 18 Sep 2020 06:14:02 EDT Received: from threadripper.lan ([149.172.98.151]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.129]) with ESMTPA (Nemesis) id 1MNbtD-1k98Bu3muZ-00P8yi; Fri, 18 Sep 2020 12:08:34 +0200 From: Arnd Bergmann To: linux-fbdev@vger.kernel.org, Bartlomiej Zolnierkiewicz Cc: dri-devel@lists.freedesktop.org, hch@lst.de, linux-kernel@vger.kernel.org, "David S . Miller" , Arnd Bergmann Subject: [PATCH 0/3] fbdev: stop using compat_alloc_user_space Date: Fri, 18 Sep 2020 12:08:10 +0200 Message-Id: <20200918100812.1447443-1-arnd@arndb.de> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:HqcSX/i6GHoFmyY01bRB6CKtbn8MaB27UT0Ol1JC5D61FuBVEpu UPtbHHIjZAKhvhQIb6QZpWTk7Cvz8P5eKYlnmDMJqr7FJvy1X67irWQrLyhQzU6E69ytquW ZfAToXAayZQo4NyFOk8sxVZoPPCvYtC28GytZbVhFJdZO9GwqVdM8lxXViaenpLZT7/zWSE 0tFo8ku0w0LaTGLKnXUzQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:ZTOfjxmbW44=:7xKPROFVHvDGjNtGzWHNQx Kbdhd3m8SRu/kjQBijH3F72mPu9pxQTIlrx5Tusa7N69Jx0ZHs182UKijT5vFYVuDzgw5v+WQ HbPASGmBY/j0z8BM4ciPPZnnMK0Qrk85SnLDf5qXQU+MetLn3c5yVTZkBOsFcFdUqkExWmL3Y bg8me4YzQOdZQ5tTv8D8xqt5CZpEziZSmX5e1A4HSox2VuU3BDtQH8e8FH2AIJBECl3mjduKc vp7TDycVBgSimqTnI1FP2UL6rZmcV2L1UTCW4XLthY+cQHLLjMkFbCNjUwjzILo+laUdwOFhL Wod8OE/e0jd5gPtiD3cTNExK9e2ijGL4MoCQvvcXb3xvdBiY2Bosew+Vli8xZzlplvXbWjaSl SAUFboJzjRLZbPoC7p8T+Fgaa+QPucYvbj9Pm9iWScdGGK0AUunh41h5CifpkdAWUdwEcN/MX InBOnURqDLGKYuNUnfXDSNQ+6sUoALYhpl0JwZdSogsKeDUVAuTpc/NCf4v+TQPR+olJnuVJ0 4ARnPaf9y2X6OT9o9kHqaBErw+iw36Pcd0EEA0UGRv6bHPQzMGXQwLAE+gotRCEGQWS63k1i2 hc9Ft/rEzRzOI2zW86sStSeV4JHdf60aPHHI4WiSThwRevzuMJn++TOquA1xrfTbxPZMPHkYI obBVkxvdNRqMl/kp9SYtIgWhVRyAa/nqbabq+glY3eFXmpRa5ASXZg5WgF2BtSzXW4dAXU9Gc ZCG2oOcPqs2lPv5d36WPZuwSDaeFa/bXcfvhf03y5/XZIuqAHw5rTkgwEVgLRrrOkSSFTu/wn tfIAw0ns7AqtvLo6TElduRyBobsRksY6P10troh/Ypw60mayUG84Fc1f5kEWhEfPclCqM0g Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org The fbdev code uses compat_alloc_user_space in a few of its compat_ioctl handlers, which tends to be a bit more complicated and error-prone than calling the underlying handlers directly, so I would like to remove it completely. This modifies two such functions in fbdev, and removes another one that is completely unused. Arnd Arnd Bergmann (3): fbdev: simplify fb_getput_cmap() fbdev: sbuslib: remove unused FBIOSCURSOR32 helper fbdev: sbuslib: remove compat_alloc_user_space usage drivers/video/fbdev/core/fbmem.c | 44 +++++------ drivers/video/fbdev/sbuslib.c | 124 ++++++++++++++++++------------- 2 files changed, 90 insertions(+), 78 deletions(-) -- 2.27.0