Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp474047ioo; Sat, 21 May 2022 04:51:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy621XLnGC6UrxfbGSBCs/5lGxhDWopSSnW64xRwpjFrjH8mjuZmFEnNixjDphfYNXoLfpc X-Received: by 2002:a17:90a:db95:b0:1df:37e7:6a28 with SMTP id h21-20020a17090adb9500b001df37e76a28mr16659225pjv.204.1653133912475; Sat, 21 May 2022 04:51:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653133912; cv=none; d=google.com; s=arc-20160816; b=ctEBQ3b1j58ubxQQw7WtrCzjMJ+Ry5kR/DACX1zj5xtsrBxZAnRGwHWdA5RSLTXsu+ orex0iw8s4JqcL0XSzigJUgdipVNI7fxGLLv2pPNL05aF8GuBSaveMOw/yDSmivIlfd4 axmf1jHqFALINBOOBA4ZGmDFxor75DVXrXZrir4FRIOMg4kJjT/0Zs+xQlUN3yp8FQMK ZdKCRdvexm24bzh2XgMN3zsv+RSOBhNMWfKm4OoqawdUu+sLATQb35OwUecDwEQDpszn Fr79xb1G74Nm6k4udjpXDIU9QY/fGWJS0OSywCPcElcuB1hjPz/drB4aKrZ3W2+XVrs1 pQag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id :dkim-signature; bh=qyf/zwUprsQMdEvfmj9FeIk1Jd9GfDCSYtZB2ONQMLY=; b=zRJZ2JnIc1qKSHpvtlrfRdqxdeusBKEfTkW99Mi5ADOM6hUJTNvANpS+s3z0JEwLVt JfmlISZx8gbw3SErOZUC9MN4CbFQzlGoBdxK3ojeLmauLmVEo1NqHA6JaenRtEBuSDii /C8reqzxZGYGLRiOLtxaCm/d6KaexPP1oZBC7sRL4z+L+Szu37lEbqCY/F6GpEZEy4MK wcbuTybdjNPA2FlM4nJPFdykSN5FtKnx4p5JCFmUYnx+CBKcRZ1Frltk58+4s5XZaK3F grr9SXUHygYJu1SitFTEcyzhf4rta01hqyxqlqziMUBS9DML7122pVhNK7ePMNgruD15 oyKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=dXFjCiho; 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 kb6-20020a17090ae7c600b001dc758111afsi6906222pjb.108.2022.05.21.04.51.40; Sat, 21 May 2022 04:51:52 -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=casper.20170209 header.b=dXFjCiho; 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 S1354370AbiEUCkj (ORCPT + 99 others); Fri, 20 May 2022 22:40:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231826AbiEUCkh (ORCPT ); Fri, 20 May 2022 22:40:37 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D44A41900C0; Fri, 20 May 2022 19:40:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: Subject:From:Cc:To:MIME-Version:Date:Message-ID:Sender:Reply-To:Content-ID: Content-Description:In-Reply-To:References; bh=qyf/zwUprsQMdEvfmj9FeIk1Jd9GfDCSYtZB2ONQMLY=; b=dXFjCihoY61BXVzES0IK9PU3fq VWU8C0i6nZNC4QiC719pzzq4vfhJIwKmrd8rGV1V9ptz4UJ7/7pKaWz93IP5+2Kmyp+QzpxwDLB5H 81sFQ/ginhwYSMkq961wEqs6Unt5qbWTIWzNchgfVBQl/nPTgQPGHhwshM1LsXW/g+IRtsNd/c65G JaOmqzqms+NZ73h1c5zB3z1fJESSa4VqomKCKukHUs9v2zDWA8qy5Ra0PCRP/DCFpYRhAGeNKPcdF XtzKy/M/pgRjME0ig89lEOz1fS4fedJjs6k2Z2wBj2pQyDusXzt1e0DO/K8egJgzBsu1N1Zd1lg4W 71M784ag==; Received: from [2601:1c0:6280:3f0::aa0b] by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nsF2d-00EJbS-Qk; Sat, 21 May 2022 02:40:32 +0000 Message-ID: <18500f18-9cd5-a81c-4a55-14e999ed4496@infradead.org> Date: Fri, 20 May 2022 19:40:26 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Content-Language: en-US To: Linux Kbuild mailing list , Masahiro Yamada Cc: "linux-kernel@vger.kernel.org" , linux-iio@vger.kernel.org, Peter Rosin , "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development From: Randy Dunlap Subject: kbuild problem: ERROR: modpost: missing MODULE_LICENSE() in drivers/iio/afe/iio-rescale.o Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Hi, In March I reported that a randconfig build complained: ERROR: modpost: missing MODULE_LICENSE() in drivers/iio/afe/iio-rescale.o (https://lore.kernel.org/all/16509fb6-e40c-e31b-2c80-264c44b0beb9@infradead.org/) I am still seeing this problem so I tried to dig into it a bit. However, I don't see why get_next_modinfo() and friends don't find the MODULE_LICENSE() since it is in the iio-rescale.o file. (BTW, I see this build error on many different $ARCH [around 15 tested] and with 2 different versions of GCC.) Q1: Is modpost checking both vmlinux and iio-rescale.o for modinfo license strings? It looks like it is, because it appears (?) that modpost is looking at drivers/iio/test/iio-test-rescale.o (<<<<< a kunit test, which is builtin in my .config) and at drivers/iio/afe/iio-rescale.o (which is built as a loadable module). Is this confusing modpost? I renamed drivers/iio/afe/iio-rescale.c to afe-rescale.c and changed its Makefile entry accordingly and the MODULE_LICENSE error goes away. Is this a modpost error or is kunit messing things up? thanks for looking. -- ~Randy