LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Benoit Parrot <bparrot@ti.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Vignesh Raghavendra <vigneshr@ti.com>,
Neil Armstrong <narmstrong@baylibre.com>
Subject: [ti:ti-rt-linux-5.10.y 6815/6833] drivers/gpu/drm/drm_atomic_helper.c:3311:28: warning: variable 'new_priv_state' set but not used
Date: Tue, 17 Aug 2021 18:01:39 +0800 [thread overview]
Message-ID: <202108171832.f8OGxxzm-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3196 bytes --]
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.10.y
head: ac3657d2050406e974383b1490184f42a06b73cc
commit: e172fed2d657ef79c65241251ff26161a8b3f1c4 [6815/6833] drm/atomic: integrate private objects with suspend/resume helpers
config: i386-randconfig-r024-20210817 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git fetch --no-tags ti ti-rt-linux-5.10.y
git checkout e172fed2d657ef79c65241251ff26161a8b3f1c4
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/gpu/drm/drm_atomic_helper.c: In function 'drm_atomic_helper_commit_duplicated_state':
>> drivers/gpu/drm/drm_atomic_helper.c:3311:28: warning: variable 'new_priv_state' set but not used [-Wunused-but-set-variable]
3311 | struct drm_private_state *new_priv_state;
| ^~~~~~~~~~~~~~
vim +/new_priv_state +3311 drivers/gpu/drm/drm_atomic_helper.c
3284
3285 /**
3286 * drm_atomic_helper_commit_duplicated_state - commit duplicated state
3287 * @state: duplicated atomic state to commit
3288 * @ctx: pointer to acquire_ctx to use for commit.
3289 *
3290 * The state returned by drm_atomic_helper_duplicate_state() and
3291 * drm_atomic_helper_suspend() is partially invalid, and needs to
3292 * be fixed up before commit.
3293 *
3294 * Returns:
3295 * 0 on success or a negative error code on failure.
3296 *
3297 * See also:
3298 * drm_atomic_helper_suspend()
3299 */
3300 int drm_atomic_helper_commit_duplicated_state(struct drm_atomic_state *state,
3301 struct drm_modeset_acquire_ctx *ctx)
3302 {
3303 int i, ret;
3304 struct drm_plane *plane;
3305 struct drm_plane_state *new_plane_state;
3306 struct drm_connector *connector;
3307 struct drm_connector_state *new_conn_state;
3308 struct drm_crtc *crtc;
3309 struct drm_crtc_state *new_crtc_state;
3310 struct drm_private_obj *privobj;
> 3311 struct drm_private_state *new_priv_state;
3312
3313 state->acquire_ctx = ctx;
3314
3315 for_each_new_plane_in_state(state, plane, new_plane_state, i)
3316 state->planes[i].old_state = plane->state;
3317
3318 for_each_new_private_obj_in_state(state, privobj, new_priv_state, i)
3319 state->private_objs[i].old_state = privobj->state;
3320
3321 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i)
3322 state->crtcs[i].old_state = crtc->state;
3323
3324 for_each_new_connector_in_state(state, connector, new_conn_state, i)
3325 state->connectors[i].old_state = connector->state;
3326
3327 ret = drm_atomic_commit(state);
3328
3329 state->acquire_ctx = NULL;
3330
3331 return ret;
3332 }
3333 EXPORT_SYMBOL(drm_atomic_helper_commit_duplicated_state);
3334
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32019 bytes --]
reply other threads:[~2021-08-17 10:02 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=202108171832.f8OGxxzm-lkp@intel.com \
--to=lkp@intel.com \
--cc=bparrot@ti.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=narmstrong@baylibre.com \
--cc=vigneshr@ti.com \
--subject='Re: [ti:ti-rt-linux-5.10.y 6815/6833] drivers/gpu/drm/drm_atomic_helper.c:3311:28: warning: variable '\''new_priv_state'\'' set but not used' \
/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
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).