Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3763371pxv; Mon, 19 Jul 2021 08:12:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUni2s1gB0waeunn0QrApfv/0ygJcFkaTI9ISB7rcKyjpsHQ8VLpk35ZOQt6GIKLbAOMaK X-Received: by 2002:a05:6e02:1d95:: with SMTP id h21mr4538713ila.23.1626707520289; Mon, 19 Jul 2021 08:12:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626707520; cv=none; d=google.com; s=arc-20160816; b=bejPLYhB3Se3jROtLf+0mA0maZLV3/2/eQfd8ZUhpSs9S+NUasA8W5FsINR7awJy9d QgHozyvl0uTVTzsqIkU7/kwm+f91oiwLIEsT6SoY730KYD0apm7WAMujl3meD3XgEzik YD5Hg+3GRI5wUkOtSb+KqjgeekKa03xgscCj9DQptUkqnhZ1w6Rs85ChwRMq3TbXbsQA RTIjAYVcX/oeiR5SByyiKt7GCmej3gayaSPYD9Fb26EtqqVeMMDyuJl8nbhpbW9aHZGs tk6lAfc3fzIV1JT++fSSCcPFpwsmkRq0geuWlxCxY9MIkxRmwxyAprz7ZSf9NmWMH0a7 N1mQ== 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=KUfGzAfEv3ArAo/9wwLsTiY/T7ddfEQJddD4iPbSc0c=; b=GxF9H4UU02cYK7XVCcLLQnjQWL2Cj1ReJUg9g4X6g9IGyOYqKu/XxOTGDH7bIdJh8w juUKk86OEtpxtSGWhidmmZezUqNzDn5E5U00i0q4A3EmsmKMdUo2Bgn7Qm4+MX5F/SN8 Ls1dBoNxjVHiBFETS3mmXUA6unUc9pGujScnogk8dwgg7qe8pYaAt7hdEVXZhX9u+5zD Ys4O5GFZQ9ioPmAsc/G1nTHYhJaORy0fBBbsZS2lysVC+eFWKiDgK25EkOEsihr+H2cv wzODWVPMvfCxMgCnbqkPnaRlPFsy0vAkBBbxJgCqjOOGuZiyPKUKjueU8A2Fp5N/8dwv vlhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cIqmoySX; 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 h12si19040404ild.123.2021.07.19.08.11.48; Mon, 19 Jul 2021 08:12:00 -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=cIqmoySX; 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 S244496AbhGSO3s (ORCPT + 99 others); Mon, 19 Jul 2021 10:29:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:57198 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244298AbhGSOZD (ORCPT ); Mon, 19 Jul 2021 10:25:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B5B8F610A5; Mon, 19 Jul 2021 15:05:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626707142; bh=iH675z0iLoR4ouZjcFqt7YDLzj9VRNuDKSKrS7DDiIo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cIqmoySXFYbXQ4EWzb1zNCLkG26sj6FD+tBUKYbAbR9IKE8a5ynbbeiV3BDILuxWS 6Q76OTN9IwNnAA250fRxlDvtFoIJ81N6ee+eq8cCI9ic6zcKyiMxEOEUqvfJbF9JMK joxqLIwNm3IVCYKJAtmCDEyH+hYD4KKgYmsoRNVw= 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.9 046/245] btrfs: disable build on platforms having page size 256K Date: Mon, 19 Jul 2021 16:49:48 +0200 Message-Id: <20210719144941.887494657@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210719144940.288257948@linuxfoundation.org> References: <20210719144940.288257948@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 80e9c18ea64f..fd6b67c40d9d 100644 --- a/fs/btrfs/Kconfig +++ b/fs/btrfs/Kconfig @@ -9,6 +9,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