Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2209498iof; Tue, 7 Jun 2022 23:16:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzASY8e2lcKOIKLNSv4JKfhcYP3Ok7TpwWYSBu1Slk58g8TxhPeGJZWCDqfosCHy57YLN67 X-Received: by 2002:a17:90a:408f:b0:1e3:23a:2370 with SMTP id l15-20020a17090a408f00b001e3023a2370mr35596132pjg.84.1654669013476; Tue, 07 Jun 2022 23:16:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654669013; cv=none; d=google.com; s=arc-20160816; b=RQkrdeHxS7LaESTrSJFD+PuA303iBctt0xgS3ROuWwes3N3nQ9Gvw2sA6NREXNoOFb Flm2oAkNMG4hzZ1eZBl4KlF45+54wO56jMa9JydE3OOoDh6BqwPI+NXUaJQ4Kan4yyTr ib2+SEYcPCxmXRa2q5BhIzdPD5ZVNxp9i33atke1XVupw2c6L63LyhOeEEYkjXKpuuPP Q6ItkpLmGi3Z7mdEiZe5tQ+WuZAlxHTYHiF1msPBSGm2oXifFk6w2jswnxbszSQJypIU Nn7RFIDtfG3+d6shtwxiRhbG09N1RWS0qXBKbXpYyD+gIsIf45iuS5EakUHN2zED932r VhJg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=tRZZWAqdqn/ihiRXT+UqBpeBmnROXT+byVwwp9bLTaI=; b=TgY1k4ZsDng09fO8IkQXAL/lCBIBhreVKipr/Jpe2nT+4E9susapH200OXfkXsYCTm 85/uYj9CyxxblnvF3sfS7b8ap1fg0loc12WSzMTf59juVop8kt05gjQQORtzUlahuULM tVz1vjyc6YJc/thvqPG62etRyc4i+mARyilf8uF8nGdENXQHJWb5QE3+X/gKGYrgKFmS VwWc0k7PjpP3UwyA2IrNC+BXqfVxFJQELh66rwYOuzsWB2LdKxVIRd6QdPxQGFaTy3mG /+2+dAaSJvssRBbTFSIvYaCR+HhWvcvNNnao4yNFYamw3JdiMnBCF5RnWmx1arvUO2qk AJxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YseMfbVC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f193-20020a636aca000000b003fc9b052e00si25927544pgc.771.2022.06.07.23.16.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 23:16:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YseMfbVC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 846E623C679; Tue, 7 Jun 2022 22:38:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1390690AbiFHBvK (ORCPT + 99 others); Tue, 7 Jun 2022 21:51:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382872AbiFGWAZ (ORCPT ); Tue, 7 Jun 2022 18:00:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8860E24DBCF; Tue, 7 Jun 2022 12:14:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2FBA861846; Tue, 7 Jun 2022 19:13:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44454C385A2; Tue, 7 Jun 2022 19:13:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654629238; bh=jqHGMCzx24qQKDPktTXW/vu9addVIfjBqKQ83UTvzSY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YseMfbVCygYPUWfKreiZ9eHvU/RKhoBoQy8a/ur8UzBmNSxaWbVpBELq5IidBNutL oDKi9xMZj5UsbR6M8cy53Dv85AgIX7p6cjfym9TwCSPmqxh0m3kTH5R/FPFuveAPPH 50S14spQ8KvsadfGtrDxpwZfvk3HPLN9YXdxR/N0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Masahiro Yamada , Luis Chamberlain , Jessica Yu , Matthias Maennich , Sasha Levin Subject: [PATCH 5.18 618/879] module.h: simplify MODULE_IMPORT_NS Date: Tue, 7 Jun 2022 19:02:16 +0200 Message-Id: <20220607165020.786341119@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 From: Greg Kroah-Hartman [ Upstream commit 80140a81f7f833998d732102eea0fea230b88067 ] In commit ca321ec74322 ("module.h: allow #define strings to work with MODULE_IMPORT_NS") I fixed up the MODULE_IMPORT_NS() macro to allow defined strings to work with it. Unfortunatly I did it in a two-stage process, when it could just be done with the __stringify() macro as pointed out by Masahiro Yamada. Clean this up to only be one macro instead of two steps to achieve the same end result. Fixes: ca321ec74322 ("module.h: allow #define strings to work with MODULE_IMPORT_NS") Reported-by: Masahiro Yamada Cc: Luis Chamberlain Cc: Jessica Yu Cc: Matthias Maennich Signed-off-by: Greg Kroah-Hartman Signed-off-by: Luis Chamberlain Signed-off-by: Sasha Levin --- include/linux/module.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/module.h b/include/linux/module.h index 1e135fd5c076..d5e9066990ca 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -290,8 +290,7 @@ extern typeof(name) __mod_##type##__##name##_device_table \ * files require multiple MODULE_FIRMWARE() specifiers */ #define MODULE_FIRMWARE(_firmware) MODULE_INFO(firmware, _firmware) -#define _MODULE_IMPORT_NS(ns) MODULE_INFO(import_ns, #ns) -#define MODULE_IMPORT_NS(ns) _MODULE_IMPORT_NS(ns) +#define MODULE_IMPORT_NS(ns) MODULE_INFO(import_ns, __stringify(ns)) struct notifier_block; -- 2.35.1