Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	intel-xe@lists.freedesktop.org
Subject: Re: [Intel-xe] [PATCH] drm/xe: Rename intel_de.h to xe_de.h
Date: Thu, 23 Mar 2023 12:58:22 +0200	[thread overview]
Message-ID: <875yar7n01.fsf@intel.com> (raw)
In-Reply-To: <20230323085052.153697-1-maarten.lankhorst@linux.intel.com>

On Thu, 23 Mar 2023, Maarten Lankhorst <maarten.lankhorst@linux.intel.com> wrote:
> Rename intel_de.h to xe_de.h in order to remove #include_next,
> and change the ifdef guard to be the same as the rest of xe headers.
>
> This is consistent with the other files that are inside xe/display,
> and implement xe specific behavior.
>
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> ---
>  drivers/gpu/drm/i915/display/intel_de.h            | 2 +-
>  drivers/gpu/drm/xe/display/{intel_de.h => xe_de.h} | 8 ++++----
>  2 files changed, 5 insertions(+), 5 deletions(-)
>  rename drivers/gpu/drm/xe/display/{intel_de.h => xe_de.h} (97%)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_de.h b/drivers/gpu/drm/i915/display/intel_de.h
> index 5c223ff6b3ec..267b1108abbb 100644
> --- a/drivers/gpu/drm/i915/display/intel_de.h
> +++ b/drivers/gpu/drm/i915/display/intel_de.h
> @@ -4,7 +4,7 @@
>   */
>  
>  #ifdef BUILD_FOR_XE

I wonder why this isn't just

#ifndef I915

and why do we need the separate

	-DBUILD_FOR_XE=1 \

in xe Makefile?

BR,
Jani.


> -#include_next "intel_de.h"
> +#include "xe_de.h"
>  #else
>  #ifndef __INTEL_DE_H__
>  #define __INTEL_DE_H__
> diff --git a/drivers/gpu/drm/xe/display/intel_de.h b/drivers/gpu/drm/xe/display/xe_de.h
> similarity index 97%
> rename from drivers/gpu/drm/xe/display/intel_de.h
> rename to drivers/gpu/drm/xe/display/xe_de.h
> index 0d0504b483ef..9f92fdb4159a 100644
> --- a/drivers/gpu/drm/xe/display/intel_de.h
> +++ b/drivers/gpu/drm/xe/display/xe_de.h
> @@ -1,10 +1,10 @@
>  /* SPDX-License-Identifier: MIT */
>  /*
> - * Copyright © 2019 Intel Corporation
> + * Copyright © 2019-2022 Intel Corporation
>   */
>  
> -#ifndef __INTEL_DE_H__
> -#define __INTEL_DE_H__
> +#ifndef _XE_DE_H_
> +#define _XE_DE_H_
>  
>  #include "i915_drv.h"
>  #include "xe_mmio.h"
> @@ -159,4 +159,4 @@ static inline int intel_de_pcode_request(struct drm_i915_private *i915, u32 mbox
>  				timeout_base_ms);
>  }
>  
> -#endif /* __INTEL_DE_H__ */
> +#endif

-- 
Jani Nikula, Intel Open Source Graphics Center

  parent reply	other threads:[~2023-03-23 10:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-23  8:50 [Intel-xe] [PATCH] drm/xe: Rename intel_de.h to xe_de.h Maarten Lankhorst
2023-03-23  8:53 ` [Intel-xe] ✓ CI.Patch_applied: success for " Patchwork
2023-03-23  8:54 ` [Intel-xe] ✓ CI.KUnit: " Patchwork
2023-03-23  8:58 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-03-23  9:21 ` [Intel-xe] ○ CI.BAT: info " Patchwork
2023-03-23  9:22 ` [Intel-xe] [PATCH] " Thomas Hellström
2023-03-23 10:58 ` Jani Nikula [this message]
2023-03-23 11:06   ` Maarten Lankhorst
2023-03-23 11:24     ` Jani Nikula
2023-03-23 12:09       ` Maarten Lankhorst

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=875yar7n01.fsf@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=maarten.lankhorst@linux.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