Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4154009pxv; Mon, 19 Jul 2021 18:38:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4hxoq8/dtejyUUYAhvBk3xVwQKCVHyGjJo5w/RjWHTzlfn2xHyD5QzDbAMqW6RcA6QhER X-Received: by 2002:a5e:9917:: with SMTP id t23mr21488541ioj.158.1626745138373; Mon, 19 Jul 2021 18:38:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626745138; cv=none; d=google.com; s=arc-20160816; b=WFzoGD2KJwU8boYTdx8Kdw1fAouASqHFPhVLlEZdxFxWOSrd9D4KC8S0zckQ+IhvOb Hv71DmWofKOeadz0px5QxSfPSaW8Gfpux2aE984LQrIYRGcOqR28zCUssSyloP7rbG/a E1VEDDAj20tAIb0a5w6pWm0Fa+trqXyOBJHGXPfKBhTGBLrp6ZIO2Yimwxc1nTXjAYAW EsGNrf/1MzmBvvPeJfcu3qdf7MN5n7NmX3CsGaqJU2RQ8dgVzTH5rqWexuPvbyMoQsZS g62r30S7XSmS9lOb67/zs2s/pBEsomS3VHTkvVIQe0/NULe9hUflQA3A94RP9ied25zV /sww== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=TC7lBA6aA/S8yUh0/wY5xzGFF8iow2rsuCNF7kto+/g=; b=Qd9aNf/Bwre+BT8G+NpRIgiQpc2riWMWyt2KLuSL00uWVWl4Qia3zwNe3LSQ5+qhq6 Ug91fuZapWgMDRQ0pq2YtGILyK/QwwwPGyEoEUHpF8STd7JCDYyKZrn1JgIraYbhmiD5 dI6P4chszQ7JcR5e76QWokvVq97BFat/rRH8SS0O3tTtpKFeflTKZXxKl6Palqn1R4au FpLJhl+wgPHVjBSCUfrcgvMwxlyez5+hviQMlyJudBLE/ltc+HPknPNyTTAlZ5zLUElY Y1RGEcPclRxSI6lMSHO4Qac36NXJk6xAKegBDPaMxI9sT3zYpotSIYZ+9evJK9vPnzd8 0SqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=10Pzujzd; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w11si11781047jal.126.2021.07.19.18.38.46; Mon, 19 Jul 2021 18:38:58 -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=@linuxfoundation.org header.s=korg header.b=10Pzujzd; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240882AbhGSO42 (ORCPT + 99 others); Mon, 19 Jul 2021 10:56:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:54384 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244060AbhGSOfx (ORCPT ); Mon, 19 Jul 2021 10:35:53 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 72E9A61003; Mon, 19 Jul 2021 15:16:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626707792; bh=pKqI2pkO70CnS+DtvaX3vs3rypSMeNa91l6XsGr7q9A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=10PzujzdTZzDTfEVd8vW12KqH5e5lP/cZltjAK7O+408VconjZoQRlOFYr0bjtgX0 zxUbWHZ7oYE8mtNw6ewUau3vRFd3uLQdh4iK4s+g2FNo1TCHF7Ubhd1+R8G9D3QKVg lQWhA1thUJBkQUpfkDMQBhuNzZgimotfD1Aw5r5Q= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Christophe Leroy , David Sterba , Sasha Levin Subject: [PATCH 4.14 058/315] btrfs: disable build on platforms having page size 256K Date: Mon, 19 Jul 2021 16:49:07 +0200 Message-Id: <20210719144944.765313066@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210719144942.861561397@linuxfoundation.org> References: <20210719144942.861561397@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 a26c63b4ad68..9dd07eb88455 100644 --- a/fs/btrfs/Kconfig +++ b/fs/btrfs/Kconfig @@ -11,6 +11,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