mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Abhinav Kumar <abhinavk@codeaurora.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Rob Clark <robdclark@chromium.org>
Subject: drivers/gpu/drm/msm/dp/dp_debug.c:229 dp_test_data_show() warn: inconsistent indenting
Date: Mon, 1 Mar 2021 16:39:09 +0800	[thread overview]
Message-ID: <202103011603.6gWTKQDJ-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2256 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   fe07bfda2fb9cdef8a4d4008a409bb02f35f1bd8
commit: de3ee25473ba49f2e785e43b5db5e05cb35aad24 drm/msm/dp: add debugfs nodes for video pattern tests
date:   6 months ago
config: arm64-randconfig-m031-20210301 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0

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

New smatch warnings:
drivers/gpu/drm/msm/dp/dp_debug.c:229 dp_test_data_show() warn: inconsistent indenting

Old smatch warnings:
drivers/gpu/drm/msm/dp/dp_debug.c:378 dp_debug_init() warn: passing zero to 'PTR_ERR'
drivers/gpu/drm/msm/dp/dp_debug.c:387 dp_debug_init() warn: passing zero to 'PTR_ERR'
drivers/gpu/drm/msm/dp/dp_debug.c:396 dp_debug_init() warn: passing zero to 'PTR_ERR'
drivers/gpu/drm/msm/dp/dp_debug.c:405 dp_debug_init() warn: passing zero to 'PTR_ERR'

vim +229 drivers/gpu/drm/msm/dp/dp_debug.c

   205	
   206	static int dp_test_data_show(struct seq_file *m, void *data)
   207	{
   208		struct drm_device *dev;
   209		struct dp_debug_private *debug;
   210		struct drm_connector *connector;
   211		struct drm_connector_list_iter conn_iter;
   212		u32 bpc;
   213	
   214		debug = m->private;
   215		dev = debug->drm_dev;
   216		drm_connector_list_iter_begin(dev, &conn_iter);
   217		drm_for_each_connector_iter(connector, &conn_iter) {
   218	
   219			if (connector->connector_type !=
   220				DRM_MODE_CONNECTOR_DisplayPort)
   221				continue;
   222	
   223			if (connector->status == connector_status_connected) {
   224				bpc = debug->link->test_video.test_bit_depth;
   225				seq_printf(m, "hdisplay: %d\n",
   226						debug->link->test_video.test_h_width);
   227				seq_printf(m, "vdisplay: %d\n",
   228						debug->link->test_video.test_v_height);
 > 229						seq_printf(m, "bpc: %u\n",
   230						dp_link_bit_depth_to_bpc(bpc));
   231			} else
   232				seq_puts(m, "0");
   233		}
   234	
   235		drm_connector_list_iter_end(&conn_iter);
   236	
   237		return 0;
   238	}
   239	DEFINE_SHOW_ATTRIBUTE(dp_test_data);
   240	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33102 bytes --]

                 reply	other threads:[~2021-03-01  8:41 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=202103011603.6gWTKQDJ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=abhinavk@codeaurora.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robdclark@chromium.org \
    /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

all inboxes | Powered by JetHome®