All of lore.kernel.org
 help / color / mirror / Atom feed
* [chrome-os:chromeos-5.15 19/42] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:6152:6: warning: no previous prototype for function 'amdgpu_dm_connector_funcs_force'
@ 2023-05-28  7:09 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-05-28  7:09 UTC (permalink / raw)
  To: cros-kernel-buildreports, Guenter Roeck; +Cc: oe-kbuild-all

tree:   https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.15
head:   429ad0976d865af5ae1a703a73346144d12e8d38
commit: 275d3581ae02811e0e976c0797b152e306dd5dcf [19/42] FROMGIT: drm/amd/display: implement force function in amdgpu_dm_connector_funcs
config: arm64-randconfig-r023-20230528 (https://download.01.org/0day-ci/archive/20230528/202305281534.9EmHS8HF-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 4faf3aaf28226a4e950c103a14f6fc1d1fdabb1b)
reproduce (this is a W=1 build):
        mkdir -p ~/bin
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
        git fetch --no-tags chrome-os chromeos-5.15
        git checkout 275d3581ae02811e0e976c0797b152e306dd5dcf
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/gpu/drm/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202305281534.9EmHS8HF-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:6152:6: warning: no previous prototype for function 'amdgpu_dm_connector_funcs_force' [-Wmissing-prototypes]
   void amdgpu_dm_connector_funcs_force(struct drm_connector *connector)
        ^
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:6152:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void amdgpu_dm_connector_funcs_force(struct drm_connector *connector)
   ^
   static 
   1 warning generated.


vim +/amdgpu_dm_connector_funcs_force +6152 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c

  6151	
> 6152	void amdgpu_dm_connector_funcs_force(struct drm_connector *connector)
  6153	{
  6154		struct amdgpu_dm_connector *aconnector = to_amdgpu_dm_connector(connector);
  6155		struct dc_link *dc_link = aconnector->dc_link;
  6156		struct dc_sink *dc_em_sink = aconnector->dc_em_sink;
  6157		struct edid *edid;
  6158	
  6159		if (!connector->edid_override)
  6160			return;
  6161	
  6162		drm_edid_override_connector_update(&aconnector->base);
  6163		edid = aconnector->base.edid_blob_ptr->data;
  6164		aconnector->edid = edid;
  6165	
  6166		/* Update emulated (virtual) sink's EDID */
  6167		if (dc_em_sink && dc_link) {
  6168			memset(&dc_em_sink->edid_caps, 0, sizeof(struct dc_edid_caps));
  6169			memmove(dc_em_sink->dc_edid.raw_edid, edid, (edid->extensions + 1) * EDID_LENGTH);
  6170			dm_helpers_parse_edid_caps(
  6171				dc_link,
  6172				&dc_em_sink->dc_edid,
  6173				&dc_em_sink->edid_caps);
  6174		}
  6175	}
  6176	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-05-28  7:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-28  7:09 [chrome-os:chromeos-5.15 19/42] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:6152:6: warning: no previous prototype for function 'amdgpu_dm_connector_funcs_force' kernel test robot

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.