Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2186528rwd; Wed, 17 May 2023 06:59:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7YXDf2nNurcDuStVzQDdbOXmr1aCdZUH3Cco6xL23imp5pKoJ7MeK7M74kkbMW5dy4B9Uv X-Received: by 2002:a17:90a:604b:b0:24d:e3dc:4b10 with SMTP id h11-20020a17090a604b00b0024de3dc4b10mr41231801pjm.23.1684331964579; Wed, 17 May 2023 06:59:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684331964; cv=none; d=google.com; s=arc-20160816; b=fz9vQ0AQEzy6elY3VoTzU2KhZotOVvfKqy7p16BJv4rL7kUaprpnBv4IVmd75599am l2CoYvtLL1pjQCL+aJWIvphvX5LFAey3iHSAJSe/MfAQ9cPT50VJsb6a8QK+TQnV2U4j xdKLOJnCVtMma1tOW/mpeU92H40/rU5BxfVhOmKIbexgkArxxzckrj6PwsBYbI/PD0N/ bUojaGvGvoSBJVSBMeB4QxL7iQmtuzFOjgUTFtIsMgb7E8cM4ZCt2JAKaFoyH4LMzTKo rlXE+lx98Q3fMFaJE6fHX4SJwpufEM6CPs0nxyLGcayd5Mo/XAjbOWme3eInj7CmL5XU F5QQ== 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:mime-version :dkim-signature; bh=wx5qxeQeKBEqdde9QKQUuKh6WnmMKonJWNMvVFtbusQ=; b=DvFyrWssskNvsz8kSdRiYWJe7VBN2LSJxrZdwERviBw+7heyCbm66hfRGNYop6J/0C 2Ope9ENvBQuKgfgR6qcewMzlz4FxMRtdepO2BvTCEDuK0mXFFfCiGSU2+LdBQr5nv3hc 4/5hp+bNuS1gUyg1KUIPkY7IXyrGNwFabym/uicVt5eXdqIHmt5iPoJep+AnivuunsBu vCPRMFu88sFFB0WdHkAB65SSdO7Gke36kpWsqZhuspRMCK5y+MvzpjJyQnoLnR8S/nDC s7dw90L9Tk9CWyJs+kSIStW+A91ySjibjBWzlycYtO9SsrqFCZV0gqvDP8wrqXEMcWOV HHAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EUpPA5Iw; 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 i24-20020a17090adc1800b00244883db2c7si1853629pjv.99.2023.05.17.06.59.08; Wed, 17 May 2023 06:59:24 -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=EUpPA5Iw; 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 S231320AbjEQN1J (ORCPT + 99 others); Wed, 17 May 2023 09:27:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229889AbjEQN1I (ORCPT ); Wed, 17 May 2023 09:27:08 -0400 Received: from mail-vs1-xe33.google.com (mail-vs1-xe33.google.com [IPv6:2607:f8b0:4864:20::e33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3CE9A9 for ; Wed, 17 May 2023 06:27:06 -0700 (PDT) Received: by mail-vs1-xe33.google.com with SMTP id ada2fe7eead31-43483520faaso458190137.0 for ; Wed, 17 May 2023 06:27:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684330026; x=1686922026; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=wx5qxeQeKBEqdde9QKQUuKh6WnmMKonJWNMvVFtbusQ=; b=EUpPA5IwWSIxGRUOqWsOvLyTp4i1XI17/5VigHXAf74ZHi3QZcP8fdSXmbGXoCDCSQ 2U3ZKH+rkrnMi+2vCvgqYy1BJYe2TrQDhY7OLiXicu4ah2gEXfUvkrLzUs8PdrBM91VX wd3N7IOps0uMr8Yz0592+ZUkhuy9b+LrSQXgEoxEv8qndehEQJBIRgUwI0JdozwA1lAS fbfqohkW5GK4FQCthQNJZEitw0n+dxoq16eBYCeoCaVa2zWRpbnU/gZK9ndYpavRH5i9 yKz399TOMcvSk1hqbBqIa5P0IZWVv5Kwxrn4W2hUD2FFhuB7IpQGjQ7SQCZptOTW0HhP jVJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684330026; x=1686922026; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=wx5qxeQeKBEqdde9QKQUuKh6WnmMKonJWNMvVFtbusQ=; b=c3aQLxb7VSZyYW4NIzdUE9AIyyuzx7QdXXO3DHcW59iGcZahCAPbJuvbpr7XaE2UNu jj7Dy1nmFf3UQjOg8FFYqliK1UXxB5xfDgUsikEYwl7w6mFiLi0pEacx6bl/MknCUFzI TMZOOFxeWpq+UV3YGy6axMje8pC9EXA5ScxN0RMLhwXJ00N46hdIEPx9E3l+lZPHCoUQ GwaxmRJGCj9mIYEuJcCreGtpAjFSw9tuKgBDXBQGES0+7L0Ugn0QKEwHMKrIJaJlGKP9 pr5abZtqEHhXm638rVeEf3LoDbxBuRJxcc1YWqLRUnwg0cPSsO/vTL5xHTpM6V1NheiN ruAw== X-Gm-Message-State: AC+VfDyHOyITUtgd0lNBXktP1IgwP7X3qEMb5f3awObVuPLZggfYtQLo BxD698ZmGIbJGXfG8o9PNq04YDPDOVRgDY5eVOROMw== X-Received: by 2002:a67:e3bc:0:b0:42f:78d5:d987 with SMTP id j28-20020a67e3bc000000b0042f78d5d987mr15717719vsm.1.1684330025759; Wed, 17 May 2023 06:27:05 -0700 (PDT) MIME-Version: 1.0 From: Naresh Kamboju Date: Wed, 17 May 2023 18:56:54 +0530 Message-ID: Subject: 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 Cc: Ard Biesheuvel , Arnd Bergmann , Anders Roxell , Dan Carpenter , Andrew Morton , David Hildenbrand 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 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 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