Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5258933ioo; Wed, 1 Jun 2022 01:36:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWoPgsyWVL1DljQQ0RHvNRPYzrd+ODcJGr/HMfQzF41h9Weqe0wPMr+48sbXJW/NUmA//d X-Received: by 2002:a17:90b:380b:b0:1e6:67f6:f70c with SMTP id mq11-20020a17090b380b00b001e667f6f70cmr652797pjb.120.1654072580669; Wed, 01 Jun 2022 01:36:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654072580; cv=none; d=google.com; s=arc-20160816; b=MsFl6N7lLez/Z+HRTHCAyL71c6EMF0bZ+DSoCbs2wfRnORTE1sXIqdTx2n9NQQN6+F mjkUAD3Oox5JZVFUkyvfxorF5VboZJT+03yhmIqVzkjWxVTEpmjhXPQaHAZgp8nbCuYh E+zmFuc/lqZPbUGiJKCt1aWTgiVvTS+A+D/0QVJ4CbMq8wtKk2DH5yfOek5AZBXlIcpZ HkhaMijjG06pcqvQV2QqkS5grsC3HuQmUAk03itd9VH2r9kHoRYYB/sA3lFkf8putVBf 7nPdXT0mRZSgT6HYSVd/D9TmPihjB9xOFW+33Op+UjVGUmfCQS7dftidIuxejen2Twm8 3RLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=qE7WzXO+Fvb8LCHJhg8ITc3RTlFLdDuh1rXDaHDbiIs=; b=hCm+CU5mWnk8zhRBC6X2PgJK2+kh8suQtZiOtrKDHxmalepX6iPDy/6IWfdCQiWkJ1 oKcznvrN4jUqsA+RVeL1Ex0EH9w+adszy05W0c55alFt6Ao6QhJto5Su4DnXIMA2zHee n2EPZkBRrruXUQ6HPkRiH7+gVXpYLEefaQgxmlvgiI+V/wwm4hZrof1Ofbny0zoELMfR R+B7AkoaVF4lIZguY09kTlHcWSgP/tewo8YjFwOdyv/Qqe/MDTmblD6vX/jWZYFAi0M7 pI3QFOX1qgrCvETGi5vq6RwBZk36qCI9owcr7c/hBykuhffA/CcCFtJJXs+yUU8OFOBO DxEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=sPCU552x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rm2-20020a17090b3ec200b001d2fe6d0a11si1737639pjb.176.2022.06.01.01.36.05; Wed, 01 Jun 2022 01:36:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=sPCU552x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232279AbiE3CjQ (ORCPT + 99 others); Sun, 29 May 2022 22:39:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231174AbiE3CjP (ORCPT ); Sun, 29 May 2022 22:39:15 -0400 Received: from conssluserg-03.nifty.com (conssluserg-03.nifty.com [210.131.2.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7FCF2FFE8; Sun, 29 May 2022 19:39:13 -0700 (PDT) Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) (authenticated) by conssluserg-03.nifty.com with ESMTP id 24U2ccAY014384; Mon, 30 May 2022 11:38:39 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com 24U2ccAY014384 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1653878319; bh=qE7WzXO+Fvb8LCHJhg8ITc3RTlFLdDuh1rXDaHDbiIs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=sPCU552xllBU8amPTSEmdOp5gcSpR0zm/ArNfQPjwi9XgCuHtFun7XDOjdYLirYM3 p+AkSQw0AR+3WvBwarF9TuRlpuBCBLTppdLT7qvlPdRKSFvgHZrlnPUbDwKIgEj5rK SwdW2n57Z1ViQezOnF2lY2gvivUA0gmGIk/EJz0RwNeUyn9AbdfWT0pPqsfWINIeJx Dvh2bTyOvlSeUQ9/TXqmRNJUpk8i3TPwmQGrPjLy0uSGNycLt/VmX9qnwlxiuRqUad 1k9k9XefjR8Jh2MNl0Y6bTdhSpTJbuNizNo9b50pVcS+aIywLjWXMl3z1+bLYRInYI 9tKzTcarevDog== X-Nifty-SrcIP: [209.85.216.42] Received: by mail-pj1-f42.google.com with SMTP id m14-20020a17090a414e00b001df77d29587so12264206pjg.2; Sun, 29 May 2022 19:38:39 -0700 (PDT) X-Gm-Message-State: AOAM530iAPxxtkmVBFFZdAKJbfQHPeVHXqYUFqZpTzJHaaahLo+WQcKd UAWSWsqvebltB9YNWZpSY6xOy+OkfcJSjvTqXl8= X-Received: by 2002:a17:90a:9412:b0:1e0:c0cc:8630 with SMTP id r18-20020a17090a941200b001e0c0cc8630mr20484625pjo.77.1653878318504; Sun, 29 May 2022 19:38:38 -0700 (PDT) MIME-Version: 1.0 References: <18500f18-9cd5-a81c-4a55-14e999ed4496@infradead.org> <3ae306e0-c6c7-ed12-cacd-62b1c26dba3c@infradead.org> <6671de03-c09c-bfaf-e06c-e45af70d4354@infradead.org> <6601a387-de9a-a0d0-11b5-01e0cfa75657@infradead.org> <7a97bac3-6ade-8e1b-cf0c-4a05c83163a3@infradead.org> <3b7ec693-f4a5-e1aa-3e07-b22a4008d4c9@infradead.org> <593f31f6-1628-87f2-1b5d-ad8e79119dd6@infradead.org> In-Reply-To: <593f31f6-1628-87f2-1b5d-ad8e79119dd6@infradead.org> From: Masahiro Yamada Date: Mon, 30 May 2022 11:37:12 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: kbuild problem: ERROR: modpost: missing MODULE_LICENSE() in drivers/iio/afe/iio-rescale.o To: Randy Dunlap Cc: Liam Beguin , Linux Kbuild mailing list , "linux-kernel@vger.kernel.org" , linux-iio@vger.kernel.org, Peter Rosin , "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_SOFTFAIL, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 30, 2022 at 9:17 AM Randy Dunlap wrote: > > > > On 5/29/22 14:20, Liam Beguin wrote: > > Hi Randy, > > > > On Thu, May 26, 2022 at 01:04:41PM -0700, Randy Dunlap wrote: > >> > >> > >> On 5/26/22 09:04, Liam Beguin wrote: > >>> Hi Randy, > >>> > >>> On Thu, May 26, 2022 at 08:36:34AM -0700, Randy Dunlap wrote: > >>>> Liam: > >>>> > >>>> Any comment on this? > >>>> Otherwise I'll just send a formal patch like this (below). > >>> > >>> Apologies for not answering earlier. > >>> > >>> I wanted to look more into Masahiro's comment and try to fix the > >>> Makefile, but that can be done after. > >>> > >>> IMO your patch improves the current Kconfig, so I'd recommend sending > >>> the patch. If it can wait a bit, I can look at the Makefile over the > >>> weekend. > >>> > >> > >> Liam, > >> > >> I'll wait until next week to see if you come up with anything. > >> > > > > The following patch fixes the issue while addressing Masahiro's comment. > > I also considered `select IIO_RESCALE`, but I'm not sure what's usually > > preferred. > > > > diff --git a/drivers/iio/test/Kconfig b/drivers/iio/test/Kconfig > > index 56ca0ad7e77a..4c66c3f18c34 100644 > > --- a/drivers/iio/test/Kconfig > > +++ b/drivers/iio/test/Kconfig > > @@ -6,7 +6,7 @@ > > # Keep in alphabetical order > > config IIO_RESCALE_KUNIT_TEST > > bool "Test IIO rescale conversion functions" > > - depends on KUNIT=y && !IIO_RESCALE > > + depends on KUNIT=y && IIO_RESCALE=y > > default KUNIT_ALL_TESTS > > help > > If you want to run tests on the iio-rescale code say Y here. > > diff --git a/drivers/iio/test/Makefile b/drivers/iio/test/Makefile > > index f15ae0a6394f..880360f8d02c 100644 > > --- a/drivers/iio/test/Makefile > > +++ b/drivers/iio/test/Makefile > > @@ -4,6 +4,6 @@ > > # > > > > # Keep in alphabetical order > > -obj-$(CONFIG_IIO_RESCALE_KUNIT_TEST) += iio-test-rescale.o ../afe/iio-rescale.o > > +obj-$(CONFIG_IIO_RESCALE_KUNIT_TEST) += iio-test-rescale.o > > obj-$(CONFIG_IIO_TEST_FORMAT) += iio-test-format.o > > CFLAGS_iio-test-format.o += $(DISABLE_STRUCTLEAK_PLUGIN) > > > > I'll send a patch as soon as you confirm this works for you too. > > Looks good. Thanks. > > Acked-by: Randy Dunlap > Tested-by: Randy Dunlap > > -- > ~Randy Reviewed-by: Masahiro Yamada -- Best Regards Masahiro Yamada