Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2814621rwb; Mon, 15 Aug 2022 11:54:09 -0700 (PDT) X-Google-Smtp-Source: AA6agR5NU73zy3CUefbT/Xb7U/8lbHGkzQeDEai7FiFa7LQxP0XompAivKHuSejMcyoqmhFL4K/m X-Received: by 2002:a05:6402:331d:b0:43d:9e2e:6966 with SMTP id e29-20020a056402331d00b0043d9e2e6966mr15992359eda.214.1660589648915; Mon, 15 Aug 2022 11:54:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660589648; cv=none; d=google.com; s=arc-20160816; b=jH8GGUFZagOMSwOpeBkQzVQfuVJUXRIvKXdANpVZr6Deq31haeo6Zwb8zXYIERKPoK Gsu89Dv03cWnakI0LY5Y8ptpzgLKc2wQw6lKj/em3Ly3WiGyLbhDcFCtoLhZXISQSlbT guiQxemvI7akADCPzOuv/p/yNe0yg4OUkr3J2NOY3gI2WVNgIk8tgEVlVVeZa/8da903 cB/6+0NlLWsGte+LMW1ULp3xZdQqny/8CF7fw1DjRoSrJuGLU0HbDhgj4FOeGCTDLJiC c7UUnjxjSp7enmoWZ6LLmSjQ1XkjXYqsULvaHROLLbSobJjHK9shHpW2ACkDBldSQvMG WasA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0KeU9S0+JYQ6BFPlx5d9djyUcm/um1YbfE+q4JyifQw=; b=srLAYLG/wga1pLa585bx5bvTkxZAypbL6/q3GvejZYqZ4VUqhOV4XB5eyxsSCXk7Xr 3Vy11GIvkG2MHFA6s7+xTiM6gDrMb2oVqYte79rkaBLaA0j7UOhEUuJSPhc8fZSfwM2p EwnUwisz1/D0fIdQHcDWzM42M0tbMbwP5+yazCg3mQ8TSQ+U+vlePQvc9CYPZGKaojIa tAiP3vM6RV3DWLX8sC8HKrwC0FY8+JvRXO9yDZPb/RhMWkDsDi/EagI3Aca0rsatf9ge YvPBxbOIyZ5BOpbcypdFQmzjqcPOLawh2uNd1xzRB5dRaosaZzbL9HeQmB9szOHrg56o gVxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1ALCVUzH; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id di9-20020a170906730900b007308200cc45si11264172ejc.35.2022.08.15.11.53.40; Mon, 15 Aug 2022 11:54:08 -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=@linuxfoundation.org header.s=korg header.b=1ALCVUzH; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239995AbiHOSri (ORCPT + 99 others); Mon, 15 Aug 2022 14:47:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231310AbiHOSmS (ORCPT ); Mon, 15 Aug 2022 14:42:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0C462AC6E; Mon, 15 Aug 2022 11:26:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6403560F23; Mon, 15 Aug 2022 18:26:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4EFFDC433D7; Mon, 15 Aug 2022 18:26:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660587974; bh=HCDTP6YCyVvWZ0zXAbXHOSnCidLQo2cVAidr/dDN0dg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1ALCVUzH2oBn9izkjXO2emnzIAw9+WLvYfwMMsXcTYGoVYzLS4QzLIX4nPPIp5Nnf 1r4RV4ba4ydMuY99YwTKNsjdk8wsfhML7ff5ze4hMz/7TjE12XKyq0D2ObivHu0NVN SG7tlVXEGDe/WAfJns4n09pnf7nZXmcybKQSSsBs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Zimmermann , Daniel Vetter , Sasha Levin Subject: [PATCH 5.15 254/779] drm/shmem-helper: Unexport drm_gem_shmem_create_with_handle() Date: Mon, 15 Aug 2022 19:58:18 +0200 Message-Id: <20220815180348.189902912@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Thomas Zimmermann [ Upstream commit 5a363c20673308e968b6640deb73d7bf77e8b463 ] Turn drm_gem_shmem_create_with_handle() into an internal helper function. It's not used outside of the compilation unit. Signed-off-by: Thomas Zimmermann Acked-by: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/msgid/20211108093149.7226-2-tzimmermann@suse.de Signed-off-by: Sasha Levin --- drivers/gpu/drm/drm_gem_shmem_helper.c | 3 +-- include/drm/drm_gem_shmem_helper.h | 5 ----- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/gpu/drm/drm_gem_shmem_helper.c b/drivers/gpu/drm/drm_gem_shmem_helper.c index 3eb580d76559..15e53674ed54 100644 --- a/drivers/gpu/drm/drm_gem_shmem_helper.c +++ b/drivers/gpu/drm/drm_gem_shmem_helper.c @@ -391,7 +391,7 @@ void drm_gem_shmem_vunmap(struct drm_gem_object *obj, struct dma_buf_map *map) } EXPORT_SYMBOL(drm_gem_shmem_vunmap); -struct drm_gem_shmem_object * +static struct drm_gem_shmem_object * drm_gem_shmem_create_with_handle(struct drm_file *file_priv, struct drm_device *dev, size_t size, uint32_t *handle) @@ -415,7 +415,6 @@ drm_gem_shmem_create_with_handle(struct drm_file *file_priv, return shmem; } -EXPORT_SYMBOL(drm_gem_shmem_create_with_handle); /* Update madvise status, returns true if not purged, else * false or -errno. diff --git a/include/drm/drm_gem_shmem_helper.h b/include/drm/drm_gem_shmem_helper.h index 434328d8a0d9..6b47eb7d9f76 100644 --- a/include/drm/drm_gem_shmem_helper.h +++ b/include/drm/drm_gem_shmem_helper.h @@ -128,11 +128,6 @@ static inline bool drm_gem_shmem_is_purgeable(struct drm_gem_shmem_object *shmem void drm_gem_shmem_purge_locked(struct drm_gem_object *obj); bool drm_gem_shmem_purge(struct drm_gem_object *obj); -struct drm_gem_shmem_object * -drm_gem_shmem_create_with_handle(struct drm_file *file_priv, - struct drm_device *dev, size_t size, - uint32_t *handle); - int drm_gem_shmem_dumb_create(struct drm_file *file, struct drm_device *dev, struct drm_mode_create_dumb *args); -- 2.35.1