Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3358270ioo; Sun, 29 May 2022 23:24:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9HjdmpD9FzCuhImD2wfcAl7IYecnbhCvNJbt3ZB3JUsRbm5E3hTGpcOYQd+PsWJ/wHDWF X-Received: by 2002:a65:6045:0:b0:399:3a5e:e25a with SMTP id a5-20020a656045000000b003993a5ee25amr45918335pgp.139.1653891847489; Sun, 29 May 2022 23:24:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653891847; cv=none; d=google.com; s=arc-20160816; b=03N1m68FB9WqDm7wrrw13g9A8bL1ExOmqrg7MaOIoHxvzLf/mw+idkeorxz+sijBTW GYy28oL3Gw/ujLxmfiO1gH9VoznrzInKpmfhtzwNWHpdgUZ8UY19NiSb0E9MVB5nbcM7 E0a9Lq7ErND1gCtDyf0LIXi4e9MSAX2hDz1/EQMLOkOWFuA+ey2hVY/6ha4lSu9t0stt OCoGZCox95sBgcagg+wFXykfRVhA4KISl8rqDMCfbvQzqlScRHbNTdxQW1t8nREX88ku C7RR98vjdrFbPyUtKSyjExChmF1ArzNXFk/6GMwBfZyemdis24mBXP2v7UaYP095YD9L uBnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=3MFiazr+BIa7mxTlJyKT5T3zyYYhOWZJgXwNkt8FF0c=; b=kbrbs6aaM1pvQ+izUqPgJVH+uNyyFA64MIBkk+8ivx6PtUzaTJfvB94rMAaHCaN+BP qSbwb6F4eSFdtpUmpARbP6S6U+jJlsGeOg8+fZkPGFowFh7+f5AAiHmhI2JAS1ozsJzk 5g2Zn3uL4lwKBkLcU3uYOr21VgttQ0Bkic+rMMoHW5INdtRPcu6dWaVNAVFgQPPTZcsR 0ftI/IYHF+YLJ9nuL7kbESPvVv/Tm+8eTL78xiDixmYk8qKNnFp6MUGeDXguee8AddHm AnaynJJ5kY2zMmjuFqxxKP/cclIF83SR8HwgmmfXn6PprEWJxbVDewOwJ275GEdld2kj Pr+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=rNex2oA2; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e6-20020a170902ef4600b00161f0c7b815si16246879plx.315.2022.05.29.23.23.56; Sun, 29 May 2022 23:24:07 -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=@infradead.org header.s=desiato.20200630 header.b=rNex2oA2; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231959AbiE3ARe (ORCPT + 99 others); Sun, 29 May 2022 20:17:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231951AbiE3ARd (ORCPT ); Sun, 29 May 2022 20:17:33 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AD551BE8F; Sun, 29 May 2022 17:17:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID: Sender:Reply-To:Content-ID:Content-Description; bh=3MFiazr+BIa7mxTlJyKT5T3zyYYhOWZJgXwNkt8FF0c=; b=rNex2oA2fs7Gn5+tXSYIhdA39b kiZia63GDM53cV29Hz5AdAJIoT2HXVakwRHy4qe9kRDMDiMvrcA4gx+n+Lkh+sxtFD3fgFltLlNVN nX5HJhBUukjzEnxmUtP/tAQqvXFK+XyWYyEEazTEhewVMZ66RJXEmHxUVHCLnRbNui0Gg+z6dEEDg 4J+pVZeCe7HWD7PMs3tKx045R6b4enr71bM45tK11Gugx5NBTXXch6vDnjeP5oCcPmD/OKCVniHna lZ1/WTeMKtXcJxUI50b5BpjZIsqO4GhUvX2anWRg/zKRdsJ6eyPtZcm16y7SwIA6n4ScfEyaEr4uS 1dFBYU2Q==; Received: from [2601:1c0:6280:3f0::aa0b] by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nvT65-002t4I-3s; Mon, 30 May 2022 00:17:26 +0000 Message-ID: <593f31f6-1628-87f2-1b5d-ad8e79119dd6@infradead.org> Date: Sun, 29 May 2022 17:17:19 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: kbuild problem: ERROR: modpost: missing MODULE_LICENSE() in drivers/iio/afe/iio-rescale.o Content-Language: en-US To: Liam Beguin Cc: Linux Kbuild mailing list , Masahiro Yamada , "linux-kernel@vger.kernel.org" , linux-iio@vger.kernel.org, Peter Rosin , "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development 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> From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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