From: kernel test robot <lkp@intel.com>
To: "Thomas Hellström" <thomas.hellstrom@linux.intel.com>,
intel-xe@lists.freedesktop.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
"Thomas Hellström" <thomas.hellstrom@linux.intel.com>,
"Christian König" <christian.koenig@amd.com>,
"Somalapuram Amaranath" <Amaranath.Somalapuram@amd.com>,
"Matthew Brost" <matthew.brost@intel.com>,
dri-devel@lists.freedesktop.org,
"Paulo Zanoni" <paulo.r.zanoni@intel.com>,
"Simona Vetter" <simona.vetter@ffwll.ch>
Subject: Re: [PATCH v13 2/8] drm/ttm: Provide a shmem backup implementation
Date: Thu, 14 Nov 2024 07:32:15 +0800 [thread overview]
Message-ID: <202411140712.uPD3DXCY-lkp@intel.com> (raw)
In-Reply-To: <20241113183550.6228-3-thomas.hellstrom@linux.intel.com>
Hi Thomas,
kernel test robot noticed the following build errors:
[auto build test ERROR on drm-xe/drm-xe-next]
[also build test ERROR on linus/master v6.12-rc7 next-20241113]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Thomas-Hellstr-m/drm-ttm-Balance-ttm_resource_cursor_init-and-ttm_resource_cursor_fini/20241114-023727
base: https://gitlab.freedesktop.org/drm/xe/kernel.git drm-xe-next
patch link: https://lore.kernel.org/r/20241113183550.6228-3-thomas.hellstrom%40linux.intel.com
patch subject: [PATCH v13 2/8] drm/ttm: Provide a shmem backup implementation
config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20241114/202411140712.uPD3DXCY-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 592c0fe55f6d9a811028b5f3507be91458ab2713)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241114/202411140712.uPD3DXCY-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/202411140712.uPD3DXCY-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/gpu/drm/ttm/ttm_backup.c:6:
In file included from include/drm/ttm/ttm_backup.h:10:
In file included from include/linux/shmem_fs.h:6:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:21:
In file included from include/linux/mm.h:2213:
include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
505 | item];
| ~~~~
include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
512 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
525 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/ttm/ttm_backup.c:17:9: error: casting from randomized structure pointer type 'struct file *' to 'struct ttm_backup *'
17 | return (struct ttm_backup *)file;
| ^
4 warnings and 1 error generated.
vim +17 drivers/gpu/drm/ttm/ttm_backup.c
14
15 static struct ttm_backup *ttm_file_to_backup(struct file *file)
16 {
> 17 return (struct ttm_backup *)file;
18 }
19
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-11-13 23:32 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-13 18:35 [PATCH v13 0/8] TTM shrinker helpers and xe buffer object shrinker Thomas Hellström
2024-11-13 18:35 ` [PATCH v13 1/8] drm/ttm: Balance ttm_resource_cursor_init() and ttm_resource_cursor_fini() Thomas Hellström
2024-11-13 18:35 ` [PATCH v13 2/8] drm/ttm: Provide a shmem backup implementation Thomas Hellström
2024-11-13 22:50 ` kernel test robot
2024-11-13 23:32 ` kernel test robot [this message]
2024-11-13 18:35 ` [PATCH v13 3/8] drm/ttm/pool: Provide a helper to shrink pages Thomas Hellström
2024-11-13 18:35 ` [PATCH v13 4/8] drm/ttm: Use fault-injection to test error paths Thomas Hellström
2024-11-13 18:35 ` [PATCH v13 5/8] drm/ttm: Add a macro to perform LRU iteration Thomas Hellström
2024-11-13 18:35 ` [PATCH v13 6/8] drm/ttm: Add helpers for shrinking Thomas Hellström
2024-11-13 18:35 ` [PATCH v13 7/8] drm/xe: Add a shrinker for xe bos Thomas Hellström
2024-11-13 18:35 ` [PATCH v13 8/8] drm/xe: Increase the XE_PL_TT watermark Thomas Hellström
2024-11-13 21:22 ` ✓ CI.Patch_applied: success for TTM shrinker helpers and xe buffer object shrinker (rev12) Patchwork
2024-11-13 21:22 ` ✗ CI.checkpatch: warning " Patchwork
2024-11-13 21:23 ` ✓ CI.KUnit: success " Patchwork
2024-11-13 21:35 ` ✓ CI.Build: " Patchwork
2024-11-13 21:37 ` ✓ CI.Hooks: " Patchwork
2024-11-13 21:39 ` ✗ CI.checksparse: warning " Patchwork
2024-11-13 21:59 ` ✗ CI.BAT: failure " Patchwork
2024-11-14 10:21 ` ✗ CI.FULL: " 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=202411140712.uPD3DXCY-lkp@intel.com \
--to=lkp@intel.com \
--cc=Amaranath.Somalapuram@amd.com \
--cc=christian.koenig@amd.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=llvm@lists.linux.dev \
--cc=matthew.brost@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=paulo.r.zanoni@intel.com \
--cc=simona.vetter@ffwll.ch \
--cc=thomas.hellstrom@linux.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.