Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3346508pxv; Sun, 4 Jul 2021 16:11:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnnU1Q63dKN1BKBrBX6K+AXJ/nm+xTsFjXi7FMfI7/Ca6Y637nKziCk0V74a7Xgztn7u3s X-Received: by 2002:a17:906:d1d5:: with SMTP id bs21mr10393682ejb.378.1625440272219; Sun, 04 Jul 2021 16:11:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625440272; cv=none; d=google.com; s=arc-20160816; b=xpaUScTHP9No0mBs5PMybdf6Ta+rH6qHUD4nr0dPN3Zm9eCKYYNphOqquBNs6wW1UY Ksy8JTs/YtoWJvyX23dFAOG8C9zzkxsUpyjDArKmAwvFC5VSFk45v7Fl7ZHj2bLlTSjc +2ZXbOhVtZlEJaYRyh1G7w85NE1MQpTPcsh6XDi98wkbcYnzJj+O3hLWEGMJ/W/ryhql V7RKDxJb7WlP02V62uEiYppEpJ/RC8UiEFLQngdAiOjhUeYlAf2KD0m7+4apZJ6SLAaq ZI89Ua01Vo3KRMC2G1lr1AJeQqjLhe5B5MQ0wvGm1QP8UWvgUPFP37ykMMkX9zFkK9Gr 9jeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ip/Sf8oAN9LtXJ5SylN46bhU0jMA2+F+CU/2TBTK80Y=; b=GvGTHFZiuqjqRHMm8zbMutUGbGqmds6m+KAVcoP7iSpxrLkFAZ4xONrJ6pxzkKO7gw gNT8/BauNS689Q6+0ji37jvOtMndLnAlFpoIm1PmLozCAOkMZqbvziBRUO5SLYbeCPEN ZF7aRnmrRRSI9zJPj6u9DjbyopC7mG1HenrwOhmzcCYa52dOZlRyVFNAkMaPq5aRROAB U5B8QKD1KDgb2YEu1oJeP1N1il3L4x0wGDdC4u5f2lT8/ZwDRQdQfa8uG5WI8BVrO92S IImifproWZJTxlmI4OJ5PZLZWBjGUnXMfn+Iq9r4SJ4KPTgh4QW5+xHokf9QshLxgCX/ ku4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mobURB0s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f3si10030052ejl.557.2021.07.04.16.10.49; Sun, 04 Jul 2021 16:11:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mobURB0s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232631AbhGDXM3 (ORCPT + 99 others); Sun, 4 Jul 2021 19:12:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:48918 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232471AbhGDXKf (ORCPT ); Sun, 4 Jul 2021 19:10:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7351D6193E; Sun, 4 Jul 2021 23:07:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625440075; bh=9brvtHm5P1xX4on/zdIiSZ+3b4pLzhJ4IaEBj2zRwds=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mobURB0sDkIuLL3EKhswJ+x5fG4Da89Gl73mo0xUsaCIGOB7KIaleJ+eOo7tVMBhf kp8hWOtmVnhNVmKypkbaSnerzjvDgtfrMFDfog+VEA2jB9yC24/fN/pc+4nqaaxEqa e2ZsxY1qMsII8NzsYfO1KT/F4odGA0SJeqM5YXIJWlAJcKuVrQqD0PIEC73iHjHlS/ HXu1O6Tj1em7IBdzd+CP7cQEUY7LL3SzPz/ksII+jUISR+5yPOY3Y4Rz8tdXjSqsDD 2B2FYvLprK5aE879/KdzLR3jwg32dNeLQ5TShjbrSxaqBGJr31yyl8/O7/q86yVsgs VhEdjLbVCSJTw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Christophe Leroy , kernel test robot , David Sterba , Sasha Levin , linux-btrfs@vger.kernel.org Subject: [PATCH AUTOSEL 5.12 74/80] btrfs: disable build on platforms having page size 256K Date: Sun, 4 Jul 2021 19:06:10 -0400 Message-Id: <20210704230616.1489200-74-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210704230616.1489200-1-sashal@kernel.org> References: <20210704230616.1489200-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe Leroy [ Upstream commit b05fbcc36be1f8597a1febef4892053a0b2f3f60 ] With a config having PAGE_SIZE set to 256K, BTRFS build fails with the following message include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_791' declared with attribute error: BUILD_BUG_ON failed: (BTRFS_MAX_COMPRESSED % PAGE_SIZE) != 0 BTRFS_MAX_COMPRESSED being 128K, BTRFS cannot support platforms with 256K pages at the time being. There are two platforms that can select 256K pages: - hexagon - powerpc Disable BTRFS when 256K page size is selected. Supporting this would require changes to the subpage mode that's currently being developed. Given that 256K is many times larger than page sizes commonly used and for what the algorithms and structures have been tuned, it's out of scope and disabling build is a reasonable option. Reported-by: kernel test robot Signed-off-by: Christophe Leroy [ update changelog ] Signed-off-by: David Sterba Signed-off-by: Sasha Levin --- fs/btrfs/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/btrfs/Kconfig b/fs/btrfs/Kconfig index 68b95ad82126..520a0f6a7d9e 100644 --- a/fs/btrfs/Kconfig +++ b/fs/btrfs/Kconfig @@ -18,6 +18,8 @@ config BTRFS_FS select RAID6_PQ select XOR_BLOCKS select SRCU + depends on !PPC_256K_PAGES # powerpc + depends on !PAGE_SIZE_256KB # hexagon help Btrfs is a general purpose copy-on-write filesystem with extents, -- 2.30.2