From: Jani Nikula <jani.nikula@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: jani.nikula@intel.com, rodrigo.vivi@intel.com
Subject: [Intel-xe] [PATCH 1/9] drm/i915/display: add I915 conditional build to g4x_hdmi.h
Date: Tue, 8 Aug 2023 14:45:27 +0300 [thread overview]
Message-ID: <20230808114535.1600595-1-jani.nikula@intel.com> (raw)
Add stubs for !I915.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
drivers/gpu/drm/i915/display/g4x_hdmi.h | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/drivers/gpu/drm/i915/display/g4x_hdmi.h b/drivers/gpu/drm/i915/display/g4x_hdmi.h
index 1e3ea7f3c846..817f55c7a3a1 100644
--- a/drivers/gpu/drm/i915/display/g4x_hdmi.h
+++ b/drivers/gpu/drm/i915/display/g4x_hdmi.h
@@ -15,9 +15,21 @@ struct drm_atomic_state;
struct drm_connector;
struct drm_i915_private;
+#ifdef I915
void g4x_hdmi_init(struct drm_i915_private *dev_priv,
i915_reg_t hdmi_reg, enum port port);
int g4x_hdmi_connector_atomic_check(struct drm_connector *connector,
struct drm_atomic_state *state);
+#else
+static inline void g4x_hdmi_init(struct drm_i915_private *dev_priv,
+ i915_reg_t hdmi_reg, int port)
+{
+}
+static inline int g4x_hdmi_connector_atomic_check(struct drm_connector *connector,
+ struct drm_atomic_state *state)
+{
+ return 0;
+}
+#endif
#endif
--
2.39.2
next reply other threads:[~2023-08-08 11:45 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-08 11:45 Jani Nikula [this message]
2023-08-08 11:45 ` [Intel-xe] [PATCH 2/9] drm/i915/display: add I915 conditional build to intel_dvo.h Jani Nikula
2023-08-08 11:45 ` [Intel-xe] [PATCH 3/9] drm/i915/display: add I915 conditional build to intel_sdvo.h Jani Nikula
2023-08-08 11:45 ` [Intel-xe] [PATCH 4/9] drm/i915/display: add I915 conditional build to intel_tv.h Jani Nikula
2023-08-08 11:45 ` [Intel-xe] [PATCH 5/9] drm/i915/display: add I915 conditional build to vlv_dsi_pll.h Jani Nikula
2023-08-08 11:45 ` [Intel-xe] [PATCH 6/9] fixup! drm/xe/display: Implement display support Jani Nikula
2023-08-08 11:45 ` [Intel-xe] [PATCH 7/9] " Jani Nikula
2023-08-08 11:45 ` [Intel-xe] [PATCH 8/9] " Jani Nikula
2023-08-08 11:45 ` [Intel-xe] [PATCH 9/9] fixup! drm/i915/display: Remaining changes to make xe compile Jani Nikula
2023-08-08 20:50 ` Rodrigo Vivi
2023-08-08 12:02 ` [Intel-xe] ✓ CI.Patch_applied: success for series starting with [1/9] drm/i915/display: add I915 conditional build to g4x_hdmi.h Patchwork
2023-08-08 12:02 ` [Intel-xe] ✗ CI.checkpatch: warning " Patchwork
2023-08-08 12:04 ` [Intel-xe] ✓ CI.KUnit: success " Patchwork
2023-08-08 12:07 ` [Intel-xe] ✗ CI.Build: failure " Patchwork
2023-08-09 12:28 ` [Intel-xe] ✓ CI.Patch_applied: success for series starting with [1/9] drm/i915/display: add I915 conditional build to g4x_hdmi.h (rev2) Patchwork
2023-08-09 12:29 ` [Intel-xe] ✗ CI.checkpatch: warning " Patchwork
2023-08-09 12:30 ` [Intel-xe] ✓ CI.KUnit: success " Patchwork
2023-08-09 12:33 ` [Intel-xe] ✗ CI.Build: failure " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230808114535.1600595-1-jani.nikula@intel.com \
--to=jani.nikula@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=rodrigo.vivi@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox