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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2801EB64DD for ; Fri, 11 Aug 2023 06:05:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3394A6B0071; Fri, 11 Aug 2023 02:05:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2E8786B0072; Fri, 11 Aug 2023 02:05:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1AFF26B0074; Fri, 11 Aug 2023 02:05:39 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 05BDD6B0071 for ; Fri, 11 Aug 2023 02:05:39 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id BB586160996 for ; Fri, 11 Aug 2023 06:05:38 +0000 (UTC) X-FDA: 81110787156.10.684C346 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by imf10.hostedemail.com (Postfix) with ESMTP id 10B7AC000D for ; Fri, 11 Aug 2023 06:05:35 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=V7TG39Au; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf10.hostedemail.com: domain of lkp@intel.com designates 134.134.136.100 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1691733936; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=JOx3saOvDqDgp/76WfIukvil/VRmW9zXq//7K16GfoQ=; b=vMk/qbIBv0m1f/M1v7q7noWci9qszoIJXpIOuLjv0sm+ypdfpNRZ+AmOr16geKgKuynkl7 oBpd8Il7hklxeBtjLo+gaqROluDCjNP9CakUHFeRcF2z1qhXQLTEeZxbm3mVEielAocDIc cwHhZq0GkhIF5hLXM0YDukmtEhC4T80= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=V7TG39Au; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf10.hostedemail.com: domain of lkp@intel.com designates 134.134.136.100 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1691733936; a=rsa-sha256; cv=none; b=7KB991RdrKuH3GC95z5alB4QzNCGBMQKNIbXf04bInxwC89ppXghwUW5FuDcTDg+sQuOj/ zJoYaTds9nLhZeyOh/XUdYAqFVOfHANaL4tQCkkcywGojvkt92Q8S2kbTwx3AmRAEz2VCy 70emKtojF6r/iqUUr5bjVjF2jQb9qeI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691733936; x=1723269936; h=date:from:to:cc:subject:message-id:mime-version; bh=/9zootVvBy//KtZ1tAbkPpmERKwCt8GPpkF0daUkqSE=; b=V7TG39Au9x1K3GHNqy9m/vbCYa1rlRVxE+tTMWSEBY92EzUQMYDKO5W/ YOfXX/HXtH8cGIZpQ24laDweXTarq7LrGRkYeqfQRxAY8/JHXEueFaH4I EP2lwnv8PbNfPkF7IKai0kijLBbh5wmsjaba324MaotKLquGLBfcWA4qS UveJCq+d0mqWPzhriccoV4Lzbc4f4zoclWh2ufcnVytA0x5maNNPtRPbq Iyu/jHFRTaShnRaY6TAXfCq8wiRvgQrPg/3MO9hWDC+VrzC/+4D3eRhLB GMGW1upJZiUGaZ4IV6QMNJ/UwzzHMSf+OVBnwTzkPBMyxTbwHKUilz+T/ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10798"; a="437942489" X-IronPort-AV: E=Sophos;i="6.01,164,1684825200"; d="scan'208";a="437942489" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2023 23:05:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10798"; a="906326738" X-IronPort-AV: E=Sophos;i="6.01,164,1684825200"; d="scan'208";a="906326738" Received: from lkp-server01.sh.intel.com (HELO d1ccc7e87e8f) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 10 Aug 2023 23:05:32 -0700 Received: from kbuild by d1ccc7e87e8f with local (Exim 4.96) (envelope-from ) id 1qULH9-0007YR-39; Fri, 11 Aug 2023 06:05:31 +0000 Date: Fri, 11 Aug 2023 14:04:56 +0800 From: kernel test robot To: WANG Xuerui Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Huacai Chen Subject: [linux-next:master 7415/8441] include/linux/build_bug.h:16:51: error: bit-field '' width not an integer constant Message-ID: <202308111426.3KoBPpal-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 10B7AC000D X-Stat-Signature: fyu61tx7dtcda35dnea691x7emawibx3 X-HE-Tag: 1691733935-91617 X-HE-Meta: U2FsdGVkX19lJhk95PwoCgtOwX0W7GlErCoteSnJFre1s+VsPM91K8wxHOuj5DlzhTYBc+YmIq47oZf4/I8OUzKrmw0vyTDqulIPJDaOdLSoK9bC9Cy8aooxaQz/BNC4YKL5aZB+hXjmoFWpNaNhwTiy2APqWFaiNIj/78S1cyJYvjBqqn18+P5U8auPbp3em/FkMl/Ovxbj8+QfH2YyHdF7C+xSjfrXETSndMVQCAfmLncdviQojoqCIHh9CCdSeEAJ4qOyXrc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9R2Ka8H3iS8KkmRZPNiyTZS+NNp/ZB496/wUaDW4l3RMJHOPMfBIG0VfrtTKmtoOl+3KteCjHfoJ5EFgNXoapCw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 21ef7b1e17d039053edaeaf41142423810572741 commit: e2843c7596e77f4f9b006a1417546231395d0986 [7415/8441] LoongArch: Replace -ffreestanding with finer-grained -fno-builtin's config: loongarch-defconfig (https://download.01.org/0day-ci/archive/20230811/202308111426.3KoBPpal-lkp@intel.com/config) compiler: loongarch64-linux-gcc (GCC) 12.3.0 reproduce: (https://download.01.org/0day-ci/archive/20230811/202308111426.3KoBPpal-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202308111426.3KoBPpal-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from include/linux/irqflags.h:18, from include/linux/spinlock.h:59, from include/linux/mmzone.h:8, from include/linux/gfp.h:7, from include/linux/slab.h:16, from sound/usb/card.c:26: arch/loongarch/include/asm/percpu.h:20:4: error: #error compiler support for the model attribute is necessary when a recent assembler is used 20 | # error compiler support for the model attribute is necessary when a recent assembler is used | ^~~~~ In file included from include/linux/bits.h:21, from include/linux/bitops.h:6, from sound/usb/card.c:23: >> include/linux/build_bug.h:16:51: error: bit-field '' width not an integer constant 16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) | ^ include/linux/compiler.h:231:33: note: in expansion of macro 'BUILD_BUG_ON_ZERO' 231 | #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0])) | ^~~~~~~~~~~~~~~~~ include/linux/kernel.h:56:59: note: in expansion of macro '__must_be_array' 56 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ include/linux/moduleparam.h:517:20: note: in expansion of macro 'ARRAY_SIZE' 517 | = { .max = ARRAY_SIZE(array), .num = nump, \ | ^~~~~~~~~~ include/linux/moduleparam.h:501:9: note: in expansion of macro 'module_param_array_named' 501 | module_param_array_named(name, name, type, nump, perm) | ^~~~~~~~~~~~~~~~~~~~~~~~ sound/usb/card.c:81:1: note: in expansion of macro 'module_param_array' 81 | module_param_array(index, int, NULL, 0444); | ^~~~~~~~~~~~~~~~~~ sound/usb/card.c:63:12: warning: 'index' defined but not used [-Wunused-variable] 63 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | ^~~~~ vim +16 include/linux/build_bug.h bc6245e5efd70c Ian Abbott 2017-07-10 6 bc6245e5efd70c Ian Abbott 2017-07-10 7 #ifdef __CHECKER__ bc6245e5efd70c Ian Abbott 2017-07-10 8 #define BUILD_BUG_ON_ZERO(e) (0) bc6245e5efd70c Ian Abbott 2017-07-10 9 #else /* __CHECKER__ */ bc6245e5efd70c Ian Abbott 2017-07-10 10 /* bc6245e5efd70c Ian Abbott 2017-07-10 11 * Force a compilation error if condition is true, but also produce a 8788994376d84d Rikard Falkeborn 2019-12-04 12 * result (of value 0 and type int), so the expression can be used bc6245e5efd70c Ian Abbott 2017-07-10 13 * e.g. in a structure initializer (or where-ever else comma expressions bc6245e5efd70c Ian Abbott 2017-07-10 14 * aren't permitted). bc6245e5efd70c Ian Abbott 2017-07-10 15 */ 8788994376d84d Rikard Falkeborn 2019-12-04 @16 #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) 527edbc18a70e7 Masahiro Yamada 2019-01-03 17 #endif /* __CHECKER__ */ 527edbc18a70e7 Masahiro Yamada 2019-01-03 18 :::::: The code at line 16 was first introduced by commit :::::: 8788994376d84d627450fd0d67deb6a66ddf07d7 linux/build_bug.h: change type to int :::::: TO: Rikard Falkeborn :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki