Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2283693rwd; Fri, 19 May 2023 03:44:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ul2/fyAg5GxpOaoUlaFkps4ouLF1rwM9Ab8ZuZZ7BfLyZsRak++mlmLMPlMiEdVFdH362 X-Received: by 2002:a05:6a20:9189:b0:106:9266:4448 with SMTP id v9-20020a056a20918900b0010692664448mr2547339pzd.16.1684493071250; Fri, 19 May 2023 03:44:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684493071; cv=none; d=google.com; s=arc-20160816; b=hnryxXQ7QkSD/wRSJbzY9SVmEMSF0T5PUILhob2zqF0LMdlwRr7EPKx/0qP1h0D6uj KgSWsuFgsf49zHxmKdTViGWN8qe+SBnmsYucDaFqH7tbzDmSf+SGLnTfE+SWOSSv8+KH d2wZLBLjPJU19GSSFv+Bue8j1ZJqUlUo/VD65X9AUV1VHs4cv+B3H8KTyamRyc7GJC9o hpRY1ZpHB04C1UlHYdye2eh1sqDeH6X9XUuUIWZYMe1sR16xtk5wUH52Qe8U+icMV+Bl 3+khnnWClyvanpV1EHUsVhkOoB07aC7pQ5ZoJceflUZBVlrMJVvU4ptbQIn2nZU1wGcR 3Uuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=CvfZBCHNWy968u7aLPnp5Zo1XFC9p4K3piymTX5dgXQ=; b=UvPWcn30F00NgQXaEFEfqViC6XLzRL/pdTYe/DylsRCd+humAztXke7bc42eA8c+zI ERpUQZ1WyGIJfLCxAxzYl3BUO4Y6SDBihUa7QeT3kuDA4J+TcJvbHsKiJv6N6ei0jjxp Dhm/5YGp/X/HRDPgMVlZ6KLrr3ouX0n4yrCYbsLcwGuasJRRXUh1ev8QYIA6gBMjjFip PA6vZG/2Nq895+PQOlt1QSS1AOnqnjEXXzOArWxBgubR8HumaVDYHgaooucs3k46LP3v 0PSpp/LOM8IFKu7AnI/9P1XY9VppwAWc59RaHks4anMtQ8hy3bZEyMdyrOpsZKzLM0F0 PJHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SrPi8HUS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v26-20020aa799da000000b006434e20d023si3774434pfi.399.2023.05.19.03.44.19; Fri, 19 May 2023 03:44:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SrPi8HUS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231764AbjESKiN (ORCPT + 99 others); Fri, 19 May 2023 06:38:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231646AbjESKiI (ORCPT ); Fri, 19 May 2023 06:38:08 -0400 Received: from mail-vk1-xa2d.google.com (mail-vk1-xa2d.google.com [IPv6:2607:f8b0:4864:20::a2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2FBB10D9 for ; Fri, 19 May 2023 03:37:43 -0700 (PDT) Received: by mail-vk1-xa2d.google.com with SMTP id 71dfb90a1353d-45395fe78dbso488053e0c.0 for ; Fri, 19 May 2023 03:37:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684492607; x=1687084607; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=CvfZBCHNWy968u7aLPnp5Zo1XFC9p4K3piymTX5dgXQ=; b=SrPi8HUSI2m1CwkatT1ojkj/3CV1aCEXdgE1hKoAZBdLC6Nkn8X4hPWyA7hU1sWZjx CTj06vpMZo0f3Dk49O1pBAtGzAVEO3d5kT8rIFxQGdxAXksVwdNZZwI+8uPGdH4sdYrE UB23OC3YbU2Uk3Wroa/AbUdhOcfMFRXA4zox2zuc9SNRyzAqfBgBloycKhqv0zufTqY0 63UecnKxmpSGz5KhwH3Gg8p9c7SvvIHwpYf8gIXSE169qlTP77/7U2Ym/9J9ys+FuBjT iXuWldLGtGsuYWUkmzOnsgMp+uQ4N55t7cpjUdYrAbHRDwqcuBwonAnBzEGHzaMfx1Wa wKHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684492607; x=1687084607; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CvfZBCHNWy968u7aLPnp5Zo1XFC9p4K3piymTX5dgXQ=; b=f2O7wjnXChLOQhjUhBfUIgJv6aPSm873QMCAwBaDhUO8uai2ubckpbMr2CyaQZdHQR 3U/vZKcIYWEd0ZojC/4Jd7WXg+gP3hC0uxHqeBw33aINk6rVzuoSPuBjUrMtPfmkyja7 Gu66NXA2ZKJVqDE47e/EEiHmiyYq5wkpgB0q9wT6f11+fwZvW3FfiQVY6tx4nmTerhxg sUWATnuxHmSovZXGftJxgafJ8JB0axMFpXy0eYEq/Lycz/2gXPJRLNNmF8rNW8cWJ2cv xIBQIkA/4Mbq00dbnC5ZlcqMhESn2UOIrdkxezmiQFoM2+hLJ+CFf7Oq3XjGM3vEDyW0 6XWQ== X-Gm-Message-State: AC+VfDwCE6zX2m6JvDJOeKF+mk/hFRFrRUsSzjd8DjWYqRqNtDA6b1bd 5nZx0ii94CNbn2wWW2oXc0JVI0bUIEKkvM7f9usqGA== X-Received: by 2002:a05:6102:2143:b0:437:e2b7:4fab with SMTP id h3-20020a056102214300b00437e2b74fabmr857761vsg.0.1684492606975; Fri, 19 May 2023 03:36:46 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Naresh Kamboju Date: Fri, 19 May 2023 16:06:35 +0530 Message-ID: Subject: Re: next: arm64: build/gcc-12-lkftconfig-64k_page_size - error: call to '__compiletime_assert_494' declared with attribute error: BUILD_BUG_ON failed: (((16 - 3) * (4 - (2)) + 3)-16) > 10 To: Linux-Next Mailing List , open list , linux-mm , Linux ARM , lkft-triage@lists.linaro.org, Catalin Marinas Cc: Ard Biesheuvel , Arnd Bergmann , Dan Carpenter , Andrew Morton , David Hildenbrand , Will Deacon , Mike Rapoport , jforbes@fedoraproject.org, Anders Roxell Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 17 May 2023 at 18:56, Naresh Kamboju wrote: > > Following arm64 builds failed on Linux next-20230517. > > - build/gcc-12-lkftconfig-64k_page_size > - build/gcc-11-lkftconfig-64k_page_size > > Reported-by: Linux Kernel Functional Testing > > Build log: > ====== > include/asm-generic/div64.h:46:27: warning: conversion from 'long > unsigned int' to 'uint32_t' {aka 'unsigned int'} changes value from > '4398046511104' to '0' [-Woverflow] > 46 | uint32_t __base = (base); \ > | ^ > include/linux/math.h:40:44: note: in expansion of macro 'do_div' > 40 | ({ unsigned long long _tmp = (ll); do_div(_tmp, d); _tmp; }) > | ^~~~~~ > include/linux/math.h:43:9: note: in expansion of macro 'DIV_ROUND_DOWN_ULL' > 43 | DIV_ROUND_DOWN_ULL((unsigned long long)(ll) + (d) - 1, (d)) > | ^~~~~~~~~~~~~~~~~~ > arch/arm64/kvm/mmu.c:95:22: note: in expansion of macro 'DIV_ROUND_UP_ULL' > 95 | n += DIV_ROUND_UP_ULL(range, PUD_SIZE); > | ^~~~~~~~~~~~~~~~ > In file included from : > mm/huge_memory.c: In function 'hugepage_init': > include/linux/compiler_types.h:397:45: error: call to > '__compiletime_assert_494' declared with attribute error: BUILD_BUG_ON > failed: (((16 - 3) * (4 - (2)) + 3)-16) > 10 > 397 | _compiletime_assert(condition, msg, > __compiletime_assert_, __COUNTER__) > | ^ > include/linux/compiler_types.h:378:25: note: in definition of macro > '__compiletime_assert' > 378 | prefix ## suffix(); > \ > | ^~~~~~ > include/linux/compiler_types.h:397:9: note: in expansion of macro > '_compiletime_assert' > 397 | _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) > | ^~~~~~~~~~~~~~~~ > include/linux/bug.h:24:25: note: in expansion of macro 'BUILD_BUG_ON' > 24 | BUILD_BUG_ON(cond); \ > | ^~~~~~~~~~~~ > mm/huge_memory.c:470:9: note: in expansion of macro 'MAYBE_BUILD_BUG_ON' > 470 | MAYBE_BUILD_BUG_ON(HPAGE_PMD_ORDER > MAX_ORDER); > | ^~~~~~~~~~~~~~~~~~ > make[3]: *** [scripts/Makefile.build:252: mm/huge_memory.o] Error 1 Linux next 20230517 arm64 64k page size build failed. - CONFIG_ARM64_64K_PAGES=y Reported-by: Linux Kernel Functional Testing Anders bisected and found the following is the first bad commit. commit fd2d1cb8c5454888f67aba4c6218e30106862070 Author: Catalin Marinas Date: Wed May 3 13:33:42 2023 +0100 arm64: Make the ARCH_FORCE_MAX_ORDER config input prompt unconditional Commit 34affcd7577a ("arm64: drop ranges in definition of ARCH_FORCE_MAX_ORDER") dropped the ranges from the config entry and introduced an EXPERT condition on the input prompt instead. This change may affect some distro kernels that change ARCH_FORCE_MAX_ORDER but do not want to enable EXPERT. Drop EXPERT from the input prompt together with the (ARM64_4K_PAGES || ARM64_16K_PAGES) condition as the latter no longer makes sense after the ranges were removed. The latter makes all the page size configurations consistent w.r.t. ARCH_FORCE_MAX_ORDER. Fixes: 34affcd7577a ("arm64: drop ranges in definition of ARCH_FORCE_MAX_ORDER") Signed-off-by: Catalin Marinas Reported-by: Justin M. Forbes Cc: Will Deacon Cc: Mike Rapoport Cc: Andrew Morton Acked-by: Justin M. Forbes Acked-by: Mike Rapoport (IBM) Link: https://lore.kernel.org/r/20230503123342.90538-1-catalin.marinas@arm.com Signed-off-by: Will Deacon arch/arm64/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- Linaro LKFT https://lkft.linaro.org > > > logs: > ===== > - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20230517/testrun/17031010/suite/build/test/gcc-12-lkftconfig-64k_page_size/log > - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20230517/testrun/17031010/suite/build/test/gcc-12-lkftconfig-64k_page_size/history/ > - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20230517/testrun/17031010/suite/build/test/gcc-12-lkftconfig-64k_page_size/details/ > > > Steps to reproduce: > ==== > # To install tuxmake on your system globally: > # sudo pip3 install -U tuxmake > # > # See https://docs.tuxmake.org/ for complete documentation. > # Original tuxmake command with fragments listed below. > # tuxmake \ > --runtime podman \ > --target-arch arm64 \ > --toolchain gcc-12 \ > --kconfig defconfig \ > --kconfig-add https://raw.githubusercontent.com/Linaro/meta-lkft/kirkstone/meta/recipes-kernel/linux/files/lkft.config > \ > --kconfig-add https://raw.githubusercontent.com/Linaro/meta-lkft/kirkstone/meta/recipes-kernel/linux/files/lkft-crypto.config > \ > --kconfig-add https://raw.githubusercontent.com/Linaro/meta-lkft/kirkstone/meta/recipes-kernel/linux/files/distro-overrides.config > \ > --kconfig-add https://raw.githubusercontent.com/Linaro/meta-lkft/kirkstone/meta/recipes-kernel/linux/files/systemd.config > \ > --kconfig-add https://raw.githubusercontent.com/Linaro/meta-lkft/kirkstone/meta/recipes-kernel/linux/files/virtio.config > \ > --kconfig-add CONFIG_ARM64_MODULE_PLTS=y \ > --kconfig-add CONFIG_SYN_COOKIES=y \ > --kconfig-add CONFIG_SCHEDSTATS=y \ > --kconfig-add CONFIG_ARM64_64K_PAGES=y > > OR > > tuxmake \ > --runtime podman \ > --target-arch arm64 \ > --toolchain gcc-12 \ > --kconfig https://storage.tuxsuite.com/public/linaro/lkft/builds/2PtylMMZpP2yGvgCnhE5SZngOYJ/config > > > -- > Linaro LKFT > https://lkft.linaro.org