All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Romli, Khairul Anuar" <khairul.anuar.romli@intel.com>
Cc: oe-kbuild-all@lists.linux.dev, "Pan, Kris" <kris.pan@intel.com>
Subject: [intel-lts:4.19/android_s 3755/30000] drivers/gpu/drm/i915/intel_hdcp.c:772:5: warning: no previous declaration for 'intel_hdcp_enable'
Date: Thu, 7 Sep 2023 04:53:29 +0800	[thread overview]
Message-ID: <202309070437.AW3gmtpg-lkp@intel.com> (raw)

tree:   https://github.com/intel/linux-intel-lts.git 4.19/android_s
head:   6bfae51123c09ed71d82cfc739c5ccbeac60c4aa
commit: a82c652f55df396b641e6812b7078e328bbae280 [3755/30000] drm/i915: Commit CP without modeset
config: i386-randconfig-013-20230907 (https://download.01.org/0day-ci/archive/20230907/202309070437.AW3gmtpg-lkp@intel.com/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230907/202309070437.AW3gmtpg-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/202309070437.AW3gmtpg-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/i915/intel_hdcp.c:772:5: warning: no previous declaration for 'intel_hdcp_enable' [-Wmissing-declarations]
    int intel_hdcp_enable(struct intel_connector *connector)
        ^~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/intel_hdcp.c:784:5: warning: no previous declaration for 'intel_hdcp_disable' [-Wmissing-declarations]
    int intel_hdcp_disable(struct intel_connector *connector)
        ^~~~~~~~~~~~~~~~~~


vim +/intel_hdcp_enable +772 drivers/gpu/drm/i915/intel_hdcp.c

ee5e5e7a5e0fde Sean Paul            2018-01-08  771  
ee5e5e7a5e0fde Sean Paul            2018-01-08 @772  int intel_hdcp_enable(struct intel_connector *connector)
ee5e5e7a5e0fde Sean Paul            2018-01-08  773  {
ee5e5e7a5e0fde Sean Paul            2018-01-08  774  	if (!connector->hdcp_shim)
ee5e5e7a5e0fde Sean Paul            2018-01-08  775  		return -ENOENT;
ee5e5e7a5e0fde Sean Paul            2018-01-08  776  
ee5e5e7a5e0fde Sean Paul            2018-01-08  777  	mutex_lock(&connector->hdcp_mutex);
c01ebc711af8f6 Romli, Khairul Anuar 2018-09-19  778  	schedule_work(&connector->hdcp_enable_work);
ee5e5e7a5e0fde Sean Paul            2018-01-08  779  	mutex_unlock(&connector->hdcp_mutex);
c01ebc711af8f6 Romli, Khairul Anuar 2018-09-19  780  
c01ebc711af8f6 Romli, Khairul Anuar 2018-09-19  781  	return 0;
ee5e5e7a5e0fde Sean Paul            2018-01-08  782  }
ee5e5e7a5e0fde Sean Paul            2018-01-08  783  
ee5e5e7a5e0fde Sean Paul            2018-01-08 @784  int intel_hdcp_disable(struct intel_connector *connector)
ee5e5e7a5e0fde Sean Paul            2018-01-08  785  {
01468d6c711a31 Sean Paul            2018-01-09  786  	int ret = 0;
ee5e5e7a5e0fde Sean Paul            2018-01-08  787  
ee5e5e7a5e0fde Sean Paul            2018-01-08  788  	if (!connector->hdcp_shim)
ee5e5e7a5e0fde Sean Paul            2018-01-08  789  		return -ENOENT;
ee5e5e7a5e0fde Sean Paul            2018-01-08  790  
ee5e5e7a5e0fde Sean Paul            2018-01-08  791  	mutex_lock(&connector->hdcp_mutex);
ee5e5e7a5e0fde Sean Paul            2018-01-08  792  
01468d6c711a31 Sean Paul            2018-01-09  793  	if (connector->hdcp_value != DRM_MODE_CONTENT_PROTECTION_UNDESIRED) {
ee5e5e7a5e0fde Sean Paul            2018-01-08  794  		connector->hdcp_value = DRM_MODE_CONTENT_PROTECTION_UNDESIRED;
ee5e5e7a5e0fde Sean Paul            2018-01-08  795  		ret = _intel_hdcp_disable(connector);
01468d6c711a31 Sean Paul            2018-01-09  796  	}
ee5e5e7a5e0fde Sean Paul            2018-01-08  797  
ee5e5e7a5e0fde Sean Paul            2018-01-08  798  	mutex_unlock(&connector->hdcp_mutex);
ee5e5e7a5e0fde Sean Paul            2018-01-08  799  	cancel_delayed_work_sync(&connector->hdcp_check_work);
ee5e5e7a5e0fde Sean Paul            2018-01-08  800  	return ret;
ee5e5e7a5e0fde Sean Paul            2018-01-08  801  }
ee5e5e7a5e0fde Sean Paul            2018-01-08  802  

:::::: The code at line 772 was first introduced by commit
:::::: ee5e5e7a5e0fdeca5add8de6314b1f0a62604bdf drm/i915: Add HDCP framework + base implementation

:::::: TO: Sean Paul <seanpaul@chromium.org>
:::::: CC: Sean Paul <seanpaul@chromium.org>

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

                 reply	other threads:[~2023-09-06 20:55 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=202309070437.AW3gmtpg-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=khairul.anuar.romli@intel.com \
    --cc=kris.pan@intel.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 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.