Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1416885pxk; Fri, 18 Sep 2020 11:52:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBHTL56+FOStgFlOWi8ETUDwXyeVN1XlaP4BHjndwdOcP7b6lD+j6O0xNAGYSRYP5yehBq X-Received: by 2002:a17:906:d182:: with SMTP id c2mr36870263ejz.378.1600455124285; Fri, 18 Sep 2020 11:52:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600455124; cv=none; d=google.com; s=arc-20160816; b=hg0TTlRTtWoXgbC6HsD02GWIBfQCX0Ea0lJ0ikVWMrxS1BrYkkrZeKN9ldkCqxgnTH w8+Xpe6xDLzJDOLt5iwz8RYqdX+qXbm2HTqsbVYRdyz6q5GumC8miusFt9OoVlkuap2T DN6YF+kYvvI3dgaXdJu/2rJMN3JdSy4yOrZYLhCpVRJDPinfwTJVUF4vEQP2ShsdlYv0 1XDcE7F3QJa2kLJsUXeBIf9DRHndx4z87m8N6YoVjkPiozZRejZP8T6W5URnCsukjlL0 IRMu6NyLGwRCdUyRm4Yia/ZfHZ98wLyxbTHXiJ+HMF4eyrNJfqiHQtKZlvqNy3wgvjMp SWXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=I15lYOFQgP5KLwMoydnHHG3ATiZuNtYswFCmvUG0xyo=; b=x9iX76XqojCf9gFnmY0O3tnylecaEeCvt4YeBZbQPJKMpgo70ChyB6ERLas3qlrnBD kcCpK8FG/uoPkhuI9L6OwmxVM+hI9eJPzORwcn+4ig41tkGySYjBpgnFNa2FJow4AGU9 iWrzdMiDFn1F2+fdIu1xl5dDtVkw5OYcG+WtkxV/fowK6nLJ6sDSvti7YHnm6Iwb9+Bv ajbuwNx1L3lIhmxH7vEyyrWB3viVn6Pis+UuoDcXA0slYU0yocNWgp05a55VwZj0VLeM 1TO9nJmjhuJmbagVjZ9rlN9p21Bdd+kflV1RsL5MqzoYlvStD2RgVkD0uA2FkWkt1Df6 Qkkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=mIPRcPY4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p2si2849789ejf.310.2020.09.18.11.51.40; Fri, 18 Sep 2020 11:52:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=mIPRcPY4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726280AbgIRSsa (ORCPT + 99 others); Fri, 18 Sep 2020 14:48:30 -0400 Received: from m42-11.mailgun.net ([69.72.42.11]:18396 "EHLO m42-11.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726115AbgIRSs3 (ORCPT ); Fri, 18 Sep 2020 14:48:29 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1600454908; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=I15lYOFQgP5KLwMoydnHHG3ATiZuNtYswFCmvUG0xyo=; b=mIPRcPY4CVem1yHATT/hhVWe6GkrD4Cjq/zX2lT2OkrKkSPd+o2QkCa2WP7/lulUspGhRcDB WIYK8FydVXPYdc94n2utKRR/G9C1Qz955BTTqc9FRlfcAVlSpz9180ISwd/y9WYB27vQ8f6k QFs54yg1zD/sxpfWvr6UanuKUWY= X-Mailgun-Sending-Ip: 69.72.42.11 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n07.prod.us-west-2.postgun.com with SMTP id 5f6500f6c4180d293b3726c5 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 18 Sep 2020 18:48:22 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 5D063C433F1; Fri, 18 Sep 2020 18:48:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: bbhatt) by smtp.codeaurora.org (Postfix) with ESMTPSA id 93856C433CA; Fri, 18 Sep 2020 18:48:21 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 18 Sep 2020 11:48:21 -0700 From: bbhatt@codeaurora.org To: Manivannan Sadhasivam Cc: Jeffrey Hugo , linux-arm-msm@vger.kernel.org, hemantk@codeaurora.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 1/3] bus: mhi: core: Remove warnings for missing MODULE_LICENSE() In-Reply-To: <20200918171809.GA3410@Mani-XPS-13-9360> References: <1600381176-37604-1-git-send-email-bbhatt@codeaurora.org> <1600381176-37604-2-git-send-email-bbhatt@codeaurora.org> <6f7b6be3-f52d-b082-6065-c75e3d89d252@codeaurora.org> <0e34b5a2562b776ea410c80479107581@codeaurora.org> <20200918171809.GA3410@Mani-XPS-13-9360> Message-ID: <4506782e8bb9a50d80b4a40575ae532e@codeaurora.org> X-Sender: bbhatt@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-09-18 10:18, Manivannan Sadhasivam wrote: > On Fri, Sep 18, 2020 at 09:49:05AM -0700, bbhatt@codeaurora.org wrote: >> On 2020-09-18 07:27, Jeffrey Hugo wrote: >> > On 9/17/2020 4:19 PM, Bhaumik Bhatt wrote: >> > > When building MHI as a module, missing MODULE_LICENSE() warnings >> > > are seen. Avoid them by adding the license and description >> > > information for the files where the warnings are seen. >> > > >> > > Signed-off-by: Bhaumik Bhatt >> > > --- >> > > drivers/bus/mhi/core/boot.c | 3 +++ >> > > drivers/bus/mhi/core/main.c | 3 +++ >> > > drivers/bus/mhi/core/pm.c | 3 +++ >> > > 3 files changed, 9 insertions(+) >> > > >> > > diff --git a/drivers/bus/mhi/core/boot.c b/drivers/bus/mhi/core/boot.c >> > > index 24422f5..78140cc 100644 >> > > --- a/drivers/bus/mhi/core/boot.c >> > > +++ b/drivers/bus/mhi/core/boot.c >> > > @@ -523,3 +523,6 @@ void mhi_fw_load_handler(struct mhi_controller >> > > *mhi_cntrl) >> > > error_alloc_fw_table: >> > > release_firmware(firmware); >> > > } >> > > + >> > > +MODULE_LICENSE("GPL v2"); >> > > +MODULE_DESCRIPTION("MHI Host Interface"); >> > > diff --git a/drivers/bus/mhi/core/main.c b/drivers/bus/mhi/core/main.c >> > > index 2cff5dd..172026f 100644 >> > > --- a/drivers/bus/mhi/core/main.c >> > > +++ b/drivers/bus/mhi/core/main.c >> > > @@ -1533,3 +1533,6 @@ int mhi_poll(struct mhi_device *mhi_dev, u32 >> > > budget) >> > > return ret; >> > > } >> > > EXPORT_SYMBOL_GPL(mhi_poll); >> > > + >> > > +MODULE_LICENSE("GPL v2"); >> > > +MODULE_DESCRIPTION("MHI Host Interface"); >> > > diff --git a/drivers/bus/mhi/core/pm.c b/drivers/bus/mhi/core/pm.c >> > > index ce4d969..72c3dbc 100644 >> > > --- a/drivers/bus/mhi/core/pm.c >> > > +++ b/drivers/bus/mhi/core/pm.c >> > > @@ -1150,3 +1150,6 @@ void mhi_device_put(struct mhi_device *mhi_dev) >> > > read_unlock_bh(&mhi_cntrl->pm_lock); >> > > } >> > > EXPORT_SYMBOL_GPL(mhi_device_put); >> > > + >> > > +MODULE_LICENSE("GPL v2"); >> > > +MODULE_DESCRIPTION("MHI Host Interface"); >> > > >> > >> > I would expect you only need to add the MODULE_* once per module, in >> > which case main.c is probably the only place that needs it. >> >> Hi Jeff, >> >> I thought so too. This is to fix below warnings seen when building MHI >> as a >> MODULE: >> >> WARNING: modpost: missing MODULE_LICENSE() in >> drivers/bus/mhi/core/main.o >> WARNING: modpost: missing MODULE_LICENSE() in >> drivers/bus/mhi/core/pm.o >> WARNING: modpost: missing MODULE_LICENSE() in >> drivers/bus/mhi/core/boot.o >> >> We've only had those in init.c so far. >> > > Can you please test below diff to see if it fixes the warning? > > diff --git a/drivers/bus/mhi/core/Makefile > b/drivers/bus/mhi/core/Makefile > index 66e2700c9032..bc1469778cf8 100644 > --- a/drivers/bus/mhi/core/Makefile > +++ b/drivers/bus/mhi/core/Makefile > @@ -1,3 +1,3 @@ > -obj-$(CONFIG_MHI_BUS) := mhi.o > +obj-$(CONFIG_MHI_BUS) += mhi.o > > mhi-y := init.o main.o pm.o boot.o > > Thanks, > Mani > >> Thanks, >> Bhaumik >> >> 'The Qualcomm Innovation Center, Inc. is a member of the Code Aurora >> Forum,\na Linux Foundation Collaborative Project' Hi Mani, Yes I was just about to reply. I realized it was due to the Makefile change. I have fixed and tested it. The warnings are gone now. I will remove the patch. Thanks, Bhaumik 'The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,\na Linux Foundation Collaborative Project'