Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp273432lqh; Sat, 4 May 2024 00:17:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU1j9B0bEWZntsbBgm2G81IeT6lGxrEpkBXmAzROPehoWL2WEbQWhvQdgx7V4IH+/7i4QN42QR8WwftlPo83eDIY/uZEmv5ryFo9nmZuw== X-Google-Smtp-Source: AGHT+IGZpyQ+QlatfFKrUrUJ5Gm/75LoIvZqBeBb+5z0kCxSoi0KTKrEj7+SMoUh4NpSovH00I0l X-Received: by 2002:a05:6358:7415:b0:186:1eab:832f with SMTP id s21-20020a056358741500b001861eab832fmr4611811rwg.17.1714807027512; Sat, 04 May 2024 00:17:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714807027; cv=pass; d=google.com; s=arc-20160816; b=apqoC0Bw6sbYb5fgiEdYvB2oZj0NvteOYDLHE7/gh6NXEv6Wg8JRqn51pSHJD4EMGz 7wZN43JMMoA/93+DvRax2REZPMW1zEeyZztScQmHW1IfF3stz+eo3DEaBjFtnhjBYQqj DEwv+OUTq99iE90gSeV8w/jqIsKTo/j0RWR9AXJ/MLc+ZQK1uzCNvJMvW14KOufqYArX 7Sll2muMDIDzESW6pe5Xxda+t+aLV5gCFC+gaCGrl5su/Xomq+2Qu+KCz5DjvVbAS5GI jvnv82EFZ4aptODuO+1M+F2gPRSiWOMmDM7EXovsPGXCEjGxFJNi84Mw8xQycx6HlvAB i4Pg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=GOZG/me6WSO9orauegJ1v255Q9X621iHCz04CcVdQFE=; fh=ceVbYpt05EM9pgIPdi8SVNwua1jbsFl5y2OkqQnOQJg=; b=KWU4hfwo4SceWSNga3MUJ3gsnPy1PanLM6rSy93Yos/6r+3NMK8wr4jkFMA90STPAg Xwc+EMBJWpzEcX+boTJYjJQrvFRElePD4W7VLxxa1pqO/EDXxagJ5AUCnnoAshjJUKuv gvtbODeWoTIfobJmZqCHE8cQEsdrBMvhV1dwDoxYdL702G3hy1KIaHIx/AmGl32rqt7C G+XomjlXxKMDBeejHFDxvQOQxQXwNTaVP61/ndfBf28f5/kvSrYN3/25qxGSC01vsndi D4yo3E+vB6ThnGIfqbU48yx5l7ps49VArIAQN9doCEpk6kFSz6pKATlKBRH9AJIRoYCx Z5ew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DmzM3irP; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-168530-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168530-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id s18-20020a656912000000b0061cd65b4356si2807616pgq.826.2024.05.04.00.17.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 00:17:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168530-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DmzM3irP; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-168530-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168530-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 1BCAEB21CA6 for ; Sat, 4 May 2024 07:16:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6CA9C1097B; Sat, 4 May 2024 07:16:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="DmzM3irP" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 572096AB6; Sat, 4 May 2024 07:16:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714806984; cv=none; b=ms/46olCMPGAEdisng5W4U2mgTpzylCzGCUb12sI5jbkcmjlrOjXCEqetaWHDbQb6G1sdwYEZzv6cFUCx4Jle5O/8tfSEUG+s0kiawvt5YIcSFa1dz0ij+Dbuf+43V1UW67aP3lM5Q8CtmpH2cdyCErkPuceWlSGSijtICMRZ1I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714806984; c=relaxed/simple; bh=AGnZTvpBoxJWy6rzbFF15qCrGC/No9YalvIbOMG99Rs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MgR4Q+jALNScMuetw4oHu0QAL+/ArpCzNxF2fnDMkkQ0Q4iKUt3ZuxBpB8/u6TIxRaJ1ZmzJhLDf1URKny6tO5uvaC/mULXEjXKf5xZ1O0+BfcWzDp62Lcj1HABXuOQFgwdk2jELSaWvtY9ST9y2hM/bs3M7xPEAW8aTJfcn36s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=DmzM3irP; arc=none smtp.client-ip=198.175.65.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714806982; x=1746342982; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=AGnZTvpBoxJWy6rzbFF15qCrGC/No9YalvIbOMG99Rs=; b=DmzM3irPxf5jkpT1fsUaVm9lmohRJtpw4QibmaeeK/5+0sDtIvnxBzeu V6po6+hObFkZmntFRhowdZNIdXxHBtTYTOXc+argAWTc2eG/pDvqmlj5h sJBIJDdNGmMs2z3lZYVpUKAHPTZ80ZYOxne5wog/A8RSisravZOwYDkkQ VevGKfccVgT9wymcHlYgUJ4wvpgmmNmJ2mVtLmpS4OTh2AkzeZt95CUMT XKnrkrTkPdWaR1eFoLkxEPjIHpZCVLNxNcSy7yjJFqDKrLQ325KlmZ8si /xQzXJvpqxPOBOvofu4xdGyTqTAMGYOcmZUvysezo1bboFnM/Ys6tKOcY g==; X-CSE-ConnectionGUID: PPgvsPsrQtmHGZYyJ1GzWg== X-CSE-MsgGUID: +HMdSQ2WQSKIU4RR09vVXA== X-IronPort-AV: E=McAfee;i="6600,9927,11063"; a="10742041" X-IronPort-AV: E=Sophos;i="6.07,253,1708416000"; d="scan'208";a="10742041" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2024 00:16:22 -0700 X-CSE-ConnectionGUID: WTNh5QHqQ2KlCLvs5fQhLw== X-CSE-MsgGUID: EDJTmVutShCs4ocV9Ml+nA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,253,1708416000"; d="scan'208";a="58568468" Received: from lkp-server01.sh.intel.com (HELO e434dd42e5a1) ([10.239.97.150]) by orviesa002.jf.intel.com with ESMTP; 04 May 2024 00:16:19 -0700 Received: from kbuild by e434dd42e5a1 with local (Exim 4.96) (envelope-from ) id 1s39d3-000CWm-1u; Sat, 04 May 2024 07:16:17 +0000 Date: Sat, 4 May 2024 15:15:24 +0800 From: kernel test robot To: Sergey Senozhatsky , Andrew Morton , Minchan Kim Cc: 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: <202405041458.j3L25KZg-lkp@intel.com> References: <20240503091823.3616962-9-senozhatsky@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240503091823.3616962-9-senozhatsky@chromium.org> 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: x86_64-rhel-8.3 (https://download.01.org/0day-ci/archive/20240504/202405041458.j3L25KZg-lkp@intel.com/config) compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240504/202405041458.j3L25KZg-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/202405041458.j3L25KZg-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from : drivers/block/zram/zcomp.c: In function 'zcomp_create': >> include/linux/compiler_types.h:449:45: error: call to '__compiletime_assert_419' declared with attribute error: BUILD_BUG_ON failed: ARRAY_SIZE(backends) <= 1 449 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:430:25: note: in definition of macro '__compiletime_assert' 430 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:449:9: note: in expansion of macro '_compiletime_assert' 449 | _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/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG' 50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) | ^~~~~~~~~~~~~~~~ drivers/block/zram/zcomp.c:214:9: note: in expansion of macro 'BUILD_BUG_ON' 214 | BUILD_BUG_ON(ARRAY_SIZE(backends) <= 1); | ^~~~~~~~~~~~ vim +/__compiletime_assert_419 +449 include/linux/compiler_types.h eb5c2d4b45e3d2 Will Deacon 2020-07-21 435 eb5c2d4b45e3d2 Will Deacon 2020-07-21 436 #define _compiletime_assert(condition, msg, prefix, suffix) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 437 __compiletime_assert(condition, msg, prefix, suffix) eb5c2d4b45e3d2 Will Deacon 2020-07-21 438 eb5c2d4b45e3d2 Will Deacon 2020-07-21 439 /** eb5c2d4b45e3d2 Will Deacon 2020-07-21 440 * compiletime_assert - break build and emit msg if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 441 * @condition: a compile-time constant condition to check eb5c2d4b45e3d2 Will Deacon 2020-07-21 442 * @msg: a message to emit if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 443 * eb5c2d4b45e3d2 Will Deacon 2020-07-21 444 * In tradition of POSIX assert, this macro will break the build if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 445 * supplied condition is *false*, emitting the supplied error message if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 446 * compiler has support to do so. eb5c2d4b45e3d2 Will Deacon 2020-07-21 447 */ eb5c2d4b45e3d2 Will Deacon 2020-07-21 448 #define compiletime_assert(condition, msg) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 @449 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) eb5c2d4b45e3d2 Will Deacon 2020-07-21 450 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki