Message ID | 20170413195311.GB26108@mwanda (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Fri, Apr 14, 2017 at 08:13:43PM -0000, Patchwork wrote: > == Series Details == > > Series: drm/i915: uninitialized value on error path (rev3) > URL : https://patchwork.freedesktop.org/series/23038/ > State : success These patchwork emails are sort of useless. I wouldn't have sent the patch if it couldn't compile which is basically all this is testing. It's not exercising the failure path. regards, dan carpenter
On Mon, 17 Apr 2017, Dan Carpenter <dan.carpenter@oracle.com> wrote: > On Fri, Apr 14, 2017 at 08:13:43PM -0000, Patchwork wrote: >> == Series Details == >> >> Series: drm/i915: uninitialized value on error path (rev3) >> URL : https://patchwork.freedesktop.org/series/23038/ >> State : success > > These patchwork emails are sort of useless. I wouldn't have sent the > patch if it couldn't compile which is basically all this is testing. > It's not exercising the failure path. Yeah, the CI is not smart enough to know that just by looking at the patch, so it'll test them all. ;) BR, Jani.
On Tue, Apr 18, 2017 at 10:58:44AM +0300, Jani Nikula wrote: > On Mon, 17 Apr 2017, Dan Carpenter <dan.carpenter@oracle.com> wrote: > > On Fri, Apr 14, 2017 at 08:13:43PM -0000, Patchwork wrote: > >> == Series Details == > >> > >> Series: drm/i915: uninitialized value on error path (rev3) > >> URL : https://patchwork.freedesktop.org/series/23038/ > >> State : success > > > > These patchwork emails are sort of useless. I wouldn't have sent the > > patch if it couldn't compile which is basically all this is testing. > > It's not exercising the failure path. > > Yeah, the CI is not smart enough to know that just by looking at the > patch, so it'll test them all. ;) > But could it just send responses if something fails? Or it could be a much shorter email: CI test successful. Use X-mailer-blahblah to filter successful tests. We don't need to expose all the other internal information unless something fails. regards, dan carpenter
On Tue, 18 Apr 2017, Dan Carpenter <dan.carpenter@oracle.com> wrote: > On Tue, Apr 18, 2017 at 10:58:44AM +0300, Jani Nikula wrote: >> On Mon, 17 Apr 2017, Dan Carpenter <dan.carpenter@oracle.com> wrote: >> > On Fri, Apr 14, 2017 at 08:13:43PM -0000, Patchwork wrote: >> >> == Series Details == >> >> >> >> Series: drm/i915: uninitialized value on error path (rev3) >> >> URL : https://patchwork.freedesktop.org/series/23038/ >> >> State : success >> > >> > These patchwork emails are sort of useless. I wouldn't have sent the >> > patch if it couldn't compile which is basically all this is testing. >> > It's not exercising the failure path. >> >> Yeah, the CI is not smart enough to know that just by looking at the >> patch, so it'll test them all. ;) >> > > But could it just send responses if something fails? Or it could be a > much shorter email: > > CI test successful. > > Use X-mailer-blahblah to filter successful tests. > > We don't need to expose all the other internal information unless > something fails. Thanks, I passed on the feedback. BR, Jani.
On 18/04/17 12:14, Dan Carpenter wrote: > On Tue, Apr 18, 2017 at 10:58:44AM +0300, Jani Nikula wrote: >> On Mon, 17 Apr 2017, Dan Carpenter <dan.carpenter@oracle.com> wrote: >>> On Fri, Apr 14, 2017 at 08:13:43PM -0000, Patchwork wrote: >>>> == Series Details == >>>> >>>> Series: drm/i915: uninitialized value on error path (rev3) >>>> URL : https://patchwork.freedesktop.org/series/23038/ >>>> State : success >>> >>> These patchwork emails are sort of useless. I wouldn't have sent the >>> patch if it couldn't compile which is basically all this is testing. >>> It's not exercising the failure path. >> >> Yeah, the CI is not smart enough to know that just by looking at the >> patch, so it'll test them all. ;) >> > > But could it just send responses if something fails? Or it could be a > much shorter email: > > CI test successful. > > Use X-mailer-blahblah to filter successful tests. I guess that could be an interesting thing to add. But what prevents you from dropping these emails if you don't want them? Their subject always starts with "Fi.CI.BAT: success". > > We don't need to expose all the other internal information unless > something fails. The purpose of this email is to say the patch series actually got tested, making it easier for the person pushing the series that it passed the basic requirements. The alternative would be to ask people to check on patchwork every time, which is cumbersome. One reason also to "expose the internals" is that machines come and go as we often, we only have one machine of old platforms. So, a patch checking a fix for gen4 with no actual gen4 HW testing it would be pointless. </ my two cents>
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 48a546210d8b..d0e9578952d5 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -9563,6 +9563,7 @@ int intel_get_load_detect_pipe(struct drm_connector *connector, */ if (!crtc) { DRM_DEBUG_KMS("no pipe available for load-detect\n"); + ret = -ENODEV; goto fail; }
"ret" isn't initialized on this error path. It doesn't really cause any problems unless it's randomly set to -EDEADLK which is not likely. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>