lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202211180651.rmMtQja0-lkp@intel.com>
Date:   Fri, 18 Nov 2022 06:31:01 +0800
From:   kernel test robot <lkp@...el.com>
To:     ye.xingchen@....com.cn, maarten.lankhorst@...ux.intel.com
Cc:     llvm@...ts.linux.dev, 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: arm-randconfig-r024-20221117
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project bbe6bd724a6335e497c7edaed191d37a828d0390)
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 arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # 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=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash

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:1310:28: error: incompatible pointer types passing 'struct drm_bridge *' to parameter of type 'struct device *' [-Werror,-Wincompatible-pointer-types]
                   if (device_match_of_node(bridge, np)) {
                                            ^~~~~~
   include/linux/device/bus.h:145:41: note: passing argument to parameter 'dev' here
   int device_match_of_node(struct device *dev, const void *np);
                                           ^
   1 error generated.


vim +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" (160969 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ