From patchwork Tue Jun 20 12:03:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Zimmermann X-Patchwork-Id: 13285766 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E3200EB64D7 for ; Tue, 20 Jun 2023 12:12:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=fKgz0qOblHpBuBsc0Aoy6MMt4JbuEJkjyaP0AGzxg8g=; b=p6OV+ouoajQh6Y zMAnXQdlKz4fY5G75jGJ8JF/XuLqzvz4yDBIjDCCEL1nXrB2mDw53CuVcFZF/EaU2uLLOsGA2+qgo ReXMJX4ag6CQkvDFh2ne8aLnGMCy75R+MF6DXpFLS+asJ4AyC6U+uSshqcI/cCj/WJ43WoGlgQi3H 55aX/bi8LH7xhuNKb10OjFTg2g9+pTtZS4oO2X0zkXiCYVgRyRcpWxwnsEjiX2HdS+o78UJhuF5xP bytnpRTA8f7IUqXRH2kJqA6xmfYIFTUx19xRuIfCOrehj8ZoG4P5FB/u7nLaPZRle+L3ynlanjOig N6mKu0R0rGEElsGXMHaw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBaDk-00BDHy-1J; Tue, 20 Jun 2023 12:12:28 +0000 Received: from smtp-out1.suse.de ([195.135.220.28]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qBaDV-00BDA0-1D; Tue, 20 Jun 2023 12:12:15 +0000 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 91E14218BB; Tue, 20 Jun 2023 12:12:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1687263125; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Q0Y3PkLzO5C8O1e77DfS9r0CpVVFDaovCyRftFBwQK4=; b=t4mWsyIr3KeqwKvkcKjmqVYgZPiZjuGzbQ30wGX0U6y0Mg+nJbJ1A0OMGsw9rMN/xowWSd jAMt17ppzl1lgAQkD7BVvQNm2udXaR3s/yapd1PkHcIUVmV8y0cqvXZzzKGAzoPCXVZPQo DYLl5nwalG6Ss8XGnw+3Cz1XusSl7T0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1687263125; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Q0Y3PkLzO5C8O1e77DfS9r0CpVVFDaovCyRftFBwQK4=; b=/fMlEQ84LVNetCmTd7ax38tUic15tIua892kh7iGlH0yQS8rLGCuQah4f7YWmPjAFv/8ic CQ/P4xPMLPgsAvBQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 4CEEC133A9; Tue, 20 Jun 2023 12:12:05 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id cC+QEZWXkWSwEQAAMHmgww (envelope-from ); Tue, 20 Jun 2023 12:12:05 +0000 From: Thomas Zimmermann To: maarten.lankhorst@linux.intel.com, mripard@kernel.org, airlied@gmail.com, daniel@ffwll.ch, laurent.pinchart@ideasonboard.com, kieran.bingham+renesas@ideasonboard.com, hjc@rock-chips.com, heiko@sntech.de Cc: dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Thomas Zimmermann Subject: [PATCH 3/3] drm/gem-dma: Unexport drm_gem_dma_vm_ops Date: Tue, 20 Jun 2023 14:03:23 +0200 Message-ID: <20230620121202.28263-4-tzimmermann@suse.de> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230620121202.28263-1-tzimmermann@suse.de> References: <20230620121202.28263-1-tzimmermann@suse.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230620_051213_560931_3F91C4A1 X-CRM114-Status: GOOD ( 10.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org There are no external users of drm_gem_dma_vm_ops. Unexport the symbol. Signed-off-by: Thomas Zimmermann Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/drm_gem_dma_helper.c | 11 +++++------ include/drm/drm_gem_dma_helper.h | 2 -- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/drm_gem_dma_helper.c b/drivers/gpu/drm/drm_gem_dma_helper.c index e9aa3ac140654..d8a415c3d156c 100644 --- a/drivers/gpu/drm/drm_gem_dma_helper.c +++ b/drivers/gpu/drm/drm_gem_dma_helper.c @@ -45,6 +45,11 @@ * drm_gem_dma_vmap()). These helpers perform the necessary type conversion. */ +static const struct vm_operations_struct drm_gem_dma_vm_ops = { + .open = drm_gem_vm_open, + .close = drm_gem_vm_close, +}; + static const struct drm_gem_object_funcs drm_gem_dma_default_funcs = { .free = drm_gem_dma_object_free, .print_info = drm_gem_dma_object_print_info, @@ -315,12 +320,6 @@ int drm_gem_dma_dumb_create(struct drm_file *file_priv, } EXPORT_SYMBOL_GPL(drm_gem_dma_dumb_create); -const struct vm_operations_struct drm_gem_dma_vm_ops = { - .open = drm_gem_vm_open, - .close = drm_gem_vm_close, -}; -EXPORT_SYMBOL_GPL(drm_gem_dma_vm_ops); - #ifndef CONFIG_MMU /** * drm_gem_dma_get_unmapped_area - propose address for mapping in noMMU cases diff --git a/include/drm/drm_gem_dma_helper.h b/include/drm/drm_gem_dma_helper.h index 3877cbf0e927c..88a810f954fce 100644 --- a/include/drm/drm_gem_dma_helper.h +++ b/include/drm/drm_gem_dma_helper.h @@ -45,8 +45,6 @@ int drm_gem_dma_vmap(struct drm_gem_dma_object *dma_obj, struct iosys_map *map); int drm_gem_dma_mmap(struct drm_gem_dma_object *dma_obj, struct vm_area_struct *vma); -extern const struct vm_operations_struct drm_gem_dma_vm_ops; - /* * GEM object functions */