From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id D41E4C7EE26 for ; Fri, 19 May 2023 10:36:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 43E24900004; Fri, 19 May 2023 06:36:51 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3EDEA900003; Fri, 19 May 2023 06:36:51 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2B5F5900004; Fri, 19 May 2023 06:36:51 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 1A215900003 for ; Fri, 19 May 2023 06:36:51 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id D9020809F1 for ; Fri, 19 May 2023 10:36:50 +0000 (UTC) X-FDA: 80806651380.15.022343E Received: from mail-vs1-f52.google.com (mail-vs1-f52.google.com [209.85.217.52]) by imf04.hostedemail.com (Postfix) with ESMTP id 203B04000D for ; Fri, 19 May 2023 10:36:47 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=linaro.org header.s=google header.b=SrPi8HUS; spf=pass (imf04.hostedemail.com: domain of naresh.kamboju@linaro.org designates 209.85.217.52 as permitted sender) smtp.mailfrom=naresh.kamboju@linaro.org; dmarc=pass (policy=none) header.from=linaro.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1684492608; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=CvfZBCHNWy968u7aLPnp5Zo1XFC9p4K3piymTX5dgXQ=; b=y1ACVhCMyIlwYb3pBE7z8tzRhn3Xx8LrQ4MPbu1h1RWOZuFnPfMLuKAeyMJ4LaJ60VFBAv 3MgXucPvnhfPKdIh5CvVCZ7+w+ezZp7VQPpA6hXCYhYBGmwVp22jWqZKX0P2VQSIjlq3EG D+JBaPH4wSMnypi/r7d4ykTRlI2tKcs= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1684492608; a=rsa-sha256; cv=none; b=UtAeQFRHXC8sO3j79PLgNQNkqQBIlwmiaRYmtHJ4WpKhdDC6gqQKG4FT63/+SOSatmV3eR 7DKbvUOS7ZZAL1oteEo5O3zmYoRXrhfiD5nAvYq0JhiL9GiS8xM6D87tQLk0hw1aRt1vB2 +W/f/4X86Dz+wbiUEnVoy4DHXvLOLdw= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=linaro.org header.s=google header.b=SrPi8HUS; spf=pass (imf04.hostedemail.com: domain of naresh.kamboju@linaro.org designates 209.85.217.52 as permitted sender) smtp.mailfrom=naresh.kamboju@linaro.org; dmarc=pass (policy=none) header.from=linaro.org Received: by mail-vs1-f52.google.com with SMTP id ada2fe7eead31-43485a18d5aso481453137.1 for ; Fri, 19 May 2023 03:36:47 -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=jch8mxtG51ZQ3lrjwl0JXMU9LGTLZsw7LERtimXq0F1P44iizyi5pF8CfOfOikP8rV SorYvnMm3y9LDd8lD5ny5Kn7l8sA0zh79EjnXLYCGX9zDLQEdYrRnHg2UrECYsynddO9 r3XU6LWEwkr7yTWymKGkktAMU/rZN8ueK1s0jpHyTc2WDIkrun10n0Pi1M541iYAA19e tLlCGi14+nrhpsPA+ZUGbBmOwG/CsPm41oJWmreT2X9ro2mHgCuJROLkzxqT969Gp4OB x0Ilrm+TvqLny5xGTNzo9x64ywu8IWOba3hJoqi85+bnYRKcUzibGLbXAtBhe1P4v0ws f/Qw== X-Gm-Message-State: AC+VfDz1gR5jXoAVMe2Nb3owQKMFAs944j/2FBdk+zE8lpe1XcKTHMBa KcgA4A+niBHoAmy+bEuikaVTXoL82o0suVkItYk9GQ== X-Google-Smtp-Source: ACHHUZ63rAyzxMLOLFoCB/0JfXoAYgQfLby0OiaP4zlFx3N/kQ2zIAYTYoMyitVTf5OZIaUyzoTmOfB0OzBZ6p/yH18= 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-Stat-Signature: 7tmxm87rgsr7c8donafdn7uxtr7b6wbp X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 203B04000D X-Rspam-User: X-HE-Tag: 1684492607-541003 X-HE-Meta: U2FsdGVkX18xp1dBzROCRD5ndhjQ9tFI74qmir3FooERJjLFeE60l6qUcJQYPOz3D8DqTgo8r9GUUT2134YvRQrYERnuFQsMTm+zZfIpbr6nLtH3TISce8h3BJ7CM7bouA86u399D99rs5zODdyxlRzX0HvGNtxseXCfWYYtHuADL11US/CmzR1V+CklMKaJr5BjZz4CWHXWxXAzhixNOhS7ekcSTzqaUO9C1JmOtQDzNl9GF4ee6ErVcX1QiWOHUK2hgmVKYiawHuYuwtYqzlc/qaRDPhkSa/n+0okL/Q3EKqnY1G6sbccDvqTzb8xXNRQs0ojQUdf/R0TX/GAz2Xdj3mSnExG7d88lq0hwQKNc7rLPUCzh5HlvUyyNZ+OlsIIHyY+OAiAFwResWw+5z8JFF7Oh/3zOk6YiBF1yhOBBdA14iCCKfbTCsh0HDj5OnOTQJ3rasnohF1FkwnKWAsEjG1wn6DjEn8nGHaVPUVB3dqh5R3y6LAVMtMQf+O2WNBoYGpUUBbzlsY+15xZAO+qbfW0cRCvTbo5LTKyCLSHO9QE/uY+oWYNn4F24L4tW8F+dpDaxrxqlg8zSKMLF6Z+2DA8FryVWJK4O6ZUUNzX0s+1Q9wFUiYEST1Ard7rZZcvRHEv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QMyR46nog5A== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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