From patchwork Fri Nov 22 09:47:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 13882956 Received: from mail-vs1-f53.google.com (mail-vs1-f53.google.com [209.85.217.53]) (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 352DF1DAC9B for ; Fri, 22 Nov 2024 09:48:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.217.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732268902; cv=none; b=JFjIBQLjeTUXT0IdZBGtzXTlSckLAUJbd+BQ44QU6c/f1OIqEkFrF/Y6QrxPuWD6Zaz1qBunojCozX3Pr1E5wxmW/iCqNJsudrlZPBMqfggjGpNqkDUs9xatnBlB/ggPtlsoRQc8Q+MyqRKsYH1EovTnM1O19N6NjSg5nMplpCs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732268902; c=relaxed/simple; bh=h7Fy6ID2Wea+cuB0h198OsRtS8B+sBBixK2ZtTg/Lzc=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=QXGvqklOe3yl8PFgGl7RuEXHAfyMW1WuyvNPSQKOdRaFWZizSO3E/uYHwMyeOtzfXdrhjM7BPk2p2FRGDKAM1PbvmPRXrt2laHZHAkIuyyIpM61uqerIWMIIlixRPhNIM4KeUAT9proYpK+kmzhskVZykk/YGIApndw3+fO5j94= 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=MV5t7/nt; arc=none smtp.client-ip=209.85.217.53 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="MV5t7/nt" Received: by mail-vs1-f53.google.com with SMTP id ada2fe7eead31-4a5ad828a0fso270421137.2 for ; Fri, 22 Nov 2024 01:48:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1732268899; x=1732873699; 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=Cs82EvgmY8NzBFhpFn/AfZi8XWnAsUV99htkSHmKbBI=; b=MV5t7/ntlXkaqtRcmYYHpH0YeQAS6YNpbSBWTvhiSupqC8t10r5dRE+ymV9od7Q6Gc /Zd1rrF0HZaH7JAHHGnLDd/oqWsvhZFjC7RyQuBYt3/xhQcOvvD1W7sGI69zPkzVr0DZ l4q3MRNaLZst6JiWKCKh1hBRyR37p1L6y3RDs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732268899; x=1732873699; 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=Cs82EvgmY8NzBFhpFn/AfZi8XWnAsUV99htkSHmKbBI=; b=mD4mN1om08HHCzagU2PmxPecqbfHrNkKgMkZPNXZTEKQmAXWFGjnWsFOBGCnqGT5tK jv0ZqneJbGkyuT/NcTvt3fl6ceeAXKyxtKk0a3QADK2V+ZXvsqtwlObIox/js4Wr08eA iSEoypw4pqVW4Pyz6xA1BHkn/n0wvSl1Cbrb8PWIAov4lm4o6+2Vu0czmMPJRvf0YY9a 5IGH+R1RH7pthRjINCntYrq0K0ZzSzP5fAo/a34T/4yVFuqgbzGZ6f5LZiRwzm9P4sYh ibqvPFwqZVEyyJW/0NjUB1QnXUf28+xl7ykRd6zbXN00occAMhAsFbl6Puo16DDnINxZ meTw== X-Forwarded-Encrypted: i=1; AJvYcCVyMBQItb1/1edKx7uPf8XlUmCdkfEiNttmZQ1IQcPGvJGRTvNSzV5b/3dM0gNyHvqrWfhGNqhYvhUjFQ==@vger.kernel.org X-Gm-Message-State: AOJu0YzNW3u8fDoYnuEubCuYwHNae7NnJzksVLk/ANMCqKrHaEcCNqP2 TyyVvwZgpykY2HDEE+iJiRzgb5j/aoAxNuiA4A0aU+CY5HjFPtf9fslGXPA8Hg== X-Gm-Gg: ASbGnctk/d3owmnmACfefUm4RiEgG821A9Vg8NlOXrFFXyDwCAlAPadCtk4+kwKnBAz c+Tdwuqq9qOt6w2jdwjz+GinM01I9rrGUp+g44oFfV9BFVEr7+64NP3J06xZqGwpFe+H9fK8xVL CQqPZw+7E42w8czHZx5Y6qkf/yU9UGREnadmi+zDvg7H2FMI16tsDePM68aK+gNEYdRrWYNcwPV pdvN95pABFAvykcjL370dIIYUxZ4GA/uXBBsw6894+6iCeQjh8FxqJPSq/8Mgj1gL6RwaX3U7Xm Bi+2WIiLbcJMlW4csnWeyVcd X-Google-Smtp-Source: AGHT+IG5fsWaqF4gOiWjJqQ6Ito5ITspaw7yFFwQpvPeXryHfu3kCm7Z8WMVNfAz6obym8tjtrdSCA== X-Received: by 2002:a05:6102:942:b0:4ac:fe47:1bcf with SMTP id ada2fe7eead31-4addce7430cmr2745642137.24.1732268899126; Fri, 22 Nov 2024 01:48:19 -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 d75a77b69052e-4653c47f124sm9282731cf.62.2024.11.22.01.48.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Nov 2024 01:48:18 -0800 (PST) From: Ricardo Ribalda Subject: [PATCH v2 0/7] ipu6: get rid of all the IS_ENABLED(CONFIG_ACPI) Date: Fri, 22 Nov 2024 09:47:57 +0000 Message-Id: <20241122-fix-ipu-v2-0-bba65856e9ff@chromium.org> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAE1TQGcC/2WMyw6CMBBFf4XM2jF0Unm48j8MC6wDzAJKptJoS P/dytbluffk7BBYhQNcix2UowTxSwY6FeCmfhkZ5ZkZqCRrDBEO8kZZN+xpYGrasmkrC9lelfN 1lO5d5knCy+vnCEfzW/8b0aBBshXTxbpHXbubm9TPss1nryN0KaUvYJ5GEqEAAAA= To: Mauro Carvalho Chehab , "Rafael J. Wysocki" , Len Brown , Robert Moore , "Rafael J. Wysocki" Cc: Sakari Ailus , Dan Carpenter , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, acpica-devel@lists.linux.dev, Ricardo Ribalda , kernel test robot X-Mailer: b4 0.13.0 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 To: Rafael J. Wysocki To: Len Brown To: Robert Moore To: Rafael J. Wysocki Cc: Sakari Ailus Cc: Dan Carpenter 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 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 | 23 ++--------------------- include/acpi/acpi_bus.h | 16 +++++++++++++--- include/linux/acpi.h | 1 + 3 files changed, 16 insertions(+), 24 deletions(-) --- base-commit: 72ad4ff638047bbbdf3232178fea4bec1f429319 change-id: 20241122-fix-ipu-a2fe28908964 Best regards,