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: <202206230936.HWBqaAwV-lkp@intel.com>
Date:   Thu, 23 Jun 2022 09:27:13 +0800
From:   kernel test robot <lkp@...el.com>
To:     Sam Ravnborg <sam@...nborg.org>
Cc:     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:9: error: implicit declaration of
 function 'drm_bridge_chain_pre_enable'; did you mean
 'drm_bridge_hpd_enable'?

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: arc-randconfig-r043-20220622 (https://download.01.org/0day-ci/archive/20220623/202206230936.HWBqaAwV-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 11.3.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://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=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arc 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: In function 'ps8640_bridge_get_edid':
>> drivers/gpu/drm/bridge/parade-ps8640.c:524:9: error: implicit declaration of function 'drm_bridge_chain_pre_enable'; did you mean 'drm_bridge_hpd_enable'? [-Werror=implicit-function-declaration]
     524 |         drm_bridge_chain_pre_enable(bridge);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
         |         drm_bridge_hpd_enable
>> drivers/gpu/drm/bridge/parade-ps8640.c:534:17: error: implicit declaration of function 'drm_bridge_chain_post_disable'; did you mean 'drm_atomic_bridge_chain_post_disable'? [-Werror=implicit-function-declaration]
     534 |                 drm_bridge_chain_post_disable(bridge);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                 drm_atomic_bridge_chain_post_disable
   cc1: some warnings being treated as errors


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

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