public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [wens:mtk-test 23/39] drivers/gpu/drm/bridge/analogix/anx7625.c:1591:6: warning: variable 'event' set but not used
@ 2023-02-04 13:02 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-02-04 13:02 UTC (permalink / raw)
  To: Chen-Yu Tsai; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/wens/linux.git mtk-test
head:   14d84237ad57de7b0f267d290ae87e40842965b4
commit: e188f8d5589fc51e365bafe7210b281174a54b76 [23/39] drm/bridge: anx7625: Drop device lock before drm_helper_hpd_irq_event()
config: i386-randconfig-a006 (https://download.01.org/0day-ci/archive/20230204/202302042140.ICI35RL1-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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/wens/linux.git/commit/?id=e188f8d5589fc51e365bafe7210b281174a54b76
        git remote add wens https://git.kernel.org/pub/scm/linux/kernel/git/wens/linux.git
        git fetch --no-tags wens mtk-test
        git checkout e188f8d5589fc51e365bafe7210b281174a54b76
        # 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=i386 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/bridge/analogix/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/bridge/analogix/anx7625.c:1591:6: warning: variable 'event' set but not used [-Wunused-but-set-variable]
           int event;
               ^
   1 warning generated.


vim +/event +1591 drivers/gpu/drm/bridge/analogix/anx7625.c

8bdfc5dae4e3ba Xin Ji       2020-09-18  1588  
8bdfc5dae4e3ba Xin Ji       2020-09-18  1589  static void anx7625_work_func(struct work_struct *work)
8bdfc5dae4e3ba Xin Ji       2020-09-18  1590  {
8bdfc5dae4e3ba Xin Ji       2020-09-18 @1591  	int event;
8bdfc5dae4e3ba Xin Ji       2020-09-18  1592  	struct anx7625_data *ctx = container_of(work,
8bdfc5dae4e3ba Xin Ji       2020-09-18  1593  						struct anx7625_data, work);
8bdfc5dae4e3ba Xin Ji       2020-09-18  1594  
8bdfc5dae4e3ba Xin Ji       2020-09-18  1595  	mutex_lock(&ctx->lock);
60487584a79abd Pi-Hsun Shih 2021-05-17  1596  
e188f8d5589fc5 Chen-Yu Tsai 2023-01-16  1597  	if (pm_runtime_suspended(&ctx->client->dev)) {
e188f8d5589fc5 Chen-Yu Tsai 2023-01-16  1598  		mutex_unlock(&ctx->lock);
e188f8d5589fc5 Chen-Yu Tsai 2023-01-16  1599  		return;
e188f8d5589fc5 Chen-Yu Tsai 2023-01-16  1600  	}
60487584a79abd Pi-Hsun Shih 2021-05-17  1601  
8bdfc5dae4e3ba Xin Ji       2020-09-18  1602  	event = anx7625_hpd_change_detect(ctx);
e188f8d5589fc5 Chen-Yu Tsai 2023-01-16  1603  
e188f8d5589fc5 Chen-Yu Tsai 2023-01-16  1604  	mutex_unlock(&ctx->lock);
8bdfc5dae4e3ba Xin Ji       2020-09-18  1605  
8bdfc5dae4e3ba Xin Ji       2020-09-18  1606  	if (ctx->bridge_attached)
8bdfc5dae4e3ba Xin Ji       2020-09-18  1607  		drm_helper_hpd_irq_event(ctx->bridge.dev);
8bdfc5dae4e3ba Xin Ji       2020-09-18  1608  }
8bdfc5dae4e3ba Xin Ji       2020-09-18  1609  

:::::: The code at line 1591 was first introduced by commit
:::::: 8bdfc5dae4e3ba4d99dfb430ef43249e5f1b7730 drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP

:::::: TO: Xin Ji <xji@analogixsemi.com>
:::::: CC: Sam Ravnborg <sam@ravnborg.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-04 13:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-04 13:02 [wens:mtk-test 23/39] drivers/gpu/drm/bridge/analogix/anx7625.c:1591:6: warning: variable 'event' set but not used kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox