Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1573083lql; Wed, 13 Mar 2024 01:47:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUA+sbEAweTKRwmK33Xl/ldJ5oRgGwZsV9FmjMyKc+Mf2NOZbRfoYXVfFET4dXSeG06ax3sH+/GmxVqfo2BrL4FwWb5UemaEib6wC/dfw== X-Google-Smtp-Source: AGHT+IFDpLpGzkyhrJkYkyJIj+xMnZqr4w96sFZO4Netpm9qDzCxAHYY1+mSTb8Gmucci275kNmx X-Received: by 2002:a05:622a:50c:b0:42e:f1d7:4c9a with SMTP id l12-20020a05622a050c00b0042ef1d74c9amr6399103qtx.42.1710319670174; Wed, 13 Mar 2024 01:47:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710319670; cv=pass; d=google.com; s=arc-20160816; b=Daun2+AxNDP90ewLwTt2g45/uFd+cS9Qw9j8ftqEzP/O9yeDt4woRBrVpVxEjzA95v wkai6k2J0X5sSGIt1d3KR+9UB4agUeHyhHf8t3C+R5oq/KWsOv+UOIEfL2k8fl/kXgCp yPI8+8xADoJHJVGXpp358srMWk0t1eKUVdjnQg5/6afXqrH51tB921xE0oQL78aCPrdW OkpgT7Ih7fzDQSFTdGPaKX994/49yHuCeZA6IsTj2iXIKi8sLjcWnscsLn1H10/u90fS lWiC/UOyUc0plFk0jXf+deEjE+lZwihQuEOdtMdRE30zMONKYlFMPuDQvXf5ZJPxviyq isTA== 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:dkim-signature; bh=Of/565ipJQrTOsQqIhIDe5u5givG/9DVxXVBcgdYEnk=; fh=YJcd7/zAVse47UL+kQhuiJGyGFPNACM1NyxLJJeNBn8=; b=g+pS5prIK6EAtGj8I6xiQhx8jUMv3QeZQOzlVKdO4mpnLZP+6eOJJW1Uo0m8X1Murs TGz+lX2LdPWdMqC/RTSDKN9Sz+EutfUslj9uDTgoRkdubW8t5h93WpgTzTqjzvY5EKUM Cd5oCcsbBc9aACBv/gX5WE0Nz8/Aed2lcs7jBPVlJsd/KXeHx4CQzmY9lF7fEVobuKL4 IJg1/0wQg8ro3wrVfJB5YIH5QaQYrm3EDYbKvkoi3ryG93qEzWNww7s9OK3rSxIrp6k2 hxv0jXOvWWea69vGpRhz1vYk1xHjffQDlRTXyURxmNKi3uGSXksncZcbW0F7ozdyBtf4 qyZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W1Jk2b1G; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-101224-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101224-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id j9-20020ac85c49000000b0042f4de7ff23si4592833qtj.274.2024.03.13.01.47.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 01:47:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101224-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W1Jk2b1G; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-101224-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101224-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 CC6BC1C2178D for ; Wed, 13 Mar 2024 08:47:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B9AC21B976; Wed, 13 Mar 2024 08:47:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="W1Jk2b1G" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E4B2F1B943 for ; Wed, 13 Mar 2024 08:47:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710319663; cv=none; b=PJzcyKrQXp0CVydhN5qDE9ub3xi6ByE+OojYwexC1O/siumjW3NfDoP1CGfnECExV2yxnaOT8A6jTdt1IQQWcdCJ5/y9Mx1cKqH0EAxg7GANb+5P1U398Pk5UTV99ecAH2T3QtjIATbps+oaMK1SpX/pdfMfy69uvc08NGTT6K4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710319663; c=relaxed/simple; bh=DOtrx5taZpCaGGzBrVh7vSdllhCDtiQSs7F4mlLOxMk=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=hqWz5z+FjTD+Fy5BP3ANoATi4591VwxCo0HUOVHCxPPFF806Epyxy5up4zrdjkn8EH4jbuMXvg8iVyS55LiHnVEORjATntZLHK49Vjq5uV4IMFEfBO29ALAUWjdIIDMHVJ+tvhnpDoA4gDZWGQlq4wXSmNqYvPnEU+GVNGXnKsA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=W1Jk2b1G; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7CF25C433F1; Wed, 13 Mar 2024 08:47:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710319662; bh=DOtrx5taZpCaGGzBrVh7vSdllhCDtiQSs7F4mlLOxMk=; h=From:To:Cc:Subject:Date:From; b=W1Jk2b1GyJrAyokLXa1F9I9wi/qsE+mo1ksbL6UFjdrfHuvfEP4CIgxksyVWQrCkQ Qh8Ul/pEFsLrggxR1JNsVsHqjSP3ULjZeQikNqwib4IJGZR9Q723bitsvIVKcp04wp U57zdK9hhIpvQdoc4nTCIgdYzBmcDECQOfZC5Tb1WjWR5hErjTGl7eD6F8BI34b1AH UnMr+q+J7MVCWt/p4kv9wQrwUFhSekLOv3vt90tli/2NUcDWKjnTyEfqpYbMJ5DwDs ERspbYZZgM61PI5Yo+MCUaSzO2ZAhw7TgVvWQ8E3xp9sN3w6oKkBG1cZHx5H+lcBgZ d1HyZK9qZK69g== From: Arnd Bergmann To: Jani Nikula , Rodrigo Vivi , Joonas Lahtinen , Tvrtko Ursulin , David Airlie , Daniel Vetter , Radhakrishna Sripada Cc: Arnd Bergmann , Imre Deak , Nirmoy Das , intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/i915: add intel_opregion_vbt_present() stub function Date: Wed, 13 Mar 2024 09:47:26 +0100 Message-Id: <20240313084735.3305424-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann The newly added function is not available without CONFIG_ACPI, causing a build failure: drivers/gpu/drm/i915/display/intel_bios.c:3424:24: error: implicit declaration of function 'intel_opregion_vbt_present'; did you mean 'intel_opregion_asle_present'? [-Werror=implicit-function-declaration] Add an empty stub in the same place as the other stubs. Fixes: 9d9bb71f3e11 ("drm/i915: Extract opregion vbt presence check") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/i915/display/intel_opregion.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_opregion.h b/drivers/gpu/drm/i915/display/intel_opregion.h index 63573c38d735..4b2b8e752632 100644 --- a/drivers/gpu/drm/i915/display/intel_opregion.h +++ b/drivers/gpu/drm/i915/display/intel_opregion.h @@ -120,6 +120,11 @@ intel_opregion_get_edid(struct intel_connector *connector) return NULL; } +static inline bool intel_opregion_vbt_present(struct drm_i915_private *i915) +{ + return false; +} + static inline const void * intel_opregion_get_vbt(struct drm_i915_private *i915, size_t *size) { -- 2.39.2