[drm-misc:for-linux-next 1/10] include/drm/drm_of.h:123:36: error: expected ';', ',' or ')' before 'const'

From: kernel test robot
Date: Sun Jun 12 2022 - 08:08:18 EST


tree: git://anongit.freedesktop.org/drm/drm-misc for-linux-next
head: d643daaf1694b7565fbe3982b630e1c7b95f1600
commit: fc801750b197d0f00c09e01e59a7dcd240fddcb5 [1/10] drm: of: Add drm_of_get_data_lanes_count and drm_of_get_data_lanes_ep
config: x86_64-defconfig (https://download.01.org/0day-ci/archive/20220612/202206122034.jCMBsDG7-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
git remote add drm-misc git://anongit.freedesktop.org/drm/drm-misc
git fetch --no-tags drm-misc for-linux-next
git checkout fc801750b197d0f00c09e01e59a7dcd240fddcb5
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

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

All error/warnings (new ones prefixed by >>):

In file included from drivers/gpu/drm/drm_bridge.c:31:
>> include/drm/drm_of.h:115:5: warning: no previous prototype for 'drm_of_get_data_lanes_count' [-Wmissing-prototypes]
115 | int drm_of_get_data_lanes_count(const struct device_node *endpoint,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/drm/drm_of.h:123:36: error: expected ';', ',' or ')' before 'const'
123 | const unsigned int min,
| ^~~~~


vim +123 include/drm/drm_of.h

114
> 115 int drm_of_get_data_lanes_count(const struct device_node *endpoint,
116 const unsigned int min, const unsigned int max)
117 {
118 return -EINVAL;
119 }
120
121 int drm_of_get_data_lanes_count_ep(const struct device_node *port,
122 int port_reg, int reg
> 123 const unsigned int min,
124 const unsigned int max)
125 {
126 return -EINVAL;
127 }
128 #endif
129

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