Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2847906pxf; Sun, 21 Mar 2021 08:57:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIRpJ5vfrFF2PCjEuq+3roMNawSEVDB0wZmJzPhCRx4GfIwWtvB842+//9MU2uXBmLzcNc X-Received: by 2002:a17:906:51c3:: with SMTP id v3mr6969111ejk.497.1616342223226; Sun, 21 Mar 2021 08:57:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616342223; cv=pass; d=google.com; s=arc-20160816; b=U2DG3+6pMmWb/dhoS5ZWm3feBqdwASnwPQUxAyarWQCIYNJjARIVwss9t0iDhhOkRg D2igbzj/XDt4FyD9e4kDkn1yCOnjaY80Y8qN9BcN/qD/Si/q/XAoCLqjhafXfULRu30r NLnhRizPVSk6K2lA8Q9LwEo9Y37qs08g8jA+4lUzFkwf9a26NDKdVDp5t2MWXIBxSfdg xsvmZzMSWypvhD3sdgEcFbLvPrh9owRbF7uVu3VzGnNPPOnBbJ2tu+iNE5SiSnITgfYS L/yBKPAKDDf28r/Y5luOjSMKZP1yH68I7kCOPIgxlr9IRrPm08I2nZ+HmpxXR9GoyCXw NC5g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=EM/clA8DCQoBH/pP2E1MT2oWcggNEdEJWVQhF4sSMoA=; b=1CiSruXPocfmOGzz7aV+C9gnnIuhvnFmaADmmjiU3pT4waVPiuvRPGag9yQjjag8SG rfNLplabBuvZEGWhXhahJ1wmBHNLN9t/+prLqk6h+vTvSncti2PKEEoUZHG7u8ryziGY dIikzHYNxxJUm2HT1Vnk6xcN7o5dOx5Kt6mEygnmrtUoR6otptfSnXvQ+Odhjdl88xPN 4eAdXJV0AOOaIlM7rjO4wU/cqG9p8JIGFCwxzVnEf9N/lu0h0TZ2fGTKtEEMCrqAKTHG mQgPCEJLt4cN7licofRtmloJ+TMsWgHhxupxMcmOC0lRgGY80ngHsZYFOztyhCBHo1Eg wkow== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@hartkopp.net header.s=strato-dkim-0002 header.b=qfTEJBfo; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w16si9435932edv.532.2021.03.21.08.56.40; Sun, 21 Mar 2021 08:57:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@hartkopp.net header.s=strato-dkim-0002 header.b=qfTEJBfo; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230010AbhCUOUK (ORCPT + 99 others); Sun, 21 Mar 2021 10:20:10 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.25]:9240 "EHLO mo4-p00-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229840AbhCUOTl (ORCPT ); Sun, 21 Mar 2021 10:19:41 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1616336373; cv=none; d=strato.com; s=strato-dkim-0002; b=lUgqxVmAQR/AZewSv5TFXO0uEcI4CCfN+mAj1ClkrKuaZbMyQ0dgyPGGhbHhF0WeMC aYk+c91zGv8o59653tX1WwdxBkkthRrmt1wEhET5bDKIkQFd7vvrtjhBVHBcbK3R47JA JyvA7A8PWokvKozj7T5rFN3vNZWL35o3+sFEn8q2H7gY3oafTWOb/nXR5/Fot6UNc7yk CJvmuutcUW9/n3ER2HSBdiN2SUm5T0rijl2CI0E9wB18WQd0lotEUwzGxEtkGX3cneeU zY61dl3aoKZ1VfdmjYWUJFLkx8eDclejs4VntL3LkZbXOTPW492tAgRtEz2OVlDlYZmr uESw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1616336373; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:Date:Message-ID:From:References:Cc:To:Subject:Cc:Date: From:Subject:Sender; bh=EM/clA8DCQoBH/pP2E1MT2oWcggNEdEJWVQhF4sSMoA=; b=iiBewLn72ZySpVsE/WKb4yzpQmwy/+Z0gtl8yf4I3AiqfuvjmenY6an5aV8m9S8OTy ma9YkfPRWeoJ7GnBnfWmtKrRZgGBZeyJUfhvhNFshtKP/WgIhB3FIJ0IZ/NEA8bqbgCE zTj2qjTy1zEhMt1Dbe+dcawnqP6+mqSBXEjxJdTcd06wEKdTNVhiNiAGHTUSALT/StUS 5uGtS19drWdWJiLj8RB/glpkV5m6zxSa4hVDsyQ+VEfYtwUGR3+/ATev6/jh1kHLU7O8 +kM0hgSlN/POOIRfFPAM4nDnNFNcyNVGE9XgNjVGHx6rF1TJDJFYM/O7QPs300uUc+lw dDUA== ARC-Authentication-Results: i=1; strato.com; dkim=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1616336373; s=strato-dkim-0002; d=hartkopp.net; h=In-Reply-To:Date:Message-ID:From:References:Cc:To:Subject:Cc:Date: From:Subject:Sender; bh=EM/clA8DCQoBH/pP2E1MT2oWcggNEdEJWVQhF4sSMoA=; b=qfTEJBfoHVT0O/uYMoTSY/e2xNkPLeg0PRp9le6G+q4INCVV1h0tAdR6Z0ohiYkMTP IIwrW8FPY32Trz2SGB7qJ5nJ+gL+Twheup3xscl97U77Vx/RVoTXPzVOIFPPsE2fWkUK RIv0/94odkVvALH76+kOF16HIcbD4q9KOp75gXRUp8MLNu59z8VyjI5gJ2GRCVUqdauZ 4Oqd8+Ba0zaOcFkrMVOToYfljXImQd3B9vkUyjm8McAimx6IhsN6+FtJRxKmygCQuF/L 6QaBKxnDIwbKZ4fKzWpF0txfpKjcGcWKFbbb5LyONlKKDE1wCLaB/RKt8c6K1q8UmMfa g2fw== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":P2MHfkW8eP4Mre39l357AZT/I7AY/7nT2yrDxb8mjG14FZxedJy6qgO1o3PMaViOoLMIVsh5lk6d" X-RZG-CLASS-ID: mo00 Received: from [192.168.50.177] by smtp.strato.de (RZmta 47.21.0 DYNA|AUTH) with ESMTPSA id R01debx2LEJW9aL (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Sun, 21 Mar 2021 15:19:32 +0100 (CET) Subject: Re: include/linux/compiler_types.h:315:38: error: call to '__compiletime_assert_536' declared with attribute error: BUILD_BUG_ON failed: offsetof(struct can_frame, len) != offsetof(struct canfd_frame, len) || offsetof(struct can_frame, data) != offsetof(struc... To: kernel test robot Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Marc Kleine-Budde References: <202103210435.I0fiBGAC-lkp@intel.com> From: Oliver Hartkopp Message-ID: Date: Sun, 21 Mar 2021 15:19:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <202103210435.I0fiBGAC-lkp@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Two reminders in two days? ;-) Did you check my answer here? https://lore.kernel.org/lkml/afffeb73-ba4c-ca2c-75d0-9e7899e5cbe1@hartkopp.net/ And did you try the partly revert? Maybe there's a mismatch in include files - or BUILD_BUG_ON() generally does not work with unions on ARM as assumed here: https://lore.kernel.org/lkml/6e57d5d2-9b88-aee6-fb7a-82e24144d179@hartkopp.net/ In both cases I can not really fix the issue. When the partly revert (suggested above) works, this would be a hack too. Best, Oliver On 20.03.21 21:43, kernel test robot wrote: > Hi Oliver, > > FYI, the error/warning still remains. > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: 812da4d39463a060738008a46cfc9f775e4bfcf6 > commit: c7b74967799b1af52b3045d69d4c26836b2d41de can: replace can_dlc as variable/element for payload length > date: 4 months ago > config: arm-randconfig-r016-20210321 (attached as .config) > compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0 > reproduce (this is a W=1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c7b74967799b1af52b3045d69d4c26836b2d41de > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > git fetch --no-tags linus master > git checkout c7b74967799b1af52b3045d69d4c26836b2d41de > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > > In file included from : > net/can/af_can.c: In function 'can_init': >>> include/linux/compiler_types.h:315:38: error: call to '__compiletime_assert_536' declared with attribute error: BUILD_BUG_ON failed: offsetof(struct can_frame, len) != offsetof(struct canfd_frame, len) || offsetof(struct can_frame, data) != offsetof(struct canfd_frame, data) > 315 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) > | ^ > include/linux/compiler_types.h:296:4: note: in definition of macro '__compiletime_assert' > 296 | prefix ## suffix(); \ > | ^~~~~~ > include/linux/compiler_types.h:315:2: note: in expansion of macro '_compiletime_assert' > 315 | _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' > 50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) > | ^~~~~~~~~~~~~~~~ > net/can/af_can.c:891:2: note: in expansion of macro 'BUILD_BUG_ON' > 891 | BUILD_BUG_ON(offsetof(struct can_frame, len) != > | ^~~~~~~~~~~~ > > > vim +/__compiletime_assert_536 +315 include/linux/compiler_types.h > > eb5c2d4b45e3d2 Will Deacon 2020-07-21 301 > eb5c2d4b45e3d2 Will Deacon 2020-07-21 302 #define _compiletime_assert(condition, msg, prefix, suffix) \ > eb5c2d4b45e3d2 Will Deacon 2020-07-21 303 __compiletime_assert(condition, msg, prefix, suffix) > eb5c2d4b45e3d2 Will Deacon 2020-07-21 304 > eb5c2d4b45e3d2 Will Deacon 2020-07-21 305 /** > eb5c2d4b45e3d2 Will Deacon 2020-07-21 306 * compiletime_assert - break build and emit msg if condition is false > eb5c2d4b45e3d2 Will Deacon 2020-07-21 307 * @condition: a compile-time constant condition to check > eb5c2d4b45e3d2 Will Deacon 2020-07-21 308 * @msg: a message to emit if condition is false > eb5c2d4b45e3d2 Will Deacon 2020-07-21 309 * > eb5c2d4b45e3d2 Will Deacon 2020-07-21 310 * In tradition of POSIX assert, this macro will break the build if the > eb5c2d4b45e3d2 Will Deacon 2020-07-21 311 * supplied condition is *false*, emitting the supplied error message if the > eb5c2d4b45e3d2 Will Deacon 2020-07-21 312 * compiler has support to do so. > eb5c2d4b45e3d2 Will Deacon 2020-07-21 313 */ > eb5c2d4b45e3d2 Will Deacon 2020-07-21 314 #define compiletime_assert(condition, msg) \ > eb5c2d4b45e3d2 Will Deacon 2020-07-21 @315 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) > eb5c2d4b45e3d2 Will Deacon 2020-07-21 316 > > :::::: The code at line 315 was first introduced by commit > :::::: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.h > > :::::: TO: Will Deacon > :::::: CC: Will Deacon > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org >