From patchwork Mon May 27 20:24:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 799565 Received: from fgw21-7.mail.saunalahti.fi (fgw21-7.mail.saunalahti.fi [62.142.5.82]) (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 727841F93E for ; Mon, 27 May 2024 20:24:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.142.5.82 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716841475; cv=none; b=etCxMB40ffZ9lJIeYitmXeUG4+Yf8zFo/0wSazNgfucWlVf888EjkG9AmoFC7QOQopBsa965sR41SGif5TiWWJMqtH/pMt0H2azGD5djoOBL5WKofPjuwJJxWtYGt392aEP1fS11zyFTT7+CEccxGBsOenBvyzXuQssN1ilcKs8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716841475; c=relaxed/simple; bh=kzOn/pg9oEMfSMyQo519MSdFHUDCKUEJSi3NgD70QJY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=a8uYhNWgzv+C6bGD/yuCoIUfIvyAT57Sdvw8Vo5uKoHzfWuAwFjc7Evt2FkQOx6dWF4VqmY9Kd9tmQmvX1cO3PWJAI8A+5yJOud/RYXWesyMj8jthnW2yzU7M6DGw1uFJSJ0E3O+vvDwRfTBEaici8m5ge5RFlhOcCpynOE6+k0= 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.82 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-acpi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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) {