drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/dc_fpu.c:61:17: error: implicit declaration of function 'enable_kernel_altivec'; did you mean 'enable_kernel_vsx'?
by kernel test robot
Hi Rodrigo,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f1baf68e1383f6ed93eb9cff2866d46562607a43
commit: 96ee63730fa30614e943ac352ef772be49a712d9 drm/amd/display: Add control mechanism for FPU
date: 6 months ago
config: powerpc64-randconfig-r031-20220211 (https://download.01.org/0day-ci/archive/20220212/202202120657.ZqI8ITCA-lk...)
compiler: powerpc64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 96ee63730fa30614e943ac352ef772be49a712d9
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/gpu/drm/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/dc_fpu.c: In function 'dc_fpu_begin':
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/dc_fpu.c:61:17: error: implicit declaration of function 'enable_kernel_altivec'; did you mean 'enable_kernel_vsx'? [-Werror=implicit-function-declaration]
61 | enable_kernel_altivec();
| ^~~~~~~~~~~~~~~~~~~~~
| enable_kernel_vsx
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/dc_fpu.c: In function 'dc_fpu_end':
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/dc_fpu.c:89:17: error: implicit declaration of function 'disable_kernel_altivec'; did you mean 'disable_kernel_vsx'? [-Werror=implicit-function-declaration]
89 | disable_kernel_altivec();
| ^~~~~~~~~~~~~~~~~~~~~~
| disable_kernel_vsx
cc1: some warnings being treated as errors
vim +61 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/dc_fpu.c
35
36 /**
37 * dc_fpu_begin - Enables FPU protection
38 * @function_name: A string containing the function name for debug purposes
39 * (usually __func__)
40 *
41 * @line: A line number where DC_FP_START was invoked for debug purpose
42 * (usually __LINE__)
43 *
44 * This function is responsible for managing the use of kernel_fpu_begin() with
45 * the advantage of providing an event trace for debugging.
46 *
47 * Note: Do not call this function directly; always use DC_FP_START().
48 */
49 void dc_fpu_begin(const char *function_name, const int line)
50 {
51 TRACE_DCN_FPU(true, function_name, line);
52
53 #if defined(CONFIG_X86)
54 kernel_fpu_begin();
55 #elif defined(CONFIG_PPC64)
56 if (cpu_has_feature(CPU_FTR_VSX_COMP)) {
57 preempt_disable();
58 enable_kernel_vsx();
59 } else if (cpu_has_feature(CPU_FTR_ALTIVEC_COMP)) {
60 preempt_disable();
> 61 enable_kernel_altivec();
62 } else if (!cpu_has_feature(CPU_FTR_FPU_UNAVAILABLE)) {
63 preempt_disable();
64 enable_kernel_fp();
65 }
66 #endif
67 }
68
69 /**
70 * dc_fpu_end - Disable FPU protection
71 * @function_name: A string containing the function name for debug purposes
72 * @line: A-line number where DC_FP_END was invoked for debug purpose
73 *
74 * This function is responsible for managing the use of kernel_fpu_end() with
75 * the advantage of providing an event trace for debugging.
76 *
77 * Note: Do not call this function directly; always use DC_FP_END().
78 */
79 void dc_fpu_end(const char *function_name, const int line)
80 {
81 TRACE_DCN_FPU(false, function_name, line);
82 #if defined(CONFIG_X86)
83 kernel_fpu_end();
84 #elif defined(CONFIG_PPC64)
85 if (cpu_has_feature(CPU_FTR_VSX_COMP)) {
86 disable_kernel_vsx();
87 preempt_enable();
88 } else if (cpu_has_feature(CPU_FTR_ALTIVEC_COMP)) {
> 89 disable_kernel_altivec();
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
Re: [PATCH v2 3/3] spi: amd: Add support for version AMDI0062
by kernel test robot
Hi "André,
I love your patch! Yet something to improve:
[auto build test ERROR on broonie-spi/for-next]
[also build test ERROR on v5.17-rc3 next-20220211]
[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]
url: https://github.com/0day-ci/linux/commits/Andr-Almeida/spi-amd-Add-support...
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
config: hexagon-randconfig-r045-20220211 (https://download.01.org/0day-ci/archive/20220212/202202120539.KmgOSqRV-lk...)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project f6685f774697c85d6a352dcea013f46a99f9fe31)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/f9ba9fa1166540cf4dbf3ffbddb96b556...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Andr-Almeida/spi-amd-Add-support-for-new-controller-version/20220211-223438
git checkout f9ba9fa1166540cf4dbf3ffbddb96b55699479b5
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/spi/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/spi/spi-amd.c:333:23: error: use of undeclared identifier 'spi_acpi_match'
.acpi_match_table = spi_acpi_match,
^
1 error generated.
vim +/spi_acpi_match +333 drivers/spi/spi-amd.c
329
330 static struct platform_driver amd_spi_driver = {
331 .driver = {
332 .name = "amd_spi",
> 333 .acpi_match_table = spi_acpi_match,
334 },
335 .probe = amd_spi_probe,
336 };
337
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
Re: [PATCH v2 3/3] spi: amd: Add support for version AMDI0062
by kernel test robot
Hi "André,
I love your patch! Yet something to improve:
[auto build test ERROR on broonie-spi/for-next]
[also build test ERROR on v5.17-rc3 next-20220211]
[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]
url: https://github.com/0day-ci/linux/commits/Andr-Almeida/spi-amd-Add-support...
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
config: arc-randconfig-r043-20220211 (https://download.01.org/0day-ci/archive/20220212/202202120443.4SkWShjA-lk...)
compiler: arc-elf-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/f9ba9fa1166540cf4dbf3ffbddb96b556...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Andr-Almeida/spi-amd-Add-support-for-new-controller-version/20220211-223438
git checkout f9ba9fa1166540cf4dbf3ffbddb96b55699479b5
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash drivers/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/spi/spi-amd.c:333:37: error: 'spi_acpi_match' undeclared here (not in a function)
333 | .acpi_match_table = spi_acpi_match,
| ^~~~~~~~~~~~~~
vim +/spi_acpi_match +333 drivers/spi/spi-amd.c
329
330 static struct platform_driver amd_spi_driver = {
331 .driver = {
332 .name = "amd_spi",
> 333 .acpi_match_table = spi_acpi_match,
334 },
335 .probe = amd_spi_probe,
336 };
337
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week