[linux-next:master 1097/1347] drivers/gpu/drm/i915/i915_gpu_error.c:2415:9: sparse: sparse: Using plain integer as NULL pointer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   77df9e4bb2224d8ffbddec04c333a9d7965dad6c
commit: 2edc6a75f26c112d90ca67ff412ba79622069818 [1097/1347] drm/i915: switch intel_wakeref_t underlying type to struct ref_tracker *
config: i386-randconfig-062-20241002 (https://download.01.org/0day-ci/archive/20241002/202410021019.tNX2tCCb-lkp@xxxxxxxxx/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/20241002/202410021019.tNX2tCCb-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202410021019.tNX2tCCb-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/i915/i915_gpu_error.c:2415:9: sparse: sparse: Using plain integer as NULL pointer
   drivers/gpu/drm/i915/i915_gpu_error.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/xarray.h, ...):
   include/linux/page-flags.h:237:46: sparse: sparse: self-comparison always evaluates to false
   include/linux/page-flags.h:237:46: sparse: sparse: self-comparison always evaluates to false

vim +2415 drivers/gpu/drm/i915/i915_gpu_error.c

4fca51984371d9 Jani Nikula 2023-10-31  2407  
4fca51984371d9 Jani Nikula 2023-10-31  2408  static int i915_gpu_info_open(struct inode *inode, struct file *file)
4fca51984371d9 Jani Nikula 2023-10-31  2409  {
4fca51984371d9 Jani Nikula 2023-10-31  2410  	struct drm_i915_private *i915 = inode->i_private;
4fca51984371d9 Jani Nikula 2023-10-31  2411  	struct i915_gpu_coredump *gpu;
4fca51984371d9 Jani Nikula 2023-10-31  2412  	intel_wakeref_t wakeref;
4fca51984371d9 Jani Nikula 2023-10-31  2413  
4fca51984371d9 Jani Nikula 2023-10-31  2414  	gpu = NULL;
4fca51984371d9 Jani Nikula 2023-10-31 @2415  	with_intel_runtime_pm(&i915->runtime_pm, wakeref)
4fca51984371d9 Jani Nikula 2023-10-31  2416  		gpu = i915_gpu_coredump(to_gt(i915), ALL_ENGINES, CORE_DUMP_FLAG_NONE);
4fca51984371d9 Jani Nikula 2023-10-31  2417  
4fca51984371d9 Jani Nikula 2023-10-31  2418  	if (IS_ERR(gpu))
4fca51984371d9 Jani Nikula 2023-10-31  2419  		return PTR_ERR(gpu);
4fca51984371d9 Jani Nikula 2023-10-31  2420  
4fca51984371d9 Jani Nikula 2023-10-31  2421  	file->private_data = gpu;
4fca51984371d9 Jani Nikula 2023-10-31  2422  	return 0;
4fca51984371d9 Jani Nikula 2023-10-31  2423  }
4fca51984371d9 Jani Nikula 2023-10-31  2424  

:::::: The code at line 2415 was first introduced by commit
:::::: 4fca51984371d930a5d9d5a8b0848b892dbfdecc drm/i915: move gpu error debugfs to i915_gpu_error.c

:::::: TO: Jani Nikula <jani.nikula@xxxxxxxxx>
:::::: CC: Jani Nikula <jani.nikula@xxxxxxxxx>

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux