linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: kernel test robot <dan.carpenter@linaro.org>, oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>,
	oe-kbuild-all@lists.linux.dev,
	Linux Memory Management List <linux-mm@kvack.org>,
	Daniel Vetter <daniel.vetter@ffwll.ch>
Subject: Re: [linux-next:master 6570/8400] drivers/gpu/drm/tegra/output.c:42 tegra_output_connector_get_modes() error: uninitialized symbol 'drm_edid'.
Date: Mon, 02 Sep 2024 19:15:27 +0300	[thread overview]
Message-ID: <87y14at4kg.fsf@intel.com> (raw)
In-Reply-To: <ZtXLyXxew7z6H2bD@stanley.mountain>

On Mon, 02 Sep 2024, kernel test robot <dan.carpenter@linaro.org> wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head:   ecc768a84f0b8e631986f9ade3118fa37852fef0
> commit: 98365ca74cbfae16b793b62a7ecabb5be8d77785 [6570/8400] drm/tegra: convert to struct drm_edid
> config: nios2-randconfig-r072-20240902 (https://download.01.org/0day-ci/archive/20240902/202409022236.7pEcEksT-lkp@intel.com/config)
> compiler: nios2-linux-gcc (GCC) 14.1.0
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Reported-by: Dan Carpenter <error27@gmail.com>
> | Closes: https://lore.kernel.org/r/202409022236.7pEcEksT-lkp@intel.com/
>
> smatch warnings:
> drivers/gpu/drm/tegra/output.c:42 tegra_output_connector_get_modes() error: uninitialized symbol 'drm_edid'.
>
> vim +/drm_edid +42 drivers/gpu/drm/tegra/output.c
>
> 132085d84fca65 Thierry Reding 2014-11-28  21  int tegra_output_connector_get_modes(struct drm_connector *connector)
> d8f4a9eda00678 Thierry Reding 2012-11-15  22  {
> d8f4a9eda00678 Thierry Reding 2012-11-15  23  	struct tegra_output *output = connector_to_output(connector);
> 98365ca74cbfae Jani Nikula    2024-08-22  24  	const struct drm_edid *drm_edid;
>
> There used to be an = NULL here.
>
> d8f4a9eda00678 Thierry Reding 2012-11-15  25  	int err = 0;
> d8f4a9eda00678 Thierry Reding 2012-11-15  26  
> acde541324dcfe Thierry Reding 2014-01-13  27  	/*
> acde541324dcfe Thierry Reding 2014-01-13  28  	 * If the panel provides one or more modes, use them exclusively and
> acde541324dcfe Thierry Reding 2014-01-13  29  	 * ignore any other means of obtaining a mode.
> acde541324dcfe Thierry Reding 2014-01-13  30  	 */
> 9be7d864cf0763 Thierry Reding 2013-08-30  31  	if (output->panel) {
> 06c4a9c2ae606a Sam Ravnborg   2019-12-07  32  		err = drm_panel_get_modes(output->panel, connector);
> 9be7d864cf0763 Thierry Reding 2013-08-30  33  		if (err > 0)
> 9be7d864cf0763 Thierry Reding 2013-08-30  34  			return err;
> 9be7d864cf0763 Thierry Reding 2013-08-30  35  	}
> 9be7d864cf0763 Thierry Reding 2013-08-30  36  
> 98365ca74cbfae Jani Nikula    2024-08-22  37  	if (output->drm_edid)
> 98365ca74cbfae Jani Nikula    2024-08-22  38  		drm_edid = drm_edid_dup(output->drm_edid);
> d8f4a9eda00678 Thierry Reding 2012-11-15  39  	else if (output->ddc)
> 98365ca74cbfae Jani Nikula    2024-08-22  40  		drm_edid = drm_edid_read_ddc(connector, output->ddc);
>
> I mean presumably either ->drm_edid or ->ddc is true, but you can see why the
> checker complains.

Yeah, my bad. Fix at [1].

BR,
Jani.

[1] https://lore.kernel.org/r/20240902161317.2437148-1-jani.nikula@intel.com

>
> d8f4a9eda00678 Thierry Reding 2012-11-15  41  
> 98365ca74cbfae Jani Nikula    2024-08-22 @42  	drm_edid_connector_update(connector, drm_edid);
> 98365ca74cbfae Jani Nikula    2024-08-22  43  	cec_notifier_set_phys_addr(output->cec,
> 98365ca74cbfae Jani Nikula    2024-08-22  44  				   connector->display_info.source_physical_address);
> d8f4a9eda00678 Thierry Reding 2012-11-15  45  
> 98365ca74cbfae Jani Nikula    2024-08-22  46  	err = drm_edid_connector_add_modes(connector);
> 98365ca74cbfae Jani Nikula    2024-08-22  47  	drm_edid_free(drm_edid);
> d8f4a9eda00678 Thierry Reding 2012-11-15  48  
> d8f4a9eda00678 Thierry Reding 2012-11-15  49  	return err;
> d8f4a9eda00678 Thierry Reding 2012-11-15  50  }

-- 
Jani Nikula, Intel


      reply	other threads:[~2024-09-02 16:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-02 14:29 kernel test robot
2024-09-02 16:15 ` Jani Nikula [this message]

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=87y14at4kg.fsf@intel.com \
    --to=jani.nikula@intel.com \
    --cc=dan.carpenter@linaro.org \
    --cc=daniel.vetter@ffwll.ch \
    --cc=error27@gmail.com \
    --cc=linux-mm@kvack.org \
    --cc=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=oe-kbuild@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox