Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp161694imm; Thu, 10 May 2018 17:44:16 -0700 (PDT) X-Google-Smtp-Source: AB8JxZomp/4amzhspKx6Mh/5XzAmZW+v+qSp5buR9nlYn4LqFetjhUTYQBQvYRGPT9K+qxAmnLJT X-Received: by 2002:a17:902:43:: with SMTP id 61-v6mr3414454pla.112.1525999456053; Thu, 10 May 2018 17:44:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525999456; cv=none; d=google.com; s=arc-20160816; b=cAI7lP0DvEu4R9GBOo4sAkOrc5M3vHwZurVAUv5q2FeHJDfKKG0ccXBXpQlNmkf1ad uGXRZr9N3Nt2QqEBWhfY31kdxCPaYI7UeCdbenDfv2XNemsW3B5X44ZRTs99vjHF6hpw cqFQUgrwzqnH0GqdEKlipjlCZEpKQL1YtiEcvBXvlywZYcqRmn9ONJU0N0cNMk9bdcVj 0KvOOvzmOGld5h0hXx6ZH60FnsxR38nZumDqm6qUZYwTHv1FGjTroB/Pgti6qJaK7EqA Y5vYoa3sbe0p54QeI5uf5gEml2r8cVsFueQ8cmOYbVkitWr1zHguXUphY2lS6bKpR92z QefA== 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:references :in-reply-to:subject:cc:date:to:from:arc-authentication-results; bh=xptkSEfLgPanHIPKwCziW5I37g6RlMCF1W15qRs+9f0=; b=P2G5hBcME3Qvt6FyXjKG5y/+TUDTsRpThqK+vCt2b8vyLiRIYM4jjg4uOwxpm05sRH gn+VrfCbeZCsnrajdsSPoexyPQa8j97B5CoKD2h1y5cd5KvKgPZuaKZV0Zu3eaHH+PDM QgRpzPz0AM31pyoANYEiV855TAa6w+QyOFFeE/qME8aiYuu2dupSQG9gSavBebD9nYDs GR77jCXULXg9ID17iFQuPYLatH3n/7gTWi8u8yivTGJzWJ8pU8oqr2DLJ53WlDaO6opE FOSW9IwGQ4pdC5J9WBi1ZXvreOezgD64SfOLS/t+U2stqi6OugQPY3dLiIjtZGPACvcs c72w== 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 y67-v6si1991051pfi.195.2018.05.10.17.44.01; Thu, 10 May 2018 17:44:16 -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 S1751839AbeEKAnf (ORCPT + 99 others); Thu, 10 May 2018 20:43:35 -0400 Received: from mx2.suse.de ([195.135.220.15]:38066 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750805AbeEKAne (ORCPT ); Thu, 10 May 2018 20:43:34 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 55D45AC4A; Fri, 11 May 2018 00:43:33 +0000 (UTC) From: NeilBrown To: Justin Skists , devel@driverdev.osuosl.org, lustre-devel@lists.lustre.org, James Simmons , Andreas Dilger , Oleg Drokin Date: Fri, 11 May 2018 10:43:23 +1000 Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: lustre: lnet: add static to libcfs_dev declaration In-Reply-To: <20180510194128.GA19653@tanglefoot> References: <20180510194128.GA19653@tanglefoot> Message-ID: <87d0y39g44.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, May 10 2018, Justin Skists wrote: > 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? Thanks - that was my fault. (b4ded66db93b) Reviewed-by: NeilBrown Thanks, NeilBrown > > 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/stagin= g/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 =3D { > .unlocked_ioctl =3D libcfs_psdev_ioctl, > }; >=20=20 > -struct miscdevice libcfs_dev =3D { > +static struct miscdevice libcfs_dev =3D { > .minor =3D MISC_DYNAMIC_MINOR, > .name =3D "lnet", > .fops =3D &libcfs_fops, > --=20 > 2.17.0 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAlr05ywACgkQOeye3VZi gblZwA//RE4ywCRcp1E/cowFjkJ+aL9/VylOJwXb25cx0A5jaopZtObQ8n5eZwJ7 pbzmJ9n8Ma6SbWQA4jpJEcIdc8y9PxW+RywfD1bsIuYbokpw0A23qz8tVfp7V5tg C4VxlAcGcZ5mfj9EeA09OIlWrrHvLDgaqV03a+YG7Bve0wV2dBWObvd3oPalk39w /LN3EAVXmOXs5Ae8sW1dzDK1OikRgrMPI9HvGdlQHKNLAgH7da3vJUMt53ZQxuOl GE8gZwuQts7P0sqUUcgqFLp7MM3hFoGDi3038wkiNFK+7ziUR2zS9pUBNvJ25npt 2I23sSqsGxPG6jT70oZmD+xzhFB3y6oE5P8fd4pZP7ehjJALApetxWAjm73bd2XE bpGJslvZjG1BQ4FC1m6UHNE9UTvAnwl+EjaXVg038a8En7lMl5U18fRy3klEkowv 9aobv8rZzyUbtBU+5X/OV4LrOkviIMgzqhtPWaSsbjUPpu0aIPFtNoPE0EqHCv2s v9/6Ma61uuVpmJLnWJwOew814BCymeH5IhnJjD3J5g/TN3Ab30eMwaVkV3E1e6T7 MtjoDbZPHLFWca8w5rmzH9m9DDSyIjVvLfad3oI9v7Va7vBYoAwqwhq3QC8V587j k60NipePvgRAwS9P01yAfLsx1hDuKnubGhQC+xYcEVMSn6PIiSk= =9LCa -----END PGP SIGNATURE----- --=-=-=--