Received: by 2002:a05:6512:3d0e:0:0:0:0 with SMTP id d14csp623445lfv; Tue, 12 Apr 2022 00:18:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrTt/9KayIY70Xr3SetPKCsNpKiWRixIIMeXy8SZ56J2whkkWmHk46BYy18oW4vaKBGffO X-Received: by 2002:a17:907:961d:b0:6e7:eefa:ddd0 with SMTP id gb29-20020a170907961d00b006e7eefaddd0mr33065332ejc.321.1649747916186; Tue, 12 Apr 2022 00:18:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649747916; cv=none; d=google.com; s=arc-20160816; b=M/kB2JBH2rMLipgNR2o4JdA7iJnPJneOtZv9RIx3BGK/ExkidlrV8xRNFbNAZ6C0GZ Njqxbt8gE/sLXIim2/YFcW1GAmKe/McWGRgD5RLyj0aKgFyTjSoie8EVR4mN765bbGi8 jn0mXnoQe32wzBTitValGvd6PoscUCFlhfKEh+MgvJvSoIWft4+12Uz7XlAYac2t16eS ND1sessmiUFpv9vZ1UWPsQtWqeLor+46lRHyFCE/uT2u0Oee2Q/LH32C2+KUg3epxcSE Lwm49dbOo5sSxZC3IUOgAzw/IPLnmPA2OE7i1o4xRK9H2YUZwaSnd3NC0qteuCbInPPd N0HQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Jmgrfr87urO2UHdC++bZMC/LufyhWtBkXNGwFALXM+M=; b=XDqE2UiD3i1UldwfCQwznqr6kslMzUlduQn8ThIRGY/L4KwoqkGxdMVq4rf41VCh8u POOC25QodAFI+mWo8fnyfRCkOWRG0+/zQfNYPn9kTAlTVoS7W6DSsF7bYCSFUHf2yHS4 wsNMNyqE/vYwdXQDRmAV7JCjun3y7kRK6cV+LgWSmT8+ytLCe3afYZpUgf6LZtF0bpNG jY+6z7cegvfkYEaRTB5pae5jdL77Zqc9IcO3enqCGiUie7BdZGmNsF/ljMKS5t6Nmu+s 7yD51UyAPuK+0UOoMM7HWmAsApfCuVvcxoGdbDR4kgo59VsfD5sMypJ4AjpzoVQmjfpu zSyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=iQqrK5tF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lw15-20020a170906bccf00b006df76385c48si5397807ejb.232.2022.04.12.00.18.09; Tue, 12 Apr 2022 00:18:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=iQqrK5tF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343702AbiDKWDx (ORCPT + 99 others); Mon, 11 Apr 2022 18:03:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350298AbiDKWC4 (ORCPT ); Mon, 11 Apr 2022 18:02:56 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D917726C for ; Mon, 11 Apr 2022 15:00:40 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: dmitry.osipenko) with ESMTPSA id 4CB891F43C86 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1649714439; bh=ZY21VcCnt1KZ/SFvuhi1MrKpSE1xXyIn448Zho4m5n0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iQqrK5tFQhoASlfAkhuQPuI9Tnwja1en0GJe/AeFWiWRfYkDYoGp151oCil/a2KXS zZavlr2NIQ/mOUxKCg7Ci1rUYaU3TvzDG0D5sMZPSV6vZqJj2DszrdHUFmecOft4uk ck6KRrFoCUDdhhmwfdqlP4A1m4YSQOqwDOwldB7a+yAKEaRSxI3O/nkjFO2NLn2PDI /qzGt4C01zbpZA8224csl0EkAluE79l1C4T6pyuvaLf269BGtSPx11dQEv/KWEgb0F u6TXdJzYtVwDxmxGWEQezSFbkH0/PI4/dF155JtfQwjlnJdsMaYrBenEOX2fg9PhFz QqvvuGdl8SBvw== From: Dmitry Osipenko To: David Airlie , Gerd Hoffmann , Gurchetan Singh , Chia-I Wu , Daniel Vetter , Daniel Almeida , Gert Wollny , Tomeu Vizoso , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Steven Price , Alyssa Rosenzweig , Rob Clark Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Gustavo Padovan , Daniel Stone , virtualization@lists.linux-foundation.org, Dmitry Osipenko , Dmitry Osipenko Subject: [PATCH v3 14/15] drm/shmem-helper: Make drm_gem_shmem_get_pages() private Date: Tue, 12 Apr 2022 00:59:36 +0300 Message-Id: <20220411215937.281655-15-dmitry.osipenko@collabora.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220411215937.281655-1-dmitry.osipenko@collabora.com> References: <20220411215937.281655-1-dmitry.osipenko@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VirtIO-GPU driver was the only user of drm_gem_shmem_get_pages() and it now uses drm_gem_shmem_get_pages_sgt(). Make the get_pages() private to drm_gem_shmem_helper. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/drm_gem_shmem_helper.c | 3 +-- include/drm/drm_gem_shmem_helper.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_gem_shmem_helper.c b/drivers/gpu/drm/drm_gem_shmem_helper.c index 7e4851363d14..8e31056575e3 100644 --- a/drivers/gpu/drm/drm_gem_shmem_helper.c +++ b/drivers/gpu/drm/drm_gem_shmem_helper.c @@ -538,7 +538,7 @@ static int drm_gem_shmem_get_pages_locked(struct drm_gem_shmem_object *shmem) * Returns: * 0 on success or a negative error code on failure. */ -int drm_gem_shmem_get_pages(struct drm_gem_shmem_object *shmem) +static int drm_gem_shmem_get_pages(struct drm_gem_shmem_object *shmem) { int ret; @@ -555,7 +555,6 @@ int drm_gem_shmem_get_pages(struct drm_gem_shmem_object *shmem) return ret; } -EXPORT_SYMBOL(drm_gem_shmem_get_pages); static void drm_gem_shmem_get_pages_no_fail(struct drm_gem_shmem_object *shmem) { diff --git a/include/drm/drm_gem_shmem_helper.h b/include/drm/drm_gem_shmem_helper.h index dc1c2db7d095..7284335ea2c9 100644 --- a/include/drm/drm_gem_shmem_helper.h +++ b/include/drm/drm_gem_shmem_helper.h @@ -144,7 +144,6 @@ struct drm_gem_shmem_object { struct drm_gem_shmem_object *drm_gem_shmem_create(struct drm_device *dev, size_t size); void drm_gem_shmem_free(struct drm_gem_shmem_object *shmem); -int drm_gem_shmem_get_pages(struct drm_gem_shmem_object *shmem); void drm_gem_shmem_put_pages(struct drm_gem_shmem_object *shmem); int drm_gem_shmem_pin(struct drm_gem_shmem_object *shmem); void drm_gem_shmem_unpin(struct drm_gem_shmem_object *shmem); -- 2.35.1