[xilinx-xlnx:master 12225/12535] drivers/media/platform/xilinx/xilinx-hdmirxss.c:500:16: error: implicit declaration of function 'FIELD_PREP'

Geert Uytterhoeven geert at linux-m68k.org
Mon Nov 8 02:07:19 PST 2021


On Wed, Nov 3, 2021 at 8:27 PM kernel test robot <lkp at intel.com> wrote:
> tree:   https://github.com/Xilinx/linux-xlnx master
> head:   0a88ef03d3015782318b4bc94ceb20dca375a01b
> commit: af3ae554574c15dc631421b389ed77a4d21491ef [12225/12535] v4l: xilinx: hdmirx: Add HDMI 2.1 Rx subsystem driver
> config: ia64-allmodconfig (attached as .config)
> compiler: ia64-linux-gcc (GCC) 11.2.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/Xilinx/linux-xlnx/commit/af3ae554574c15dc631421b389ed77a4d21491ef
>         git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
>         git fetch --no-tags xilinx-xlnx master
>         git checkout af3ae554574c15dc631421b389ed77a4d21491ef
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=ia64
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp at intel.com>
>
> Note: the xilinx-xlnx/master HEAD 0a88ef03d3015782318b4bc94ceb20dca375a01b builds fine.
>       It only hurts bisectability.
>
> All errors (new ones prefixed by >>):
>
>    drivers/media/platform/xilinx/xilinx-hdmirxss.c: In function 'xhdmirx_vtd_settimebase':
> >> drivers/media/platform/xilinx/xilinx-hdmirxss.c:500:16: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
>      500 |         val |= FIELD_PREP(HDMIRX_VTD_CTRL_TIMERBASE_MASK, count);
>          |                ^~~~~~~~~~
>    drivers/media/platform/xilinx/xilinx-hdmirxss.c: In function 'xhdmirx1_gettmdsclkratio':
> >> drivers/media/platform/xilinx/xilinx-hdmirxss.c:651:15: error: implicit declaration of function 'FIELD_GET'; did you mean 'FOLL_GET'? [-Werror=implicit-function-declaration]
>      651 |         val = FIELD_GET(HDMIRX_PIO_IN_SCDC_TMDS_CLOCK_RATIO_MASK, val);
>          |               ^~~~~~~~~
>          |               FOLL_GET

Please add #include <linux/bitfield.h>, so we don't have to see this
report a fourth time.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds



More information about the linux-arm-kernel mailing list