[akpm-mm:mm-nonmm-unstable 62/62] lib/test_fpu_glue.c:41:14: error: implicit declaration of function 'kernel_fpu_available'

[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-allmodconfig (https://download.01.org/0day-ci/archive/20240329/202403291254.0XqikdBT-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Ubuntu 12.3.0-9ubuntu2) 12.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240329/202403291254.0XqikdBT-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/202403291254.0XqikdBT-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   lib/test_fpu_glue.c: In function 'test_fpu_init':
>> lib/test_fpu_glue.c:41:14: error: implicit declaration of function 'kernel_fpu_available' [-Werror=implicit-function-declaration]
      41 |         if (!kernel_fpu_available())
         |              ^~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


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