linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/gpu/drm/msm/dp/dp_link.c:969 dp_link_process_link_status_update() warn: inconsistent indenting
@ 2022-08-21  3:56 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2022-08-21  3:56 UTC (permalink / raw)
  To: Kuogee Hsieh; +Cc: kbuild-all, linux-kernel, Dmitry Baryshkov, Stephen Boyd

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   15b3f48a4339e3c16acf18624e2b7f60bc5e9a2c
commit: 202aceac8bb3ae12d41dcd3ac9e6c3395963032b drm/msm/dp: replace DRM_DEBUG_DP marco with drm_dbg_dp
date:   4 months ago
config: microblaze-randconfig-m041-20220820 (https://download.01.org/0day-ci/archive/20220821/202208211100.Mmub10Dv-lkp@intel.com/config)
compiler: microblaze-linux-gcc (GCC) 12.1.0

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

smatch warnings:
drivers/gpu/drm/msm/dp/dp_link.c:969 dp_link_process_link_status_update() warn: inconsistent indenting

vim +969 drivers/gpu/drm/msm/dp/dp_link.c

c943b4948b5848 Chandan Uddaraju 2020-08-27  941  
c943b4948b5848 Chandan Uddaraju 2020-08-27  942  /**
c943b4948b5848 Chandan Uddaraju 2020-08-27  943   * dp_link_process_link_status_update() - processes link status updates
c943b4948b5848 Chandan Uddaraju 2020-08-27  944   * @link: Display Port link module data
c943b4948b5848 Chandan Uddaraju 2020-08-27  945   *
c943b4948b5848 Chandan Uddaraju 2020-08-27  946   * This function will check for changes in the link status, e.g. clock
c943b4948b5848 Chandan Uddaraju 2020-08-27  947   * recovery done on all lanes, and trigger link training if there is a
c943b4948b5848 Chandan Uddaraju 2020-08-27  948   * failure/error on the link.
c943b4948b5848 Chandan Uddaraju 2020-08-27  949   *
c943b4948b5848 Chandan Uddaraju 2020-08-27  950   * The function will return 0 if the a link status update has been processed,
c943b4948b5848 Chandan Uddaraju 2020-08-27  951   * otherwise it will return -EINVAL.
c943b4948b5848 Chandan Uddaraju 2020-08-27  952   */
c943b4948b5848 Chandan Uddaraju 2020-08-27  953  static int dp_link_process_link_status_update(struct dp_link_private *link)
c943b4948b5848 Chandan Uddaraju 2020-08-27  954  {
ea530388e64bd5 Kuogee Hsieh     2020-11-03  955  	bool channel_eq_done = drm_dp_channel_eq_ok(link->link_status,
ea530388e64bd5 Kuogee Hsieh     2020-11-03  956  			link->dp_link.link_params.num_lanes);
ea530388e64bd5 Kuogee Hsieh     2020-11-03  957  
ea530388e64bd5 Kuogee Hsieh     2020-11-03  958  	bool clock_recovery_done = drm_dp_clock_recovery_ok(link->link_status,
ea530388e64bd5 Kuogee Hsieh     2020-11-03  959  			link->dp_link.link_params.num_lanes);
c943b4948b5848 Chandan Uddaraju 2020-08-27  960  
202aceac8bb3ae Kuogee Hsieh     2022-02-17  961  	drm_dbg_dp(link->drm_dev,
202aceac8bb3ae Kuogee Hsieh     2022-02-17  962  		       "channel_eq_done = %d, clock_recovery_done = %d\n",
ea530388e64bd5 Kuogee Hsieh     2020-11-03  963                          channel_eq_done, clock_recovery_done);
ea530388e64bd5 Kuogee Hsieh     2020-11-03  964  
ea530388e64bd5 Kuogee Hsieh     2020-11-03  965  	if (channel_eq_done && clock_recovery_done)
ea530388e64bd5 Kuogee Hsieh     2020-11-03  966  		return -EINVAL;
ea530388e64bd5 Kuogee Hsieh     2020-11-03  967  
c943b4948b5848 Chandan Uddaraju 2020-08-27  968  
c943b4948b5848 Chandan Uddaraju 2020-08-27 @969         return 0;
c943b4948b5848 Chandan Uddaraju 2020-08-27  970  }
c943b4948b5848 Chandan Uddaraju 2020-08-27  971  

:::::: The code at line 969 was first introduced by commit
:::::: c943b4948b5848fc0e07f875edbd35a973879e22 drm/msm/dp: add displayPort driver support

:::::: TO: Chandan Uddaraju <chandanu@codeaurora.org>
:::::: CC: Rob Clark <robdclark@chromium.org>

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* drivers/gpu/drm/msm/dp/dp_link.c:969 dp_link_process_link_status_update() warn: inconsistent indenting
@ 2022-08-20 14:12 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2022-08-20 14:12 UTC (permalink / raw)
  To: Kuogee Hsieh; +Cc: kbuild-all, linux-kernel, Dmitry Baryshkov, Stephen Boyd

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   50cd95ac46548429e5bba7ca75cc97d11a697947
commit: 202aceac8bb3ae12d41dcd3ac9e6c3395963032b drm/msm/dp: replace DRM_DEBUG_DP marco with drm_dbg_dp
date:   4 months ago
config: microblaze-randconfig-m041-20220820 (https://download.01.org/0day-ci/archive/20220820/202208202244.TNoVclTm-lkp@intel.com/config)
compiler: microblaze-linux-gcc (GCC) 12.1.0

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

smatch warnings:
drivers/gpu/drm/msm/dp/dp_link.c:969 dp_link_process_link_status_update() warn: inconsistent indenting

vim +969 drivers/gpu/drm/msm/dp/dp_link.c

c943b4948b5848 Chandan Uddaraju 2020-08-27  941  
c943b4948b5848 Chandan Uddaraju 2020-08-27  942  /**
c943b4948b5848 Chandan Uddaraju 2020-08-27  943   * dp_link_process_link_status_update() - processes link status updates
c943b4948b5848 Chandan Uddaraju 2020-08-27  944   * @link: Display Port link module data
c943b4948b5848 Chandan Uddaraju 2020-08-27  945   *
c943b4948b5848 Chandan Uddaraju 2020-08-27  946   * This function will check for changes in the link status, e.g. clock
c943b4948b5848 Chandan Uddaraju 2020-08-27  947   * recovery done on all lanes, and trigger link training if there is a
c943b4948b5848 Chandan Uddaraju 2020-08-27  948   * failure/error on the link.
c943b4948b5848 Chandan Uddaraju 2020-08-27  949   *
c943b4948b5848 Chandan Uddaraju 2020-08-27  950   * The function will return 0 if the a link status update has been processed,
c943b4948b5848 Chandan Uddaraju 2020-08-27  951   * otherwise it will return -EINVAL.
c943b4948b5848 Chandan Uddaraju 2020-08-27  952   */
c943b4948b5848 Chandan Uddaraju 2020-08-27  953  static int dp_link_process_link_status_update(struct dp_link_private *link)
c943b4948b5848 Chandan Uddaraju 2020-08-27  954  {
ea530388e64bd5 Kuogee Hsieh     2020-11-03  955  	bool channel_eq_done = drm_dp_channel_eq_ok(link->link_status,
ea530388e64bd5 Kuogee Hsieh     2020-11-03  956  			link->dp_link.link_params.num_lanes);
ea530388e64bd5 Kuogee Hsieh     2020-11-03  957  
ea530388e64bd5 Kuogee Hsieh     2020-11-03  958  	bool clock_recovery_done = drm_dp_clock_recovery_ok(link->link_status,
ea530388e64bd5 Kuogee Hsieh     2020-11-03  959  			link->dp_link.link_params.num_lanes);
c943b4948b5848 Chandan Uddaraju 2020-08-27  960  
202aceac8bb3ae Kuogee Hsieh     2022-02-17  961  	drm_dbg_dp(link->drm_dev,
202aceac8bb3ae Kuogee Hsieh     2022-02-17  962  		       "channel_eq_done = %d, clock_recovery_done = %d\n",
ea530388e64bd5 Kuogee Hsieh     2020-11-03  963                          channel_eq_done, clock_recovery_done);
ea530388e64bd5 Kuogee Hsieh     2020-11-03  964  
ea530388e64bd5 Kuogee Hsieh     2020-11-03  965  	if (channel_eq_done && clock_recovery_done)
ea530388e64bd5 Kuogee Hsieh     2020-11-03  966  		return -EINVAL;
ea530388e64bd5 Kuogee Hsieh     2020-11-03  967  
c943b4948b5848 Chandan Uddaraju 2020-08-27  968  
c943b4948b5848 Chandan Uddaraju 2020-08-27 @969         return 0;
c943b4948b5848 Chandan Uddaraju 2020-08-27  970  }
c943b4948b5848 Chandan Uddaraju 2020-08-27  971  

:::::: The code at line 969 was first introduced by commit
:::::: c943b4948b5848fc0e07f875edbd35a973879e22 drm/msm/dp: add displayPort driver support

:::::: TO: Chandan Uddaraju <chandanu@codeaurora.org>
:::::: CC: Rob Clark <robdclark@chromium.org>

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* drivers/gpu/drm/msm/dp/dp_link.c:969 dp_link_process_link_status_update() warn: inconsistent indenting
@ 2022-06-19  5:03 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2022-06-19  5:03 UTC (permalink / raw)
  To: Kuogee Hsieh; +Cc: kbuild-all, linux-kernel, Dmitry Baryshkov, Stephen Boyd

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   4b35035bcf80ddb47c0112c4fbd84a63a2836a18
commit: 202aceac8bb3ae12d41dcd3ac9e6c3395963032b drm/msm/dp: replace DRM_DEBUG_DP marco with drm_dbg_dp
date:   7 weeks ago
config: ia64-randconfig-m031-20220616 (https://download.01.org/0day-ci/archive/20220619/202206191259.gkN6i5Oe-lkp@intel.com/config)
compiler: ia64-linux-gcc (GCC) 11.3.0

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

smatch warnings:
drivers/gpu/drm/msm/dp/dp_link.c:969 dp_link_process_link_status_update() warn: inconsistent indenting

vim +969 drivers/gpu/drm/msm/dp/dp_link.c

c943b4948b5848 Chandan Uddaraju 2020-08-27  941  
c943b4948b5848 Chandan Uddaraju 2020-08-27  942  /**
c943b4948b5848 Chandan Uddaraju 2020-08-27  943   * dp_link_process_link_status_update() - processes link status updates
c943b4948b5848 Chandan Uddaraju 2020-08-27  944   * @link: Display Port link module data
c943b4948b5848 Chandan Uddaraju 2020-08-27  945   *
c943b4948b5848 Chandan Uddaraju 2020-08-27  946   * This function will check for changes in the link status, e.g. clock
c943b4948b5848 Chandan Uddaraju 2020-08-27  947   * recovery done on all lanes, and trigger link training if there is a
c943b4948b5848 Chandan Uddaraju 2020-08-27  948   * failure/error on the link.
c943b4948b5848 Chandan Uddaraju 2020-08-27  949   *
c943b4948b5848 Chandan Uddaraju 2020-08-27  950   * The function will return 0 if the a link status update has been processed,
c943b4948b5848 Chandan Uddaraju 2020-08-27  951   * otherwise it will return -EINVAL.
c943b4948b5848 Chandan Uddaraju 2020-08-27  952   */
c943b4948b5848 Chandan Uddaraju 2020-08-27  953  static int dp_link_process_link_status_update(struct dp_link_private *link)
c943b4948b5848 Chandan Uddaraju 2020-08-27  954  {
ea530388e64bd5 Kuogee Hsieh     2020-11-03  955  	bool channel_eq_done = drm_dp_channel_eq_ok(link->link_status,
ea530388e64bd5 Kuogee Hsieh     2020-11-03  956  			link->dp_link.link_params.num_lanes);
ea530388e64bd5 Kuogee Hsieh     2020-11-03  957  
ea530388e64bd5 Kuogee Hsieh     2020-11-03  958  	bool clock_recovery_done = drm_dp_clock_recovery_ok(link->link_status,
ea530388e64bd5 Kuogee Hsieh     2020-11-03  959  			link->dp_link.link_params.num_lanes);
c943b4948b5848 Chandan Uddaraju 2020-08-27  960  
202aceac8bb3ae Kuogee Hsieh     2022-02-17  961  	drm_dbg_dp(link->drm_dev,
202aceac8bb3ae Kuogee Hsieh     2022-02-17  962  		       "channel_eq_done = %d, clock_recovery_done = %d\n",
ea530388e64bd5 Kuogee Hsieh     2020-11-03  963                          channel_eq_done, clock_recovery_done);
ea530388e64bd5 Kuogee Hsieh     2020-11-03  964  
ea530388e64bd5 Kuogee Hsieh     2020-11-03  965  	if (channel_eq_done && clock_recovery_done)
ea530388e64bd5 Kuogee Hsieh     2020-11-03  966  		return -EINVAL;
ea530388e64bd5 Kuogee Hsieh     2020-11-03  967  
c943b4948b5848 Chandan Uddaraju 2020-08-27  968  
c943b4948b5848 Chandan Uddaraju 2020-08-27 @969         return 0;
c943b4948b5848 Chandan Uddaraju 2020-08-27  970  }
c943b4948b5848 Chandan Uddaraju 2020-08-27  971  

:::::: The code at line 969 was first introduced by commit
:::::: c943b4948b5848fc0e07f875edbd35a973879e22 drm/msm/dp: add displayPort driver support

:::::: TO: Chandan Uddaraju <chandanu@codeaurora.org>
:::::: CC: Rob Clark <robdclark@chromium.org>

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-08-21  3:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-21  3:56 drivers/gpu/drm/msm/dp/dp_link.c:969 dp_link_process_link_status_update() warn: inconsistent indenting kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2022-08-20 14:12 kernel test robot
2022-06-19  5:03 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;
as well as URLs for NNTP newsgroup(s).