From nobody Sun Dec 14 21:32:44 2025 Received: from mail-qv1-f45.google.com (mail-qv1-f45.google.com [209.85.219.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E34841D88BB for ; Wed, 11 Dec 2024 16:07:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733933244; cv=none; b=cqJwO+touqpCf+juBsiXXFOqczMa4FFWuB7jUdTJdmLSwhhyphX7aDZHEowfPAoWh8//PDj36u+R9SUR94ZKWK1ryPvHKf4eRlp4tBF6WLoltFxccqa78S0pippRVIgV+ba/614plywl7Xj0mH6V6XTxQN9kIIhy9MvjUE75tgw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733933244; c=relaxed/simple; bh=TqounAX+K+Jxvi8T1JjQIXGiJfX2iNkecKUSnEv++60=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Z2l3N80JECG1fnNPfztvM3dRLClPh/tEYq71yKpwDv8NqJcG+DkPmUDQ9MJzVhcymFlCK41HiCsNJFng4A5WF/Bz4guwsYg6N+JnDCatz2PMm+0DjlV1NOT3dgTo+pbIAYJppJN/f6x+zCGxcrv9lV77k/JiNkacqHthF0BgQao= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=TV7WAq36; arc=none smtp.client-ip=209.85.219.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="TV7WAq36" Received: by mail-qv1-f45.google.com with SMTP id 6a1803df08f44-6d8adbda583so77045626d6.0 for ; Wed, 11 Dec 2024 08:07:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1733933242; x=1734538042; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=FNCYhbk8lfVWYHW/bT6mgb7P6pux9ucX6tRFgaMr2JY=; b=TV7WAq36l2J4CLk/dFnHX8wh3ZUukZ3LYP6ajlFKBGN7dolw8PRkdnv0TFJzzwWF+I ca5TrlBrOmTPh/G7gK60T5cKylMc55Gi+A5PjrNJ87apC0yqT5YCe+ib9gfmmmQUjQsZ mIbC4jsMBOv7LSRVOQgSSfNyhPIhOyiQcjpnM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733933242; x=1734538042; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FNCYhbk8lfVWYHW/bT6mgb7P6pux9ucX6tRFgaMr2JY=; b=AA6R+rGbb7/qhurdSTchuY0SKHD/viqmnngjZtMMX2Pza5Ynt0I2NDBqhC9HE5zCT0 V4VfMOTW6R/lnkkWWG92PkbBlnpjG0E+Mwn/WiSNpKGinhIHsD2BiNcIMXbOdrzcTeX1 P6vSvDQZRpMLiNl1mHb5C5hoL15lteAlvau0wE2QNZivqGDJhZCwbcJlNQSbZFJFYWO6 YHaSdRsNZ32xoCe8+NjG3Fi4XoQzFhYVMIFV32D5LZrx9oGqltccX0oR9pMmizeGGdcb dpyLTCcTMewNYjKC+2pr0O7FluVwxjPd1ATPkRzMy/Djag1lmibMGDCS0fS/P5j2b1im 35Fg== X-Forwarded-Encrypted: i=1; AJvYcCWV7wGjNpXosiEsbhrr+TEIi8SBVUpL/wf9SBGz32wO4aa7Xh9putILJQ4hpWMY1KK30DAoWuthyOKAu5I=@vger.kernel.org X-Gm-Message-State: AOJu0YwTEHvgxD8N/b1tpy78rFKOI0zbEkIsoklU/gvgbK/4MDaV7h0i g6KFCNE+UFuYR3/YrxeRlI/T48A5uhA+zkUAzcnq49cfpcxDFJTkZ4tbXdm62RS/WZNsihHpgug = X-Gm-Gg: ASbGncu0re+bAdYvEpd2yqJFTCXcki7NN+pIqLYjyK6hRDY/2vWmrv0rR8NVngkMH9k 1X/YM9g2HtG8zGFC9ZZ/jXJl+cBGM8zTnRaFcLjv0AgeQU933VV5YWizilJ1jWdvkzmq+P8Cdtj Sbjy19QmYgiSaA6oCv0PRqZjAf6n+C47bdsIzg9qvEZWEKc1cTu5i0dBghIdWwTR0I9VGjBrko7 oXd8mVysAg24ZgOT27/Ncw9b9GOKVzeIwQjZD66pm7sQi0Bvqv7FyLdapvaiEL7PxcYreVhvd76 rzJ4EdHYLpMgdjx2zsFli8FGhgNZ X-Google-Smtp-Source: AGHT+IGcc3JlLT/wu+C4rWFjGmYrf64CYVGHb0Do566/dBbbYn4TQZbAD2UV6tNA4A7JWCGBQjJOYA== X-Received: by 2002:ad4:5f8f:0:b0:6d3:b636:eccc with SMTP id 6a1803df08f44-6d934b1cbc1mr64900806d6.21.1733933241771; Wed, 11 Dec 2024 08:07:21 -0800 (PST) Received: from denia.c.googlers.com (5.236.236.35.bc.googleusercontent.com. [35.236.236.5]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6d8daa00671sm71484946d6.88.2024.12.11.08.07.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2024 08:07:21 -0800 (PST) From: Ricardo Ribalda Date: Wed, 11 Dec 2024 16:07:17 +0000 Subject: [PATCH v4 1/6] ACPI: bus: implement for_each_acpi_dev_match when !ACPI Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241211-fix-ipu-v4-1-4102e97aceb6@chromium.org> References: <20241211-fix-ipu-v4-0-4102e97aceb6@chromium.org> In-Reply-To: <20241211-fix-ipu-v4-0-4102e97aceb6@chromium.org> To: "Rafael J. Wysocki" , Len Brown , Robert Moore , "Rafael J. Wysocki" Cc: Sakari Ailus , Dan Carpenter , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, acpica-devel@lists.linux.dev, Ricardo Ribalda , Mauro Carvalho Chehab X-Mailer: b4 0.13.0 Provide an implementation of for_each_acpi_dev_match that can be used when CONFIG_ACPI is not set. The condition `false && hid && uid && hrv` is used to avoid "variable not used" warnings. Reviewed-by: Sakari Ailus Acked-by: Mauro Carvalho Chehab Signed-off-by: Ricardo Ribalda --- include/acpi/acpi_bus.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index b2e377b7f337..2b09e513ecf3 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h @@ -1003,6 +1003,9 @@ static inline int unregister_acpi_bus_type(void *bus)= { return 0; } =20 static inline int acpi_wait_for_acpi_ipmi(void) { return 0; } =20 +#define for_each_acpi_dev_match(adev, hid, uid, hrv) \ + for (adev =3D NULL; false && (hid) && (uid) && (hrv); ) + #endif /* CONFIG_ACPI */ =20 #endif /*__ACPI_BUS_H__*/ --=20 2.47.0.338.g60cca15819-goog