[airlied:01.01-gsp-rm 132/180] drivers/gpu/drm/nouveau/nouveau_connector.c:1218:30: warning: unused variable 'aux'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://people.freedesktop.org/~airlied/linux.git 01.01-gsp-rm
head:   6be95d5e52818808565790c5ee3fd5569263bd36
commit: beea5ab213b28f7abf7c3405439ac9abcd1b8415 [132/180] drm/nouveau/disp: add output aux xfer method
config: i386-allyesconfig (attached as .config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        git remote add airlied git://people.freedesktop.org/~airlied/linux.git
        git fetch --no-tags airlied 01.01-gsp-rm
        git checkout beea5ab213b28f7abf7c3405439ac9abcd1b8415
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/nouveau/nouveau_connector.c: In function 'nouveau_connector_aux_xfer':
>> drivers/gpu/drm/nouveau/nouveau_connector.c:1218:30: warning: unused variable 'aux' [-Wunused-variable]
    1218 |         struct nvkm_i2c_aux *aux;
         |                              ^~~


vim +/aux +1218 drivers/gpu/drm/nouveau/nouveau_connector.c

4f47643dbb4c34 Ben Skeggs 2013-02-03  1211  
8894f4919bc43f Ben Skeggs 2014-05-30  1212  static ssize_t
2aa5eac5163fed Ben Skeggs 2015-08-20  1213  nouveau_connector_aux_xfer(struct drm_dp_aux *obj, struct drm_dp_aux_msg *msg)
8894f4919bc43f Ben Skeggs 2014-05-30  1214  {
8894f4919bc43f Ben Skeggs 2014-05-30  1215  	struct nouveau_connector *nv_connector =
2aa5eac5163fed Ben Skeggs 2015-08-20  1216  		container_of(obj, typeof(*nv_connector), aux);
8894f4919bc43f Ben Skeggs 2014-05-30  1217  	struct nouveau_encoder *nv_encoder;
2aa5eac5163fed Ben Skeggs 2015-08-20 @1218  	struct nvkm_i2c_aux *aux;
1af5c410cc0cae Ben Skeggs 2017-03-01  1219  	u8 size = msg->size;
8894f4919bc43f Ben Skeggs 2014-05-30  1220  	int ret;
8894f4919bc43f Ben Skeggs 2014-05-30  1221  
860b3f587f0d6d Ben Skeggs 2022-10-13  1222  	nv_encoder = find_encoder(&nv_connector->base, NVIF_OUTP_DP);
beea5ab213b28f Ben Skeggs 2022-10-13  1223  	if (!nv_encoder)
8894f4919bc43f Ben Skeggs 2014-05-30  1224  		return -ENODEV;
8894f4919bc43f Ben Skeggs 2014-05-30  1225  	if (WARN_ON(msg->size > 16))
8894f4919bc43f Ben Skeggs 2014-05-30  1226  		return -E2BIG;
8894f4919bc43f Ben Skeggs 2014-05-30  1227  
beea5ab213b28f Ben Skeggs 2022-10-13  1228  	ret = nvif_outp_dp_aux_xfer(&nv_encoder->outp,
beea5ab213b28f Ben Skeggs 2022-10-13  1229  				    msg->request, &size, msg->address, msg->buffer);
8894f4919bc43f Ben Skeggs 2014-05-30  1230  	if (ret >= 0) {
8894f4919bc43f Ben Skeggs 2014-05-30  1231  		msg->reply = ret;
1af5c410cc0cae Ben Skeggs 2017-03-01  1232  		return size;
8894f4919bc43f Ben Skeggs 2014-05-30  1233  	}
8894f4919bc43f Ben Skeggs 2014-05-30  1234  
8894f4919bc43f Ben Skeggs 2014-05-30  1235  	return ret;
8894f4919bc43f Ben Skeggs 2014-05-30  1236  }
8894f4919bc43f Ben Skeggs 2014-05-30  1237  

:::::: The code at line 1218 was first introduced by commit
:::::: 2aa5eac5163fedf09f2d61992cb5ea4d75bec9db drm/nouveau/i2c: transition pad/ports away from being based on nvkm_object

:::::: TO: Ben Skeggs <bskeggs@xxxxxxxxxx>
:::::: CC: Ben Skeggs <bskeggs@xxxxxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux