[Intel-gfx] [drm-intel:drm-intel-gt-next 1/6] drivers/gpu/drm/i915/i915_drm_client.h:81:1: warning: no return statement in function returning non-void

kernel test robot lkp at intel.com
Fri Nov 10 17:55:14 UTC 2023


tree:   git://anongit.freedesktop.org/drm-intel drm-intel-gt-next
head:   968853033d8aa4dbb80fbafa6f5d9b6a0ea21272
commit: e4ae85e364fc652ea15d85b0f3a6da304c9b5ce7 [1/6] drm/i915: Add ability for tracking buffer objects per client
config: x86_64-buildonly-randconfig-001-20231110 (https://download.01.org/0day-ci/archive/20231111/202311110104.8TlHVxUI-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231111/202311110104.8TlHVxUI-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311110104.8TlHVxUI-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from drivers/gpu/drm/i915/i915_drv.h:54,
                    from drivers/gpu/drm/i915/gt/intel_context.h:14,
                    from drivers/gpu/drm/i915/gem/i915_gem_context.h:12,
                    from drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c:8:
   drivers/gpu/drm/i915/i915_drm_client.h: In function 'i915_drm_client_remove_object':
>> drivers/gpu/drm/i915/i915_drm_client.h:81:1: warning: no return statement in function returning non-void [-Wreturn-type]
      81 | }
         | ^
--
   In file included from drivers/gpu/drm/i915/selftests/../i915_drv.h:54,
                    from drivers/gpu/drm/i915/selftests/igt_reset.c:12:
   drivers/gpu/drm/i915/selftests/../i915_drm_client.h: In function 'i915_drm_client_remove_object':
>> drivers/gpu/drm/i915/selftests/../i915_drm_client.h:81:1: warning: no return statement in function returning non-void [-Wreturn-type]
      81 | }
         | ^


vim +81 drivers/gpu/drm/i915/i915_drm_client.h

    78	
    79	static inline bool i915_drm_client_remove_object(struct drm_i915_gem_object *obj)
    80	{
  > 81	}
    82	#endif
    83	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


More information about the Intel-gfx mailing list