Hi Gilles,

kernel test robot noticed the following build errors:

[auto build test ERROR on drm-misc/drm-misc-next]
[also build test ERROR on linus/master v7.1-rc3 next-20260508]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    
https://github.com/intel-lab-lkp/linux/commits/Gilles-Risch/drm-radeon-fix-eDP-resume-from-suspend-on-iMac11-1-DCE3-1-systems/20260517-025343
base:   https://gitlab.freedesktop.org/drm/misc/kernel.git drm-misc-next
patch link:    
https://lore.kernel.org/r/20260516185226.3005-1-gilles.risch%40gmail.com
patch subject: [PATCH] drm/radeon: fix eDP resume from suspend on iMac11, 1 / 
DCE3.1 systems
config: riscv-randconfig-001-20260517 
(https://download.01.org/0day-ci/archive/20260517/[email protected]/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 
5bac06718f502014fade905512f1d26d578a18f3)
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20260517/[email protected]/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 <[email protected]>
| Closes: 
https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/radeon/atombios_encoders.c:1386:7: error: call to undeclared 
>> function 'ASIC_IS_DCE31'; ISO C99 and later do not support implicit function 
>> declarations [-Wimplicit-function-declaration]
    1386 |         if (!ASIC_IS_DCE31(rdev))
         |              ^
   drivers/gpu/drm/radeon/atombios_encoders.c:1710:30: error: call to 
undeclared function 'ASIC_IS_DCE31'; ISO C99 and later do not support implicit 
function declarations [-Wimplicit-function-declaration]
    1710 |                         if (ASIC_IS_DCE4(rdev) || 
ASIC_IS_DCE31(rdev))
         |                                                   ^
   drivers/gpu/drm/radeon/atombios_encoders.c:1727:29: error: call to 
undeclared function 'ASIC_IS_DCE31'; ISO C99 and later do not support implicit 
function declarations [-Wimplicit-function-declaration]
    1727 |                 if (ASIC_IS_DCE4(rdev) || ASIC_IS_DCE31(rdev)) {
         |                                           ^
   3 errors generated.


vim +/ASIC_IS_DCE31 +1386 drivers/gpu/drm/radeon/atombios_encoders.c

  1372  
  1373  bool
  1374  atombios_set_edp_panel_power(struct drm_connector *connector, int 
action)
  1375  {
  1376          struct radeon_connector *radeon_connector = 
to_radeon_connector(connector);
  1377          struct drm_device *dev = radeon_connector->base.dev;
  1378          struct radeon_device *rdev = dev->dev_private;
  1379          union dig_transmitter_control args;
  1380          int index = GetIndexIntoMasterTable(COMMAND, 
UNIPHYTransmitterControl);
  1381          uint8_t frev, crev;
  1382  
  1383          if (connector->connector_type != DRM_MODE_CONNECTOR_eDP)
  1384                  goto done;
  1385  
> 1386          if (!ASIC_IS_DCE31(rdev))
  1387                  goto done;
  1388  
  1389          if ((action != ATOM_TRANSMITTER_ACTION_POWER_ON) &&
  1390              (action != ATOM_TRANSMITTER_ACTION_POWER_OFF))
  1391                  goto done;
  1392  
  1393          if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, 
&frev, &crev))
  1394                  goto done;
  1395  
  1396          memset(&args, 0, sizeof(args));
  1397  
  1398          args.v1.ucAction = action;
  1399  
  1400          atom_execute_table(rdev->mode_info.atom_context, index, 
(uint32_t *)&args, sizeof(args));
  1401  
  1402          /* wait for the panel to power up */
  1403          if (action == ATOM_TRANSMITTER_ACTION_POWER_ON) {
  1404                  int i;
  1405  
  1406                  for (i = 0; i < 300; i++) {
  1407                          if (radeon_hpd_sense(rdev, 
radeon_connector->hpd.hpd))
  1408                                  return true;
  1409                          mdelay(1);
  1410                  }
  1411                  return false;
  1412          }
  1413  done:
  1414          return true;
  1415  }
  1416  

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

Reply via email to