public inbox for [email protected]
 help / color / mirror / Atom feed
* [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'
@ 2022-04-09  8:35 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-04-09  8:35 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: kbuild-all, GNU/Weeb Mailing List, linux-kernel

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/[email protected]/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 <[email protected]>

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 <[email protected]>
:::::: CC: Russell King <[email protected]>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-09  8:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-09  8:35 [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' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox