[PATCH 1/2 RESEND] drm/amd/display: Adjust get_value function with prefix to help in ftrace

kernel test robot lkp at intel.com
Fri May 16 12:48:59 UTC 2025


Hi Leonardo,

kernel test robot noticed the following build errors:

[auto build test ERROR on drm-exynos/exynos-drm-next]
[also build test ERROR on linus/master drm/drm-next drm-intel/for-linux-next drm-intel/for-linux-next-fixes drm-misc/drm-misc-next drm-tip/drm-tip v6.15-rc6 next-20250515]
[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/Leonardo-Gomes/drm-amd-display-Adjust-set_value-function-with-prefix-to-help-in-ftrace/20250515-151114
base:   https://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos.git exynos-drm-next
patch link:    https://lore.kernel.org/r/20250514174306.82693-1-leonardodasigomes%40gmail.com
patch subject: [PATCH 1/2 RESEND] drm/amd/display: Adjust get_value function with prefix to help in ftrace
config: sparc-allmodconfig (https://download.01.org/0day-ci/archive/20250516/202505162041.ftJ48E6X-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250516/202505162041.ftJ48E6X-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 at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505162041.ftJ48E6X-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/hw_hpd.c:65:25: error: static declaration of 'dal_hw_gpio_get_value' follows non-static declaration
      65 | static enum gpio_result dal_hw_gpio_get_value(
         |                         ^~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/hw_hpd.c:30:
   drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/hw_gpio.h:122:18: note: previous declaration of 'dal_hw_gpio_get_value' with type 'enum gpio_result(const struct hw_gpio_pin *, uint32_t *)' {aka 'enum gpio_result(const struct hw_gpio_pin *, unsigned int *)'}
     122 | enum gpio_result dal_hw_gpio_get_value(
         |                  ^~~~~~~~~~~~~~~~~~~~~


vim +/dal_hw_gpio_get_value +65 drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/hw_hpd.c

    64	
  > 65	static enum gpio_result dal_hw_gpio_get_value(
    66		const struct hw_gpio_pin *ptr,
    67		uint32_t *value)
    68	{
    69		struct hw_hpd *hpd = HW_HPD_FROM_BASE(ptr);
    70		uint32_t hpd_delayed = 0;
    71	
    72		/* in Interrupt mode we ask for SENSE bit */
    73	
    74		if (ptr->mode == GPIO_MODE_INTERRUPT) {
    75	
    76			REG_GET(int_status,
    77				DC_HPD_SENSE_DELAYED, &hpd_delayed);
    78	
    79			*value = hpd_delayed;
    80			return GPIO_RESULT_OK;
    81		}
    82	
    83		/* in any other modes, operate as normal GPIO */
    84	
    85		return dal_hw_gpio_get_value(ptr, value);
    86	}
    87	

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


More information about the dri-devel mailing list