Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2260765lqb; Mon, 27 May 2024 13:25:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUnllvgV6qmaScOPQ+XreElf+01J1h5pVBF1mg2FrJvtkfOFLbgqNyVcdWyZbmhWK4fKBgSwz0yot1kOo9ryDHOfD/GLmF2+kkibTbEVg== X-Google-Smtp-Source: AGHT+IF3EG2Z0C0qafs904xqvgrmkc/HEpKCY9Gg3G1h0dqJgp4ZmFqP5Y4hWe9HSiI6/wq1Bhrb X-Received: by 2002:a05:620a:5744:b0:78d:6e96:937a with SMTP id af79cd13be357-794ab1360e5mr1103006585a.70.1716841547850; Mon, 27 May 2024 13:25:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716841547; cv=pass; d=google.com; s=arc-20160816; b=Npsqd13BWB2vkrot1kIQRCeY7JFMdeR869r70mHBpfUioRreLPy/cjjydnBTdfTHnL CDNbT6tlcBmqWZ+qkcosz95eK2jQL3POKm9PzpeQgmuBMw64HKFv08LcVotLKUC9BuUS XHNuwWtDDtqBWV3GVDUiTCcR7NMHmUb7XQh0Lr5cTxfNlM3L2j5DCB5p7bLdj/NLNHPK 9QoWWB91zDd6h6Ot40aCre59JxE8+vVQFR7nYFroS4f0S8ge42w/2pt2Gca56doVOtpw tPkqq+K5/KjLrq/o5oZk2XSdjK1wlPzO7EUom49LrlYyeawdvXNaaExJkRKgYeezEwhJ TI4g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=4MR3Lo+/FhCssk3GJ6161GUSOO+8XUwWWkNbWnFcz0I=; fh=cRWUaNmfyQxlvIAKPL9sVs1fhrQpygOQ4bg43OUq8w0=; b=IhTn4BSYa+n5P59QwdAdmCYy8SowhqhXYgaf81d5D5Ui5Zy4lAJ1ejZywsvet4prGL TpDEyLXBgOrbmiOQ0pix/A76/Q39ton7ma86P6lN/5VGxgIg+dpjmpxcXrAqiAvaVkqE kcvGokfcKpyJiA/OuADVhgbNH1Qa2zns+OvJ2R6sOrfgBG24dgaB0ILskgWyegJTa3HS 5mo8ujpff6TyV3/NXKHJvaRENwBPa2U3ujFptJ5rycL22PnDzLxwXQ9uJnk1ogBew1Ct SMtyB3ddWFhFMAn46D/OOTbMQGGNTuP3uNIP6N8H9E4I8NYyki05T3flPEpLYT1TEmnc 1KnA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-191386-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191386-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794abd610f6si955095785a.781.2024.05.27.13.25.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 13:25:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191386-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-191386-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191386-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 971531C214C3 for ; Mon, 27 May 2024 20:25:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9100643AA4; Mon, 27 May 2024 20:25:42 +0000 (UTC) Received: from fgw23-7.mail.saunalahti.fi (fgw23-7.mail.saunalahti.fi [62.142.5.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 877CC17E91C for ; Mon, 27 May 2024 20:25:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.142.5.84 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716841542; cv=none; b=eIvcQVErXFiBYk9yaBdExBT4hMuonTCRGEzrFUMvj3NBy3oiNvLv/cZzEfViRVxFBlUj85XXa2dLKraUXHMxTLi928r2HfL2bZprDJ6+AH4+p/vonmUiUXIwahH9pQFvGvac7hcu6BoWp9AxAzi5K/ljbf7Rwn1XIic2hKJw1tQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716841542; c=relaxed/simple; bh=kzOn/pg9oEMfSMyQo519MSdFHUDCKUEJSi3NgD70QJY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GR9Z9ZwaeXXK8qsqVXV7CoUso2/uun1VGMrSQwVtGdW4IRjmhx9HKTgjv6f2RV93Cv9LPeb2icnx267lHYnd2+nhUaosSTLoCOniOh7AE2Yk5lF0rEpVGLciY02I/0GKOjSHjTanWaE9A6kvqHhojS8QtyPyw4OhYTOU//AyleU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=fail smtp.mailfrom=gmail.com; arc=none smtp.client-ip=62.142.5.84 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=gmail.com Received: from localhost (88-113-26-230.elisa-laajakaista.fi [88.113.26.230]) by fgw20.mail.saunalahti.fi (Halon) with ESMTP id 1ed924e2-1c67-11ef-8d38-005056bd6ce9; Mon, 27 May 2024 23:24:30 +0300 (EEST) From: Andy Shevchenko To: Greg Kroah-Hartman , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Rafael J. Wysocki" , Guanbing Huang , Guanbing Huang , Andy Shevchenko , Woody Suwalski Subject: [PATCH v1 1/1] PNP: Export pnp_bus_type for modules Date: Mon, 27 May 2024 23:24:24 +0300 Message-ID: <20240527202424.1430103-1-andy.shevchenko@gmail.com> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Since we have dev_is_pnp() macro that utilises the address of pnp_bus_type variable, the users, which can be compiled as modules, will be failed to build. Export the variable to the modules to prevent build breakage. Reported-by: Woody Suwalski Closes: https://lore.kernel.org/r/cc8a93b2-2504-9754-e26c-5d5c3bd1265c@gmail.com Fixes: 2a49b45cd0e7 ("PNP: Add dev_is_pnp() macro") Signed-off-by: Andy Shevchenko --- drivers/pnp/driver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pnp/driver.c b/drivers/pnp/driver.c index 0a5d0d8befa8..1394d17bd6f7 100644 --- a/drivers/pnp/driver.c +++ b/drivers/pnp/driver.c @@ -265,6 +265,7 @@ const struct bus_type pnp_bus_type = { .pm = &pnp_bus_dev_pm_ops, .dev_groups = pnp_dev_groups, }; +EXPORT_SYMBOL(pnp_bus_type); int pnp_register_driver(struct pnp_driver *drv) { -- 2.45.1