From: kernel test robot <lkp@intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: oe-kbuild-all@lists.linux.dev,
Linux Memory Management List <linux-mm@kvack.org>,
Rodrigo Vivi <rodrigo.vivi@intel.com>
Subject: [linux-next:master 1097/1347] drivers/gpu/drm/i915/i915_gpu_error.c:2415:9: sparse: sparse: Using plain integer as NULL pointer
Date: Wed, 2 Oct 2024 10:09:24 +0800 [thread overview]
Message-ID: <202410021019.tNX2tCCb-lkp@intel.com> (raw)
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@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/20241002/202410021019.tNX2tCCb-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202410021019.tNX2tCCb-lkp@intel.com/
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@intel.com>
:::::: CC: Jani Nikula <jani.nikula@intel.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-10-02 2:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202410021019.tNX2tCCb-lkp@intel.com \
--to=lkp@intel.com \
--cc=jani.nikula@intel.com \
--cc=linux-mm@kvack.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=rodrigo.vivi@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