All of lore.kernel.org
 help / color / mirror / Atom feed
* re: drm: Check in setcrtc if the primary plane supports the fb pixel format
@ 2015-03-10 20:30 Dan Carpenter
  2015-03-11  1:54 ` Laurent Pinchart
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2015-03-10 20:30 UTC (permalink / raw)
  To: laurent.pinchart; +Cc: dri-devel

Hello Laurent Pinchart,

The patch eca93e28c256: "drm: Check in setcrtc if the primary plane
supports the fb pixel format" from Mar 9, 2015, leads to the
following static checker warning:

	drivers/gpu/drm/drm_plane_helper.c:360 create_primary_plane()
	info: ignoring unreachable code.

drivers/gpu/drm/drm_plane_helper.c
   347  static struct drm_plane *create_primary_plane(struct drm_device *dev)
   348  {
   349          struct drm_plane *primary;
   350          int ret;
   351  
   352          primary = kzalloc(sizeof(*primary), GFP_KERNEL);
   353          if (primary == NULL) {
   354                  DRM_DEBUG_KMS("Failed to allocate primary plane\n");
   355                  return NULL;
                        ^^^^^^^^^^^^
   356                  /*
   357                   * Remove the format_default field from drm_plane when dropping
   358                   * this helper.
   359                   */
   360                  primary->format_default = true;
   361          }

regards,
dan carpenter
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* Re: drm: Check in setcrtc if the primary plane supports the fb pixel format
  2015-03-10 20:30 drm: Check in setcrtc if the primary plane supports the fb pixel format Dan Carpenter
@ 2015-03-11  1:54 ` Laurent Pinchart
  0 siblings, 0 replies; 2+ messages in thread
From: Laurent Pinchart @ 2015-03-11  1:54 UTC (permalink / raw)
  To: dri-devel; +Cc: Daniel Vetter, Dan Carpenter

Hi Dan,

(CC'ing Daniel Vetter)

On Tuesday 10 March 2015 23:30:45 Dan Carpenter wrote:
> Hello Laurent Pinchart,
> 
> The patch eca93e28c256: "drm: Check in setcrtc if the primary plane
> supports the fb pixel format" from Mar 9, 2015, leads to the
> following static checker warning:
> 
> 	drivers/gpu/drm/drm_plane_helper.c:360 create_primary_plane()
> 	info: ignoring unreachable code.
> 
> drivers/gpu/drm/drm_plane_helper.c
>    347  static struct drm_plane *create_primary_plane(struct drm_device
> *dev) 348  {
>    349          struct drm_plane *primary;
>    350          int ret;
>    351
>    352          primary = kzalloc(sizeof(*primary), GFP_KERNEL);
>    353          if (primary == NULL) {
>    354                  DRM_DEBUG_KMS("Failed to allocate primary plane\n");
> 355                  return NULL;
>                         ^^^^^^^^^^^^
>    356                  /*
>    357                   * Remove the format_default field from drm_plane
> when dropping 358                   * this helper.
>    359                   */
>    360                  primary->format_default = true;
>    361          }

This looks like a failed conflict resolution. Daniel ?

-- 
Regards,

Laurent Pinchart

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2015-03-11  1:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-10 20:30 drm: Check in setcrtc if the primary plane supports the fb pixel format Dan Carpenter
2015-03-11  1:54 ` Laurent Pinchart

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.