From patchwork Wed Aug 16 07:30:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 135788 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b82d:0:b0:3f2:4152:657d with SMTP id z13csp111499vqi; Wed, 16 Aug 2023 08:58:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFI8tsUQA774umHsS2nVCrximcZku9nxL316yKaRa+DqqJhVcDIbJbH0nA9DAkdN1notUvb X-Received: by 2002:a17:906:1d8:b0:99d:ef0e:e968 with SMTP id 24-20020a17090601d800b0099def0ee968mr1711005ejj.4.1692201527696; Wed, 16 Aug 2023 08:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692201527; cv=none; d=google.com; s=arc-20160816; b=L5QKwCAnGaf+f5Z4ObXTS0GWMce10g9nsquaOR4D76jd4cXGUMvkQJm6I5YSIhu3jv yVVB1Fe3ZYUAheKINQwteC89+ALXQA/dt8D5lrmnkJsobYTNwsg8uVq3OJqk9p3Zzkkz ZWhUD56Q/+2EovvkxN8HzuYE/j/f9Rdx761zwF9H9uem93fn7uJL+t3eslRBfbFXpH/G PzfbCfgYELWe8KD3jcg8fFOs/RM6sVbGnjwpX4Kv/SqG//JV3PpGmJ98gvsalxS2Ml6x 6rLIR/Ls8zWvzf2OOx8yxiXPTmSIN10cCv2Xxr3UhYQul7dDCstdFsqqW7VdjAMGULH9 WP8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=0I7TPUg4E31TMu62FWmKoxXqRzwNNupmAPAivBkHKnY=; fh=c+H3IE1lmVX3ID0iyHLFGEVZK7B1+Kh8gLold6pvv7A=; b=HB60M0OC6YsQLXNEN3G9KCEQsY9RjKw6HEz/xxa81tuOvgVxUaLaULh5/y6yceYXCC ESS7SfpvSS7ZsggH7rEkuQzqesR66gPhxkOfKkYgc7lsCovxz5wniStSze+5+Te7KPRX iooRQdqG42RcS6cbkNrebuCMlcSYZ+/PQKHCQ2ZC8vPROw6SY+C/sjstlsz1r+QW+1GT tXIGOyxsC1fPm4zjRrKX4wiZqK9ESnscr5k4fwCFAuZDc34JY5c7ij1b8eVwVPcWTCJu 3yJBp99+YdtR1GtDFIJKHDqRCRui3R2+UqM8yUTZbGYBZ6MwGOARS+t0qqVahUg6IqJi 6UDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="YKD9qM/6"; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gz19-20020a170906f2d300b0099caf72e95fsi11530664ejb.578.2023.08.16.08.58.23; Wed, 16 Aug 2023 08:58:47 -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=@kernel.org header.s=k20201202 header.b="YKD9qM/6"; 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 S242417AbjHPHaa (ORCPT + 99 others); Wed, 16 Aug 2023 03:30:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242455AbjHPHa1 (ORCPT ); Wed, 16 Aug 2023 03:30:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F16A6B3 for ; Wed, 16 Aug 2023 00:30:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8D9586102F for ; Wed, 16 Aug 2023 07:30:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BB71C433C8; Wed, 16 Aug 2023 07:30:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692171026; bh=I8ugELsiLhPi5/Uez9ANm4CZY7xS4VMhFNvjwLb/ZIw=; h=From:To:Cc:Subject:Date:From; b=YKD9qM/6bWdXyBURQWdfhoppr0z1kSukoRYEVRrlDdJfDAnmVzsdBs1SB2Jk/dVC9 2LAs4pCg48T/vzkz3aXJVAD9gp9x125ijV1G85XJwLVV70VJgiQqKBxBqWQWIsCne6 cgrLihpfJowqZTq2LxPt7eld5DwSD6IHXb/r7u/vOh+Zmqby8QONT/X0FLlEUeU6cV WHzFpKLkt/4O/PJ8cstZHuptHB4QBNOoXE+sB8Nx7BSovaD04fWeGaQEBjkQDcD1+N mj0gfj9B3HAQEezDsWzAJCtaxrUrVl78pkCZeewwjC3UFvtKHo8OW16kFvbln1zCjV CK0gbOQli4yqQ== From: Maxime Ripard To: Greg Kroah-Hartman Cc: "Rafael J . Wysocki" , linux-kernel@vger.kernel.org, Maxime Ripard , Stephen Rothwell Subject: [PATCH 1/2] drivers: base: test: Add missing MODULE_* macros for platform devices tests Date: Wed, 16 Aug 2023 09:30:18 +0200 Message-ID: <20230816073019.1446155-1-mripard@kernel.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774401908718811029 X-GMAIL-MSGID: 1774401908718811029 Commit b4cc44301b9d ("drivers: base: Add basic devm tests for platform devices") introduced a new set of tests for platform devices that could be compiled as a module, but didn't have the usual module macros. Make sure they're there. Fixes: b4cc44301b9d ("drivers: base: Add basic devm tests for platform devices") Reported-by: Stephen Rothwell Signed-off-by: Maxime Ripard --- drivers/base/test/platform-device-test.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/base/test/platform-device-test.c b/drivers/base/test/platform-device-test.c index 1ae5ce8bd366..ea05b8785743 100644 --- a/drivers/base/test/platform-device-test.c +++ b/drivers/base/test/platform-device-test.c @@ -218,3 +218,7 @@ static struct kunit_suite platform_device_devm_test_suite = { }; kunit_test_suite(platform_device_devm_test_suite); + +MODULE_DESCRIPTION("Test module for platform devices"); +MODULE_AUTHOR("Maxime Ripard "); +MODULE_LICENSE("GPL"); From patchwork Wed Aug 16 07:30:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 135867 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b82d:0:b0:3f2:4152:657d with SMTP id z13csp593214vqi; Thu, 17 Aug 2023 03:17:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGJDIHpnULCSPIE9p+ioYG/jteqNmyE5S7eBvUE24xMXy3uM6Fppri+2b9kxw53dO3SBbdu X-Received: by 2002:a17:90a:8992:b0:26b:3f10:820f with SMTP id v18-20020a17090a899200b0026b3f10820fmr3545057pjn.36.1692267455908; Thu, 17 Aug 2023 03:17:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692267455; cv=none; d=google.com; s=arc-20160816; b=kGQqFl0cJcEXLXB8ICJxZFGbpVYI553YeicCebntyKsoxwHmdVSl9sIj3+ZRKpCuwI NPCWAWqXlxxHu8tFI9iqQThyx36O+6Xy7dq1jbwTe0Nk2xa8DkYW+spRrtG/mzaWQiVk IuvXCMR0kTS36zXfke5tq1RFN+U6NumJl95JvHK5zsxS/7fNHddy5huzqb7edQd1/bAX o4WFSwpEcz9GAYv4GXEqvXvvAc3MS/2RZhuajjTE0A8x/j4GHJdXTTEJdxL/cPzzJFs3 1oW1+8BdRoM/MjHkKbe+Gz4nAHv1FWvRbh32FXZd419Q5E4bA8EoyqcsO+7L/4GWN3u8 NVuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LYqgqg5KvgBw9gWMWNCJGj/FrtREROzRZwrVaO85B/A=; fh=c+H3IE1lmVX3ID0iyHLFGEVZK7B1+Kh8gLold6pvv7A=; b=mYTIOJH/wvrCjYwgghj31QDFBnF8LS9Ea8DwizSm+HytwVkYmks2iBFTo0xHbvbvzs IgBG6mA3eO477SGl+OEQsG9DUQncDaWSKwKpEWcxDQv4KdOqHPJ/vERlvI2pMwpUk/Oy ZJs0O+XwftKdT9BdVOo4mHZlIgiAKlmctnzUVmZoaFL6cYtP1W0PYV7+RUlY5tJF8bBU tXdU6x9G5Tt56+LBWauyhGXiJ1zel+G/XANxrFUiaz/NQjBNYvgS0EVnwU4k1EEJAckj hF+73YC3/QEwUvK/6yKlLmT8KTJ+3JbLKY3b8w++PJ4lXuVOTck82X4W3cpenxieCDM+ /kaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NWK2UZrz; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id br7-20020a17090b0f0700b0026b392b4e68si1251920pjb.12.2023.08.17.03.17.23; Thu, 17 Aug 2023 03:17:35 -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=@kernel.org header.s=k20201202 header.b=NWK2UZrz; 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 S242433AbjHPHbA (ORCPT + 99 others); Wed, 16 Aug 2023 03:31:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242431AbjHPHac (ORCPT ); Wed, 16 Aug 2023 03:30:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0749210D for ; Wed, 16 Aug 2023 00:30:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8C05963768 for ; Wed, 16 Aug 2023 07:30:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4116C433C7; Wed, 16 Aug 2023 07:30:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692171029; bh=IjU0xsme7hzmvI4HEK1ZSqT2ZAu9jNopCFcXjHtbehU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NWK2UZrzBO6aoDhOJ2padLKD5u6ti/iomybfecIB11eIT10D/lieiEGA20edkTkBr DkRuKB75y4hYxbtSmYT2BFJltRrj/kDzNPLfVokA1MSERq6LdvbTESp0zzeoi1i96e nlQgtsD7g0mWvNBjME60dt0i+eVn7NJG7g3RqbeRgKMBWH+r0wHmQoxt+Hk5Oc4B4W cJB+rlkvRhFPUr+OI/3cYInyStlTQUP+SONR98W2UQeyMLRbFw21Xn3oHf3BK26+yo HsFtJ/UwOupldUugvDB0VJ5+H4i65htDHvYkq1pwG1OSxCoFkQjPWKyn+WeXnwjurK eYKXL0HCmAjWw== From: Maxime Ripard To: Greg Kroah-Hartman Cc: "Rafael J . Wysocki" , linux-kernel@vger.kernel.org, Maxime Ripard , Stephen Rothwell Subject: [PATCH 2/2] drivers: base: test: Add missing MODULE_* macros to root device tests Date: Wed, 16 Aug 2023 09:30:19 +0200 Message-ID: <20230816073019.1446155-2-mripard@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230816073019.1446155-1-mripard@kernel.org> References: <20230816073019.1446155-1-mripard@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774471039743554520 X-GMAIL-MSGID: 1774471039743554520 Commit 06188bc80ccb ("drivers: base: Add basic devm tests for root devices") introduced a new set of tests for root devices that could be compiled as a module, but didn't have the usual module macros. Make sure they're there. Fixes: 06188bc80ccb ("drivers: base: Add basic devm tests for root devices") Reported-by: Stephen Rothwell Signed-off-by: Maxime Ripard --- drivers/base/test/root-device-test.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/base/test/root-device-test.c b/drivers/base/test/root-device-test.c index 780d07455f57..9aea23c9123e 100644 --- a/drivers/base/test/root-device-test.c +++ b/drivers/base/test/root-device-test.c @@ -106,3 +106,7 @@ static struct kunit_suite root_device_devm_test_suite = { }; kunit_test_suite(root_device_devm_test_suite); + +MODULE_DESCRIPTION("Test module for root devices"); +MODULE_AUTHOR("Maxime Ripard "); +MODULE_LICENSE("GPL");