public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Gaghik Khachatrian <gaghik.khachatrian@amd.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	Alex Deucher <alexander.deucher@amd.com>,
	Dillon Varone <dillon.varone@amd.com>,
	Clayton King <clayton.king@amd.com>, Roman Li <roman.li@amd.com>
Subject: drivers/gpu/drm/amd/amdgpu/../display/dc/dml2_0/display_mode_util.c:186 dml_round() warn: inconsistent indenting
Date: Fri, 01 May 2026 17:51:26 +0800	[thread overview]
Message-ID: <202605011731.M1fqKbGr-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   26fd6bff2c050196005312d1d306889220952a99
commit: b35601c5432a52c5a889a8bf505bbe2540e13254 drm/amd/display: Fix unused parameters warnings in dml2_0
date:   2 weeks ago
config: i386-randconfig-141-20260426 (https://download.01.org/0day-ci/archive/20260501/202605011731.M1fqKbGr-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
smatch: v0.5.0-9065-ge9cc34fd

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Fixes: b35601c5432a ("drm/amd/display: Fix unused parameters warnings in dml2_0")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202605011731.M1fqKbGr-lkp@intel.com/

New smatch warnings:
drivers/gpu/drm/amd/amdgpu/../display/dc/dml2_0/display_mode_util.c:186 dml_round() warn: inconsistent indenting

Old smatch warnings:
drivers/gpu/drm/amd/amdgpu/../display/dc/dml2_0/display_mode_util.c:118 dml_floor() warn: if statement not indented
drivers/gpu/drm/amd/amdgpu/../display/dc/dml2_0/display_mode_util.c:152 dml_max() warn: inconsistent indenting
drivers/gpu/drm/amd/amdgpu/../display/dc/dml2_0/display_mode_util.c:747 dml_get_num_active_planes() warn: if statement not indented

vim +186 drivers/gpu/drm/amd/amdgpu/../display/dc/dml2_0/display_mode_util.c

7966f319c66d94 drivers/gpu/drm/amd/display/dc/dml2/display_mode_util.c   Qingqing Zhuo      2023-07-28  178  
7966f319c66d94 drivers/gpu/drm/amd/display/dc/dml2/display_mode_util.c   Qingqing Zhuo      2023-07-28  179  dml_float_t dml_round(dml_float_t val, dml_bool_t bankers_rounding)
7966f319c66d94 drivers/gpu/drm/amd/display/dc/dml2/display_mode_util.c   Qingqing Zhuo      2023-07-28  180  {
b35601c5432a52 drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_util.c Gaghik Khachatrian 2026-03-07  181  	(void)bankers_rounding;
7966f319c66d94 drivers/gpu/drm/amd/display/dc/dml2/display_mode_util.c   Qingqing Zhuo      2023-07-28  182  //	if (bankers_rounding)
7966f319c66d94 drivers/gpu/drm/amd/display/dc/dml2/display_mode_util.c   Qingqing Zhuo      2023-07-28  183  //			return (dml_float_t) lrint(val);
7966f319c66d94 drivers/gpu/drm/amd/display/dc/dml2/display_mode_util.c   Qingqing Zhuo      2023-07-28  184  //	else {
7966f319c66d94 drivers/gpu/drm/amd/display/dc/dml2/display_mode_util.c   Qingqing Zhuo      2023-07-28  185  //		return round(val);
7966f319c66d94 drivers/gpu/drm/amd/display/dc/dml2/display_mode_util.c   Qingqing Zhuo      2023-07-28 @186  		double round_pt = 0.5;
7966f319c66d94 drivers/gpu/drm/amd/display/dc/dml2/display_mode_util.c   Qingqing Zhuo      2023-07-28  187  		double ceil = dml_ceil(val, 1);
7966f319c66d94 drivers/gpu/drm/amd/display/dc/dml2/display_mode_util.c   Qingqing Zhuo      2023-07-28  188  		double floor = dml_floor(val, 1);
7966f319c66d94 drivers/gpu/drm/amd/display/dc/dml2/display_mode_util.c   Qingqing Zhuo      2023-07-28  189  
7966f319c66d94 drivers/gpu/drm/amd/display/dc/dml2/display_mode_util.c   Qingqing Zhuo      2023-07-28  190  		if (val - floor >= round_pt)
7966f319c66d94 drivers/gpu/drm/amd/display/dc/dml2/display_mode_util.c   Qingqing Zhuo      2023-07-28  191  			return ceil;
7966f319c66d94 drivers/gpu/drm/amd/display/dc/dml2/display_mode_util.c   Qingqing Zhuo      2023-07-28  192  		else
7966f319c66d94 drivers/gpu/drm/amd/display/dc/dml2/display_mode_util.c   Qingqing Zhuo      2023-07-28  193  			return floor;
7966f319c66d94 drivers/gpu/drm/amd/display/dc/dml2/display_mode_util.c   Qingqing Zhuo      2023-07-28  194  //	}
7966f319c66d94 drivers/gpu/drm/amd/display/dc/dml2/display_mode_util.c   Qingqing Zhuo      2023-07-28  195  }
7966f319c66d94 drivers/gpu/drm/amd/display/dc/dml2/display_mode_util.c   Qingqing Zhuo      2023-07-28  196  

:::::: The code at line 186 was first introduced by commit
:::::: 7966f319c66d9468623c6a6a017ecbc0dd79be75 drm/amd/display: Introduce DML2

:::::: TO: Qingqing Zhuo <Qingqing.Zhuo@amd.com>
:::::: CC: Alex Deucher <alexander.deucher@amd.com>

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

                 reply	other threads:[~2026-05-01  9:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202605011731.M1fqKbGr-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=alexander.deucher@amd.com \
    --cc=clayton.king@amd.com \
    --cc=dillon.varone@amd.com \
    --cc=gaghik.khachatrian@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=roman.li@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox