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 01B38C4345F for ; Sat, 4 May 2024 06:55:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E538B6B007B; Sat, 4 May 2024 02:55:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E02EF6B0082; Sat, 4 May 2024 02:55:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CCAC06B0085; Sat, 4 May 2024 02:55:28 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id AEB4C6B007B for ; Sat, 4 May 2024 02:55:28 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 228D0121272 for ; Sat, 4 May 2024 06:55:28 +0000 (UTC) X-FDA: 82079802336.27.A555BC4 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by imf05.hostedemail.com (Postfix) with ESMTP id 23057100008 for ; Sat, 4 May 2024 06:55:23 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=F2dmLoCz; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf05.hostedemail.com: domain of lkp@intel.com designates 192.198.163.19 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=1714805725; 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:in-reply-to:references:references:dkim-signature; bh=Jxw1NPgezMdUfmq0k3lo9ExBAS8K12CXNId2wYlGryM=; b=8YsZYG362C0KM8sUjgSHOpc8+frinbxo663rAgc0tih3z3wugxScUtpCzbG2H8zLpLQCXC prNmtGYR1A3Lb6TVhp+cf4nMlMGYXotDVcd3Fw9k285O501ueWMDoKAPV7alwTjdAN2Yrz 7UQ2OvrFGbV9STnzA5pMvfOQCxFhj1Y= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=F2dmLoCz; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf05.hostedemail.com: domain of lkp@intel.com designates 192.198.163.19 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1714805725; a=rsa-sha256; cv=none; b=Eikbe+9jxH3ziznOUTxj8RWogkEbvRyWrOk7DNfl5DR2xeBMFDDanYvSd0sp/+0RBqtX9P CCiWR0xt65NDlRELZmAYMA9GhllJ1J5GQu+dP6icNdHauEn+xBI1a7VI1q4itIzTAS/VwR VEqb3Lc19d3iHR9oh+jnuqLNTjTu+5Q= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714805724; x=1746341724; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Yn0D36pQGFB9Z5N/ogNbWoLa2KEjQsWkGtuLzv3u+O0=; b=F2dmLoCzjLotZKPBCJGDVqwoVXjR3oGZLRSMgC3CXhWtxrPpj/r4G/xT uCHETraM9N9m75So9wsd5DXEHUKXRkVEembJrAyrB+MzQ99DJEvDWYGF/ QVHTP1r0k75U32hXx1ww8mS0kr9woK23QKW9q5kOljz771fJIhyPg86mL jlJUJ8U+CCXJpa/Rzbrk6rjtxjWUPT6fApJ/3kOZnrNWXAIU4CJAuMTQW v5saQtwxzfQ2ITFt18JGcvznL6081i28V/vnNtONKLB99BbBwyeuTdvg8 ZKrr3etxoc1EAIkmTbskLP/JuSo75RNrIDeZm6Sp+PlZtqwv2scXWbO9v g==; X-CSE-ConnectionGUID: MWlw1Fz3QAay1BMmbzO2Hg== X-CSE-MsgGUID: AScjicIoSOexPjI+s0mHRg== X-IronPort-AV: E=McAfee;i="6600,9927,11063"; a="10497687" X-IronPort-AV: E=Sophos;i="6.07,253,1708416000"; d="scan'208";a="10497687" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 May 2024 23:55:22 -0700 X-CSE-ConnectionGUID: 3dSA0I9IRgmC/HVcZTBYZw== X-CSE-MsgGUID: MG4LmfGMQAOJxy4CtmIt+w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,253,1708416000"; d="scan'208";a="28243294" Received: from lkp-server01.sh.intel.com (HELO e434dd42e5a1) ([10.239.97.150]) by orviesa008.jf.intel.com with ESMTP; 03 May 2024 23:55:20 -0700 Received: from kbuild by e434dd42e5a1 with local (Exim 4.96) (envelope-from ) id 1s39Ij-000CW8-0d; Sat, 04 May 2024 06:55:17 +0000 Date: Sat, 4 May 2024 14:54:41 +0800 From: kernel test robot To: Sergey Senozhatsky , Andrew Morton , Minchan Kim Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Sergey Senozhatsky Subject: Re: [PATCH 08/14] zram: check that backends array has at least one backend Message-ID: <202405041440.UTBQZAaf-lkp@intel.com> References: <20240503091823.3616962-9-senozhatsky@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240503091823.3616962-9-senozhatsky@chromium.org> X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 23057100008 X-Stat-Signature: fo6uo9jea7msrhjw365i9cqx6koegcbq X-Rspam-User: X-HE-Tag: 1714805723-418935 X-HE-Meta: U2FsdGVkX1/b/fIRgfQQ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/vroivIJu8O7oh+EEAj08IwYSrK4sixn8Ci0xGra7Xl4PcH0FT+Wpu3ed/NjGryf+5aQ6HUpgUuLQcn/YhvdAVvdoXDfYMnpQGdOKiNeNWlwT8FnLKmQQTlVJcZcltH1Rw9TdgZqmlcngDXGDZK0rW1JdbJZDwyzQtcmvjlgsTUbNw+k6ZnNXV8Sh7hERr32AiVm4yIllmz72joOEDUg6IXdOhQR6I0evCHQ7R7+rD1NYoD30S/wsB/vOJIzSbna5p18Ar6QwfSrmu2aes3Hha5UlDl/Wvt1rsT4yLLN7mpi5MzGfOJRIstXk3oieHbWtyWIhIr+Q4= 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: List-Subscribe: List-Unsubscribe: Hi Sergey, kernel test robot noticed the following build errors: [auto build test ERROR on axboe-block/for-next] [also build test ERROR on akpm-mm/mm-everything linus/master v6.9-rc6 next-20240503] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Sergey-Senozhatsky/zram-move-from-crypto-API-to-custom-comp-backends-API/20240503-172335 base: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-next patch link: https://lore.kernel.org/r/20240503091823.3616962-9-senozhatsky%40chromium.org patch subject: [PATCH 08/14] zram: check that backends array has at least one backend config: s390-defconfig (https://download.01.org/0day-ci/archive/20240504/202405041440.UTBQZAaf-lkp@intel.com/config) compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 37ae4ad0eef338776c7e2cffb3896153d43dcd90) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240504/202405041440.UTBQZAaf-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/202405041440.UTBQZAaf-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from drivers/block/zram/zcomp.c:12: In file included from include/linux/cpu.h:17: In file included from include/linux/node.h:18: In file included from include/linux/device.h:32: In file included from include/linux/device/driver.h:21: In file included from include/linux/module.h:19: In file included from include/linux/elf.h:6: In file included from arch/s390/include/asm/elf.h:173: In file included from arch/s390/include/asm/mmu_context.h:11: In file included from arch/s390/include/asm/pgalloc.h:18: In file included from include/linux/mm.h:2208: include/linux/vmstat.h:508:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 508 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 509 | item]; | ~~~~ include/linux/vmstat.h:515:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 515 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 516 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ include/linux/vmstat.h:527:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 527 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 528 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ include/linux/vmstat.h:536:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 536 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 537 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ >> drivers/block/zram/zcomp.c:214:2: error: call to '__compiletime_assert_285' declared with 'error' attribute: BUILD_BUG_ON failed: ARRAY_SIZE(backends) <= 1 214 | BUILD_BUG_ON(ARRAY_SIZE(backends) <= 1); | ^ 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:449:2: note: expanded from macro 'compiletime_assert' 449 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:437:2: note: expanded from macro '_compiletime_assert' 437 | __compiletime_assert(condition, msg, prefix, suffix) | ^ include/linux/compiler_types.h:430:4: note: expanded from macro '__compiletime_assert' 430 | prefix ## suffix(); \ | ^ :97:1: note: expanded from here 97 | __compiletime_assert_285 | ^ 5 warnings and 1 error generated. vim +214 drivers/block/zram/zcomp.c 202 203 struct zcomp *zcomp_create(const char *alg) 204 { 205 struct zcomp *comp; 206 int error; 207 208 /* 209 * The backends array has a sentinel NULL value, so the minimum 210 * size is 1. In order to be valid the array, apart from the 211 * sentinel NULL element, should have at least one compression 212 * backend selected. 213 */ > 214 BUILD_BUG_ON(ARRAY_SIZE(backends) <= 1); -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki