[Intel-gfx] [PATCH] drm/i915/gt: Remove unused function prototype

Andi Shyti andi.shyti at linux.intel.com
Mon Oct 3 20:37:38 UTC 2022


Hi G.G.

On Mon, Oct 03, 2022 at 08:02:42PM +0300, Gwan-gyeong Mun wrote:
> Remove unused function prototype; intel_gt_create_kobj()
> 
> Cc: Andi Shyti <andi.shyti at linux.intel.com>
> Signed-off-by: Gwan-gyeong Mun <gwan-gyeong.mun at intel.com>
> ---
>  drivers/gpu/drm/i915/gt/intel_gt_sysfs.h | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/gt/intel_gt_sysfs.h b/drivers/gpu/drm/i915/gt/intel_gt_sysfs.h
> index 6232923a420d..d637c6c3a69f 100644
> --- a/drivers/gpu/drm/i915/gt/intel_gt_sysfs.h
> +++ b/drivers/gpu/drm/i915/gt/intel_gt_sysfs.h
> @@ -18,11 +18,6 @@ bool is_object_gt(struct kobject *kobj);
>  
>  struct drm_i915_private *kobj_to_i915(struct kobject *kobj);
>  
> -struct kobject *
> -intel_gt_create_kobj(struct intel_gt *gt,
> -		     struct kobject *dir,
> -		     const char *name);
> -

this must be some leftover after some refactoring. Thanks for
spotting it:

Reviewed-by: Andi Shyti <andi.shyti at linux.intel.com>

Andi

>  static inline struct intel_gt *kobj_to_gt(struct kobject *kobj)
>  {
>  	return container_of(kobj, struct intel_gt, sysfs_gt);
> -- 
> 2.37.1


More information about the Intel-gfx mailing list