All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Chen-Yu Tsai" <wens@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [wens:sunxi-wip 36/36] drivers/gpu/drm/etnaviv/etnaviv_gpu.c:1930:1: warning: label 'pm_put' defined but not used
Date: Fri, 30 Oct 2026 22:42:45 +0100	[thread overview]
Message-ID: <202610302254.Ekd0JM5s-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/wens/linux.git sunxi-wip
head:   e8e10ee67982c55fd3900953641c680a2fbef1c6
commit: e8e10ee67982c55fd3900953641c680a2fbef1c6 [36/36] HACK: drm/etnaviv: check if GPU is actually there
config: x86_64-randconfig-r2304-20261030 (https://download.01.org/0day-ci/archive/20261030/202610302254.Ekd0JM5s-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
sparse: v0.6.5-rc1-21-g84ec0658
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261030/202610302254.Ekd0JM5s-lkp@intel.com/reproduce)

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>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610302254.Ekd0JM5s-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/etnaviv/etnaviv_gpu.c: In function 'etnaviv_gpu_detect':
>> drivers/gpu/drm/etnaviv/etnaviv_gpu.c:1930:1: warning: label 'pm_put' defined but not used [-Wunused-label]
    1930 | pm_put:
         | ^~~~~~


vim +/pm_put +1930 drivers/gpu/drm/etnaviv/etnaviv_gpu.c

  1904	
  1905	static int etnaviv_gpu_detect(struct etnaviv_gpu *gpu)
  1906	{
  1907		int ret;
  1908	
  1909		ret = pm_runtime_resume_and_get(gpu->dev);
  1910		if (ret < 0)
  1911			return dev_err_probe(gpu->dev, ret,
  1912					     "Failed to enable GPU power domain\n");
  1913	
  1914		ret = etnaviv_gpu_reset_deassert(gpu);
  1915		if (ret) {
  1916			dev_err_probe(gpu->dev, ret,
  1917				      "GPU reset deassert failed\n");
  1918			goto fail;
  1919		}
  1920	
  1921		etnaviv_hw_identify(gpu);
  1922	
  1923		if (gpu->identity.model == 0) {
  1924			ret = -ENODEV;
  1925			dev_err_probe(gpu->dev, ret, "Unknown GPU model\n");
  1926		}
  1927	
  1928	fail:
  1929		pm_runtime_mark_last_busy(gpu->dev);
> 1930	pm_put:
  1931		pm_runtime_put_autosuspend(gpu->dev);
  1932	
  1933		return ret;
  1934	}
  1935	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-10-30 21:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202610302254.Ekd0JM5s-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=wens@kernel.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.