All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>,
	intel-xe@lists.freedesktop.org, intel-gfx@lists.freedesktop.org
Subject: Re: [core-for-CI] Revert "panel/auo-a030jtn01: Use refcounted allocation in place of devm_kzalloc()"
Date: Tue, 08 Apr 2025 12:01:34 +0300	[thread overview]
Message-ID: <87y0wbxc0h.fsf@intel.com> (raw)
In-Reply-To: <20250408062524.1825048-1-chaitanya.kumar.borah@intel.com>

On Tue, 08 Apr 2025, Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com> wrote:
> This reverts commit 9d7d7c3c9a191864367b28e05b312ab3ac34ef0a.
>
> The patch causes build errors in our CI. Revert it till a fix is found.

There are at least three other patches in the same series that don't
build. I expect them to be handled fairly quickly, and would rather we
not merge this, because it hides the problem from all the drm-tip users
that are the folks who would actually fix the issue.

I'd be totally fine sending this as a revert to dri-devel to be merged
for real instead of core-for-CI.

BR,
Jani.


>
>   CC [M]  drivers/gpu/drm/solomon/ssd130x-spi.o
>   CC [M]  drivers/gpu/drm/panel/panel-auo-a030jtn01.o
> drivers/gpu/drm/panel/panel-auo-a030jtn01.c: In function ‘a030jtn01_probe’:
> drivers/gpu/drm/panel/panel-auo-a030jtn01.c:203:9: error: ‘panel’ undeclared (first use in this function)
>   203 |         panel = devm_drm_panel_alloc(dev, struct a030jtn01, panel,
>       |         ^~~~~
> drivers/gpu/drm/panel/panel-auo-a030jtn01.c:203:9: note: each undeclared identifier is reported only once for each function it appears in
> make[6]: *** [scripts/Makefile.build:203: drivers/gpu/drm/panel/panel-auo-a030jtn01.o] Error 1
> make[5]: *** [scripts/Makefile.build:461: drivers/gpu/drm/panel] Error 2
> make[4]: *** [scripts/Makefile.build:461: drivers/gpu/drm] Error 2
> make[3]: *** [scripts/Makefile.build:461: drivers/gpu] Error 2
> make[2]: *** [scripts/Makefile.build:461: drivers] Error 2
> make[1]: *** [/home/kbuild2/kernel/Makefile:2006: .] Error 2
> make: *** [Makefile:248: __sub-make] Error 2
>
> Link: https://lore.kernel.org/all/Z_P0A9lxWD0aAdjp@ideak-desk.fi.intel.com/
> References: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/14039
> Signed-off-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
> ---
>  drivers/gpu/drm/panel/panel-auo-a030jtn01.c | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/panel/panel-auo-a030jtn01.c b/drivers/gpu/drm/panel/panel-auo-a030jtn01.c
> index 83529b1c2bac..77604d6a4e72 100644
> --- a/drivers/gpu/drm/panel/panel-auo-a030jtn01.c
> +++ b/drivers/gpu/drm/panel/panel-auo-a030jtn01.c
> @@ -200,10 +200,9 @@ static int a030jtn01_probe(struct spi_device *spi)
>  
>  	spi->mode |= SPI_MODE_3 | SPI_3WIRE;
>  
> -	panel = devm_drm_panel_alloc(dev, struct a030jtn01, panel,
> -				     &a030jtn01_funcs, DRM_MODE_CONNECTOR_DPI);
> -	if (IS_ERR(panel))
> -		return PTR_ERR(panel);
> +	priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
> +	if (!priv)
> +		return -ENOMEM;
>  
>  	priv->spi = spi;
>  	spi_set_drvdata(spi, priv);
> @@ -224,6 +223,9 @@ static int a030jtn01_probe(struct spi_device *spi)
>  	if (IS_ERR(priv->reset_gpio))
>  		return dev_err_probe(dev, PTR_ERR(priv->reset_gpio), "Failed to get reset GPIO");
>  
> +	drm_panel_init(&priv->panel, dev, &a030jtn01_funcs,
> +		       DRM_MODE_CONNECTOR_DPI);
> +
>  	err = drm_panel_of_backlight(&priv->panel);
>  	if (err)
>  		return err;

-- 
Jani Nikula, Intel

  parent reply	other threads:[~2025-04-08  9:01 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-08  6:25 [core-for-CI] Revert "panel/auo-a030jtn01: Use refcounted allocation in place of devm_kzalloc()" Chaitanya Kumar Borah
2025-04-08  6:46 ` ✓ CI.Patch_applied: success for " Patchwork
2025-04-08  6:46 ` ✗ CI.checkpatch: warning " Patchwork
2025-04-08  6:47 ` ✓ CI.KUnit: success " Patchwork
2025-04-08  7:03 ` ✓ CI.Build: " Patchwork
2025-04-08  7:05 ` ✗ Fi.CI.SPARSE: warning " Patchwork
2025-04-08  7:06 ` ✓ CI.Hooks: success " Patchwork
2025-04-08  7:07 ` ✓ CI.checksparse: " Patchwork
2025-04-08  7:30 ` ✓ i915.CI.BAT: " Patchwork
2025-04-08  7:52 ` ✓ Xe.CI.BAT: " Patchwork
2025-04-08  8:54 ` ✗ Xe.CI.Full: failure " Patchwork
2025-04-08  9:01 ` Jani Nikula [this message]
2025-04-08  9:14 ` ✗ i915.CI.Full: " 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=87y0wbxc0h.fsf@intel.com \
    --to=jani.nikula@intel.com \
    --cc=chaitanya.kumar.borah@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.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 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.