From patchwork Fri Mar 4 09:10:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Aring X-Patchwork-Id: 8500551 Return-Path: X-Original-To: patchwork-linux-wpan@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7D6D59F38C for ; Fri, 4 Mar 2016 09:12:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A067A201DD for ; Fri, 4 Mar 2016 09:12:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AC2D9201BC for ; Fri, 4 Mar 2016 09:12:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759225AbcCDJKj (ORCPT ); Fri, 4 Mar 2016 04:10:39 -0500 Received: from metis.ext.4.pengutronix.de ([92.198.50.35]:60364 "EHLO metis.ext.4.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759018AbcCDJK3 (ORCPT ); Fri, 4 Mar 2016 04:10:29 -0500 Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=omega.localdomain) by metis.ext.pengutronix.de with esmtp (Exim 4.80) (envelope-from ) id 1ablkh-0004ss-BR; Fri, 04 Mar 2016 10:10:27 +0100 From: Alexander Aring To: linux-wpan@vger.kernel.org Cc: linux-bluetooth@vger.kernel.org, kernel@pengutronix.de, Alexander Aring Subject: [PATCH bluetooth-next 2/2] 6lowpan: debugfs: add missing static Date: Fri, 4 Mar 2016 10:10:21 +0100 Message-Id: <1457082621-20194-2-git-send-email-aar@pengutronix.de> X-Mailer: git-send-email 2.7.2 In-Reply-To: <1457082621-20194-1-git-send-email-aar@pengutronix.de> References: <1457082621-20194-1-git-send-email-aar@pengutronix.de> X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: aar@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-wpan@vger.kernel.org Sender: linux-wpan-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wpan@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch solves the sparse warning: net/6lowpan/debugfs.c:164:30: warning: symbol 'lowpan_ctx_pfx_fops' was not declared. Should it be static? net/6lowpan/debugfs.c:241:30: warning: symbol 'lowpan_context_fops' was not declared. Should it be static? Signed-off-by: Alexander Aring --- net/6lowpan/debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/6lowpan/debugfs.c b/net/6lowpan/debugfs.c index aa49ff4..0793a81 100644 --- a/net/6lowpan/debugfs.c +++ b/net/6lowpan/debugfs.c @@ -161,7 +161,7 @@ out: return status; } -const struct file_operations lowpan_ctx_pfx_fops = { +static const struct file_operations lowpan_ctx_pfx_fops = { .open = lowpan_ctx_pfx_open, .read = seq_read, .write = lowpan_ctx_pfx_write, @@ -238,7 +238,7 @@ static int lowpan_context_open(struct inode *inode, struct file *file) return single_open(file, lowpan_context_show, inode->i_private); } -const struct file_operations lowpan_context_fops = { +static const struct file_operations lowpan_context_fops = { .open = lowpan_context_open, .read = seq_read, .llseek = seq_lseek,