Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1716089pxb; Fri, 13 Nov 2020 23:07:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwxh/9Mj1GlLPRcjaBmy+KE/zJ1m1ER/X71CpTc8BSSo5pTW5ei+/J2DORInvAXesK3SrOa X-Received: by 2002:aa7:c40b:: with SMTP id j11mr6119310edq.151.1605337666287; Fri, 13 Nov 2020 23:07:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605337666; cv=none; d=google.com; s=arc-20160816; b=UGeDxk3LTc25/64xngvfphqtm8hbfN1fxZkt63+Zx4Won792stvagF3+0/IFIZoC30 KC9etaRbgbAGoImilStk49ig+k67aAdnpJcIw+He61JiyDQXpBpzFuuQBR6KEfRMXPHz AlKX1LZsuwSzvgtwX1D63gGc6HphlYnL/nnm/5fuTDho9IlpNyr6IUZoAxpzu7J8hb2t 7y900CLlZGobIDgghVJT6T9ldaPFw6ZqiHIXNJyikKdPxpyyril5D+50KT/OAeZVzF1U 7jdlQEXOvnavXOg9hX8PtiL4x82ehnDG4UezpcxlohMugWjicydyDEODdoEfBWl3QTrM VlQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=M8N988Z1mzQ2UhKAlcRLpwAy0wDhWBCfVaFOEn6au7Q=; b=y3u5Wn18QoAWZkWeEBPgTp/WWDfgO5JEeUd+VjWqiva8QJ3WGq/NRiafsLgtCGQCp3 yrhokkvazYI1irhPEM+HMGNIxYtpH6gWlxrW2d5fI2+Ve39dZvl1B70H4VbT47J4hXnN kx+rqNUZX+Dm3W91L6fp9rkgKG8yfjCUl+bcF4nJxnZ4MxOA4q7rDaWlJ7rPR7vvuMdI hBzvZGWB99zgPYTNDSEPaEGE7KsNKh7rYi8+KaNlAVD2TQJt+uoL4aAG2cL7zm+9bR7B Hfqu5/5luYngAdTNIoj/V0PZRUPsTI1IjifWnd04w7lRxTSQ6S42hb1V7QMXZPXubM3l DR3Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r22si556420edq.46.2020.11.13.23.07.22; Fri, 13 Nov 2020 23:07:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726478AbgKNHEj (ORCPT + 99 others); Sat, 14 Nov 2020 02:04:39 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:7498 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726133AbgKNHEj (ORCPT ); Sat, 14 Nov 2020 02:04:39 -0500 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4CY5tN0dnRzhl02; Sat, 14 Nov 2020 15:04:28 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Sat, 14 Nov 2020 15:04:24 +0800 From: Zou Wei To: , , CC: , , , Zou Wei Subject: [PATCH -next] drm/virtio: Make virtgpu_dmabuf_ops with static keyword Date: Sat, 14 Nov 2020 15:16:13 +0800 Message-ID: <1605338173-22100-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warning: ./virtgpu_prime.c:46:33: warning: symbol 'virtgpu_dmabuf_ops' was not declared. Should it be static? Signed-off-by: Zou Wei --- drivers/gpu/drm/virtio/virtgpu_prime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_prime.c b/drivers/gpu/drm/virtio/virtgpu_prime.c index 1ef1e2f..807a27a 100644 --- a/drivers/gpu/drm/virtio/virtgpu_prime.c +++ b/drivers/gpu/drm/virtio/virtgpu_prime.c @@ -43,7 +43,7 @@ static int virtgpu_virtio_get_uuid(struct dma_buf *buf, return 0; } -const struct virtio_dma_buf_ops virtgpu_dmabuf_ops = { +static const struct virtio_dma_buf_ops virtgpu_dmabuf_ops = { .ops = { .cache_sgt_mapping = true, .attach = virtio_dma_buf_attach, -- 2.6.2