[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1af62ece-d334-62be-98f2-cedbdbad3c94@intel.com>
Date: Tue, 28 Jun 2022 10:19:53 +0800
From: kernel test robot <yujie.liu@...el.com>
To: Kieran Bingham <kieran.bingham+renesas@...asonboard.com>
CC: <kbuild-all@...ts.01.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: [kbingham-rcar:kbingham/drm-misc/next/sn65dsi86/hpd 9/21]
drivers/gpu/drm/bridge/ti-sn65dsi86.c:736:1: sparse: sparse: unused label
'err_conn_init'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kbingham/rcar.git kbingham/drm-misc/next/sn65dsi86/hpd
head: 69c67e7d89e9e68e6ffb17deec7112af1d529ac9
commit: 89cc7f4771cdaa89ba193c12722fd330b4d5d34c [9/21] squash: drm/bridge: ti-sn65dsi86: Add NO_CONNECTOR support
config: arm64-randconfig-s031-20220627
compiler: aarch64-linux-gcc (GCC) 11.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-31-g4880bd19-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/kbingham/rcar.git/commit/?id=89cc7f4771cdaa89ba193c12722fd330b4d5d34c
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 89cc7f4771cdaa89ba193c12722fd330b4d5d34c
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/gpu/drm/bridge/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <yujie.liu@...el.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/bridge/ti-sn65dsi86.c:736:1: sparse: sparse: unused label 'err_conn_init'
vim +/err_conn_init +736 drivers/gpu/drm/bridge/ti-sn65dsi86.c
c3b75d4734cb82 Maxime Ripard 2021-10-25 695
c3b75d4734cb82 Maxime Ripard 2021-10-25 696 static int ti_sn_bridge_attach(struct drm_bridge *bridge,
c3b75d4734cb82 Maxime Ripard 2021-10-25 697 enum drm_bridge_attach_flags flags)
c3b75d4734cb82 Maxime Ripard 2021-10-25 698 {
c3b75d4734cb82 Maxime Ripard 2021-10-25 699 struct ti_sn65dsi86 *pdata = bridge_to_ti_sn65dsi86(bridge);
c3b75d4734cb82 Maxime Ripard 2021-10-25 700 int ret;
c3b75d4734cb82 Maxime Ripard 2021-10-25 701
c3b75d4734cb82 Maxime Ripard 2021-10-25 702 pdata->aux.drm_dev = bridge->dev;
c3b75d4734cb82 Maxime Ripard 2021-10-25 703 ret = drm_dp_aux_register(&pdata->aux);
c3b75d4734cb82 Maxime Ripard 2021-10-25 704 if (ret < 0) {
c3b75d4734cb82 Maxime Ripard 2021-10-25 705 drm_err(bridge->dev, "Failed to register DP AUX channel: %d\n", ret);
c3b75d4734cb82 Maxime Ripard 2021-10-25 706 return ret;
c3b75d4734cb82 Maxime Ripard 2021-10-25 707 }
c3b75d4734cb82 Maxime Ripard 2021-10-25 708
89cc7f4771cdaa Kieran Bingham 2022-03-09 709 /*
89cc7f4771cdaa Kieran Bingham 2022-03-09 710 * Attach the next bridge We never want the next bridge to *also* create
89cc7f4771cdaa Kieran Bingham 2022-03-09 711 * a connector:
89cc7f4771cdaa Kieran Bingham 2022-03-09 712 */
4e5763f03e105f Laurent Pinchart 2021-06-24 713 ret = drm_bridge_attach(bridge->encoder, pdata->next_bridge,
89cc7f4771cdaa Kieran Bingham 2022-03-09 714 &pdata->bridge,
89cc7f4771cdaa Kieran Bingham 2022-03-09 715 flags | DRM_BRIDGE_ATTACH_NO_CONNECTOR);
4e5763f03e105f Laurent Pinchart 2021-06-24 716 if (ret < 0)
e283820cbf8092 Douglas Anderson 2022-02-04 717 goto err_initted_aux;
e283820cbf8092 Douglas Anderson 2022-02-04 718
89cc7f4771cdaa Kieran Bingham 2022-03-09 719 if (flags & DRM_BRIDGE_ATTACH_NO_CONNECTOR)
89cc7f4771cdaa Kieran Bingham 2022-03-09 720 return 0;
89cc7f4771cdaa Kieran Bingham 2022-03-09 721
e283820cbf8092 Douglas Anderson 2022-02-04 722 pdata->connector = drm_bridge_connector_init(pdata->bridge.dev,
e283820cbf8092 Douglas Anderson 2022-02-04 723 pdata->bridge.encoder);
e283820cbf8092 Douglas Anderson 2022-02-04 724 if (IS_ERR(pdata->connector)) {
e283820cbf8092 Douglas Anderson 2022-02-04 725 ret = PTR_ERR(pdata->connector);
e283820cbf8092 Douglas Anderson 2022-02-04 726 goto err_initted_aux;
e283820cbf8092 Douglas Anderson 2022-02-04 727 }
e283820cbf8092 Douglas Anderson 2022-02-04 728
e283820cbf8092 Douglas Anderson 2022-02-04 729 drm_connector_attach_encoder(pdata->connector, pdata->bridge.encoder);
4e5763f03e105f Laurent Pinchart 2021-06-24 730
a095f15c00e278 Sandeep Panda 2018-07-20 731 return 0;
a095f15c00e278 Sandeep Panda 2018-07-20 732
e283820cbf8092 Douglas Anderson 2022-02-04 733 err_initted_aux:
b7f228f9db56bd Rob Clark 2022-02-06 734 if (!(flags & DRM_BRIDGE_ATTACH_NO_CONNECTOR))
89cc7f4771cdaa Kieran Bingham 2022-03-09 735 drm_connector_cleanup(pdata->connector);
b7f228f9db56bd Rob Clark 2022-02-06 @736 err_conn_init:
61712618753032 Lyude Paul 2021-02-19 737 drm_dp_aux_unregister(&pdata->aux);
a095f15c00e278 Sandeep Panda 2018-07-20 738 return ret;
a095f15c00e278 Sandeep Panda 2018-07-20 739 }
a095f15c00e278 Sandeep Panda 2018-07-20 740
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (207696 bytes)
Powered by blists - more mailing lists