* [paulmckrcu:dev 42/42] drivers/gpu/drm/amd/amdgpu/../pm/inc/amdgpu_pm.h:109:50: error: 'amdgpu_set_thermal_throttling_logging' undeclared here (not in a function); did you mean 'amdgpu_get_thermal_throttling_logging'?
@ 2025-03-19 18:20 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-19 18:20 UTC (permalink / raw)
To: Paul E. McKenney; +Cc: oe-kbuild-all
tree: https://github.com/paulmckrcu/linux dev
head: 5a4379a0d448c61c5baf670bcc7f9041bc243b02
commit: 5a4379a0d448c61c5baf670bcc7f9041bc243b02 [42/42] drm/amd/pm: Remove unused amdgpu_set_thermal_throttling_logging() function
config: i386-buildonly-randconfig-001-20250319 (https://download.01.org/0day-ci/archive/20250320/202503200253.RFBPfeFo-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250320/202503200253.RFBPfeFo-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/202503200253.RFBPfeFo-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/kobject.h:20,
from include/linux/energy_model.h:7,
from include/linux/device.h:16,
from include/drm/drm_print.h:31,
from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_ring.h:29,
from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_ctx.h:29,
from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:43,
from drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c:26:
>> drivers/gpu/drm/amd/amdgpu/../pm/inc/amdgpu_pm.h:109:50: error: 'amdgpu_set_thermal_throttling_logging' undeclared here (not in a function); did you mean 'amdgpu_get_thermal_throttling_logging'?
109 | amdgpu_get_##_name, amdgpu_set_##_name, \
| ^~~~~~~~~~~
include/linux/sysfs.h:234:19: note: in definition of macro '__ATTR'
234 | .store = _store, \
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/inc/amdgpu_pm.h:108:9: note: in expansion of macro '__AMDGPU_DEVICE_ATTR'
108 | __AMDGPU_DEVICE_ATTR(_name, _mode, \
| ^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/inc/amdgpu_pm.h:113:9: note: in expansion of macro 'AMDGPU_DEVICE_ATTR'
113 | AMDGPU_DEVICE_ATTR(_name, S_IRUGO | S_IWUSR, \
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c:2328:9: note: in expansion of macro 'AMDGPU_DEVICE_ATTR_RW'
2328 | AMDGPU_DEVICE_ATTR_RW(thermal_throttling_logging, ATTR_FLAG_BASIC|ATTR_FLAG_ONEVF),
| ^~~~~~~~~~~~~~~~~~~~~
vim +109 drivers/gpu/drm/amd/amdgpu/../pm/inc/amdgpu_pm.h
4e01847c38f7a5 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.h Kevin Wang 2020-04-27 97
4e01847c38f7a5 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.h Kevin Wang 2020-04-27 98 #define to_amdgpu_device_attr(_dev_attr) \
4e01847c38f7a5 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.h Kevin Wang 2020-04-27 99 container_of(_dev_attr, struct amdgpu_device_attr, dev_attr)
4e01847c38f7a5 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.h Kevin Wang 2020-04-27 100
4e01847c38f7a5 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.h Kevin Wang 2020-04-27 101 #define __AMDGPU_DEVICE_ATTR(_name, _mode, _show, _store, _flags, ...) \
4e01847c38f7a5 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.h Kevin Wang 2020-04-27 102 { .dev_attr = __ATTR(_name, _mode, _show, _store), \
2ea6f4d94d0d21 drivers/gpu/drm/amd/pm/inc/amdgpu_pm.h Yang Wang 2024-03-26 103 .attr_id = device_attr_id__##_name, \
4e01847c38f7a5 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.h Kevin Wang 2020-04-27 104 .flags = _flags, \
4e01847c38f7a5 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.h Kevin Wang 2020-04-27 105 ##__VA_ARGS__, }
4e01847c38f7a5 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.h Kevin Wang 2020-04-27 106
4e01847c38f7a5 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.h Kevin Wang 2020-04-27 107 #define AMDGPU_DEVICE_ATTR(_name, _mode, _flags, ...) \
4e01847c38f7a5 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.h Kevin Wang 2020-04-27 108 __AMDGPU_DEVICE_ATTR(_name, _mode, \
4e01847c38f7a5 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.h Kevin Wang 2020-04-27 @109 amdgpu_get_##_name, amdgpu_set_##_name, \
4e01847c38f7a5 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.h Kevin Wang 2020-04-27 110 _flags, ##__VA_ARGS__)
4e01847c38f7a5 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.h Kevin Wang 2020-04-27 111
:::::: The code at line 109 was first introduced by commit
:::::: 4e01847c38f7a5e2b0ffa8ff74d6bf0e85924240 drm/amdgpu: optimize amdgpu device attribute code
:::::: TO: Kevin Wang <kevin1.wang@amd.com>
:::::: CC: Alex Deucher <alexander.deucher@amd.com>
--
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:[~2025-03-19 18:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-19 18:20 [paulmckrcu:dev 42/42] drivers/gpu/drm/amd/amdgpu/../pm/inc/amdgpu_pm.h:109:50: error: 'amdgpu_set_thermal_throttling_logging' undeclared here (not in a function); did you mean 'amdgpu_get_thermal_throttling_logging'? 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.