public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Lyude Paul <lyude@redhat.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Ben Skeggs <bskeggs@redhat.com>
Subject: [skeggsb-nouveau:00.02-gsp-rm 10/88] drivers/gpu/drm/nouveau/dispnv50/disp.c:2603:1: warning: no previous prototype for function 'nv50_display_read_hw_state'
Date: Sat, 9 Sep 2023 15:19:11 +0800	[thread overview]
Message-ID: <202309091541.fpYXkkhk-lkp@intel.com> (raw)

tree:   https://gitlab.freedesktop.org/skeggsb/nouveau 00.02-gsp-rm
head:   dcd62291d3f1ba328303b1617495fa4542117fc1
commit: c38b1778a9baee914921a6743ba924907b96caa2 [10/88] drm/nouveau/kms: Add INHERIT ioctl to nvkm/nvif for reading IOR state
config: arm-randconfig-r024-20230909 (https://download.01.org/0day-ci/archive/20230909/202309091541.fpYXkkhk-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230909/202309091541.fpYXkkhk-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/202309091541.fpYXkkhk-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/nouveau/dispnv50/disp.c:2603:1: warning: no previous prototype for function 'nv50_display_read_hw_state' [-Wmissing-prototypes]
    2603 | nv50_display_read_hw_state(struct nouveau_drm *drm)
         | ^
   drivers/gpu/drm/nouveau/dispnv50/disp.c:2602:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
    2602 | void
         | ^
         | static 
   1 warning generated.


vim +/nv50_display_read_hw_state +2603 drivers/gpu/drm/nouveau/dispnv50/disp.c

  2600	
  2601	/* Read back the currently programmed display state */
  2602	void
> 2603	nv50_display_read_hw_state(struct nouveau_drm *drm)
  2604	{
  2605		struct drm_device *dev = drm->dev;
  2606		struct drm_encoder *encoder;
  2607		struct drm_modeset_acquire_ctx ctx;
  2608		struct nv50_disp *disp = nv50_disp(dev);
  2609		int ret;
  2610	
  2611		DRM_MODESET_LOCK_ALL_BEGIN(dev, ctx, 0, ret);
  2612	
  2613		drm_for_each_encoder(encoder, dev) {
  2614			if (encoder->encoder_type == DRM_MODE_ENCODER_DPMST)
  2615				continue;
  2616	
  2617			nv50_display_read_hw_or_state(dev, disp, nouveau_encoder(encoder));
  2618		}
  2619	
  2620		DRM_MODESET_LOCK_ALL_END(dev, ctx, ret);
  2621	}
  2622	

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

                 reply	other threads:[~2023-09-09  7:19 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=202309091541.fpYXkkhk-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=bskeggs@redhat.com \
    --cc=llvm@lists.linux.dev \
    --cc=lyude@redhat.com \
    --cc=oe-kbuild-all@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