Re: [PATCH 2/2] soc: hisilicon: kunpeng_hbmcache: Add support for online and offline the hbm cache

From: kernel test robot
Date: Fri Dec 06 2024 - 16:02:31 EST


Hi Zhang,

kernel test robot noticed the following build errors:

[auto build test ERROR on linus/master]
[also build test ERROR on v6.13-rc1 next-20241206]
[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/Zhang-Zekun/soc-hisilicon-kunpeng_hbmdev-Add-support-for-controling-the-power-of-hbm-memory/20241206-193643
base: linus/master
patch link: https://lore.kernel.org/r/20241206112812.32618-3-zhangzekun11%40huawei.com
patch subject: [PATCH 2/2] soc: hisilicon: kunpeng_hbmcache: Add support for online and offline the hbm cache
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20241207/202412070443.dYzNQNfY-lkp@xxxxxxxxx/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/20241207/202412070443.dYzNQNfY-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412070443.dYzNQNfY-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

drivers/soc/hisilicon/kunpeng_hbmcache.c: In function 'state_store':
>> drivers/soc/hisilicon/kunpeng_hbmcache.c:28:24: error: implicit declaration of function 'restart_syscall'; did you mean 'do_no_restart_syscall'? [-Werror=implicit-function-declaration]
28 | return restart_syscall();
| ^~~~~~~~~~~~~~~
| do_no_restart_syscall
cc1: some warnings being treated as errors


vim +28 drivers/soc/hisilicon/kunpeng_hbmcache.c

18
19 static ssize_t state_store(struct device *d, struct device_attribute *attr,
20 const char *buf, size_t count)
21 {
22 struct acpi_device *adev = ACPI_COMPANION(d);
23 const int type = online_type_from_str(buf);
24 acpi_handle handle = adev->handle;
25 acpi_status status = AE_OK;
26
27 if (!mutex_trylock(&cache_lock))
> 28 return restart_syscall();
29
30 switch (type) {
31 case STATE_ONLINE:
32 status = acpi_evaluate_object(handle, "_ON", NULL, NULL);
33 break;
34 case STATE_OFFLINE:
35 status = acpi_evaluate_object(handle, "_OFF", NULL, NULL);
36 break;
37 default:
38 break;
39 }
40 mutex_unlock(&cache_lock);
41
42 if (ACPI_FAILURE(status))
43 return -ENODEV;
44
45 return count;
46 }
47 static DEVICE_ATTR_WO(state);
48

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