tree:
https://git.kernel.org/pub/scm/linux/kernel/git/cip/linux-cip.git
linux-4.19.y-cip
head: 72750517bc5f1718ce3cb3fa75d4cadc05d27eee
commit: 60b4667275b60d92c760d48df95f5b80bbcfde6e [7/17] drm: Add
drm_atomic_get_(old|new)_connector_for_encoder() helpers
config: riscv-randconfig-r034-20200809 (attached as .config)
compiler: riscv32-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 60b4667275b60d92c760d48df95f5b80bbcfde6e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> drivers/gpu/drm/drm_atomic.c:1264:1: warning: no previous
prototype for 'drm_atomic_get_old_private_obj_state' [-Wmissing-prototypes]
1264 | drm_atomic_get_old_private_obj_state(struct drm_atomic_state *state,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> drivers/gpu/drm/drm_atomic.c:1286:1: warning: no previous
prototype for 'drm_atomic_get_new_private_obj_state' [-Wmissing-prototypes]
1286 | drm_atomic_get_new_private_obj_state(struct drm_atomic_state *state,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/drm_atomic.c: In function 'drm_atomic_print_state':
drivers/gpu/drm/drm_atomic.c:2184:24: warning: variable 'connector' set but not
used [-Wunused-but-set-variable]
2184 | struct drm_connector *connector;
| ^~~~~~~~~
drivers/gpu/drm/drm_atomic.c:2182:19: warning: variable 'crtc' set but not used
[-Wunused-but-set-variable]
2182 | struct drm_crtc *crtc;
| ^~~~
drivers/gpu/drm/drm_atomic.c:2180:20: warning: variable 'plane' set but not
used [-Wunused-but-set-variable]
2180 | struct drm_plane *plane;
| ^~~~~
drivers/gpu/drm/drm_atomic.c: In function 'complete_signaling':
drivers/gpu/drm/drm_atomic.c:2624:19: warning: variable 'crtc' set but not used
[-Wunused-but-set-variable]
2624 | struct drm_crtc *crtc;
| ^~~~
vim +/drm_atomic_get_old_private_obj_state +1264 drivers/gpu/drm/drm_atomic.c
1254
1255 /**
1256 * drm_atomic_get_old_private_obj_state
1257 * @state: global atomic state object
1258 * @obj: private_obj to grab
1259 *
1260 * This function returns the old private object state for the given private_obj,
1261 * or NULL if the private_obj is not part of the global atomic state.
1262 */
1263 struct drm_private_state *
1264 drm_atomic_get_old_private_obj_state(struct drm_atomic_state
*state,
1265 struct drm_private_obj *obj)
1266 {
1267 int i;
1268
1269 for (i = 0; i < state->num_private_objs; i++)
1270 if (obj == state->private_objs[i].ptr)
1271 return state->private_objs[i].old_state;
1272
1273 return NULL;
1274 }
1275 EXPORT_SYMBOL(drm_atomic_get_old_private_obj_state);
1276
1277 /**
1278 * drm_atomic_get_new_private_obj_state
1279 * @state: global atomic state object
1280 * @obj: private_obj to grab
1281 *
1282 * This function returns the new private object state for the given private_obj,
1283 * or NULL if the private_obj is not part of the global atomic state.
1284 */
1285 struct drm_private_state *
1286 drm_atomic_get_new_private_obj_state(struct drm_atomic_state
*state,
1287 struct drm_private_obj *obj)
1288 {
1289 int i;
1290
1291 for (i = 0; i < state->num_private_objs; i++)
1292 if (obj == state->private_objs[i].ptr)
1293 return state->private_objs[i].new_state;
1294
1295 return NULL;
1296 }
1297 EXPORT_SYMBOL(drm_atomic_get_new_private_obj_state);
1298
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org