Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp856488yba; Fri, 26 Apr 2019 09:51:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqwzrGgOFOoyOKWbBx5NzxBoeJUo+TS/QWNAJXmzEiZfZPy+dxUuDfXptu9syQAL7U3QTHO9 X-Received: by 2002:a62:ee17:: with SMTP id e23mr48094946pfi.80.1556297496037; Fri, 26 Apr 2019 09:51:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556297496; cv=none; d=google.com; s=arc-20160816; b=tLec2njcC82WU6U3m/nFB/ueldlr0U564fWEsdcL48ugKyGGBOYaeOyDzZvQDp+T0/ Wa2twtVKFt50z4FG0rEYSbE+eG5XSjAqtPVfDo94ONhCTqpKTbR1inW80EBcKa2Wq24A rxkPMPfVzHlsDM33LBnUMycJFXv5NaNuwpw8hIh+C8XPhh34RnGA7/KEJND7lI1l86Ml euXWeC8Ze08mBh4C4agfMy9ZEGXblsoP8f5ViAAtUE57wDe4FzGDk1JuPEzsIvLd29F6 Z+WigjJwv9O/h8aQevZRobqECvTKMe1dncM/wGkk6qwOfAp/7wLHvsETHabj+uwjOzJM cwKw== 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=txpH0lgcClQ1vMnKQW0y3Jn+0lrghjC4ZuYOSpHpP1A=; b=UIsJzRrL/Xkcn6MzybS2xDxcTjTOvEeSxeYpFelwlEI2dHbwDAN66OSi33YNqpt4/O zOLIZIRPaX89i3VG8jvY/B/5Xqnjx7o7YsjTu87+LwpLvqwT+ROx08t1WxrbO9Yf4sMm VMnwwjezBfdk7q0L5aBDMG184/BnknE8dR6XJoucWywgDBI4xw7Vjjt7jxySnfBUjgPc 5btlJoXifY1FXl7JOJ8dAEDCfHHGvbwRj47u64Tn/W1tvxyyyf+7Nm/BB1bkHb9rYV+/ 3BhVPo8QifpVOB1hXAmNjGs6pcrsEaiGl15nxGGW7tO5aNacH2IvFun5SCpvmlRbzhBg j1cA== 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 v12si24479279pga.148.2019.04.26.09.51.21; Fri, 26 Apr 2019 09:51:36 -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 S1726419AbfDZQsr (ORCPT + 99 others); Fri, 26 Apr 2019 12:48:47 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:53826 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726005AbfDZQsr (ORCPT ); Fri, 26 Apr 2019 12:48:47 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id F13841AF6C3E100DF2EB; Sat, 27 Apr 2019 00:48:44 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.439.0; Sat, 27 Apr 2019 00:48:35 +0800 From: Yue Haibing To: , CC: , , YueHaibing Subject: [PATCH -next] counter: 104-quad-8: Make quad8_ops static Date: Sat, 27 Apr 2019 00:48:16 +0800 Message-ID: <20190426164816.37032-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.31.96] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing Fix sparse warning: drivers/counter/104-quad-8.c:836:26: warning: symbol 'quad8_ops' was not declared. Should it be static? Signed-off-by: YueHaibing --- drivers/counter/104-quad-8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/counter/104-quad-8.c b/drivers/counter/104-quad-8.c index 4fa2931..00b113f 100644 --- a/drivers/counter/104-quad-8.c +++ b/drivers/counter/104-quad-8.c @@ -833,7 +833,7 @@ static int quad8_action_get(struct counter_device *counter, return 0; } -const struct counter_ops quad8_ops = { +static const struct counter_ops quad8_ops = { .signal_read = quad8_signal_read, .count_read = quad8_count_read, .count_write = quad8_count_write, -- 2.7.4