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 X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 27E78C433E0 for ; Fri, 19 Mar 2021 17:55:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E26EF61992 for ; Fri, 19 Mar 2021 17:55:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230063AbhCSRyz (ORCPT ); Fri, 19 Mar 2021 13:54:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:47318 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230310AbhCSRya (ORCPT ); Fri, 19 Mar 2021 13:54:30 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5BD2961986; Fri, 19 Mar 2021 17:54:26 +0000 (UTC) Date: Fri, 19 Mar 2021 17:54:23 +0000 From: Catalin Marinas To: Naresh Kamboju Cc: Linux-Next Mailing List , open list , lkft-triage@lists.linaro.org, glittao@gmail.com, Marco Elver , Andrew Morton , David Rientjes , Vlastimil Babka , Stephen Rothwell , Arnd Bergmann , Nathan Chancellor , Nick Desaulniers , Peter Zijlstra , Will Deacon , Miguel Ojeda , Borislav Petkov , Luc Van Oostenryck , Masahiro Yamada , clang-built-linux Subject: Re: arm64: compiler_types.h:320:38: error: call to __compiletime_assert_417 Message-ID: <20210319175423.GE6832@arm.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-next@vger.kernel.org On Fri, Mar 19, 2021 at 08:49:07PM +0530, Naresh Kamboju wrote: > [This email landed to Spam for some reason, sending it again with modified > subject] > > While building arm64 kernel modules the following kernel warnings / > errors noticed on linux next 20210318 tag the gcc version is 7.3.0. > Build PASS with gcc-8, gcc-9 and gcc-10. > > In file included from :0:0: > In function 'resiliency_test', > inlined from 'test_slub_init' at lib/test_slub.c:120:2: > include/linux/compiler_types.h:320:38: error: call to > '__compiletime_assert_417' declared with attribute error: BUILD_BUG_ON > failed: KMALLOC_MIN_SIZE > 16 | KMALLOC_SHIFT_HIGH < 10 KMALLOC_MIN_SIZE is 128 on arm64, so commit 1a58eef5def9 ("selftests: add a kselftest for SLUB debugging functionality") breaks the build. The test was previously in mm/slub.c hidden behind macro that no-one enabled. -- Catalin