From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 85E7DC43334 for ; Tue, 28 Jun 2022 07:51:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245635AbiF1HvT (ORCPT ); Tue, 28 Jun 2022 03:51:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244517AbiF1HvR (ORCPT ); Tue, 28 Jun 2022 03:51:17 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE02810E9 for ; Tue, 28 Jun 2022 00:51:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656402676; x=1687938676; h=date:from:to:cc:subject:message-id:mime-version; bh=FJBy6FgvJEwn50wjmSbZUlBDcUm+kWzWPvFi7OvFkYc=; b=P216LkZ+XohM2xk0xSe2IX+0ZBZ8PE5wP1lhzrUFFEMCWwpw7odO+1TJ +LS18dXqZewt/lL2ERQhN8HHQQKGHWVEXqszgPW62DWQf0MJj8SMqqY+W nBbf5LDIElyWdp+FLF/TF4E1kchvvWsHgIVTuVkQOS/JwxFLJEFltEo4V zcAbvzLPCNJsFmLf7jIjnx2aB3opstmQwrsQUXZ88ut49AKN2fdvqjLA0 bAgTh8Atu+6I1XW+j5bVMIJVMnFX9pAHRLMSv9sJ/BB32Uje90PTriZnP lZTIbFuSw2qAJPBrgRuleP7QMJ7SFH1DzLeR8gqOuscmSgI4aUktSXQP7 g==; X-IronPort-AV: E=McAfee;i="6400,9594,10391"; a="262077397" X-IronPort-AV: E=Sophos;i="5.92,227,1650956400"; d="scan'208";a="262077397" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2022 00:51:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,227,1650956400"; d="scan'208";a="717353032" Received: from lkp-server01.sh.intel.com (HELO 68b931ab7ac1) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 28 Jun 2022 00:51:15 -0700 Received: from kbuild by 68b931ab7ac1 with local (Exim 4.95) (envelope-from ) id 1o660A-0009ig-BS; Tue, 28 Jun 2022 07:51:14 +0000 Date: Tue, 28 Jun 2022 15:51:12 +0800 From: kernel test robot To: Oded Gabbay Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [ogabbay:gaudi2 52/61] include/linux/compiler_types.h:352:45: error: call to '__compiletime_assert_472' declared with attribute error: FIELD_PREP: value too large for the field Message-ID: <202206281521.an2oHn7p-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux.git gaudi2 head: a76819ab38942fcb341142a55e9dc81f3eaf08e3 commit: c10382b410679f3d49f3e143c98b21e17877ad60 [52/61] habanalabs: add gaudi2 asic-specific code config: arc-randconfig-r015-20220627 (https://download.01.org/0day-ci/archive/20220628/202206281521.an2oHn7p-lkp@intel.com/config) compiler: arceb-elf-gcc (GCC) 11.3.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://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux.git/commit/?id=c10382b410679f3d49f3e143c98b21e17877ad60 git remote add ogabbay https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux.git git fetch --no-tags ogabbay gaudi2 git checkout c10382b410679f3d49f3e143c98b21e17877ad60 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/misc/habanalabs/gaudi2/gaudi2.c:9758:6: warning: no previous prototype for 'gaudi2_set_asic_funcs' [-Wmissing-prototypes] 9758 | void gaudi2_set_asic_funcs(struct hl_device *hdev) | ^~~~~~~~~~~~~~~~~~~~~ In file included from : In function 'gaudi2_arm_cq_monitor', inlined from 'gaudi2_send_job_to_kdma' at drivers/misc/habanalabs/gaudi2/gaudi2.c:5764:2: >> include/linux/compiler_types.h:352:45: error: call to '__compiletime_assert_472' declared with attribute error: FIELD_PREP: value too large for the field 352 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:333:25: note: in definition of macro '__compiletime_assert' 333 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:352:9: note: in expansion of macro '_compiletime_assert' 352 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^~~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) | ^~~~~~~~~~~~~~~~~~ include/linux/bitfield.h:68:17: note: in expansion of macro 'BUILD_BUG_ON_MSG' 68 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \ | ^~~~~~~~~~~~~~~~ include/linux/bitfield.h:114:17: note: in expansion of macro '__BF_FIELD_CHECK' 114 | __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \ | ^~~~~~~~~~~~~~~~ drivers/misc/habanalabs/gaudi2/gaudi2.c:5748:20: note: in expansion of macro 'FIELD_PREP' 5748 | mon_arm |= FIELD_PREP(DCORE0_SYNC_MNGR_OBJS_MON_ARM_MASK_MASK, mask); | ^~~~~~~~~~ vim +/__compiletime_assert_472 +352 include/linux/compiler_types.h eb5c2d4b45e3d2 Will Deacon 2020-07-21 338 eb5c2d4b45e3d2 Will Deacon 2020-07-21 339 #define _compiletime_assert(condition, msg, prefix, suffix) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 340 __compiletime_assert(condition, msg, prefix, suffix) eb5c2d4b45e3d2 Will Deacon 2020-07-21 341 eb5c2d4b45e3d2 Will Deacon 2020-07-21 342 /** eb5c2d4b45e3d2 Will Deacon 2020-07-21 343 * compiletime_assert - break build and emit msg if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 344 * @condition: a compile-time constant condition to check eb5c2d4b45e3d2 Will Deacon 2020-07-21 345 * @msg: a message to emit if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 346 * eb5c2d4b45e3d2 Will Deacon 2020-07-21 347 * In tradition of POSIX assert, this macro will break the build if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 348 * supplied condition is *false*, emitting the supplied error message if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 349 * compiler has support to do so. eb5c2d4b45e3d2 Will Deacon 2020-07-21 350 */ eb5c2d4b45e3d2 Will Deacon 2020-07-21 351 #define compiletime_assert(condition, msg) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 @352 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) eb5c2d4b45e3d2 Will Deacon 2020-07-21 353 :::::: The code at line 352 was first introduced by commit :::::: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.h :::::: TO: Will Deacon :::::: CC: Will Deacon -- 0-DAY CI Kernel Test Service https://01.org/lkp