Received: by 2002:a05:6359:1981:b0:12b:e873:ff31 with SMTP id mh1csp2430466rwb; Thu, 27 Jul 2023 08:27:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlHLzkiF6mOCY/7h1FY+KLbaVxDeynvCYc4qgFDUPdHd4j48sjTesjGCh4PXlmF7LnmohbX+ X-Received: by 2002:aa7:d843:0:b0:522:38cb:d8cb with SMTP id f3-20020aa7d843000000b0052238cbd8cbmr1980709eds.20.1690471652072; Thu, 27 Jul 2023 08:27:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690471652; cv=none; d=google.com; s=arc-20160816; b=aVpcInOtgEqTLbyqIqEVUPwftdxdBD1/F14/ZsQryRH2Gb8tJaZh5S2dOJk/r7Qsqa j+YT6E3GY3KiUTtY2rUGjOAx0JFTR8PxuTnU7XKKtTTlVKrAF+EwFOL+jocJFpwV5mf7 JBVW181ovYrzMRAy0Gbozx81U5PUVZpB8U2pR+rRjjKc3Qycfpfdn1/rm2sM3lajeGnx oKfr+5aVXsM/k/61MFEeax6Vh1t45ym2u1t4GlAJY3XAINSMvHx7j5l44HQkYWrtU3fz oRI0nLGZsvOn27I9UXaYSS50Vx+oeyGYNLMgmAh6EcX5cSJmcPXWbdOgnQXF7AxFTbrT a54Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=yptKnnzdYO9kC3MuWQYqGdVAVznPEvQwg0XTec3AzHc=; fh=9t6gMwBpmuoHFQDIRvvYn3cP04NXb1N3HixEjnfh+hw=; b=FvEylFHTPOlbiFiGzNgHvjKRrqPrKHPz4ey/TnGN1iNxQAM93rsSjjay9gSzj/ihBb 491UrDu3YaqLmTrObuIjqAP4k6JIHffOsEu+g4/TAd+OT4vZhQ0eF2GqeReYCT/1joPc rZB14lyOP0YPa3riLFkBAAVsqX0iUe3ZGK26bj5hT1opOyCKMB2h+0VVVERT703E4Mvd 8BczDvjHN/lN8KHausCniHzRJ5enlivPt+Jmth0VGweoYGUfAAUP682LHkqopt70NR76 2o5DWHyuMUnr5hx5q2BK24UV7Jrx2OZwQ1y4Ioof+QDmW+ZEUgjDuc9DhhkagnEC/TCZ EWfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=obg6A7af; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=gW1jjtg8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w6-20020aa7dcc6000000b005222b88bb90si1119113edu.133.2023.07.27.08.27.07; Thu, 27 Jul 2023 08:27:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=obg6A7af; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=gW1jjtg8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234036AbjG0OsX (ORCPT + 99 others); Thu, 27 Jul 2023 10:48:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234320AbjG0OsE (ORCPT ); Thu, 27 Jul 2023 10:48:04 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 620AC273D for ; Thu, 27 Jul 2023 07:47:42 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id C0FEE320014C; Thu, 27 Jul 2023 10:47:34 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Thu, 27 Jul 2023 10:47:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1690469254; x=1690555654; bh=yp tKnnzdYO9kC3MuWQYqGdVAVznPEvQwg0XTec3AzHc=; b=obg6A7afkIBB8NXonl oEUDFq/grYpjoHl0iVvZGVZ1DlInC0xwORwsUWCJ8EwosWxgXqnum7+wiM8lh8QU 98+1pFU0Yd245MOvJ0+PYXDNyusI3c61J2sQVaH0J3Lj6O73TdKf2G4cTuPNRLEa uSfc0DRjc7KeNndRAB969R+kGPZi0Rgt7EKPO38gC/yUqvucVkWngZIJHhDgKJi9 FqffqdJkj0I3Fme5VLmAOMfktrWkA9hOXB0z2iysVGnUNH1hvaARybzTHfjd0R7d 4cAXIBB7pCfYcbdsMNDoxLoDHoySgzfcBcRlMDdsstQq0ZA+Y5it5p7xNJXdeh48 NgNA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1690469254; x=1690555654; bh=yptKnnzdYO9kC 3MuWQYqGdVAVznPEvQwg0XTec3AzHc=; b=gW1jjtg8ZlOYDA1DFn040bdNw8jQ0 ktyYkDe6Uo9zX7OTBofNYZgO34YqyZqzqcI9cPYnWhp4Kbe7w/+rppFhUZi2qvrW mYQmfe4A1COZZwjFHsTsKeFVi/TRot4Oi9S5F6zDs3NK+xvPTN4B2d11SpzDg26m 19bz1ega3JkDNO1b8CIYX9KfbmA0fp4rv70rZP3oj31cqQOLwJldBTx5DRRRedFD OF+AWDwZYfRdgVrSthS3nO91xwB18z/ZsCo3/MuUC2akMfzdbCNe22Op4H2KNahL +nDv5xPO9sIUZyQICmK7FoKDOV1eW6Hhp/81Iiiqi6gNtQ7YxPcXjQzVA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrieeggdehhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdetrhhn ugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrghtth gvrhhnpeekudfggedvgfegffeffedvffelgfeludfhueefjeeiveektdevfeehjeffkeeh veenucffohhmrghinhepfhhrvggvuggvshhkthhophdrohhrghenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 98090B6008D; Thu, 27 Jul 2023 10:47:33 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-592-ga9d4a09b4b-fm-defalarms-20230725.001-ga9d4a09b Mime-Version: 1.0 Message-Id: <9d549ed7-69ce-428b-a622-c3a43909937e@app.fastmail.com> In-Reply-To: <874jlpv45c.fsf@minerva.mail-host-address-is-not-set> References: <20230727122412.2464210-1-arnd@kernel.org> <874jlpv45c.fsf@minerva.mail-host-address-is-not-set> Date: Thu, 27 Jul 2023 16:47:13 +0200 From: "Arnd Bergmann" To: "Javier Martinez Canillas" , "Arnd Bergmann" , "Dave Airlie" , "Daniel Vetter" , "Maxime Ripard" Cc: "Thomas Zimmermann" , "Sam Ravnborg" , "Geert Uytterhoeven" , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/ssd130x: drop DRM_GEM_SHADOW_PLANE_FUNCS override Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 27, 2023, at 16:07, Javier Martinez Canillas wrote: > Arnd Bergmann writes: > > Hello Arnd, > > Thanks a lot for your patch. > >> From: Arnd Bergmann >> >> It is not possible for ssd130x_primary_plane_funcs to use both >> its own reset/duplicate/destroy callbacks and the ones from >> DRM_GEM_SHADOW_PLANE_FUNCS: >> >> In file included from drivers/gpu/drm/solomon/ssd130x.c:29: >> include/drm/drm_gem_atomic_helper.h:100:18: error: initialized field overwritten [-Werror=override-init] >> 100 | .reset = drm_gem_reset_shadow_plane, \ >> 101 | .atomic_duplicate_state = drm_gem_duplicate_shadow_plane_state, \ >> 102 | .atomic_destroy_state = drm_gem_destroy_shadow_plane_state >> | ^~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/solomon/ssd130x.c:744:9: note: in expansion of macro 'DRM_GEM_SHADOW_PLANE_FUNCS' >> 744 | DRM_GEM_SHADOW_PLANE_FUNCS, >> | ^~~~~~~~~~~~~~~~~~~~~~~~~~ >> > > Gah, I missed that. I wonder how this compile warning doesn't show up for me. The warning is normally disabled, I have it turned on in my local patch series on top of linux-next. >> Since the custom callbacks were just added, I assume these are the >> ones it is meant to use, so remvoe the generic overrides. >> >> Fixes: 45b58669e532b ("drm/ssd130x: Allocate buffer in the plane's .atomic_check() callback") > > Unfortunately that's not enough, because the plane atomic state handlers > that were introduced in that commit are broken so removing the macro will > regress the driver. > > I've posted a patch that drops the macro but also fixes the handlers for > the driver to work with the custom callbacks: > > https://lists.freedesktop.org/archives/dri-devel/2023-July/415897.html Ok, makes sense. Arnd