Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp58279ybb; Thu, 2 Apr 2020 20:55:24 -0700 (PDT) X-Google-Smtp-Source: APiQypLoTuoBIfCCOFdH4aXvw3Di2srpqY4dGJ/PH/ib1zPWgKDYiIMdSOEuWACbKb0rC9MWNakq X-Received: by 2002:aca:b5c3:: with SMTP id e186mr1597408oif.114.1585886124513; Thu, 02 Apr 2020 20:55:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585886124; cv=none; d=google.com; s=arc-20160816; b=WwLbtasLQjeQfyjsex3j54F5jAUa3dBa5Yy87cghw3CJmN4wOzbwLofai2r5M2cYcg K8dUPByxMcDPZlgOG0N9GdpZE8ceXv/iHnlcmNLnxmSZ/PoqAOZaghv4GlJ9gz3vbhOC JKqqtTT9YIi9Sy394Sw+U1auZOxm50OlPCiyz63a/upF88iD2Fw2l7B+NCersJ1hoAYO uqPqRyHcvxuO058hmutcMOOkOZajeruqN4eh9r07tA0i2Wr/DmpYCCOKJFmOEbKWUjNA bGBxqimjx/zbh+rTwteoZJOSXTU6JRe3dTYXcpZz/qwpEEfHUM8sydd5eVsju9GUzT4i wElA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=WFn6YwXEyGl9OfrCuwn5ELSYQta85nx56U69xW8DRZY=; b=hXs6Aw47+WQu8ZZWSKamnSo0VY0jUb/DIpSnzzBlyoKHHjTLJyrLoI0rJ3EiG9u4X/ 2QccVyPk9Zjos30dGyy8JHtWebNYfbQe5DbVPVD1Nlt2YIzxUoLYex67o7xhm/Cia7H2 EraOn8w4lSecnL0bQkwYRdZwCQPgzpF8APMBIwZZQJO0VGYRJNSj5b+Kn1z2qdCN/cfu XMCSDvJEPfSr5QjuzmWwSFh3PZ8vWNh4rHUxzkyzPDZ/iE2zs6sgkVYUYqxk3MlLxoh+ JcyJ4GThXf3TwouORwMVRswQPDtEQOAjtknLcdqEI+2a+ZyR9fa06pX+IS6PUiCaJQEF JtKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g1si3292620otp.268.2020.04.02.20.55.11; Thu, 02 Apr 2020 20:55:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390383AbgDCDxy (ORCPT + 99 others); Thu, 2 Apr 2020 23:53:54 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:12610 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2390204AbgDCDxy (ORCPT ); Thu, 2 Apr 2020 23:53:54 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 6692AA6AF5AD6C0B077D for ; Fri, 3 Apr 2020 11:53:39 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Fri, 3 Apr 2020 11:53:32 +0800 From: Jason Yan To: , CC: Jason Yan Subject: [PATCH] mailbox: pcc: make pcc_mbox_driver static Date: Fri, 3 Apr 2020 11:52:08 +0800 Message-ID: <20200403035208.13885-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.17.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warning: drivers/mailbox/pcc.c:571:24: warning: symbol 'pcc_mbox_driver' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/mailbox/pcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mailbox/pcc.c b/drivers/mailbox/pcc.c index 34844b7a3675..8c7fac38bb1c 100644 --- a/drivers/mailbox/pcc.c +++ b/drivers/mailbox/pcc.c @@ -568,7 +568,7 @@ static int pcc_mbox_probe(struct platform_device *pdev) return ret; } -struct platform_driver pcc_mbox_driver = { +static struct platform_driver pcc_mbox_driver = { .probe = pcc_mbox_probe, .driver = { .name = "PCCT", -- 2.17.2