[ammarfaizi2-block:crng/random/jd/not-zero-entropy 3/11] include/linux/timex.h:53: error: unterminated #ifndef

From: kernel test robot
Date: Fri Apr 08 2022 - 22:19:00 EST


tree: https://github.com/ammarfaizi2/linux-block crng/random/jd/not-zero-entropy
head: ac7d8411f0216fe77e48592ed0ff2ccbd599d0de
commit: cd8e5ab92f409b4ff310fd7188f9145b5bb66fad [3/11] random: use sched_clock() for random_get_entropy() if no get_cycles()
config: x86_64-randconfig-a013 (https://download.01.org/0day-ci/archive/20220409/202204091017.NKyTrDSt-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.2.0-19) 11.2.0
reproduce (this is a W=1 build):
# https://github.com/ammarfaizi2/linux-block/commit/cd8e5ab92f409b4ff310fd7188f9145b5bb66fad
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 cd8e5ab92f409b4ff310fd7188f9145b5bb66fad
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 prepare

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

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/mm_types.h:18,
from include/linux/mmzone.h:21,
from include/linux/gfp.h:6,
from include/linux/slab.h:15,
from include/linux/crypto.h:20,
from arch/x86/kernel/asm-offsets.c:9:
>> 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/mm_types.h:18,
from include/linux/mmzone.h:21,
from include/linux/gfp.h:6,
from include/linux/slab.h:15,
from include/linux/crypto.h:20,
from arch/x86/kernel/asm-offsets.c:9:
>> include/linux/timex.h:53: error: unterminated #ifndef
53 | #ifndef _LINUX_TIMEX_H
|
make[2]: *** [scripts/Makefile.build:120: arch/x86/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 +53 include/linux/timex.h

^1da177e4c3f41 Linus Torvalds 2005-04-16 @53 #ifndef _LINUX_TIMEX_H
^1da177e4c3f41 Linus Torvalds 2005-04-16 54 #define _LINUX_TIMEX_H
^1da177e4c3f41 Linus Torvalds 2005-04-16 55

:::::: The code at line 53 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>

--
0-DAY CI Kernel Test Service
https://01.org/lkp