From mboxrd@z Thu Jan 1 00:00:00 1970 From: Colin King Subject: [PATCH] tap: make struct tap_fops static Date: Sat, 12 Aug 2017 22:52:31 +0100 Message-ID: <20170812215231.6272-1-colin.king@canonical.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org To: "David S . Miller" , Sainath Grandhi , Jason Wang , Rolf Neugebauer , Willem de Bruijn , Zhang Shengju , netdev@vger.kernel.org Return-path: Received: from youngberry.canonical.com ([91.189.89.112]:52136 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752012AbdHLVwo (ORCPT ); Sat, 12 Aug 2017 17:52:44 -0400 Sender: netdev-owner@vger.kernel.org List-ID: From: Colin Ian King The structure tap_fops is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: symbol 'tap_fops' was not declared. Should it be static? Signed-off-by: Colin Ian King --- drivers/net/tap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/tap.c b/drivers/net/tap.c index ca267fd28ab8..0d039411e64c 100644 --- a/drivers/net/tap.c +++ b/drivers/net/tap.c @@ -1127,7 +1127,7 @@ static long tap_compat_ioctl(struct file *file, unsigned int cmd, } #endif -const struct file_operations tap_fops = { +static const struct file_operations tap_fops = { .owner = THIS_MODULE, .open = tap_open, .release = tap_release, -- 2.11.0