Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1536450pxk; Thu, 10 Sep 2020 19:03:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVHsXonK7GBbhm83dWGVNzQJ6DWX3if0q/KVy6xkabJkot7mbQOUJMmvtz/vH+WT1hm8AX X-Received: by 2002:a17:906:4e54:: with SMTP id g20mr12383732ejw.252.1599789800238; Thu, 10 Sep 2020 19:03:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599789800; cv=none; d=google.com; s=arc-20160816; b=WnJuoyjaFiAB3LwBEdY4AtzTOq83LH0jwldxnMC+e5fl9xcbvL690MHZRtAV5MdRYp 2ROXMTSWKzZt9mQOFxIvaa4EkDW8bQMMS7wquXnKfNEQlHQ9zZss6mQf+NTH+gNcKfm8 n7P7LfckXezC7+I5UqQuhBaOubPyli0mZ3iBpsysnO/EMmEYQrdSOUCtkrBPUtiYKB22 jaxjlChvofXAE/PgzvQAQfEUJGUsuSrmllFFBQuV2kj4g2V6jbv/mFmwTJdLzhumcDjj hoOjH4KISdol4lT+1AHBv+/l/9nVZCi+E7IkoMTCrHqGbhfGyzK6o9uxI48InbjvYgVL dZ1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=XTNFUpt4rhJjt87N8GbPZ9ydi+TDwJZQwNqwhbRp3lI=; b=F/n1tzulB5eVe9yMfxG82aFzW8wJIsDh2WytFUsD2CMzVPv87WBiTt8i87fXKUlUK5 CwfimCC8ncdbYu5CzgkQ2buIp8PMgdFP/VHQ1Z6gtKUw1H6kXuR5T8uRlPOAZx0SMeEs Dkmg2/fUSTlulAgUsfmv4S0Ih1G5ul3AhYR5ljSOkpoJ8vOo/Iezqr0s3+ak+4i1vk9s LajG5CbNH7CPHttKhORpu9uojUG+dDfDCQhw4CWOmC+xgGyfhcPlJst5FCVVSGsADev1 EIWWP+T/b/BG3eVIuFZuqTVOke4m4AFOwFnqkZIiVKHCpFqypYcAoRgRLJA9Lb+fXnoh O4pA== 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 n11si313705edr.118.2020.09.10.19.02.56; Thu, 10 Sep 2020 19:03:20 -0700 (PDT) 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 S1725497AbgIKCCP (ORCPT + 99 others); Thu, 10 Sep 2020 22:02:15 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:11808 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725300AbgIKCCN (ORCPT ); Thu, 10 Sep 2020 22:02:13 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 5651284925446A64A6DB; Fri, 11 Sep 2020 10:02:08 +0800 (CST) Received: from huawei.com (10.175.127.227) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Fri, 11 Sep 2020 10:02:00 +0800 From: Jason Yan To: , , , , , CC: Jason Yan , Hulk Robot Subject: [PATCH] powerpc/ps3: make two symbols static Date: Fri, 11 Sep 2020 10:01:21 +0800 Message-ID: <20200911020121.1464585-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This addresses the following sparse warning: arch/powerpc/platforms/ps3/spu.c:451:33: warning: symbol 'spu_management_ps3_ops' was not declared. Should it be static? arch/powerpc/platforms/ps3/spu.c:592:28: warning: symbol 'spu_priv1_ps3_ops' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan --- arch/powerpc/platforms/ps3/spu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/ps3/spu.c b/arch/powerpc/platforms/ps3/spu.c index 1193c294b8d0..0c252478e556 100644 --- a/arch/powerpc/platforms/ps3/spu.c +++ b/arch/powerpc/platforms/ps3/spu.c @@ -448,7 +448,7 @@ static void ps3_disable_spu(struct spu_context *ctx) ctx->ops->runcntl_stop(ctx); } -const struct spu_management_ops spu_management_ps3_ops = { +static const struct spu_management_ops spu_management_ps3_ops = { .enumerate_spus = ps3_enumerate_spus, .create_spu = ps3_create_spu, .destroy_spu = ps3_destroy_spu, @@ -589,7 +589,7 @@ static u64 resource_allocation_enable_get(struct spu *spu) return 0; /* No support. */ } -const struct spu_priv1_ops spu_priv1_ps3_ops = { +static const struct spu_priv1_ops spu_priv1_ps3_ops = { .int_mask_and = int_mask_and, .int_mask_or = int_mask_or, .int_mask_set = int_mask_set, -- 2.25.4