All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patchwork <patchwork@emeril.freedesktop.org>
To: "Stanislav Lisovskiy" <stanislav.lisovskiy@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Send a hotplug when edid changes (rev8)
Date: Wed, 24 Jun 2020 10:51:37 -0000	[thread overview]
Message-ID: <159299589741.19236.15323518631653361058@emeril.freedesktop.org> (raw)
In-Reply-To: <20200623185756.19502-1-kunal1.joshi@intel.com>

== Series Details ==

Series: Send a hotplug when edid changes (rev8)
URL   : https://patchwork.freedesktop.org/series/62816/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
eeee75d80077 drm: Add helper to compare edids.
-:32: CHECK:COMPARISON_TO_NULL: Comparison to NULL could be written "edid1"
#32: FILE: drivers/gpu/drm/drm_edid.c:1628:
+	bool edid1_present = edid1 != NULL;

-:33: CHECK:COMPARISON_TO_NULL: Comparison to NULL could be written "edid2"
#33: FILE: drivers/gpu/drm/drm_edid.c:1629:
+	bool edid2_present = edid2 != NULL;

-:39: CHECK:BRACES: Blank lines aren't necessary after an open brace '{'
#39: FILE: drivers/gpu/drm/drm_edid.c:1635:
+	if (edid1) {
+

-:54: CHECK:LINE_SPACING: Please don't use multiple blank lines
#54: FILE: drivers/gpu/drm/drm_edid.c:1650:
+
+

total: 0 errors, 0 warnings, 4 checks, 54 lines checked
127303584a7e drm: Introduce epoch counter to drm_connector
-:56: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
#56: FILE: drivers/gpu/drm/drm_connector.c:2012:
+				DRM_DEBUG_KMS("[CONNECTOR:%d:%s] Edid was changed.\n",
+				    connector->base.id, connector->name);

-:60: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
#60: FILE: drivers/gpu/drm/drm_connector.c:2016:
+				DRM_DEBUG_KMS("Updating change counter to %llu\n",
+				    connector->epoch_counter);

-:129: CHECK:PREFER_KERNEL_TYPES: Prefer kernel type 'u64' over 'uint64_t'
#129: FILE: drivers/gpu/drm/drm_probe_helper.c:790:
+	uint64_t old_epoch_counter;

-:160: WARNING:BRACES: braces {} are not necessary for single statement blocks
#160: FILE: drivers/gpu/drm/drm_probe_helper.c:826:
+		if (old_epoch_counter != connector->epoch_counter) {
 			changed = true;
+		}

-:183: ERROR:CODE_INDENT: code indent should use tabs where possible
#183: FILE: include/drm/drm_connector.h:1332:
+        /** @epoch_counter: used to detect any other changes in connector, besides status */$

-:184: ERROR:CODE_INDENT: code indent should use tabs where possible
#184: FILE: include/drm/drm_connector.h:1333:
+        uint64_t epoch_counter;$

-:184: WARNING:LEADING_SPACE: please, no spaces at the start of a line
#184: FILE: include/drm/drm_connector.h:1333:
+        uint64_t epoch_counter;$

-:184: CHECK:PREFER_KERNEL_TYPES: Prefer kernel type 'u64' over 'uint64_t'
#184: FILE: include/drm/drm_connector.h:1333:
+        uint64_t epoch_counter;

total: 2 errors, 2 warnings, 4 checks, 136 lines checked
6f6d00bcff9f drm/i915: Send hotplug event if edid had changed
-:42: ERROR:CODE_INDENT: code indent should use tabs where possible
#42: FILE: drivers/gpu/drm/i915/display/intel_hotplug.c:286:
+        u64 old_epoch_counter;$

-:42: WARNING:LEADING_SPACE: please, no spaces at the start of a line
#42: FILE: drivers/gpu/drm/i915/display/intel_hotplug.c:286:
+        u64 old_epoch_counter;$

-:43: ERROR:CODE_INDENT: code indent should use tabs where possible
#43: FILE: drivers/gpu/drm/i915/display/intel_hotplug.c:287:
+        bool ret = false;$

-:43: WARNING:LEADING_SPACE: please, no spaces at the start of a line
#43: FILE: drivers/gpu/drm/i915/display/intel_hotplug.c:287:
+        bool ret = false;$

-:62: ERROR:CODE_INDENT: code indent should use tabs where possible
#62: FILE: drivers/gpu/drm/i915/display/intel_hotplug.c:295:
+        if (old_epoch_counter != connector->base.epoch_counter)$

-:62: WARNING:LEADING_SPACE: please, no spaces at the start of a line
#62: FILE: drivers/gpu/drm/i915/display/intel_hotplug.c:295:
+        if (old_epoch_counter != connector->base.epoch_counter)$

-:63: ERROR:CODE_INDENT: code indent should use tabs where possible
#63: FILE: drivers/gpu/drm/i915/display/intel_hotplug.c:296:
+                ret = true;$

-:63: WARNING:LEADING_SPACE: please, no spaces at the start of a line
#63: FILE: drivers/gpu/drm/i915/display/intel_hotplug.c:296:
+                ret = true;$

-:65: ERROR:CODE_INDENT: code indent should use tabs where possible
#65: FILE: drivers/gpu/drm/i915/display/intel_hotplug.c:298:
+        if(ret) {$

-:65: WARNING:LEADING_SPACE: please, no spaces at the start of a line
#65: FILE: drivers/gpu/drm/i915/display/intel_hotplug.c:298:
+        if(ret) {$

-:65: ERROR:SPACING: space required before the open parenthesis '('
#65: FILE: drivers/gpu/drm/i915/display/intel_hotplug.c:298:
+        if(ret) {

-:73: ERROR:CODE_INDENT: code indent should use tabs where possible
#73: FILE: drivers/gpu/drm/i915/display/intel_hotplug.c:306:
+        }$

-:73: WARNING:LEADING_SPACE: please, no spaces at the start of a line
#73: FILE: drivers/gpu/drm/i915/display/intel_hotplug.c:306:
+        }$

-:74: ERROR:CODE_INDENT: code indent should use tabs where possible
#74: FILE: drivers/gpu/drm/i915/display/intel_hotplug.c:307:
+        return INTEL_HOTPLUG_UNCHANGED;$

-:74: WARNING:LEADING_SPACE: please, no spaces at the start of a line
#74: FILE: drivers/gpu/drm/i915/display/intel_hotplug.c:307:
+        return INTEL_HOTPLUG_UNCHANGED;$

total: 8 errors, 7 warnings, 0 checks, 38 lines checked

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  parent reply	other threads:[~2020-06-24 10:51 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-23 18:57 [PATCH v6 0/3] Send a hotplug when edid changes Kunal Joshi
2020-06-23 18:57 ` [Intel-gfx] " Kunal Joshi
2020-06-23 18:57 ` [PATCH v6 1/3] drm: Add helper to compare edids Kunal Joshi
2020-06-23 18:57   ` [Intel-gfx] " Kunal Joshi
2020-06-23 18:57 ` [PATCH v6 2/3] drm: Introduce epoch counter to drm_connector Kunal Joshi
2020-06-23 18:57   ` [Intel-gfx] " Kunal Joshi
2020-06-23 18:57 ` [PATCH v6 3/3] drm/i915: Send hotplug event if edid had changed Kunal Joshi
2020-06-23 18:57   ` [Intel-gfx] " Kunal Joshi
2020-06-25  8:36   ` Maarten Lankhorst
2020-06-25  8:36     ` [Intel-gfx] " Maarten Lankhorst
2020-06-25 10:46     ` Lisovskiy, Stanislav
2020-06-25 10:46       ` [Intel-gfx] " Lisovskiy, Stanislav
2020-06-24 10:51 ` Patchwork [this message]
2020-06-26 15:22   ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Send a hotplug when edid changes (rev8) Jani Nikula
2020-06-26 15:25     ` Lisovskiy, Stanislav
2020-06-26  9:15       ` Kunal Joshi
2020-06-24 10:53 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork
2020-06-24 11:12 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2020-06-26  9:59 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
     [not found]   ` <8bb621ba77744f599364bd096447db3d@intel.com>
2020-06-26 11:34     ` Lisovskiy, Stanislav
2020-06-26 13:02 ` [Intel-gfx] ✓ Fi.CI.IGT: success " Patchwork

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=159299589741.19236.15323518631653361058@emeril.freedesktop.org \
    --to=patchwork@emeril.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=stanislav.lisovskiy@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.