Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2546140lqb; Tue, 28 May 2024 03:27:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWLb6TslJufVSoQhK2Vb5S30MFrNXh5dSJNUo9H9rhQqYt7IV7813nTlNLlqXYFKgynN4QqjZv5hmWKgfcxb07ZHmxpD8AisdxmlEqVbw== X-Google-Smtp-Source: AGHT+IGHKpV4FjN8JFaXIoMQ6w72sOKvqpAE11c6q/pn+pi4Ina3EpGN8smtysS0ioX+gx+5RqgS X-Received: by 2002:a05:6808:614:b0:3c9:6ad1:8634 with SMTP id 5614622812f47-3d1a7d298f3mr11150214b6e.58.1716892050535; Tue, 28 May 2024 03:27:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716892050; cv=pass; d=google.com; s=arc-20160816; b=dyQVx9zAx0uYqArSia7FQK7Fs4zmCJaabcDOW/iKWSHn2NlPC1J+FTx7a2x2KmPoiL jyDW6YQOa/BhUvecbHWKC/Et9wk+hfd5GTM1l4Kt8Z0qnNLVK6AF1cJ6X51fGRFbHazi f4Pgo3OArBh+xnjsRnHo0TAkAMMI+h+wB52+c6ZZkRO6YNVWoqRDN7lIZ1l7tgCxQ0Vd Qi9oRx1nlKmWNCt176eQW7CPby7LsG36PCkoOmc/krOmZJ1rwqK1DTCKBQbYOm+9Lzyf piMnDY0vQgyQNOtGcmnS8S4uRSUgyASXDUkrlU61TNf+wr/ZGMcfmzZhmXCdBWcGgvXi Bx4A== 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=MqEBA5HbihpRTo/a3+KUDMg+5NQw2OsSgJyoe9URIMA=; fh=o0a3dWUvskYrsDYGfnbSoQNBUqWxBaIoxtMWPa6oat8=; b=0/OX38dVRrOAorF+c/B6UGIVf7snO+aNIYtZItCAA6Ok+1KSvfd8YtVp4NBnrlD7+d gxoZnMGJpg9HJx+NnjHB4Kr6VqrIc+BzUhoyS82QAkXuyLVT3XvehA6Qon2o7/9EKCI5 Hzz5shdpdEcVGgLeMLJrDmpvl7fBVsLuX+AcL5X0xNvB0HzuAXvBPpkzJPoQ/0wfO2Qd 6TGAj/mDjm7WPw88ehdfz+DwA7pCVARfH31FA6zD7uFyCCq35TpCCPUKDIIFyIMPZAaC oahBEV42OgYt0hIhEvVsdnUL9dv6qkJ1XOuV94tjs/85JhPQej79CCOqbuGFpSgLXBNF h/Ig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-192114-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192114-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ac162b3e0fsi100243766d6.490.2024.05.28.03.27.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 03:27:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192114-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-192114-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192114-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 9E9471C23781 for ; Tue, 28 May 2024 10:27:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 761AC16B73D; Tue, 28 May 2024 10:27:23 +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 5D67C16ABFA for ; Tue, 28 May 2024 10:27:21 +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=1716892043; cv=none; b=OK0naUJqTcKHMvRfO3kr7HOaAISJZ+f7OwUvzQ3SdWkqIbqKZMOaMgvPoOjRO3qsrQ5hXEjNleZfjZ7SYTaP/vvFqObXx86Jp/Xq8+/8p81W2NkyyqB95FIKcVabxi9HAlBFpF0mK5r/Y80hNVRhdFyl10g+3QjDsEXQJVdZLpw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716892043; c=relaxed/simple; bh=N9amqOCoV3GG88T8bdtY3NbClGQO4HdYR4FDOKVBIHM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AVbhPul02cpnpUiDFy6UGHvt1/Sc5hrQC5R89Z6xVp7lhx/EhdqSOzEFXqlDQ9/k0/6HDykEJo2vVPAEys8dnnD+atf0e4s1zgO6olgCj4S2VS0xdsktbo9VQxlPDY3/Evdm7sofEYCbR03nDWuWrd0s18At21mGj4niPqURyiU= 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 fgw22.mail.saunalahti.fi (Halon) with ESMTP id dbde0bab-1cdc-11ef-8e2a-005056bdf889; Tue, 28 May 2024 13:27:18 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Rafael J. Wysocki" , Guanbing Huang , Guanbing Huang , Christoph Hellwig Subject: [PATCH v2 0/2] PNP: Fix handling of pnp_bus_type Date: Tue, 28 May 2024 13:25:01 +0300 Message-ID: <20240528102708.1451343-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 There is a fix for recently introduced dev_is_pnp() that involves pnp_bus_type and one improvement to hide that variable from the wider audience for good. In v2: - reworked patch 1 as suggested by Christoph - added a new patch to make less possibilities for (ab)using pnp_bus_type Andy Shevchenko (2): PNP: Make dev_is_pnp() to be a function and export it for modules PNP: Hide pnp_bus_type from the non-PNP code drivers/pnp/base.h | 1 + drivers/pnp/driver.c | 6 ++++++ include/linux/pnp.h | 6 ++---- 3 files changed, 9 insertions(+), 4 deletions(-) -- 2.45.1