[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202204091618.rkNKCgBL-lkp@intel.com>
Date: Sat, 9 Apr 2022 16:35:42 +0800
From: kernel test robot <lkp@...el.com>
To: "Jason A. Donenfeld" <zx2c4@...nel.org>
Cc: kbuild-all@...ts.01.org,
GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
linux-kernel@...r.kernel.org
Subject: [ammarfaizi2-block:crng/random/jd/not-zero-entropy 7/11]
arch/arm/include/asm/timex.h:15:40: error: implicit declaration of function
'read_current_timer'
tree: https://github.com/ammarfaizi2/linux-block crng/random/jd/not-zero-entropy
head: ac7d8411f0216fe77e48592ed0ff2ccbd599d0de
commit: 5cde0b2eaaf94891163f14984697361fe51849e6 [7/11] arm: use sched_clock() for random_get_entropy() instead of zero
config: arm-randconfig-m031-20220408 (https://download.01.org/0day-ci/archive/20220409/202204091618.rkNKCgBL-lkp@intel.com/config)
compiler: arm-linux-gnueabi-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/ammarfaizi2/linux-block/commit/5cde0b2eaaf94891163f14984697361fe51849e6
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block crng/random/jd/not-zero-entropy
git checkout 5cde0b2eaaf94891163f14984697361fe51849e6
# 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=arm prepare
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
In file included from include/linux/timex.h:66,
from include/linux/time32.h:13,
from include/linux/time.h:60,
from include/linux/ktime.h:24,
from include/linux/timer.h:6,
from include/linux/workqueue.h:9,
from include/linux/rhashtable-types.h:15,
from include/linux/ipc.h:7,
from include/uapi/linux/sem.h:5,
from include/linux/sem.h:5,
from include/linux/sched.h:15,
from arch/arm/kernel/asm-offsets.c:11:
arch/arm/include/asm/timex.h: In function 'random_get_entropy':
>> arch/arm/include/asm/timex.h:15:40: error: implicit declaration of function 'read_current_timer' [-Werror=implicit-function-declaration]
15 | #define get_cycles() ({ cycles_t c; read_current_timer(&c) ? 0 : c; })
| ^~~~~~~~~~~~~~~~~~
arch/arm/include/asm/timex.h:19:29: note: in expansion of macro 'get_cycles'
19 | unsigned long ret = get_cycles();
| ^~~~~~~~~~
In file included from include/linux/time32.h:13,
from include/linux/time.h:60,
from include/linux/ktime.h:24,
from include/linux/timer.h:6,
from include/linux/workqueue.h:9,
from include/linux/rhashtable-types.h:15,
from include/linux/ipc.h:7,
from include/uapi/linux/sem.h:5,
from include/linux/sem.h:5,
from include/linux/sched.h:15,
from arch/arm/kernel/asm-offsets.c:11:
include/linux/timex.h: At top level:
include/linux/timex.h:53: error: unterminated #ifndef
53 | #ifndef _LINUX_TIMEX_H
|
In file included from include/linux/jiffies.h:11,
from include/linux/ktime.h:25,
from include/linux/timer.h:6,
from include/linux/workqueue.h:9,
from include/linux/rhashtable-types.h:15,
from include/linux/ipc.h:7,
from include/uapi/linux/sem.h:5,
from include/linux/sem.h:5,
from include/linux/sched.h:15,
from arch/arm/kernel/asm-offsets.c:11:
include/linux/timex.h:53: error: unterminated #ifndef
53 | #ifndef _LINUX_TIMEX_H
|
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:120: arch/arm/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1194: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:219: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/read_current_timer +15 arch/arm/include/asm/timex.h
5cde0b2eaaf948 arch/arm/include/asm/timex.h Jason A. Donenfeld 2022-04-08 13
^1da177e4c3f41 include/asm-arm/timex.h Linus Torvalds 2005-04-16 14 typedef unsigned long cycles_t;
923df96b9f31b7 arch/arm/include/asm/timex.h Will Deacon 2012-07-06 @15 #define get_cycles() ({ cycles_t c; read_current_timer(&c) ? 0 : c; })
^1da177e4c3f41 include/asm-arm/timex.h Linus Torvalds 2005-04-16 16
:::::: The code at line 15 was first introduced by commit
:::::: 923df96b9f31b7d08d8438ff9677326d9537accf ARM: 7451/1: arch timer: implement read_current_timer and get_cycles
:::::: TO: Will Deacon <will.deacon@....com>
:::::: CC: Russell King <rmk+kernel@....linux.org.uk>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists