Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4810546ybg; Tue, 29 Oct 2019 12:44:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKUg+/DNFUlAo9goK8CnWtNbOzWS7yhMordK+kL5xHT6yrxcgGTyz8UdLIPHrNEx+2/E6a X-Received: by 2002:a17:906:5494:: with SMTP id r20mr4372517ejo.293.1572378275605; Tue, 29 Oct 2019 12:44:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572378275; cv=none; d=google.com; s=arc-20160816; b=F9H4OiYlNldVI16pt44grvw558Ir3VWAxfJNwao4rE1ykFX+p2EXNhLWc2maDRiFRA v2jCUKQqltJ1nDphD4LqvnIkIUbwr4s1uZ13fP2fDGlpGVdPv1qxtKAzFdTGoa5cedeL GEeZFNSZ6/yJIkIbbk1K9fgjfrgHS1Lr5YIIlkPmd6me0wppZWGBqN3n5QVvrecdgLqs M9hweR+zCMsBiLOn7tPSH2PiA6JrB1XzS5wsq99fFeFYF/nV+/xWq3yM1gX7B1uFn2Se K7dkQTeAN4artrswbKnu94Gbpppboxa/wKEhbpov0ojmfA2gVBcgg8PyUZhB4fNFqlor 7kYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=4LFYFkb/3M22kxB5bE7WmlntSqxlX9dCjdbwy/rfsX0=; b=mU94a6EHvzJY0ALH68JqFY2PSwBWBHaQyNJkDGGwtB7H7iwdRexbGyIWPcyCKewk6M 0na8qjoitjPTPkunbuqvAQv6Q7ARVQz9PJoAmKiDrYG3Ai54Fn3AxozZrV0qHlHaLd4q pAMTxsk4pIHrIwdd8kNo2jhECS5Zw5yzPdQWrP7zuM03+EuLCv64yLYeikgB+NShaZwn SXNROFYgjl67p9tudzIOy2CJmp8Tinw4ckkwNr7pfiWhFSsc+YqXzmq0IRj8m5EsN/OO 3bjwAahencypD7L/8+Fs7fIT7+3rq+6S+rriUGXYyOVyVIO9ASnng4vGW7s5KsRheNhD 27lQ== 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 y8si8849084eje.59.2019.10.29.12.44.12; Tue, 29 Oct 2019 12:44:35 -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 S2389548AbfJ2OpM (ORCPT + 99 others); Tue, 29 Oct 2019 10:45:12 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:57863 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727255AbfJ2OpM (ORCPT ); Tue, 29 Oct 2019 10:45:12 -0400 X-IronPort-AV: E=Sophos;i="5.68,244,1569276000"; d="scan'208";a="325017627" Received: from ppp-seco11pareq2-46-193-149-47.wb.wifirst.net (HELO hadrien) ([46.193.149.47]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Oct 2019 15:45:08 +0100 Date: Tue, 29 Oct 2019 15:45:07 +0100 (CET) From: Julia Lawall X-X-Sender: julia@hadrien To: Matthias Maennich cc: Masahiro Yamada , Jessica Yu , Coccinelle , Linux Kernel Mailing List Subject: Re: Warning message from 'make nsdeps' when namespace is lower cases In-Reply-To: <20191029143722.GB33177@google.com> Message-ID: References: <20191029143722.GB33177@google.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 29 Oct 2019, Matthias Maennich wrote: > Hi! > > On Tue, Oct 29, 2019 at 02:38:36PM +0100, Julia Lawall wrote: > > > > > > On Tue, 29 Oct 2019, Masahiro Yamada wrote: > > > > > Hi. > > > > > > When I was playing with 'make nsdeps', > > > I saw a new warning. > > > > > > If I rename USB_STORAGE to usb_storage, > > > I see 'warning: line 15: should usb_storage be a metavariable?' > > > Why? I think it comes from spatch. > > > > Yes, it would come from spatch. > > > > > It should be technically OK to use either upper or lower cases > > > for the namespace name. > > > > What is normally wanted? Uppercase or lowercase? > > There is no (documented) preference or convention yet. The existing > namespaces (USB_STORAGE and MCB) use upper case. While technically both > should work, I have a personal preference for consistently using upper > case. Is there a way to suppress this warning as I agree that it might > be confusing? The warning is not intentional in this case. I will have to fix Coccinelle, but I can't do it until next week. julia > > Cheers, > Matthias > > > > > julia > > > > > > > > Just apply the following, and try 'make nsdeps'. > > > > > > > > > diff --git a/drivers/usb/storage/Makefile b/drivers/usb/storage/Makefile > > > index 46635fa4a340..6f817d65c26b 100644 > > > --- a/drivers/usb/storage/Makefile > > > +++ b/drivers/usb/storage/Makefile > > > @@ -8,7 +8,7 @@ > > > > > > ccflags-y := -I $(srctree)/drivers/scsi > > > > > > -ccflags-y += -DDEFAULT_SYMBOL_NAMESPACE=USB_STORAGE > > > +ccflags-y += -DDEFAULT_SYMBOL_NAMESPACE=usb_storage > > > > > > obj-$(CONFIG_USB_UAS) += uas.o > > > obj-$(CONFIG_USB_STORAGE) += usb-storage.o > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > Best Regards > > > Masahiro Yamada > > > >