public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/7] ipu6: get rid of all the IS_ENABLED(CONFIG_ACPI)
@ 2024-12-10 19:55 Ricardo Ribalda
  2024-12-10 19:55 ` [PATCH v3 1/7] media: ipu-bridge: Fix warning when !ACPI Ricardo Ribalda
                   ` (7 more replies)
  0 siblings, 8 replies; 37+ messages in thread
From: Ricardo Ribalda @ 2024-12-10 19:55 UTC (permalink / raw)
  To: Mauro Carvalho Chehab, Rafael J. Wysocki, Len Brown, Robert Moore,
	Rafael J. Wysocki
  Cc: Sakari Ailus, Dan Carpenter, linux-media, linux-kernel,
	linux-acpi, acpica-devel, Ricardo Ribalda, kernel test robot

We want to be able to compile_test the ipu6 driver in situations with
!ACPI.

In order to do this we had to add some conditional #ifs, which lead to
false positives on the static analysers.

Let's implement some helpers when !ACPI in the acpi headers to make the
code more easier to maintain.

We can land the first patch of this series ASAP to fix the current
smatch warning.

To: Mauro Carvalho Chehab <mchehab@kernel.org>
To: Rafael J. Wysocki <rafael@kernel.org>
To: Len Brown <lenb@kernel.org>
To: Robert Moore <robert.moore@intel.com>
To: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: Dan Carpenter <dan.carpenter@linaro.org>
Cc: linux-media@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-acpi@vger.kernel.org
Cc: acpica-devel@lists.linux.dev
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>

Changes in v3:
- Prefer static inlines to macros (Thanks Rafael).
- Link to v2: https://lore.kernel.org/r/20241122-fix-ipu-v2-0-bba65856e9ff@chromium.org

Changes in v2:
- Add helpers in acpi to avoid conditional compilation
- Link to v1: https://lore.kernel.org/r/20241122-fix-ipu-v1-1-246e254cb77c@chromium.org

---
Ricardo Ribalda (7):
      media: ipu-bridge: Fix warning when !ACPI
      ACPI: bus: implement for_each_acpi_dev_match when !ACPI
      ACPI: bus: implement acpi_get_physical_device_location when !ACPI
      ACPI: header: implement acpi_device_handle when !ACPI
      ACPI: bus: implement for_each_acpi_consumer_dev when !ACPI
      ACPI: bus: implement acpi_device_hid when !ACPI
      media: ipu-bridge: Remove unneeded conditional compilations

 drivers/media/pci/intel/ipu-bridge.c | 28 +++++-----------------------
 include/acpi/acpi_bus.h              | 23 ++++++++++++++++++++---
 include/linux/acpi.h                 |  6 ++++++
 3 files changed, 31 insertions(+), 26 deletions(-)
---
base-commit: 6c10d1adae82e1c8da16e7ebd2320e69f20b9d6f
change-id: 20241122-fix-ipu-a2fe28908964

Best regards,
-- 
Ricardo Ribalda <ribalda@chromium.org>


^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2024-12-11 11:33 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-10 19:55 [PATCH v3 0/7] ipu6: get rid of all the IS_ENABLED(CONFIG_ACPI) Ricardo Ribalda
2024-12-10 19:55 ` [PATCH v3 1/7] media: ipu-bridge: Fix warning when !ACPI Ricardo Ribalda
2024-12-10 21:03   ` Sakari Ailus
2024-12-10 21:27     ` Ricardo Ribalda
2024-12-11  8:31       ` Mauro Carvalho Chehab
2024-12-11  8:27     ` Mauro Carvalho Chehab
2024-12-11  8:14   ` Mauro Carvalho Chehab
2024-12-11  8:19     ` Ricardo Ribalda
2024-12-10 19:55 ` [PATCH v3 2/7] ACPI: bus: implement for_each_acpi_dev_match " Ricardo Ribalda
2024-12-10 21:02   ` Sakari Ailus
2024-12-10 19:56 ` [PATCH v3 3/7] ACPI: bus: implement acpi_get_physical_device_location " Ricardo Ribalda
2024-12-10 20:53   ` Sakari Ailus
2024-12-10 20:54     ` Ricardo Ribalda
2024-12-11  8:16   ` Mauro Carvalho Chehab
2024-12-10 19:56 ` [PATCH v3 4/7] ACPI: header: implement acpi_device_handle " Ricardo Ribalda
2024-12-10 20:56   ` Sakari Ailus
2024-12-10 22:31     ` Ricardo Ribalda
2024-12-11  7:58       ` Sakari Ailus
2024-12-11 11:33         ` Rafael J. Wysocki
2024-12-10 19:56 ` [PATCH v3 5/7] ACPI: bus: implement for_each_acpi_consumer_dev " Ricardo Ribalda
2024-12-10 20:57   ` Sakari Ailus
2024-12-10 19:56 ` [PATCH v3 6/7] ACPI: bus: implement acpi_device_hid " Ricardo Ribalda
2024-12-10 21:01   ` Sakari Ailus
2024-12-10 22:35     ` Ricardo Ribalda
2024-12-11  7:57       ` Sakari Ailus
2024-12-11  8:40         ` Mauro Carvalho Chehab
2024-12-11  8:48           ` Sakari Ailus
2024-12-11  8:57             ` Mauro Carvalho Chehab
2024-12-10 19:56 ` [PATCH v3 7/7] media: ipu-bridge: Remove unneeded conditional compilations Ricardo Ribalda
2024-12-11  8:19   ` Mauro Carvalho Chehab
2024-12-11  8:25     ` Ricardo Ribalda
2024-12-11  8:50       ` Mauro Carvalho Chehab
2024-12-11  8:32     ` Sakari Ailus
2024-12-11  8:37       ` Ricardo Ribalda
2024-12-11  8:48         ` Mauro Carvalho Chehab
2024-12-11  9:14           ` Dan Carpenter
2024-12-11  8:22 ` [PATCH v3 0/7] ipu6: get rid of all the IS_ENABLED(CONFIG_ACPI) Mauro Carvalho Chehab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox