Received: by 10.192.165.148 with SMTP id m20csp1564079imm; Thu, 10 May 2018 12:44:21 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq7h6nBPtKDA2LX5sC/1BIVjkO+DjlYAkQyYbHbLwLLFzQb6eeCKJXYfLRattN+V7ubuWJC X-Received: by 2002:a17:902:a585:: with SMTP id az5-v6mr2556803plb.79.1525981461438; Thu, 10 May 2018 12:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525981461; cv=none; d=google.com; s=arc-20160816; b=NLq7QFFm3hUlKpgiy4P94/DmGvUMMtMa0KrCVCY8PjPeNPvrxkyPEvViU4m8CM+6Ht jZ9iGvXCqrmpZaZIulK7HL/As/Bf7G4StNpz9g7gtTr2C9ZCLEecpZRw+tTg5/0CBihX 1uuIOG0Y3UkGVxWo1smfBcJ9SSBwkOWmgQfl4W3yEAviYWPuym0sYG3YAiLEMESBokAr iZ6Cjflc2ZBzLoW0rmjvalKvIsjWQHCnpRPydRuSahkBp6JBpAvV0Zg1S8olhHtHNur2 ctKp9y4RcQq1oizYzn+J2xJ7FMo9afKm2/f9UtN+Tf6sQjzhblDHRcLQTrwhXpU3iJZs I6iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date :arc-authentication-results; bh=9SmmofzWKHNvAdAWDOThRqmeZEZriZICDdKlRykImB4=; b=WiXBvz02+vAqxoJ0YVeJigjamY+5eWbpu1xMdYub99/UFKc6UkdIyOfyIyZd6K+9Pj vsO33wnTCx5Uwc+LTDURkdPMx7ZIJOufImSECVYGwd6vsfiWB+u7t2Af03kDoHK3f35m vVOQnBB16U7NpzghjPaMaxRXUKueRtjCSnKVA/3avzZcpLcmc8hrxHpnHV1nqY28nzOn Dvvm+UDwVMeyfxVey9xOMhRSpJf+X50stIAK3cB9tjtE9afNtszKC7rhk7AvaFy4XaC+ kexIi1gjE+5zDhAYtmhpUmQt4jhglr6WoQq6D0p4iSs3w5WUfNS5FUcgIHaoaOUX1RtM R42Q== 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 c10-v6si1224907pgq.79.2018.05.10.12.44.07; Thu, 10 May 2018 12:44:21 -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 S1752054AbeEJTmJ (ORCPT + 99 others); Thu, 10 May 2018 15:42:09 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:41973 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751660AbeEJTmG (ORCPT ); Thu, 10 May 2018 15:42:06 -0400 Received: from tanglefoot ([86.19.254.212]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.163]) with ESMTPSA (Nemesis) id 0MTL2h-1eqEGn3vdf-00SRaH; Thu, 10 May 2018 21:41:35 +0200 Date: Thu, 10 May 2018 20:41:29 +0100 From: Justin Skists To: devel@driverdev.osuosl.org, lustre-devel@lists.lustre.org, James Simmons , Andreas Dilger , Oleg Drokin Cc: linux-kernel@vger.kernel.org Subject: [PATCH] staging: lustre: lnet: add static to libcfs_dev declaration Message-ID: <20180510194128.GA19653@tanglefoot> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.5 (2018-04-13) X-Provags-ID: V03:K1:vs34+PZRiK6l3hdn68ZymWh3KGrwaobOou4RU2SN8+wd9h/+9x8 pufC1tdFmHqmFNQYn5k+FYEtLxxOcGaleYFNuAu8/fJlNPdzKQV5E5r9jhz3ifmJWK9AG0Z gP8unzyaazBCeuIb+fDqh3agPieNzdARbWwOjuTEC2zRTkwFGJBf2OeusTIcZa77DWqb9VK LmWAiE0wbCIGJyraqbaoA== X-UI-Out-Filterresults: notjunk:1;V01:K0:9sK/1nr3LWM=:mLPprsXSvM+TRF6SvGHluO vuyTL0ypkUY+rkUHOmj/OxBRa1uh1PhGNQ0D8wBDHdDy/fwmkL+nJxMl+Z9M54YW5Jp6Zaeck 39ixVAyApzXirvCENmAVqdw3Rd4BRnAc6/BMf1xcdiGEtA/IzCbZTChf+pqhUUHMplAO7NOJV XSYSUS+am6H4vV5gLpGbEca5ddnoDpLlLWXlsnp3wtRKMnxCja6rmYEu9LkD+PzNGO5CJl+an EMK9uI+3Z9H8wf3RXKmtqAzVoEfwrNLjCMN0fOsAtynYPrDsnGTaRRpfCwTn20gXnbSSUkKIQ BPzD8CAKMdz4G3rDLRR4kLhPQLV4KlUWtbS1WNXiSpul2wfD7QiiiR0p2+r4Y/pEqlTtyJnAW QiiSX9I9rKiiwwu1nHsyySSSC8Tk7bIrtjxnBWA8+/tIV87TDeCqUE4y4JTQT+iYPqaRXe1R8 8J9g1dn938wX5ZD3dYbMJfvAdZRf/p8RjiA5Im8/e9Oe6Nh1jER/I7P9Pr4bHOHIJnz2qu/xS 3ZKs4JRj8eD+GFiYErt+epuO/gdU8QENtpv7PUE4SE4G1VW0WNjKXNzUHnyA1Acu0oaQSl1EP OdMizO+q+/cYSHwfkedoGuTmjO5Wb7LJI3w4gwD9Yz0G5DHWXuap+TCmBFI2tmdxDKex11wlg +ArxioaTYdTApiEvGZfPrAiBe/BLFoECNRCkq1Tl5UERa7sxOfDAoOrytH5nqryr+8w8= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a static prefix to the declaration for libcfs_dev. This would fix the following sparse warning: drivers/staging/lustre/lnet/libcfs/module.c:317:19: warning: symbol 'libcfs_dev' was not declared. Should it be static? Signed-off-by: Justin Skists --- drivers/staging/lustre/lnet/libcfs/module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lnet/libcfs/module.c b/drivers/staging/lustre/lnet/libcfs/module.c index ca942f474a55..e021e439f140 100644 --- a/drivers/staging/lustre/lnet/libcfs/module.c +++ b/drivers/staging/lustre/lnet/libcfs/module.c @@ -314,7 +314,7 @@ static const struct file_operations libcfs_fops = { .unlocked_ioctl = libcfs_psdev_ioctl, }; -struct miscdevice libcfs_dev = { +static struct miscdevice libcfs_dev = { .minor = MISC_DYNAMIC_MINOR, .name = "lnet", .fops = &libcfs_fops, -- 2.17.0