Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp716447lqh; Sat, 4 May 2024 21:40:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWhtAdeM/jUoSJUiT74BwUJz6Lak7bzTZanYbEvXdt/ti5IwWofDIi48QueVgKPPNmXaMwdOclXTg3WN30Dw/KU0J2LgPG3JCZlY8NqZg== X-Google-Smtp-Source: AGHT+IFvGrvF/B0Vhy1IR2ovqJEMiCjxToJHzgvQjm0eopaOocJx5azn48GV0+u34gGqPYBhSe1T X-Received: by 2002:a05:6a21:1789:b0:1ac:3b81:2b5a with SMTP id nx9-20020a056a21178900b001ac3b812b5amr10130094pzb.8.1714884013007; Sat, 04 May 2024 21:40:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714884012; cv=pass; d=google.com; s=arc-20160816; b=kY5+fZ3Yb5Y/mC7RCxCMN66bMCq29S1JWSwVmS1U8zWK6WBjjRVBBv2IUobWwKQc+9 QRDvbDbCV8ps3qeMmRDILceZuB3y1dmAYRv1DHWcaieiohAzyLm9UyMz37T7WVHcRJtp 8Aj81dfcrSasHFwDiJH8hU3StI+rPFpf3pE1/3mnRwAOCqFjUy+zweZhR+ikZ9uPwLpD bFIQs04Xa11A44IvmCGY70zwAtxpc6/kuX4xknChPuqZOoB3rf/L1dPljIciIuqJMEUx x6heohC3+dY6u8IqNu2ist2dINwqPB+63lVFPLIOR+c90Ld2b3wTPxaNQPRN8mYJveRx 8MCw== 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=TzpM7FU8Imvm8zuTPXcEgxBeaAl1FWkYeSH3YqD2Xns=; fh=SWG5V6Sx9uFo5Khqyl0Ts/i6q9dIpdd1PJVMAwTjgDY=; b=arv1csbvVVjmW16Fquw4joDt2GK7zHf8epUH2Hm6BdyBh1BQSTfc3OFiri0AVoaUvb Pl1+EXLAWJegu6EA/p6actu1EfxK1Ro45jhPyDyyay5YdglhHadogS5Lo5XIqlsZWa0T pou0VpQrbdFk2ahOM8TvzCfkzdIijcY8uonDqOcM7zS8m4qyucz8avcSJQoB/FEXhFIp J3FEZme4STTT6M6tSOFH+g8qtcjCCGDuNR3slMspSemOpyR9tqOcg3rXqxC3EtIP77RZ k9dWOl+Xvd+BgLQE7OGwfmRryuj4tWK0o5vGxH2e9Uv4wg6j7kqox+Io81ZfNV9JPido PV5g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=OiQLKpa3; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-168883-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168883-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s26-20020a65691a000000b0061b56f70cd5si5175410pgq.107.2024.05.04.21.40.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 21:40:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168883-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=OiQLKpa3; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-168883-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168883-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9FF6B281F10 for ; Sun, 5 May 2024 04:40:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AD77D2914; Sun, 5 May 2024 04:40:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="OiQLKpa3" Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 72BFC15CE for ; Sun, 5 May 2024 04:40:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714884004; cv=none; b=rQogPNc14+vjsBeiioiuJZtvXPtVvAyyq/3IfZkZ9+HNpSxLvqWu8eSRHvq0OvxHjEXZthFDCUuTH859WkLOJqI6rDmvE7c0w+luXxsubf5IzJa21SYvsQTu/CQmeHe9FowlBNfAS6vSz5t4Y1VhXlamgqdiqyJ4Gx93UZyImFc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714884004; c=relaxed/simple; bh=zg1XkJMfhl0NSO0NTG2Ku336zIdH3gENBvcjq01QdDI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kJitrj6QIz9Uh0w3UYCqli8z2z+QpfZA4QFB4j78LZibzhxg8Se4QLKe2Ovq3j6X6nAyI9rpJlTEeHaexP+MMB4g9CpCaRF8/pNZ6/bULo1RYCF2broAVLiLI1fjV16fRgW6iFRcFT2mRu8btHMmxtQh9rIqhlJKfY0VDuwlUi4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=OiQLKpa3; arc=none smtp.client-ip=209.85.214.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1ecd9dab183so24600415ad.1 for ; Sat, 04 May 2024 21:40:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1714884003; x=1715488803; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=TzpM7FU8Imvm8zuTPXcEgxBeaAl1FWkYeSH3YqD2Xns=; b=OiQLKpa3uJLoDH6uGW1rVkG2MrjAs55QzEvNgDRwmHsSX9KRKrKyMnxClP2n0Sc6fR siNY4zTSrJaHSMqNsKFYLldatBGlf35XlCsCDwogMYndmcP0SlFsuvCZ7ApTIbL60Qhr mtHZsTvt3Le36c766TVffKRmiUjB8uHoS4Hbg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714884003; x=1715488803; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=TzpM7FU8Imvm8zuTPXcEgxBeaAl1FWkYeSH3YqD2Xns=; b=FZfRuXVrI/sWLYa3RXhlm/sx9mJxtfKD0ZivW7okyXO1rMC7/j7rAcEvJOZi6buJ6x nKN9QuoUu5kbhsXtVHi9C8zrHb3tf+xoq0cDrZpm0uAEOuuvn6ojC6hKghP2sJz/NKol krXslxaU3gvkPnkxGoZaIXX0UGYFIX96Cc83YFE579xkJhBS9dAJRp9KxFjUw/akm3jy JwnhQ3BZsmz0TkAFYewcACOl6qOfUfs6hZfCF+CkoHN8G3mNr4eGpVYwJ1s9P5rXPWxD WYaTaAkbIOiHacfo4oMkMMvL3kT5uTqHebh9Ancn3nGiqE9kD1kb5sgxWEnpiEFOhpGa 79XQ== X-Forwarded-Encrypted: i=1; AJvYcCWFZBnqEry1STLHWmxoYa+d3KBGMh//7CS0GDmxbYIQNGwQUUIE1ECSsr0bLOh2fgyILWdUMfsI5vaq7dK35gJJEYrGuPYvv1TvqIc6 X-Gm-Message-State: AOJu0YzZyZ7UJsRcfKQx5MwMmqOzfuxtVSUbAi4ruP6ZZ+XBMbAXBKjW 3dHwd/mjZvgST0FgrxsBVB2gEaM0Kjcc8riGyZHUpygG7t09rnEsiOzFFsZIvw== X-Received: by 2002:a17:902:ecc4:b0:1e4:59a2:d7c1 with SMTP id a4-20020a170902ecc400b001e459a2d7c1mr15472258plh.33.1714884002658; Sat, 04 May 2024 21:40:02 -0700 (PDT) Received: from google.com ([2401:fa00:8f:203:8263:3b89:bcee:2ed4]) by smtp.gmail.com with ESMTPSA id r12-20020a170902c60c00b001ec7a1a8702sm5789626plr.271.2024.05.04.21.40.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 21:40:02 -0700 (PDT) Date: Sun, 5 May 2024 13:39:57 +0900 From: Sergey Senozhatsky To: Andrew Morton Cc: Sergey Senozhatsky , kernel test robot , Minchan Kim , llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org Subject: Re: [PATCH 08/14] zram: check that backends array has at least one backend Message-ID: <20240505043957.GA8623@google.com> References: <20240503091823.3616962-9-senozhatsky@chromium.org> <202405041440.UTBQZAaf-lkp@intel.com> <20240504071416.GH14947@google.com> <20240504161004.f5a0aab5e5aa1033d4696c20@linux-foundation.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: <20240504161004.f5a0aab5e5aa1033d4696c20@linux-foundation.org> On (24/05/04 16:10), Andrew Morton wrote: > > On (24/05/04 14:54), kernel test robot wrote: > > > | ~~~~~~~~~~~~~~~~~~~~~~ > > > >> 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); > > > | ^ > > > > So this is what that BUILD_BUG_ON() is supposed to catch. You don't > > have any backends selected in your .config: > > > > # CONFIG_ZRAM_BACKEND_LZO is not set > > # CONFIG_ZRAM_BACKEND_LZ4 is not set > > # CONFIG_ZRAM_BACKEND_LZ4HC is not set > > # CONFIG_ZRAM_BACKEND_ZSTD is not set > > # CONFIG_ZRAM_BACKEND_DEFLATE is not set > > CONFIG_ZRAM_DEF_COMP="unset-value" > > > > Which is invalid configuration because it means that zram has no > > compression enabled. > > We don't want s390 defconfig to be doing this! > > I guess just pick one if none were selected. I'm looking into it. We used to have "zram depends on crypto compression algorithm" : config ZRAM : tristate "Compressed RAM block device support" : depends on BLOCK && SYSFS && MMU : depends on CRYPTO_LZO || CRYPTO_ZSTD || CRYPTO_LZ4 || CRYPTO_LZ4HC || CRYPTO_842 I sort of wanted to change it and make zram select compression algorithm, instead of depending on some comp algorithm being already selected. But I can probably keep the old behaviour : config ZRAM : tristate "Compressed RAM block device support" : depends on BLOCK && SYSFS && MMU : select ZSMALLOC : depends on (LZO_COMPRESS && LZO_DECOMPRESS) || \ : (LZ4_COMPRESS && LZ4_DECOMPRESS) || \ : (LZ4HC_COMPRESS && LZ4_DECOMPRESS) || \ : (ZSTD_COMPRESS && ZSTD_DECOMPRESS) || \ : (ZLIB_DEFLATE && ZLIB_INFLATE)