From patchwork Wed May 22 16:41:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 10956347 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 0884E912 for ; Wed, 22 May 2019 16:42:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EE52328C96 for ; Wed, 22 May 2019 16:42:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E2CB628C85; Wed, 22 May 2019 16:42:49 +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 7456928A51 for ; Wed, 22 May 2019 16:42:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A95BA89C0A; Wed, 22 May 2019 16:42:46 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9ACCC89BFD for ; Wed, 22 May 2019 16:42:44 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id s17so3087271wru.3 for ; Wed, 22 May 2019 09:42:44 -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=EiCXJBgmQQgvHjA9MJX6zXtOm5JUiCrk6V/+8qDrxZk=; b=NmiP7v/LmXCNEvK5g3Dc3+6Gmohdy4hE4EzGq57KIek6zYBRBmpTb8wHWKUnnlg2t+ cu3+Qq8GZMm10uGaL3d9GrTIB9lRPnp+Y7+vm/rNUAj+U/LEV8ww5kGeyYhQL7vTQqmt N2hblq3jPffd5/Sd8t+qBqexqkfcvJEFNlTuvqXQISrn6sjBW0nDbPvm+80PMS2v7uJR 09Qayz81o0hvn8syILU7pq6YEMGNx02qnio/4Dxqcf6CmIT1sDJFXOMLjS2L+pv78Ym3 1u/y4MKXOIoqhvs1XSyceqWF5ZmLIGjJQxFe14qW45gHrhChBJP23pKey86SoZPwPdsG ZYQA== X-Gm-Message-State: APjAAAXKIVYQ/R2RCF1LRMWQngoEZSyhF1U5hd4w6Z6u8RpL0VJ1JnWj 4j212i0cUkxNIL9UAS3PU+NulCk5 X-Google-Smtp-Source: APXvYqwmuJmBXVS+sNh7zySGrXTzRc79zy0KCVF6B0eeuSJbs1d2RpNguwyFSqi92qTB470E1aKixQ== X-Received: by 2002:a5d:4f0e:: with SMTP id c14mr40395703wru.91.1558543362833; Wed, 22 May 2019 09:42:42 -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 l18sm24576684wrv.38.2019.05.22.09.42.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 May 2019 09:42:42 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/5] vmwgfx: drop empty lastclose stub Date: Wed, 22 May 2019 17:41:15 +0100 Message-Id: <20190522164119.24139-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=EiCXJBgmQQgvHjA9MJX6zXtOm5JUiCrk6V/+8qDrxZk=; b=gnpg/6QLDSAPuzTRIaDVF+KpTNeqMgBNG6VMO8WH8vGRjBDQfaSR6b25rd3Gymo4M1 B7tl5EXpBuaHej0Fc3ujlNcMcB6eoFldKwwPw1iDhXdn9W3FUsVj1Gqs/I7QnZyI8XjT FjIoQ/XM9ySe245b0BO9jhPgF7WjdBInMoIf9F4Jl+sSADPekUCZFqoWZPDUOtbNoSwI cVNBOadIEGuwvZwbzgBVQqGJwq90WcC3IupfIOvgtvJuTSAZ43iFYR9Gzu1vW+4/Z0Ad TcZH28t1IO8dR2rvvdK7cuHQ5G2OQonAXmMLdlX2ODeGpAqJWnEeQRpvDETudxSyrU9+ v8PQ== 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: Thomas Hellstrom , kernel@collabora.com, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Emil Velikov Core DRM is safe when the callback is NULL. Cc: "VMware Graphics" Cc: Thomas Hellstrom Cc: Daniel Vetter Signed-off-by: Emil Velikov Reviewed-by: Thomas Hellstrom --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c index be25ce9440ad..a38f06909fb6 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c @@ -1200,10 +1200,6 @@ static long vmw_compat_ioctl(struct file *filp, unsigned int cmd, } #endif -static void vmw_lastclose(struct drm_device *dev) -{ -} - static void vmw_master_init(struct vmw_master *vmaster) { ttm_lock_init(&vmaster->lock); @@ -1568,7 +1564,6 @@ static struct drm_driver driver = { DRIVER_MODESET | DRIVER_PRIME | DRIVER_RENDER | DRIVER_ATOMIC, .load = vmw_driver_load, .unload = vmw_driver_unload, - .lastclose = vmw_lastclose, .get_vblank_counter = vmw_get_vblank_counter, .enable_vblank = vmw_enable_vblank, .disable_vblank = vmw_disable_vblank,