Re: [amir73il:fsnotify_event_info 2/2] include/linux/fsnotify.h:263:2: error: implicit declaration of function 'fsnotify_file'; did you mean 'fsnotify_link'?

From: Amir Goldstein
Date: Tue Aug 03 2021 - 11:48:02 EST


On Tue, Aug 3, 2021 at 2:31 PM kernel test robot <lkp@xxxxxxxxx> wrote:
>
> tree: https://github.com/amir73il/linux fsnotify_event_info
> head: 4ad14805402352430e0b98901b97ec9166d9dae4
> commit: 4ad14805402352430e0b98901b97ec9166d9dae4 [2/2] fsnotify: fast path optimization for IO on pipe with no watches
> config: sparc-randconfig-r026-20210803 (attached as .config)
> compiler: sparc-linux-gcc (GCC) 10.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://github.com/amir73il/linux/commit/4ad14805402352430e0b98901b97ec9166d9dae4
> git remote add amir73il https://github.com/amir73il/linux
> git fetch --no-tags amir73il fsnotify_event_info
> git checkout 4ad14805402352430e0b98901b97ec9166d9dae4
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=sparc
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
>
> All errors (new ones prefixed by >>):
>
> In file included from fs/notify/fsnotify.h:6,
> from fs/notify/fsnotify.c:15:
> include/linux/fsnotify.h: In function 'fsnotify_access':
> >> include/linux/fsnotify.h:263:2: error: implicit declaration of function 'fsnotify_file'; did you mean 'fsnotify_link'? [-Werror=implicit-function-declaration]
> 263 | fsnotify_file(file, FS_ACCESS);
> | ^~~~~~~~~~~~~
> | fsnotify_link
> cc1: some warnings being treated as errors
>

That's odd. fsnotify_event_info is just an arbitrary branch in my tree
where I pushed some WIP code. I don't remember posting it to the
list, I'm not sure why the kernel robot tested it...

Thanks,
Amir.