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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A67B4EB64DD for ; Wed, 9 Aug 2023 06:30:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229557AbjHIGaF (ORCPT ); Wed, 9 Aug 2023 02:30:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231174AbjHIGaF (ORCPT ); Wed, 9 Aug 2023 02:30:05 -0400 Received: from mail-vk1-xa35.google.com (mail-vk1-xa35.google.com [IPv6:2607:f8b0:4864:20::a35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C66C31BFB for ; Tue, 8 Aug 2023 23:30:03 -0700 (PDT) Received: by mail-vk1-xa35.google.com with SMTP id 71dfb90a1353d-487359fa94eso1025191e0c.1 for ; Tue, 08 Aug 2023 23:30:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691562603; x=1692167403; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=neTmf5P15paOxXzupKMu3RNPlvtFTYN497G//b83UsM=; b=lY1NEIiEUr4uPw84kWrKXa/qzm7f/NO2muz0k589XUGjYkGfxqvFoKk4rxJTaZRDV8 13qp6kkCThe9RUGFqj4slajifw/qTLwA0kapIZDvMNJR7uT5FHwNUCP4k6t057FW0NJD kOx4nwLne8cf+DmHK8yM90DugOvtgFlUliXFWFXfXfIDrFJQAwOh0WuPYswL4P8SSEp/ LF+MAmwVewrUHyQn/gaCoW4aq9vB83qnaHx2rWstAgNKSTtGTR3MJhABy0dV87qgc7XK /GXZqmiBGa1IeUg+OujjHCzNVRR9oM2wsaD8LbNS3pQRwrDei4zELH6iPQhzVSmsEOxZ vq1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691562603; x=1692167403; 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=neTmf5P15paOxXzupKMu3RNPlvtFTYN497G//b83UsM=; b=XZ5pslX3p0QOnBX8XP5dxL++HX6HkabhTKS0UXA/kkte4eO6BvqM+6pEUv/e6b1ptE aaCsIhyAB2prjD/EA6fDDXk7/h4Sl1hkvhvirGWdXXHNKhRz2780iU47EE2o2rQIdE5N 7mM/FR6DO5dh1alGaERKx25hlVH9UhN8hpsiQmPDHlTSbxOZa/4NGminJf7RCk17znMp L9WfCQmFV+TY7As99zB+sUrSYj8p25yH4S3S5/CUzTfdfri0noMNWDA4xyND90XfTMMd VTcwsGM2pr9pEuqJ/KxM/e1QUReHTo8/HW6/ok9/NgPx1FFLrqGKV3EVlA8b/pguE2Z5 E7pQ== X-Gm-Message-State: AOJu0Yw24Vkdslwj5zQBrb1K6OBxXPtMyaGK++f1D6Y50/5KGvqixjEw dQ/6pUGynmtad6fT3xw4jlMwNbp3GFkh2pZ/yYLnZw== X-Google-Smtp-Source: AGHT+IFjZhbcKr3eNydvf6ZMRnd1wQ4W6yXaoahpWXSff3ZmV4KNZ/0/E3kghBQjZDI3KisgUGjuTzJbCuRETv/9jYA= X-Received: by 2002:a67:fbd1:0:b0:447:9a22:2a6 with SMTP id o17-20020a67fbd1000000b004479a2202a6mr1319385vsr.26.1691562602807; Tue, 08 Aug 2023 23:30:02 -0700 (PDT) MIME-Version: 1.0 References: <1ab766fca893588d75590d2faf624eb7d9d27a8a.camel@triops.cz> In-Reply-To: <1ab766fca893588d75590d2faf624eb7d9d27a8a.camel@triops.cz> From: Naresh Kamboju Date: Wed, 9 Aug 2023 11:59:50 +0530 Message-ID: Subject: Re: next: mips: cavium_octeon_defconfig: gcc-8 - dwc3-octeon.c:502:8: include/linux/compiler_types.h:397:38: error: call to '__compiletime_assert_335' declared with attribute error: FIELD_PREP: value too large for the field _compiletime_assert To: Ladislav Michl Cc: Linux-Next Mailing List , linux-usb@vger.kernel.org, linux-mips@vger.kernel.org, lkft-triage@lists.linaro.org, Thinh.Nguyen@synopsys.com, Greg Kroah-Hartman , Arnd Bergmann , Anders Roxell , Thomas Bogendoerfer Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-next@vger.kernel.org On Tue, 8 Aug 2023 at 13:15, Ladislav Michl wrote: > > Hi Naresh, > > On Tue, 2023-08-08 at 12:41 +0530, Naresh Kamboju wrote: > > [My two cents] > > > > While building Linux next-20230808 mips cavium_octeon_defconfig with > > gcc-8 > > failed with below warnings and errors. > > > > Build log: > > ---------- > > > > In function 'dwc3_octeon_setup.isra.4', > > inlined from 'dwc3_octeon_probe' at drivers/usb/dwc3/dwc3- > > octeon.c:502:8: > > include/linux/compiler_types.h:397:38: error: call to > > '__compiletime_assert_335' declared with attribute error: FIELD_PREP: > > value too large for the field > > _compiletime_assert(condition, msg, __compiletime_assert_, > > __COUNTER__) > > ^ > > include/linux/compiler_types.h:378:4: note: in definition of macro > > '__compiletime_assert' > > prefix ## suffix(); \ > > ^~~~~~ > > Not sure what is really going on there. Code compiles even using 32bit > toochains without warnings and such an assignments are used in other > kernel drivers. See for example drivers/cxl/core/hdm.c:534 which is > using the same types. Also > drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c in > rvu_exact_prepare_table_entry... > > Anyway, let me setup gcc-8 toolchain :) For your reference, These are steps to setup toolchain and build with single command, # TuxMake is a command line tool and Python library that provides # portable and repeatable Linux kernel builds across a variety of # architectures, toolchains, kernel configurations, and make targets. # # TuxMake supports the concept of runtimes. # See https://docs.tuxmake.org/runtimes/, for that to work it requires # that you install podman or docker on your system. # # To install tuxmake to your home directory at ~/.local/bin: # pip3 install -U --user tuxmake # # Or install a deb/rpm depending on the running distribution # See https://tuxmake.org/install-deb/ or # https://tuxmake.org/install-rpm/ # # See https://docs.tuxmake.org/ for complete documentation. # Original tuxmake command with fragments listed below. # tuxmake --runtime podman --target-arch mips --toolchain gcc-8 --kconfig cavium_octeon_defconfig tuxmake --runtime podman --target-arch mips --toolchain gcc-8 --kconfig https://storage.tuxsuite.com/public/linaro/lkft/builds/2TgoAZwerJ28UWHyqfQUiaYYhrl/config Steps to reproduce: ------------ tuxmake --runtime podman --target-arch mips --toolchain gcc-8 --kconfig cavium_octeon_defconfig - https://storage.tuxsuite.com/public/linaro/lkft/builds/2TgoAZwerJ28UWHyqfQUiaYYhrl/tuxmake_reproducer.sh - Naresh