[thierryreding:for-5.16/work 64/64] drivers/gpu/host1x/syncpt.c:598:23: warning: no previous prototype for function 'host1x_syncpt_fd_get'

From: kernel test robot
Date: Fri Sep 17 2021 - 15:52:32 EST


tree: https://github.com/thierryreding/linux for-5.16/work
head: 5f4526d3acbf1f0383938963e5a104d1f6f7ab00
commit: 5f4526d3acbf1f0383938963e5a104d1f6f7ab00 [64/64] WIP
config: arm64-buildonly-randconfig-r006-20210916 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c8b3d7d6d6de37af68b2f379d0e37304f78e115f)
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
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/thierryreding/linux/commit/5f4526d3acbf1f0383938963e5a104d1f6f7ab00
git remote add thierryreding https://github.com/thierryreding/linux
git fetch --no-tags thierryreding for-5.16/work
git checkout 5f4526d3acbf1f0383938963e5a104d1f6f7ab00
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64

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

All warnings (new ones prefixed by >>):

>> drivers/gpu/host1x/syncpt.c:598:23: warning: no previous prototype for function 'host1x_syncpt_fd_get' [-Wmissing-prototypes]
struct host1x_syncpt *host1x_syncpt_fd_get(int fd)
^
drivers/gpu/host1x/syncpt.c:598:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct host1x_syncpt *host1x_syncpt_fd_get(int fd)
^
static
1 warning generated.


vim +/host1x_syncpt_fd_get +598 drivers/gpu/host1x/syncpt.c

597
> 598 struct host1x_syncpt *host1x_syncpt_fd_get(int fd)

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

Attachment: .config.gz
Description: application/gzip