[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202211180624.uEEJQSCU-lkp@intel.com>
Date: Fri, 18 Nov 2022 06:31:00 +0800
From: kernel test robot <lkp@...el.com>
To: ye.xingchen@....com.cn, maarten.lankhorst@...ux.intel.com
Cc: oe-kbuild-all@...ts.linux.dev, mripard@...nel.org,
tzimmermann@...e.de, airlied@...il.com, daniel@...ll.ch,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH linux-next] drm/bridge: Use device_match_of_node()
Hi,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on next-20221116]
url: https://github.com/intel-lab-lkp/linux/commits/ye-xingchen-zte-com-cn/drm-bridge-Use-device_match_of_node/20221117-143318
patch link: https://lore.kernel.org/r/202211171431525183998%40zte.com.cn
patch subject: [PATCH linux-next] drm/bridge: Use device_match_of_node()
config: m68k-randconfig-r035-20221117
compiler: m68k-linux-gcc (GCC) 12.1.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/intel-lab-lkp/linux/commit/ac41c97354fe9c549e20dc7e50a237a577cd71e9
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review ye-xingchen-zte-com-cn/drm-bridge-Use-device_match_of_node/20221117-143318
git checkout ac41c97354fe9c549e20dc7e50a237a577cd71e9
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash drivers/gpu/drm/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/drm_bridge.c: In function 'of_drm_find_bridge':
>> drivers/gpu/drm/drm_bridge.c:1310:42: error: passing argument 1 of 'device_match_of_node' from incompatible pointer type [-Werror=incompatible-pointer-types]
1310 | if (device_match_of_node(bridge, np)) {
| ^~~~~~
| |
| struct drm_bridge *
In file included from include/linux/device.h:30,
from include/linux/hdmi.h:28,
from include/drm/drm_modes.h:30,
from include/drm/drm_crtc.h:32,
from include/drm/drm_atomic.h:31,
from include/drm/drm_bridge.h:30,
from drivers/gpu/drm/drm_bridge.c:30:
include/linux/device/bus.h:145:41: note: expected 'struct device *' but argument is of type 'struct drm_bridge *'
145 | int device_match_of_node(struct device *dev, const void *np);
| ~~~~~~~~~~~~~~~^~~
cc1: some warnings being treated as errors
vim +/device_match_of_node +1310 drivers/gpu/drm/drm_bridge.c
1292
1293 #ifdef CONFIG_OF
1294 /**
1295 * of_drm_find_bridge - find the bridge corresponding to the device node in
1296 * the global bridge list
1297 *
1298 * @np: device node
1299 *
1300 * RETURNS:
1301 * drm_bridge control struct on success, NULL on failure
1302 */
1303 struct drm_bridge *of_drm_find_bridge(struct device_node *np)
1304 {
1305 struct drm_bridge *bridge;
1306
1307 mutex_lock(&bridge_lock);
1308
1309 list_for_each_entry(bridge, &bridge_list, list) {
> 1310 if (device_match_of_node(bridge, np)) {
1311 mutex_unlock(&bridge_lock);
1312 return bridge;
1313 }
1314 }
1315
1316 mutex_unlock(&bridge_lock);
1317 return NULL;
1318 }
1319 EXPORT_SYMBOL(of_drm_find_bridge);
1320 #endif
1321
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (154144 bytes)
Powered by blists - more mailing lists