From: "Thomas Hellström" <thomas.hellstrom@linux.intel.com>
To: Jani Nikula <jani.nikula@intel.com>, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 1/5] drm/xe: make xe_ttm_funcs const
Date: Wed, 17 Jan 2024 13:36:48 +0100 [thread overview]
Message-ID: <5ab4f020a2cc9f5248a3ed1b3d1cdc7770d60bcf.camel@linux.intel.com> (raw)
In-Reply-To: <20240117122044.1544174-1-jani.nikula@intel.com>
On Wed, 2024-01-17 at 14:20 +0200, Jani Nikula wrote:
> Place the function pointers in rodata. Also drop the extra
> declaration
> while at it.
>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
> ---
> drivers/gpu/drm/xe/xe_bo.c | 2 +-
> drivers/gpu/drm/xe/xe_bo.h | 2 +-
> drivers/gpu/drm/xe/xe_vm.h | 2 --
> 3 files changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c
> index 26fe73f58d72..686d716c5581 100644
> --- a/drivers/gpu/drm/xe/xe_bo.c
> +++ b/drivers/gpu/drm/xe/xe_bo.c
> @@ -1041,7 +1041,7 @@ static void xe_ttm_bo_delete_mem_notify(struct
> ttm_buffer_object *ttm_bo)
> }
> }
>
> -struct ttm_device_funcs xe_ttm_funcs = {
> +const struct ttm_device_funcs xe_ttm_funcs = {
> .ttm_tt_create = xe_ttm_tt_create,
> .ttm_tt_populate = xe_ttm_tt_populate,
> .ttm_tt_unpopulate = xe_ttm_tt_unpopulate,
> diff --git a/drivers/gpu/drm/xe/xe_bo.h b/drivers/gpu/drm/xe/xe_bo.h
> index 350cc73cadf8..db4b2db6b073 100644
> --- a/drivers/gpu/drm/xe/xe_bo.h
> +++ b/drivers/gpu/drm/xe/xe_bo.h
> @@ -243,7 +243,7 @@ int xe_bo_evict(struct xe_bo *bo, bool
> force_alloc);
> int xe_bo_evict_pinned(struct xe_bo *bo);
> int xe_bo_restore_pinned(struct xe_bo *bo);
>
> -extern struct ttm_device_funcs xe_ttm_funcs;
> +extern const struct ttm_device_funcs xe_ttm_funcs;
>
> int xe_gem_create_ioctl(struct drm_device *dev, void *data,
> struct drm_file *file);
> diff --git a/drivers/gpu/drm/xe/xe_vm.h b/drivers/gpu/drm/xe/xe_vm.h
> index cf2f96e8c1ab..e9c907cbcd89 100644
> --- a/drivers/gpu/drm/xe/xe_vm.h
> +++ b/drivers/gpu/drm/xe/xe_vm.h
> @@ -199,8 +199,6 @@ struct dma_fence *xe_vm_rebind(struct xe_vm *vm,
> bool rebind_worker);
>
> int xe_vm_invalidate_vma(struct xe_vma *vma);
>
> -extern struct ttm_device_funcs xe_ttm_funcs;
> -
> static inline void xe_vm_queue_rebind_worker(struct xe_vm *vm)
> {
> xe_assert(vm->xe, xe_vm_in_preempt_fence_mode(vm));
next prev parent reply other threads:[~2024-01-17 12:36 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-17 12:20 [PATCH 1/5] drm/xe: make xe_ttm_funcs const Jani Nikula
2024-01-17 12:20 ` [PATCH 2/5] drm/xe: make heci_gsc_irq_chip const Jani Nikula
2024-01-17 12:37 ` Thomas Hellström
2024-01-17 12:20 ` [PATCH 3/5] drm/xe: make hwmon_info const Jani Nikula
2024-01-17 12:38 ` Thomas Hellström
2024-01-17 12:20 ` [PATCH 4/5] drm/xe: make gpuvm_ops const Jani Nikula
2024-01-17 12:38 ` Thomas Hellström
2024-01-17 12:20 ` [PATCH 5/5] drm/xe: constify engine class sysfs attributes Jani Nikula
2024-01-17 12:39 ` Thomas Hellström
2024-01-17 12:36 ` Thomas Hellström [this message]
2024-01-17 14:56 ` ✓ CI.Patch_applied: success for series starting with [1/5] drm/xe: make xe_ttm_funcs const Patchwork
2024-01-17 14:57 ` ✓ CI.checkpatch: " Patchwork
2024-01-17 14:58 ` ✓ CI.KUnit: " Patchwork
2024-01-17 15:05 ` ✓ CI.Build: " Patchwork
2024-01-17 15:05 ` ✓ CI.Hooks: " Patchwork
2024-01-17 15:06 ` ✓ CI.checksparse: " Patchwork
2024-01-17 15:32 ` ✗ CI.BAT: 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=5ab4f020a2cc9f5248a3ed1b3d1cdc7770d60bcf.camel@linux.intel.com \
--to=thomas.hellstrom@linux.intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.nikula@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