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>] [day] [month] [year] [list]
Message-ID: <202206230923.AHVRLVRb-lkp@intel.com>
Date:   Thu, 23 Jun 2022 09:27:15 +0800
From:   kernel test robot <lkp@...el.com>
To:     Sam Ravnborg <sam@...nborg.org>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org,
        Kieran Bingham <kieran.bingham+renesas@...asonboard.com>,
        Maxime Ripard <maxime@...no.tech>,
        Laurent Pinchart <laurent.pinchart@...asonboard.com>
Subject: [kbingham-rcar:kbingham/drm-misc/next/sn65dsi86/hpd 10/21]
 drivers/gpu/drm/bridge/parade-ps8640.c:524:2: error: call to undeclared
 function 'drm_bridge_chain_pre_enable'; ISO C99 and later do not support
 implicit function declarations

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kbingham/rcar.git kbingham/drm-misc/next/sn65dsi86/hpd
head:   69c67e7d89e9e68e6ffb17deec7112af1d529ac9
commit: b88732c0df106217e663da0458bd46d061ec3ce4 [10/21] drm/bridge: Drop unused drm_bridge_chain functions
config: hexagon-randconfig-r045-20220622 (https://download.01.org/0day-ci/archive/20220623/202206230923.AHVRLVRb-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 46be5faaf03466c3751f8a2882bef5a217e15926)
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://git.kernel.org/pub/scm/linux/kernel/git/kbingham/rcar.git/commit/?id=b88732c0df106217e663da0458bd46d061ec3ce4
        git remote add kbingham-rcar https://git.kernel.org/pub/scm/linux/kernel/git/kbingham/rcar.git
        git fetch --no-tags kbingham-rcar kbingham/drm-misc/next/sn65dsi86/hpd
        git checkout b88732c0df106217e663da0458bd46d061ec3ce4
        # 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=hexagon SHELL=/bin/bash drivers/gpu/drm/bridge/

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/bridge/parade-ps8640.c:524:2: error: call to undeclared function 'drm_bridge_chain_pre_enable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
           drm_bridge_chain_pre_enable(bridge);
           ^
>> drivers/gpu/drm/bridge/parade-ps8640.c:534:3: error: call to undeclared function 'drm_bridge_chain_post_disable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                   drm_bridge_chain_post_disable(bridge);
                   ^
   2 errors generated.


vim +/drm_bridge_chain_pre_enable +524 drivers/gpu/drm/bridge/parade-ps8640.c

13afcdd7277eff Philip Chen            2021-09-21  504  
d82c12ab16b847 Enric Balletbo i Serra 2020-08-26  505  static struct edid *ps8640_bridge_get_edid(struct drm_bridge *bridge,
d82c12ab16b847 Enric Balletbo i Serra 2020-08-26  506  					   struct drm_connector *connector)
d82c12ab16b847 Enric Balletbo i Serra 2020-08-26  507  {
d82c12ab16b847 Enric Balletbo i Serra 2020-08-26  508  	struct ps8640 *ps_bridge = bridge_to_ps8640(bridge);
826cff3f7ebba4 Philip Chen            2021-10-28  509  	bool poweroff = !ps_bridge->pre_enabled;
46f206304db031 Enric Balletbo i Serra 2020-08-27  510  	struct edid *edid;
46f206304db031 Enric Balletbo i Serra 2020-08-27  511  
46f206304db031 Enric Balletbo i Serra 2020-08-27  512  	/*
46f206304db031 Enric Balletbo i Serra 2020-08-27  513  	 * When we end calling get_edid() triggered by an ioctl, i.e
46f206304db031 Enric Balletbo i Serra 2020-08-27  514  	 *
46f206304db031 Enric Balletbo i Serra 2020-08-27  515  	 *   drm_mode_getconnector (ioctl)
46f206304db031 Enric Balletbo i Serra 2020-08-27  516  	 *     -> drm_helper_probe_single_connector_modes
46f206304db031 Enric Balletbo i Serra 2020-08-27  517  	 *        -> drm_bridge_connector_get_modes
46f206304db031 Enric Balletbo i Serra 2020-08-27  518  	 *           -> ps8640_bridge_get_edid
46f206304db031 Enric Balletbo i Serra 2020-08-27  519  	 *
46f206304db031 Enric Balletbo i Serra 2020-08-27  520  	 * We need to make sure that what we need is enabled before reading
46f206304db031 Enric Balletbo i Serra 2020-08-27  521  	 * EDID, for this chip, we need to do a full poweron, otherwise it will
46f206304db031 Enric Balletbo i Serra 2020-08-27  522  	 * fail.
46f206304db031 Enric Balletbo i Serra 2020-08-27  523  	 */
46f206304db031 Enric Balletbo i Serra 2020-08-27 @524  	drm_bridge_chain_pre_enable(bridge);
d82c12ab16b847 Enric Balletbo i Serra 2020-08-26  525  
46f206304db031 Enric Balletbo i Serra 2020-08-27  526  	edid = drm_get_edid(connector,
d82c12ab16b847 Enric Balletbo i Serra 2020-08-26  527  			    ps_bridge->page[PAGE0_DP_CNTL]->adapter);
46f206304db031 Enric Balletbo i Serra 2020-08-27  528  
46f206304db031 Enric Balletbo i Serra 2020-08-27  529  	/*
46f206304db031 Enric Balletbo i Serra 2020-08-27  530  	 * If we call the get_edid() function without having enabled the chip
46f206304db031 Enric Balletbo i Serra 2020-08-27  531  	 * before, return the chip to its original power state.
46f206304db031 Enric Balletbo i Serra 2020-08-27  532  	 */
46f206304db031 Enric Balletbo i Serra 2020-08-27  533  	if (poweroff)
46f206304db031 Enric Balletbo i Serra 2020-08-27 @534  		drm_bridge_chain_post_disable(bridge);
46f206304db031 Enric Balletbo i Serra 2020-08-27  535  
46f206304db031 Enric Balletbo i Serra 2020-08-27  536  	return edid;
d82c12ab16b847 Enric Balletbo i Serra 2020-08-26  537  }
d82c12ab16b847 Enric Balletbo i Serra 2020-08-26  538  

:::::: The code at line 524 was first introduced by commit
:::::: 46f206304db0311b0920479f42accaa7cb472fdc drm/bridge: ps8640: Rework power state handling

:::::: TO: Enric Balletbo i Serra <enric.balletbo@...labora.com>
:::::: CC: Neil Armstrong <narmstrong@...libre.com>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ