Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1247707yba; Fri, 26 Apr 2019 17:27:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbGG6QYII63+aR8bRUsYeQRYIEL6/s3qLi+DJVfN3YuLRW6TNLZrwF2J5liV1jzZVe9D75 X-Received: by 2002:a63:6e09:: with SMTP id j9mr46973395pgc.416.1556324847196; Fri, 26 Apr 2019 17:27:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556324847; cv=none; d=google.com; s=arc-20160816; b=iwnJAPql28jBhKF7wOE909MKvMYIaPX/iJrI8G8IYrt2PMNYOKonTDmXDoA9IMGIlc FAuuKxatr4Unn5Ua++ndYUVFoVf0FhnAdsJM8+Fq7t5Rv985xi5LHRetpLyGP8V8JF/F C0ZOyDMDR1hLGfi3keYAqNcGnIbJQSVVruF4YWSm600BwrCSgix4J/dj6ONkjj1N7lT2 2Udwh+C/i8B389FsebIRZuhL+iBAzuki7gWYyh+3pk/mzfqvj7tJm30nvNZeAWgG1TUn 2I4fW8eYUrgblWyge8lJmlEeRNSEHPqtLQNBDXCFCm0Cy2+6+XFXBH77Yv4OFfPHncdJ ZanQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3Ha6IGzUAbNJa8v4foUXIvt0exapbiOIVu6T2E/z1rU=; b=gWMFMdfmEHuPHVKTfxviZBM2e1RKN6jMGwE6OrX8RirQTSUpkJcjvmmPlrEH9bP5e7 VzMSH8PvbkdMWtIYO0cbpJ2CRb986Sdmg++cNsDBrqFXfEkeXw2RWLrHti1LBAM7o+11 kwyTLLIDUr4bQM+cWUh8m8j4U3LtUPSR8rOvv0Mc0tCk24TZPhl621dBk0lF3ud4vXxL cP9ubNsmAe8ITS6XACVUoxQjhnIxiBGsB9n1ZzppdpKy+jm9Z9h07Tee6IdD1w2PwTeg ENLAoHECq19j7Qt5GzlmPrh+9zJ2gYbvEQTDKxMU5xLpZ9osa2qEbvrR8tJZHcrLkpp3 vhzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DbKkzylQ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i35si26133437plb.79.2019.04.26.17.27.11; Fri, 26 Apr 2019 17:27:27 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DbKkzylQ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727178AbfD0A0W (ORCPT + 99 others); Fri, 26 Apr 2019 20:26:22 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:45435 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726974AbfD0A0W (ORCPT ); Fri, 26 Apr 2019 20:26:22 -0400 Received: by mail-pl1-f193.google.com with SMTP id o5so2277371pls.12; Fri, 26 Apr 2019 17:26:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=3Ha6IGzUAbNJa8v4foUXIvt0exapbiOIVu6T2E/z1rU=; b=DbKkzylQpmCTdBWcg3f1rxEP5G+fsER02UTw8CIvwTQ2FV8V9tkc5TlF5rN4ZXlDT3 giRdb4ZsdYbHSxG/J4KpjU4PG7QC7RliYGSAsbWWkwlCZEr+hfmD6GdRLEfIPPpnHlI2 RCtnBHVCRK7FKTRvK6wErbd7zzipfr900pv/w1ZYMbZse3GJ/swDkY6p9958P5AxdXzJ 3rXyh6mrIAnphCofhD96Sd7kqTdf/Ez7zt+qgApCXTlseC68BNZ0P3hvjmibSo9zWYdy n5inO53BRPz/l0HQrWXbnY2X8T8ZauhKNKcsuG00+OB4c1TVNp9OycE+405kALWH08Jx zUsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=3Ha6IGzUAbNJa8v4foUXIvt0exapbiOIVu6T2E/z1rU=; b=XT5+HSxdKOt1LM7xiIFdT1+CR4hyCfhKCkdYPo2KgTbvJSQIsr+KQu2Yztkn85wl3M wzHZUt/ekdo3uDRzpUEFvhOvlM+f4PxkZ4zKkUV+C3WQzFrTXK8OcifkV2CsJZKmNAUP 1U8L5etWPdNZbKGQGQesqz4f2fofbHOBqCqm0h2rA8pwhHM1P5eZcsUw9qwieJgCcmKD 0g5EBKHCdKQC6Zvt0fAFZEb9W40u5hP1OsnGKOJh84cWJzKQOSoBiNYEkwGFeae2HOJ1 BRSQBQel/pHJP0eqYVLI4covjVWXsE+S7AecN55AJ1yCTtLbyxTNXQYzCoizwrPF9fF6 4C9g== X-Gm-Message-State: APjAAAUuU8+z5oyKnQQZxsiT5sZaedMGrGyF6EIWg5nJ9wgoh4L6ZQx5 FyDpq6OcAcsubH+H8hoCGgw6D84j1nk= X-Received: by 2002:a17:902:bc83:: with SMTP id bb3mr4029886plb.303.1556324781442; Fri, 26 Apr 2019 17:26:21 -0700 (PDT) Received: from icarus ([2001:268:c1c1:24b4:c70:4af9:86e2:2]) by smtp.gmail.com with ESMTPSA id o81sm47848184pfa.156.2019.04.26.17.26.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Apr 2019 17:26:20 -0700 (PDT) Date: Sat, 27 Apr 2019 09:27:20 +0900 From: William Breathitt Gray To: Yue Haibing Cc: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: Re: [PATCH -next] counter: 104-quad-8: Make quad8_ops static Message-ID: <20190427002720.GA26000@icarus> References: <20190426164816.37032-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190426164816.37032-1-yuehaibing@huawei.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 27, 2019 at 12:48:16AM +0800, Yue Haibing wrote: > 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 Yes, thank you, this should be static. Acked-by: William Breathitt Gray