* [intel-lts:pr/57 1/1] drivers/gpu/drm/arm/display/komeda/komeda_plane.c:49:29: warning: variable 'kcrtc' set but not used
@ 2025-02-18 1:17 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-18 1:17 UTC (permalink / raw)
Cc: oe-kbuild-all
Hi james,
FYI, the error/warning still remains.
tree: https://github.com/intel/linux-intel-lts.git pr/57
head: 6fe7458ff80d33a5dba8b386c88d33ffd2ccb47d
commit: 9e560309417638507398fd6239e04f47cc907f70 [1/1] drm/komeda: Add komeda_plane/plane_helper_funcs
config: x86_64-buildonly-randconfig-005-20250217 (https://download.01.org/0day-ci/archive/20250218/202502180923.7KfSpW4E-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/20250218/202502180923.7KfSpW4E-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/202502180923.7KfSpW4E-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/gpu/drm/arm/display/komeda/komeda_plane.c:42:5: warning: no previous prototype for 'komeda_plane_atomic_check' [-Wmissing-prototypes]
42 | int komeda_plane_atomic_check(struct drm_plane *plane,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/arm/display/komeda/komeda_plane.c: In function 'komeda_plane_atomic_check':
>> drivers/gpu/drm/arm/display/komeda/komeda_plane.c:49:29: warning: variable 'kcrtc' set but not used [-Wunused-but-set-variable]
49 | struct komeda_crtc *kcrtc;
| ^~~~~
drivers/gpu/drm/arm/display/komeda/komeda_plane.c: At top level:
drivers/gpu/drm/arm/display/komeda/komeda_plane.c:82:6: warning: no previous prototype for 'komeda_plane_atomic_update' [-Wmissing-prototypes]
82 | void komeda_plane_atomic_update(struct drm_plane *plane,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/kcrtc +49 drivers/gpu/drm/arm/display/komeda/komeda_plane.c
41
> 42 int komeda_plane_atomic_check(struct drm_plane *plane,
43 struct drm_plane_state *state)
44 {
45 struct komeda_plane *kplane = to_kplane(plane);
46 struct komeda_plane_state *kplane_st = to_kplane_st(state);
47 struct komeda_layer *layer = kplane->layer;
48 struct drm_crtc_state *crtc_st;
> 49 struct komeda_crtc *kcrtc;
50 struct komeda_crtc_state *kcrtc_st;
51 struct komeda_data_flow_cfg dflow;
52 int err;
53
54 if (!state->crtc || !state->fb)
55 return 0;
56
57 crtc_st = drm_atomic_get_crtc_state(state->state, state->crtc);
58 if (!crtc_st->enable) {
59 DRM_DEBUG_ATOMIC("Cannot update plane on a disabled CRTC.\n");
60 return -EINVAL;
61 }
62
63 /* crtc is inactive, skip the resource assignment */
64 if (!crtc_st->active)
65 return 0;
66
67 kcrtc = to_kcrtc(state->crtc);
68 kcrtc_st = to_kcrtc_st(crtc_st);
69
70 err = komeda_plane_init_data_flow(state, &dflow);
71 if (err)
72 return err;
73
74 err = komeda_build_layer_data_flow(layer, kplane_st, kcrtc_st, &dflow);
75
76 return err;
77 }
78
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-02-18 1:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-18 1:17 [intel-lts:pr/57 1/1] drivers/gpu/drm/arm/display/komeda/komeda_plane.c:49:29: warning: variable 'kcrtc' set but not used kernel test robot
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.