public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org
Subject: [andersson:wip/sm8350-next-20211118 46/51] drivers/gpu/drm/msm/dp/dp_display.c:420:6: warning: no previous prototype for function 'dp_display_oob_hotplug_event'
Date: Wed, 8 Dec 2021 18:58:41 +0800	[thread overview]
Message-ID: <202112081851.ZhEZUbXt-lkp@intel.com> (raw)

tree:   https://github.com/andersson/kernel wip/sm8350-next-20211118
head:   d4e3c3fe1bf25b7e421edef192756bee5bc1ffac
commit: 6cc13d7c2d774fa5b1c7f024ce7e1c7313af4a2f [46/51] drm/msm/dp: Wire up oob callback
config: hexagon-randconfig-r041-20211207 (https://download.01.org/0day-ci/archive/20211208/202112081851.ZhEZUbXt-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/andersson/kernel/commit/6cc13d7c2d774fa5b1c7f024ce7e1c7313af4a2f
        git remote add andersson https://github.com/andersson/kernel
        git fetch --no-tags andersson wip/sm8350-next-20211118
        git checkout 6cc13d7c2d774fa5b1c7f024ce7e1c7313af4a2f
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/gpu/drm/msm/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/msm/dp/dp_display.c:420:6: warning: no previous prototype for function 'dp_display_oob_hotplug_event' [-Wmissing-prototypes]
   void dp_display_oob_hotplug_event(struct msm_dp *dp_display)
        ^
   drivers/gpu/drm/msm/dp/dp_display.c:420:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void dp_display_oob_hotplug_event(struct msm_dp *dp_display)
   ^
   static 
   1 warning generated.


vim +/dp_display_oob_hotplug_event +420 drivers/gpu/drm/msm/dp/dp_display.c

   419	
 > 420	void dp_display_oob_hotplug_event(struct msm_dp *dp_display)
   421	{
   422		struct dp_display_private *dp;
   423		static bool current_state;
   424	
   425		dp = container_of(dp_display, struct dp_display_private, dp_display);
   426	
   427		printk(KERN_ERR "=================================== %s() hpd_state: %d current_state: %d\n", __func__, dp->hpd_state, current_state);
   428	
   429		if (!current_state) {
   430			dp_display_host_init(dp, false);
   431			dp_display_process_hpd_high(dp);
   432		} else {
   433			dp_add_event(dp, EV_USER_NOTIFICATION, false, 0);
   434		}
   435	
   436		current_state = !current_state;
   437	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

                 reply	other threads:[~2021-12-08 10:59 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=202112081851.ZhEZUbXt-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=bjorn.andersson@linaro.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@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