[linux-next:master 8480/8897] drivers/staging/media/tegra-video/vi.c:1180:4: error: implicit declaration of function 'host1x_syncpt_free'; did you mean 'host1x_syncpt_read'?

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   7a43c78d0573e0bbbb0456b033e2b9a895b89464
commit: 3028a00c55bf4b655864bf9a64ea7a07a003afdc [8480/8897] gpu: host1x: Cleanup and refcounting for syncpoints
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-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
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=3028a00c55bf4b655864bf9a64ea7a07a003afdc
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 3028a00c55bf4b655864bf9a64ea7a07a003afdc
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64 

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

All errors (new ones prefixed by >>):

   drivers/staging/media/tegra-video/vi.c: In function 'tegra_channel_host1x_syncpt_init':
>> drivers/staging/media/tegra-video/vi.c:1180:4: error: implicit declaration of function 'host1x_syncpt_free'; did you mean 'host1x_syncpt_read'? [-Werror=implicit-function-declaration]
    1180 |    host1x_syncpt_free(fs_sp);
         |    ^~~~~~~~~~~~~~~~~~
         |    host1x_syncpt_read
   cc1: some warnings being treated as errors


vim +1180 drivers/staging/media/tegra-video/vi.c

3d8a97eabef088 Sowjanya Komatineni 2020-05-04  1160  
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1161  static int tegra_channel_host1x_syncpt_init(struct tegra_vi_channel *chan)
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1162  {
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1163  	struct tegra_vi *vi = chan->vi;
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1164  	unsigned long flags = HOST1X_SYNCPT_CLIENT_MANAGED;
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1165  	struct host1x_syncpt *fs_sp;
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1166  	struct host1x_syncpt *mw_sp;
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1167  	int ret, i;
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1168  
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1169  	for (i = 0; i < chan->numgangports; i++) {
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1170  		fs_sp = host1x_syncpt_request(&vi->client, flags);
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1171  		if (!fs_sp) {
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1172  			dev_err(vi->dev, "failed to request frame start syncpoint\n");
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1173  			ret = -ENOMEM;
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1174  			goto free_syncpts;
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1175  		}
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1176  
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1177  		mw_sp = host1x_syncpt_request(&vi->client, flags);
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1178  		if (!mw_sp) {
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1179  			dev_err(vi->dev, "failed to request memory ack syncpoint\n");
2ac4035a78c933 Sowjanya Komatineni 2020-12-11 @1180  			host1x_syncpt_free(fs_sp);
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1181  			ret = -ENOMEM;
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1182  			goto free_syncpts;
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1183  		}
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1184  
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1185  		chan->frame_start_sp[i] = fs_sp;
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1186  		chan->mw_ack_sp[i] = mw_sp;
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1187  		spin_lock_init(&chan->sp_incr_lock[i]);
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1188  	}
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1189  
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1190  	return 0;
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1191  
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1192  free_syncpts:
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1193  	tegra_channel_host1x_syncpts_free(chan);
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1194  	return ret;
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1195  }
2ac4035a78c933 Sowjanya Komatineni 2020-12-11  1196  

:::::: The code at line 1180 was first introduced by commit
:::::: 2ac4035a78c93330025d005009c132f5552ce4bc media: tegra-video: Add support for x8 captures with gang ports

:::::: TO: Sowjanya Komatineni <skomatineni@xxxxxxxxxx>
:::::: CC: Mauro Carvalho Chehab <mchehab+huawei@xxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux