Re: [PATCH v4 7/7] Enable Driver compilation in crypto Kconfig and Makefile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Pavitrakumar,

kernel test robot noticed the following build errors:

[auto build test ERROR on 1dcf865d3bf5bff45e93cb2410911b3428dacb78]

url:    https://github.com/intel-lab-lkp/linux/commits/Pavitrakumar-M/Add-SPAcc-Skcipher-support/20240618-123149
base:   1dcf865d3bf5bff45e93cb2410911b3428dacb78
patch link:    https://lore.kernel.org/r/20240618042750.485720-8-pavitrakumarm%40vayavyalabs.com
patch subject: [PATCH v4 7/7] Enable Driver compilation in crypto Kconfig and Makefile
config: riscv-defconfig (https://download.01.org/0day-ci/archive/20240619/202406190117.ogrwpVBI-lkp@xxxxxxxxx/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 78ee473784e5ef6f0b19ce4cb111fb6e4d23c6b2)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240619/202406190117.ogrwpVBI-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/202406190117.ogrwpVBI-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   In file included from drivers/crypto/dwc-spacc/spacc_core.c:6:
   In file included from include/linux/interrupt.h:21:
   In file included from arch/riscv/include/asm/sections.h:9:
   In file included from include/linux/mm.h:2253:
   include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     514 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
>> drivers/crypto/dwc-spacc/spacc_core.c:998:2: error: call to '__compiletime_assert_287' declared with 'error' attribute: BUILD_BUG_ON failed: IS_ENABLED(CONFIG_DEBUG_SG)
     998 |         BUILD_BUG_ON(IS_ENABLED(CONFIG_DEBUG_SG));
         |         ^
   include/linux/build_bug.h:50:2: note: expanded from macro 'BUILD_BUG_ON'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^
   include/linux/build_bug.h:39:37: note: expanded from macro 'BUILD_BUG_ON_MSG'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^
   include/linux/compiler_types.h:487:2: note: expanded from macro 'compiletime_assert'
     487 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^
   include/linux/compiler_types.h:475:2: note: expanded from macro '_compiletime_assert'
     475 |         __compiletime_assert(condition, msg, prefix, suffix)
         |         ^
   include/linux/compiler_types.h:468:4: note: expanded from macro '__compiletime_assert'
     468 |                         prefix ## suffix();                             \
         |                         ^
   <scratch space>:90:1: note: expanded from here
      90 | __compiletime_assert_287
         | ^
>> drivers/crypto/dwc-spacc/spacc_core.c:998:2: error: call to '__compiletime_assert_287' declared with 'error' attribute: BUILD_BUG_ON failed: IS_ENABLED(CONFIG_DEBUG_SG)
   include/linux/build_bug.h:50:2: note: expanded from macro 'BUILD_BUG_ON'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^
   include/linux/build_bug.h:39:37: note: expanded from macro 'BUILD_BUG_ON_MSG'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^
   include/linux/compiler_types.h:487:2: note: expanded from macro 'compiletime_assert'
     487 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^
   include/linux/compiler_types.h:475:2: note: expanded from macro '_compiletime_assert'
     475 |         __compiletime_assert(condition, msg, prefix, suffix)
         |         ^
   include/linux/compiler_types.h:468:4: note: expanded from macro '__compiletime_assert'
     468 |                         prefix ## suffix();                             \
         |                         ^
   <scratch space>:90:1: note: expanded from here
      90 | __compiletime_assert_287
         | ^
   1 warning and 2 errors generated.


vim +998 drivers/crypto/dwc-spacc/spacc_core.c

53fcef670e7764 Pavitrakumar M 2024-06-18   984  
7b7fdb79292ddd Pavitrakumar M 2024-06-18   985  /*
7b7fdb79292ddd Pavitrakumar M 2024-06-18   986   * This hack implements SG chaining in a way that works around some
7b7fdb79292ddd Pavitrakumar M 2024-06-18   987   * limitations of Linux -- the generic sg_chain function fails on ARM, and
7b7fdb79292ddd Pavitrakumar M 2024-06-18   988   * the scatterwalk_sg_chain function creates chains that cannot be DMA mapped
7b7fdb79292ddd Pavitrakumar M 2024-06-18   989   * on x86.  So this one is halfway inbetween, and hopefully works in both
7b7fdb79292ddd Pavitrakumar M 2024-06-18   990   * environments.
7b7fdb79292ddd Pavitrakumar M 2024-06-18   991   *
7b7fdb79292ddd Pavitrakumar M 2024-06-18   992   * Unfortunately, if SG debugging is enabled the scatterwalk code will bail
7b7fdb79292ddd Pavitrakumar M 2024-06-18   993   * on these chains, but it will otherwise work properly.
7b7fdb79292ddd Pavitrakumar M 2024-06-18   994   */
7b7fdb79292ddd Pavitrakumar M 2024-06-18   995  static inline void spacc_sg_chain(struct scatterlist *sg1, int num,
7b7fdb79292ddd Pavitrakumar M 2024-06-18   996  				  struct scatterlist *sg2)
7b7fdb79292ddd Pavitrakumar M 2024-06-18   997  {
7b7fdb79292ddd Pavitrakumar M 2024-06-18  @998  	BUILD_BUG_ON(IS_ENABLED(CONFIG_DEBUG_SG));
7b7fdb79292ddd Pavitrakumar M 2024-06-18   999  	sg_chain(sg1, num, sg2);
7b7fdb79292ddd Pavitrakumar M 2024-06-18  1000  	sg1[num - 1].page_link |= 1;
7b7fdb79292ddd Pavitrakumar M 2024-06-18  1001  }
7b7fdb79292ddd Pavitrakumar M 2024-06-18  1002  

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




[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux