All of lore.kernel.org
 help / color / mirror / Atom feed
* [intel-lts:pr/68 1/1] include/asm-generic/percpu.h:34:38: error: implicit declaration of function 'smp_processor_id'; did you mean 'raw_smp_processor_id'?
@ 2025-02-25  2:24 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-25  2:24 UTC (permalink / raw)
  Cc: oe-kbuild-all

tree:   https://github.com/intel/linux-intel-lts.git pr/68
head:   1512b732e7eb769e47792aa376270df979374d81
commit: b012980d1c6e27f5c4adf0c19defca8658956820 [1/1] riscv/mmiowb: Hook up mmwiob() implementation to asm-generic code
config: riscv-randconfig-002-20250224 (https://download.01.org/0day-ci/archive/20250225/202502251008.FASE8heB-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250225/202502251008.FASE8heB-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502251008.FASE8heB-lkp@intel.com/

All errors (new ones prefixed by >>):

   scripts/extract-cert.c: In function 'display_openssl_errors':
   scripts/extract-cert.c:46:9: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
      46 |         while ((e = ERR_get_error_line(&file, &line))) {
         |         ^~~~~
   In file included from scripts/extract-cert.c:23:
   /usr/include/openssl/err.h:423:15: note: declared here
     423 | unsigned long ERR_get_error_line(const char **file, int *line);
         |               ^~~~~~~~~~~~~~~~~~
   scripts/extract-cert.c: In function 'drain_openssl_errors':
   scripts/extract-cert.c:59:9: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
      59 |         while (ERR_get_error_line(&file, &line)) {}
         |         ^~~~~
   /usr/include/openssl/err.h:423:15: note: declared here
     423 | unsigned long ERR_get_error_line(const char **file, int *line);
         |               ^~~~~~~~~~~~~~~~~~
   scripts/extract-cert.c: In function 'main':
   scripts/extract-cert.c:124:17: warning: 'ENGINE_load_builtin_engines' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
     124 |                 ENGINE_load_builtin_engines();
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from scripts/extract-cert.c:24:
   /usr/include/openssl/engine.h:358:28: note: declared here
     358 | OSSL_DEPRECATEDIN_3_0 void ENGINE_load_builtin_engines(void);
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   scripts/extract-cert.c:126:17: warning: 'ENGINE_by_id' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
     126 |                 e = ENGINE_by_id("pkcs11");
         |                 ^
   /usr/include/openssl/engine.h:336:31: note: declared here
     336 | OSSL_DEPRECATEDIN_3_0 ENGINE *ENGINE_by_id(const char *id);
         |                               ^~~~~~~~~~~~
   scripts/extract-cert.c:128:17: warning: 'ENGINE_init' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
     128 |                 if (ENGINE_init(e))
         |                 ^~
   /usr/include/openssl/engine.h:620:27: note: declared here
     620 | OSSL_DEPRECATEDIN_3_0 int ENGINE_init(ENGINE *e);
         |                           ^~~~~~~~~~~
   scripts/extract-cert.c:133:25: warning: 'ENGINE_ctrl_cmd_string' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
     133 |                         ERR(!ENGINE_ctrl_cmd_string(e, "PIN", key_pass, 0), "Set PKCS#11 PIN");
         |                         ^~~
   /usr/include/openssl/engine.h:479:5: note: declared here
     479 | int ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg,
         |     ^~~~~~~~~~~~~~~~~~~~~~
   scripts/extract-cert.c:134:17: warning: 'ENGINE_ctrl_cmd' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
     134 |                 ENGINE_ctrl_cmd(e, "LOAD_CERT_CTRL", 0, &parms, NULL, 1);
         |                 ^~~~~~~~~~~~~~~
   /usr/include/openssl/engine.h:450:27: note: declared here
     450 | OSSL_DEPRECATEDIN_3_0 int ENGINE_ctrl_cmd(ENGINE *e, const char *cmd_name,
         |                           ^~~~~~~~~~~~~~~
   In file included from include/linux/compiler_types.h:68,
                    from <command-line>:
   include/asm-generic/mmiowb.h: In function 'mmiowb_set_pending':
>> include/asm-generic/percpu.h:34:38: error: implicit declaration of function 'smp_processor_id'; did you mean 'raw_smp_processor_id'? [-Werror=implicit-function-declaration]
      34 | #define my_cpu_offset per_cpu_offset(smp_processor_id())
         |                                      ^~~~~~~~~~~~~~~~
   include/linux/compiler-gcc.h:58:33: note: in definition of macro 'RELOC_HIDE'
      58 |         (typeof(ptr)) (__ptr + (off));                                  \
         |                                 ^~~
   include/linux/percpu-defs.h:249:9: note: in expansion of macro 'SHIFT_PERCPU_PTR'
     249 |         SHIFT_PERCPU_PTR(ptr, my_cpu_offset);                           \
         |         ^~~~~~~~~~~~~~~~
   include/asm-generic/percpu.h:34:23: note: in expansion of macro 'per_cpu_offset'
      34 | #define my_cpu_offset per_cpu_offset(smp_processor_id())
         |                       ^~~~~~~~~~~~~~
   include/linux/percpu-defs.h:249:31: note: in expansion of macro 'my_cpu_offset'
     249 |         SHIFT_PERCPU_PTR(ptr, my_cpu_offset);                           \
         |                               ^~~~~~~~~~~~~
   include/asm-generic/mmiowb.h:30:33: note: in expansion of macro 'this_cpu_ptr'
      30 | #define __mmiowb_state()        this_cpu_ptr(&__mmiowb_state)
         |                                 ^~~~~~~~~~~~
   include/asm-generic/mmiowb.h:37:35: note: in expansion of macro '__mmiowb_state'
      37 |         struct mmiowb_state *ms = __mmiowb_state();
         |                                   ^~~~~~~~~~~~~~
   arch/riscv/kernel/asm-offsets.c: At top level:
   arch/riscv/kernel/asm-offsets.c:22:6: warning: no previous prototype for 'asm_offsets' [-Wmissing-prototypes]
      22 | void asm_offsets(void)
         |      ^~~~~~~~~~~
   cc1: some warnings being treated as errors
   make[2]: *** [scripts/Makefile.build:112: arch/riscv/kernel/asm-offsets.s] Error 1 shuffle=471186758
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1096: prepare0] Error 2 shuffle=471186758
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:169: sub-make] Error 2 shuffle=471186758
   make: Target 'prepare' not remade because of errors.


vim +34 include/asm-generic/percpu.h

acdac87202a408 travis@sgi.com 2008-01-30  23  
acdac87202a408 travis@sgi.com 2008-01-30  24  /*
acdac87202a408 travis@sgi.com 2008-01-30  25   * Determine the offset for the currently active processor.
acdac87202a408 travis@sgi.com 2008-01-30  26   * An arch may define __my_cpu_offset to provide a more effective
acdac87202a408 travis@sgi.com 2008-01-30  27   * means of obtaining the offset to the per cpu variables of the
acdac87202a408 travis@sgi.com 2008-01-30  28   * current processor.
acdac87202a408 travis@sgi.com 2008-01-30  29   */
acdac87202a408 travis@sgi.com 2008-01-30  30  #ifndef __my_cpu_offset
acdac87202a408 travis@sgi.com 2008-01-30  31  #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id())
1e8352784abaed Hugh Dickins   2008-02-23  32  #endif
1e8352784abaed Hugh Dickins   2008-02-23  33  #ifdef CONFIG_DEBUG_PREEMPT
acdac87202a408 travis@sgi.com 2008-01-30 @34  #define my_cpu_offset per_cpu_offset(smp_processor_id())
acdac87202a408 travis@sgi.com 2008-01-30  35  #else
acdac87202a408 travis@sgi.com 2008-01-30  36  #define my_cpu_offset __my_cpu_offset
acdac87202a408 travis@sgi.com 2008-01-30  37  #endif
acdac87202a408 travis@sgi.com 2008-01-30  38  

:::::: The code at line 34 was first introduced by commit
:::::: acdac87202a408133ee8f7985076de9d2e0dc5ab percpu: make the asm-generic/percpu.h more "generic"

:::::: TO: travis@sgi.com <travis@sgi.com>
:::::: CC: Ingo Molnar <mingo@elte.hu>

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

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

only message in thread, other threads:[~2025-02-25  2:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-25  2:24 [intel-lts:pr/68 1/1] include/asm-generic/percpu.h:34:38: error: implicit declaration of function 'smp_processor_id'; did you mean 'raw_smp_processor_id'? kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.