From: kernel test robot <lkp@intel.com>
To: "Philipp Stanner" <phasta@kernel.org>,
"Matthew Brost" <matthew.brost@intel.com>,
"Danilo Krummrich" <dakr@kernel.org>,
"Christian König" <ckoenig.leichtzumerken@gmail.com>,
"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
"Maxime Ripard" <mripard@kernel.org>,
"Thomas Zimmermann" <tzimmermann@suse.de>,
"David Airlie" <airlied@gmail.com>,
"Simona Vetter" <simona@ffwll.ch>
Cc: oe-kbuild-all@lists.linux.dev, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drm/sched: Add warning for removing hack in drm_sched_fini()
Date: Sat, 11 Oct 2025 10:15:40 +0800 [thread overview]
Message-ID: <202510110929.AxIiHbe0-lkp@intel.com> (raw)
In-Reply-To: <20251009125928.250652-2-phasta@kernel.org>
Hi Philipp,
kernel test robot noticed the following build warnings:
[auto build test WARNING on drm-misc/drm-misc-next]
[also build test WARNING on linus/master v6.17 next-20251010]
[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/Philipp-Stanner/drm-sched-Add-warning-for-removing-hack-in-drm_sched_fini/20251010-120556
base: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
patch link: https://lore.kernel.org/r/20251009125928.250652-2-phasta%40kernel.org
patch subject: [PATCH] drm/sched: Add warning for removing hack in drm_sched_fini()
config: parisc-randconfig-r072-20251011 (https://download.01.org/0day-ci/archive/20251011/202510110929.AxIiHbe0-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251011/202510110929.AxIiHbe0-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/202510110929.AxIiHbe0-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/linux/wait.h:7,
from drivers/gpu/drm/scheduler/sched_main.c:70:
drivers/gpu/drm/scheduler/sched_main.c: In function 'drm_sched_fini':
>> include/linux/list.h:784:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (pos = list_first_entry(head, typeof(*pos), member); \
^~~
drivers/gpu/drm/scheduler/sched_main.c:1422:3: note: in expansion of macro 'list_for_each_entry'
list_for_each_entry(s_entity, &rq->entities, list)
^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/scheduler/sched_main.c:1446:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
s_entity->stopped = true;
^~~~~~~~
vim +/for +784 include/linux/list.h
4d70c74659d9746 Andy Shevchenko 2022-11-30 767
e130816164e244b Andy Shevchenko 2020-10-15 768 /**
e130816164e244b Andy Shevchenko 2020-10-15 769 * list_entry_is_head - test if the entry points to the head of the list
e130816164e244b Andy Shevchenko 2020-10-15 770 * @pos: the type * to cursor
e130816164e244b Andy Shevchenko 2020-10-15 771 * @head: the head for your list.
e130816164e244b Andy Shevchenko 2020-10-15 772 * @member: the name of the list_head within the struct.
e130816164e244b Andy Shevchenko 2020-10-15 773 */
e130816164e244b Andy Shevchenko 2020-10-15 774 #define list_entry_is_head(pos, head, member) \
2932fb0a927d306 Wei Yang 2024-02-08 775 list_is_head(&pos->member, (head))
e130816164e244b Andy Shevchenko 2020-10-15 776
^1da177e4c3f415 Linus Torvalds 2005-04-16 777 /**
^1da177e4c3f415 Linus Torvalds 2005-04-16 778 * list_for_each_entry - iterate over list of given type
8e3a67a99231f9f Randy Dunlap 2006-06-25 779 * @pos: the type * to use as a loop cursor.
^1da177e4c3f415 Linus Torvalds 2005-04-16 780 * @head: the head for your list.
3943f42c11896ce Andrey Utkin 2014-11-14 781 * @member: the name of the list_head within the struct.
^1da177e4c3f415 Linus Torvalds 2005-04-16 782 */
^1da177e4c3f415 Linus Torvalds 2005-04-16 783 #define list_for_each_entry(pos, head, member) \
93be3c2eb3371f0 Oleg Nesterov 2013-11-12 @784 for (pos = list_first_entry(head, typeof(*pos), member); \
e130816164e244b Andy Shevchenko 2020-10-15 785 !list_entry_is_head(pos, head, member); \
8120e2e5141a420 Oleg Nesterov 2013-11-12 786 pos = list_next_entry(pos, member))
^1da177e4c3f415 Linus Torvalds 2005-04-16 787
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2025-10-11 2:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-09 12:59 [PATCH] drm/sched: Add warning for removing hack in drm_sched_fini() Philipp Stanner
2025-10-11 2:15 ` kernel test robot [this message]
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=202510110929.AxIiHbe0-lkp@intel.com \
--to=lkp@intel.com \
--cc=airlied@gmail.com \
--cc=ckoenig.leichtzumerken@gmail.com \
--cc=dakr@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=matthew.brost@intel.com \
--cc=mripard@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=phasta@kernel.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/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;
as well as URLs for NNTP newsgroup(s).