[akpm-mm:mm-nonmm-unstable 62/62] lib/test_fpu_glue.c:41:7: error: call to undeclared function 'kernel_fpu_available'; ISO C99 and later do not support implicit function declarations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-nonmm-unstable
head:   b065e14a3960a495216a032e6d383c104147c9ef
commit: b065e14a3960a495216a032e6d383c104147c9ef [62/62] selftests/fpu: allow building on other architectures
config: i386-buildonly-randconfig-003-20240329 (https://download.01.org/0day-ci/archive/20240329/202403291239.zVJl8cpJ-lkp@xxxxxxxxx/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240329/202403291239.zVJl8cpJ-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/202403291239.zVJl8cpJ-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> lib/test_fpu_glue.c:41:7: error: call to undeclared function 'kernel_fpu_available'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      41 |         if (!kernel_fpu_available())
         |              ^
   1 error generated.


vim +/kernel_fpu_available +41 lib/test_fpu_glue.c

    38	
    39	static int __init test_fpu_init(void)
    40	{
  > 41		if (!kernel_fpu_available())
    42			return -EINVAL;
    43	
    44		selftest_dir = debugfs_create_dir("selftest_helpers", NULL);
    45		if (!selftest_dir)
    46			return -ENOMEM;
    47	
    48		debugfs_create_file_unsafe("test_fpu", 0444, selftest_dir, NULL,
    49					   &test_fpu_fops);
    50	
    51		return 0;
    52	}
    53	

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux