From patchwork Wed May 22 15:02:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 10956069 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B6BB4912 for ; Wed, 22 May 2019 15:03:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A74DF28B82 for ; Wed, 22 May 2019 15:03:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9B69028BDF; Wed, 22 May 2019 15:03:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 42A0528B82 for ; Wed, 22 May 2019 15:03:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 131C689AC9; Wed, 22 May 2019 15:03:45 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9DDAE89AC9 for ; Wed, 22 May 2019 15:03:43 +0000 (UTC) Received: by mail-wm1-x342.google.com with SMTP id 15so2572862wmg.5 for ; Wed, 22 May 2019 08:03:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LW/Ud+w+z0PxvG2JwRl1UYHPfxMf4hKL7DmvJrgwan4=; b=UKKyCsSyd+PBpDqbrVh+xSiFnkoq5OIRVSmCDB0lDN1c11fAnAoweAZhECfhA7L5lQ tzpBmJS7RZVGcrigDMysehcdoLzmAwuHSaT5u//qWaVG3cfvB8/B5lD0JIf7mKm4T+eR RmBhDh/COjl2gVVYMZr0eoViALQ7V0rYVOck+wAD+9Ou5pTA3+Kxoh6vFKWem0Qzq0FB l7Wyv38YneLZaAD5u/2W9HjNH/6FMCSooiw4RuFGnd6bj4+jhaixm7RIXjNddNC4WAPh GhtzMC0IF2RwxwdGJweFN9xj0vLKILD8yYs3yAW0KXhG7wvdJq5pZf2eUMNMPKXY3WC3 1yvQ== X-Gm-Message-State: APjAAAX6ohP8w+RMaHMbL9m3W502fMrx8n1SvfZsRPvybiIQZrslTCaE nePH7509LtB+quYCRnPg3HWF0aYI X-Google-Smtp-Source: APXvYqzPtjy30OSXSrGKRXrvKTrZhtRPbImmfhf2h4TSvAvD4Q4hNqDdHPaDnKxY02EEceiZoFYZzA== X-Received: by 2002:a1c:b3c3:: with SMTP id c186mr7836117wmf.93.1558537421731; Wed, 22 May 2019 08:03:41 -0700 (PDT) Received: from arch-x1c3.cbg.collabora.co.uk ([2a00:5f00:102:0:9665:9cff:feee:aa4d]) by smtp.gmail.com with ESMTPSA id l14sm21978468wrt.57.2019.05.22.08.03.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 May 2019 08:03:40 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/2] drm/omap: remove open-coded drm_invalid_op() Date: Wed, 22 May 2019 16:02:18 +0100 Message-Id: <20190522150219.13913-1-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LW/Ud+w+z0PxvG2JwRl1UYHPfxMf4hKL7DmvJrgwan4=; b=NdZHS2h8+7MPlZFTi+5KPBGNrWwx3QLE7wQ+0yhuu5vGNGcoJByjSHT9aiTixjkgSN OFb/nWIP/VDZynzOqxLZOroTVyB+y9WPVsz5wrWbYedwuwFUPVtkxLYq0kATcp429jcU BESIbmiZeyDtVjC/RhaK7KYCiZ9j2FVtqTTDsMuQkVaZ+Xs7YlTSVry9oBs9k+N4k9p8 QgZ1+oE6JYmohnzh6Vx0R4Xks5wyDw78iARWblDITJRm/isRCc056b6S1Ej46FRLNaya Nf8AR/pJfWKDqfq1orbgtU2V7wAmfhGR4aZQDa+hNce34oUY7A2sA9OV2zx92r91nmAc OsNw== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tomi Valkeinen , emil.l.velikov@gmail.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Emil Velikov Cc: Tomi Valkeinen Signed-off-by: Emil Velikov Acked-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/omap_drv.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/omap_drv.c b/drivers/gpu/drm/omapdrm/omap_drv.c index 1b9b6f5e48e1..672e0f8ad11c 100644 --- a/drivers/gpu/drm/omapdrm/omap_drv.c +++ b/drivers/gpu/drm/omapdrm/omap_drv.c @@ -439,20 +439,6 @@ static int ioctl_get_param(struct drm_device *dev, void *data, return 0; } -static int ioctl_set_param(struct drm_device *dev, void *data, - struct drm_file *file_priv) -{ - struct drm_omap_param *args = data; - - switch (args->param) { - default: - DBG("unknown parameter %lld", args->param); - return -EINVAL; - } - - return 0; -} - #define OMAP_BO_USER_MASK 0x00ffffff /* flags settable by userspace */ static int ioctl_gem_new(struct drm_device *dev, void *data, @@ -492,7 +478,7 @@ static int ioctl_gem_info(struct drm_device *dev, void *data, static const struct drm_ioctl_desc ioctls[DRM_COMMAND_END - DRM_COMMAND_BASE] = { DRM_IOCTL_DEF_DRV(OMAP_GET_PARAM, ioctl_get_param, DRM_AUTH | DRM_RENDER_ALLOW), - DRM_IOCTL_DEF_DRV(OMAP_SET_PARAM, ioctl_set_param, + DRM_IOCTL_DEF_DRV(OMAP_SET_PARAM, drm_invalid_op, DRM_AUTH | DRM_MASTER | DRM_ROOT_ONLY), DRM_IOCTL_DEF_DRV(OMAP_GEM_NEW, ioctl_gem_new, DRM_AUTH | DRM_RENDER_ALLOW),