Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp164105pxj; Tue, 15 Jun 2021 22:58:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCLdRdw8GgNV38SiGbs4/VO13q5u90qDrBqmhhBZr98oKp5T2Xn6reltK+Dh+zZNhOB+qz X-Received: by 2002:a05:6402:5244:: with SMTP id t4mr2109613edd.254.1623823080604; Tue, 15 Jun 2021 22:58:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623823080; cv=none; d=google.com; s=arc-20160816; b=RSOd/UKDkABkbRi/ZMpeJacJhX6IIfeCd9ZgESXLJ9TXfF6730621KqtOOIwZIS11s JINFZpWu6JGKGFnjvrC70CGhhfkA651IeT7Nmw2bH7iky+BecPmWn2XF0FXlh2yiwEie WB+OmOINFn5lQHPS/bQ/TVbbwzjOhV8qoYC1Sn0QE3h1Q4Bb15pruSfMi1EULpKhUPg7 hZH0Buo3wNfJ5UeHxkYNqUBK4Bjh2NVHZPnGUy1rFSq0DLsAFBXvuaarqGLmBVmGshdo 4TzcuUkn7gB7n7HaiW9nD45NB+rb1DE98F5LYecdDiWojK9/vAkf/V79KKMrtC2TX8mc sLNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=l4NXLueiQXPgkR84X7Zi3mSjKln1UOoxWbJXFWpgEr8=; b=h5iT9qdj5tvT9WO5fX951kn1MlBB+2Xbpw5jvIEu75nCVeZFPndp4KakPh+8PjZPqt umz+OdkBosInMk5pwygTwnw0d7xIehvBNZyT0eEsN7wPnf1Eq9l6DmXD7cdgwlx7Orf8 p4t1uiB07bYbLrzoxlLJrQpzD+zWHYXcal38CloFA87lmEWQFTrluilM4BQlwq4+RRDG mqz1o2tCau6RbRfyncI6hc7C20FYHjU3a5iRELFZBEknRsl845vIMwzjCWQ+OVS+DlRr R8C2GNPX1MSNbP0fWX/jFKy+qtnsmcsT8QCXbGQv/Oa3PE80nLProlhdibqG7IgSLe72 KezA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k13si1344779ejb.687.2021.06.15.22.57.38; Tue, 15 Jun 2021 22:58:00 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231200AbhFPFzb (ORCPT + 99 others); Wed, 16 Jun 2021 01:55:31 -0400 Received: from out30-132.freemail.mail.aliyun.com ([115.124.30.132]:51777 "EHLO out30-132.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229543AbhFPFzZ (ORCPT ); Wed, 16 Jun 2021 01:55:25 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04420;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0Uca.DB._1623822795; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0Uca.DB._1623822795) by smtp.aliyun-inc.com(127.0.0.1); Wed, 16 Jun 2021 13:53:18 +0800 From: Jiapeng Chong To: davem@davemloft.net Cc: kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] net: mhi_net: make mhi_wwan_ops static Date: Wed, 16 Jun 2021 13:53:09 +0800 Message-Id: <1623822790-1404-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This symbol is not used outside of net.c, so marks it static. Fix the following sparse warning: drivers/net/mhi/net.c:385:23: warning: symbol 'mhi_wwan_ops' was not declared. Should it be static? Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/net/mhi/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mhi/net.c b/drivers/net/mhi/net.c index 78d4a06..e5ec0d7 100644 --- a/drivers/net/mhi/net.c +++ b/drivers/net/mhi/net.c @@ -382,7 +382,7 @@ static void mhi_net_dellink(void *ctxt, struct net_device *ndev, dev_set_drvdata(&mhi_dev->dev, NULL); } -const struct wwan_ops mhi_wwan_ops = { +static const struct wwan_ops mhi_wwan_ops = { .owner = THIS_MODULE, .priv_size = sizeof(struct mhi_net_dev), .setup = mhi_net_setup, -- 1.8.3.1