[Intel-gfx] [drm-intel:drm-intel-next-queued 14/14] drivers/gpu/drm/i915/display/intel_lspcon.c:533:6: warning: no previous prototype for 'lspcon_init'

kernel test robot lkp at intel.com
Thu Oct 1 22:43:08 UTC 2020


tree:   git://anongit.freedesktop.org/drm-intel drm-intel-next-queued
head:   f542d671ffcec772a561cd41c7e2394392d9dafb
commit: f542d671ffcec772a561cd41c7e2394392d9dafb [14/14] drm/i915: Init lspcon after HPD in intel_dp_detect()
config: x86_64-rhel (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        git remote add drm-intel git://anongit.freedesktop.org/drm-intel
        git fetch --no-tags drm-intel drm-intel-next-queued
        git checkout f542d671ffcec772a561cd41c7e2394392d9dafb
        # save the attached .config to linux build tree
        make W=1 ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/i915/display/intel_lspcon.c:533:6: warning: no previous prototype for 'lspcon_init' [-Wmissing-prototypes]
     533 | bool lspcon_init(struct intel_digital_port *dig_port)
         |      ^~~~~~~~~~~

vim +/lspcon_init +533 drivers/gpu/drm/i915/display/intel_lspcon.c

357c0ae9198ad7f drivers/gpu/drm/i915/intel_lspcon.c         Imre Deak       2016-11-21  532  
7801f3b792b0fd1 drivers/gpu/drm/i915/display/intel_lspcon.c Lucas De Marchi 2020-06-30 @533  bool lspcon_init(struct intel_digital_port *dig_port)
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c         Shashank Sharma 2016-10-14  534  {
7801f3b792b0fd1 drivers/gpu/drm/i915/display/intel_lspcon.c Lucas De Marchi 2020-06-30  535  	struct intel_dp *dp = &dig_port->dp;
7801f3b792b0fd1 drivers/gpu/drm/i915/display/intel_lspcon.c Lucas De Marchi 2020-06-30  536  	struct intel_lspcon *lspcon = &dig_port->lspcon;
668b6c176c33f44 drivers/gpu/drm/i915/intel_lspcon.c         Shashank Sharma 2018-10-12  537  	struct drm_connector *connector = &dp->attached_connector->base;
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c         Shashank Sharma 2016-10-14  538  
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c         Shashank Sharma 2016-10-14  539  	lspcon->active = false;
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c         Shashank Sharma 2016-10-14  540  	lspcon->mode = DRM_LSPCON_MODE_INVALID;
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c         Shashank Sharma 2016-10-14  541  
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c         Shashank Sharma 2016-10-14  542  	if (!lspcon_probe(lspcon)) {
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c         Shashank Sharma 2016-10-14  543  		DRM_ERROR("Failed to probe lspcon\n");
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c         Shashank Sharma 2016-10-14  544  		return false;
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c         Shashank Sharma 2016-10-14  545  	}
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c         Shashank Sharma 2016-10-14  546  
b9936121d95b012 drivers/gpu/drm/i915/display/intel_lspcon.c Lyude Paul      2020-08-26  547  	if (drm_dp_read_dpcd_caps(&dp->aux, dp->dpcd) != 0) {
24e807e79f103cd drivers/gpu/drm/i915/intel_lspcon.c         Imre Deak       2016-10-24  548  		DRM_ERROR("LSPCON DPCD read failed\n");
24e807e79f103cd drivers/gpu/drm/i915/intel_lspcon.c         Imre Deak       2016-10-24  549  		return false;
24e807e79f103cd drivers/gpu/drm/i915/intel_lspcon.c         Imre Deak       2016-10-24  550  	}
24e807e79f103cd drivers/gpu/drm/i915/intel_lspcon.c         Imre Deak       2016-10-24  551  
96e35598cead98d drivers/gpu/drm/i915/intel_lspcon.c         Shashank Sharma 2018-10-12  552  	if (!lspcon_detect_vendor(lspcon)) {
96e35598cead98d drivers/gpu/drm/i915/intel_lspcon.c         Shashank Sharma 2018-10-12  553  		DRM_ERROR("LSPCON vendor detection failed\n");
96e35598cead98d drivers/gpu/drm/i915/intel_lspcon.c         Shashank Sharma 2018-10-12  554  		return false;
96e35598cead98d drivers/gpu/drm/i915/intel_lspcon.c         Shashank Sharma 2018-10-12  555  	}
12a47a422862214 drivers/gpu/drm/i915/intel_lspcon.c         Imre Deak       2016-10-24  556  
668b6c176c33f44 drivers/gpu/drm/i915/intel_lspcon.c         Shashank Sharma 2018-10-12  557  	connector->ycbcr_420_allowed = true;
96e35598cead98d drivers/gpu/drm/i915/intel_lspcon.c         Shashank Sharma 2018-10-12  558  	lspcon->active = true;
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c         Shashank Sharma 2016-10-14  559  	DRM_DEBUG_KMS("Success: LSPCON init\n");
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c         Shashank Sharma 2016-10-14  560  	return true;
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c         Shashank Sharma 2016-10-14  561  }
f542d671ffcec77 drivers/gpu/drm/i915/display/intel_lspcon.c Kai-Heng Feng   2020-06-10  562  

:::::: The code at line 533 was first introduced by commit
:::::: 7801f3b792b0fd171b02f2cb974e758295e68e0f drm/i915/display: prefer dig_port to reference intel_digital_port

:::::: TO: Lucas De Marchi <lucas.demarchi at intel.com>
:::::: CC: Lucas De Marchi <lucas.demarchi at intel.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 45600 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20201002/732e8535/attachment-0001.gz>


More information about the Intel-gfx mailing list