Message ID | 20241210-fix-ipu-v3-0-00e409c84a6c@chromium.org |
---|---|
Headers | show
Received: from mail-vs1-f52.google.com (mail-vs1-f52.google.com [209.85.217.52]) (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 6C2B923ED48 for <linux-acpi@vger.kernel.org>; Tue, 10 Dec 2024 19:56:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.217.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733860571; cv=none; b=qEF4RP06PXUAkQRWXSCg1Tohik9s15Z2rxV3nEn3kzSwXgLsXorP7QL7kB7Nf2ULzHBU+WX+AgbQMJIsNYmXwQSLv/nREZZZbo+0EOS16K3NiGiHXVA2IXi0UOggnayS2ESRjNmGJFNf6lTblxb6/ZrOrcAknvI8HAZCAeOHXYo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733860571; c=relaxed/simple; bh=dSTADKTNJvbmRBy+1jUqiB+cNshFUI2ErxE8CtN1esU=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=DK5wIuJHFO+qZ9g7DvV3d9DNK7n0V4bSf+9ncwCQidu4mZ+OGyYq55qSR72zU7eIG6Jho6oKl99cDuNmmzt/7a2iQF9CKYZT0ewT6DkExfmBSwXvWX6pgkqHUsrgPeCrniYfYPm1hByeayn69KVAhp1XQvwbRBnOkJikfPAJbrM= 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=M0kdRPgf; arc=none smtp.client-ip=209.85.217.52 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="M0kdRPgf" Received: by mail-vs1-f52.google.com with SMTP id ada2fe7eead31-4afe70b41a8so1032838137.3 for <linux-acpi@vger.kernel.org>; Tue, 10 Dec 2024 11:56:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1733860567; x=1734465367; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=ENZnTNWODqxq5GjFCzfA3SG8RDnI3+d9xSrfoOvAAA4=; b=M0kdRPgfoTOsR4WkkmfDH3dWadGOprnW6pYIG4n7RCGQ/DA72rSMwpYqOqDh0JN340 eor8A6pXAPUKSMDGf+V3m9PVjbPvqjYR668Cz7V+gdZgJONQ38RFWv5kF6GGRxU3w6jn ybWiH0tg+2G1n1JYEX2mXsaH1FxcNAl4ATzSg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733860567; x=1734465367; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ENZnTNWODqxq5GjFCzfA3SG8RDnI3+d9xSrfoOvAAA4=; b=p/4+LLKCuDMNhlq4R/7ud2dkwrNqJp3eDXWwc7yd4K9Z0V6W29IVTKADtqUj+67cpF OftbLkpGAhLWoHXjELC0e2tR8cOiDN16TLPc/4EiDgvaI3auypGuMf3j4EhyuNgY0jqF aJCxve9Eq6gFAHvCSAP7S2UYIKeF2lQ9v3zUoizBsJMJ6niAGpeVdpVWSfUAfe8cYGIZ lXHjsrdt/VWfwv5cc74SZWbwHh71n5lNpk7LksE7cxjREEB48UR2FZq4Yr83hMobX6Kv qF4h54YBGYvtGV3xGC4BGzFK36btxnbpR3QLqsZxJCTudVBn+FbZflzrue1ux6P3FO8n nk0g== X-Forwarded-Encrypted: i=1; AJvYcCV1XdCi2wSORMLXvjoj6dgVUJNBbnZSIVKRz40of7kTUVBNmkZI5fCPcchFuz2KdcUMr9YdU0kpH7xO@vger.kernel.org X-Gm-Message-State: AOJu0YyyaB6sAeHA4fMPdjnp8k4fiadHLYMBSEDcBj5TlT2escEZHvWr vy89fVHWPmu+oJV3tvWXL8Ossa+WkRMybSD9iqxtN6XyB7lb4hWJBQg1LU79sA== X-Gm-Gg: ASbGnctoxNiNUr4YOw6qPP+rAUCb4Vegwm5uNSCha/185pWsE04loWB5Z1j6DQILXrg FAPVGzstfoOdVUpO9QaxSnsVFA9FvLXJwiMkfHjfbHfVGkVuVT9GgmxKNMMs9YMaVv7pB0+dmTm Rls6qKzB/ykaOuSv5R37DcMAo3kEA4VJwCd1tRf7rXN521lSfF5pZgADs48zob2KBq2zAolObxb ILRh6xAeBAizzlH0zxO5QogOsUSeZXxkfM5mQGhkzf020uwMQauLNUcyZzG9KftpP+Uvj+FYbqy fXKoKvfk22Sh6gTlA34ljsTbqjJ8 X-Google-Smtp-Source: AGHT+IHsmCtT0BD6IrraDycago+v0DRU/6EPtntyLjiexxdvbBR0cbJtcpyVIcAxjR5YjW2IFBWOQw== X-Received: by 2002:a05:6102:3747:b0:4af:c31d:b4e9 with SMTP id ada2fe7eead31-4b128fedb4cmr851826137.13.1733860567449; Tue, 10 Dec 2024 11:56:07 -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 a1e0cc1a2514c-85c2ba7dc70sm1279522241.15.2024.12.10.11.56.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Dec 2024 11:56:06 -0800 (PST) From: Ricardo Ribalda <ribalda@chromium.org> Subject: [PATCH v3 0/7] ipu6: get rid of all the IS_ENABLED(CONFIG_ACPI) Date: Tue, 10 Dec 2024 19:55:57 +0000 Message-Id: <20241210-fix-ipu-v3-0-00e409c84a6c@chromium.org> Precedence: bulk X-Mailing-List: linux-acpi@vger.kernel.org List-Id: <linux-acpi.vger.kernel.org> List-Subscribe: <mailto:linux-acpi+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-acpi+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAM2cWGcC/3WMyw6CMBBFf4V07Rg6lvJY+R/GBdQpzAJKWmk0h H+3sNS4PPdxVhHIMwXRZKvwFDmwmxJcTpkwQzv1BPxILDBHJSUiWH4Bzwu0aAmrOq9qrURaz55 SdZhu98QDh6fz70Mc5Z7+OqIECag0YaFMV5bmagbvRl7Gs/O92DUR/1wRcui6VhdVoam29uu6b dsH7g2kedwAAAA= To: Mauro Carvalho Chehab <mchehab@kernel.org>, "Rafael J. Wysocki" <rafael@kernel.org>, Len Brown <lenb@kernel.org>, Robert Moore <robert.moore@intel.com>, "Rafael J. Wysocki" <rafael.j.wysocki@intel.com> Cc: Sakari Ailus <sakari.ailus@linux.intel.com>, Dan Carpenter <dan.carpenter@linaro.org>, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, acpica-devel@lists.linux.dev, Ricardo Ribalda <ribalda@chromium.org>, kernel test robot <lkp@intel.com> X-Mailer: b4 0.13.0 |
Series |
ipu6: get rid of all the IS_ENABLED(CONFIG_ACPI)
|
expand
|
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,