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 78567C433F5 for ; Mon, 25 Apr 2022 03:01:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DCB956B00A4; Sun, 24 Apr 2022 23:01:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D79726B00A5; Sun, 24 Apr 2022 23:01:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C42236B00A6; Sun, 24 Apr 2022 23:01:28 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.27]) by kanga.kvack.org (Postfix) with ESMTP id B25756B00A4 for ; Sun, 24 Apr 2022 23:01:28 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 79BF562303 for ; Mon, 25 Apr 2022 03:01:28 +0000 (UTC) X-FDA: 79393900656.12.E5F66FB Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by imf21.hostedemail.com (Postfix) with ESMTP id D392B1C0043 for ; Mon, 25 Apr 2022 03:01:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650855687; x=1682391687; h=date:from:to:cc:subject:message-id:mime-version; bh=10GsUwvy0N+V43ZHsGlCBDMY9DWiz2XH8e4enSSgJmE=; b=mUKv3qo5bvJmiNmWS+D//BdBVY77VOBANLygd8Lt+5vz9ilIFgDYBT4K 9x5K/i1WCAh/6vrV6NGzi37v96lBY6Xc7KV4tniEnUbL5uURDuJ3RTNi1 CiCUaCJ1nIe4TV6RhMycwhJrSYjTHxsXMLbT125znU1G0ZIG+Gq9MHGFx dhbYjO97SZ8aZVgTld7p2py8CHEgxguHTlz/Xr24p4YUXk+YA6aRF76ez d3I/ZMVMXD5rQoxAHHfmaqD7vXUlbVHP8yxE4XL/5X4/h0QMQ0CilABRY T1RuTRr1TqUf22D/f+C6+L32+RwXUKIHbAw5g1QZTPZwaa594QdfW7dip A==; X-IronPort-AV: E=McAfee;i="6400,9594,10327"; a="265288101" X-IronPort-AV: E=Sophos;i="5.90,287,1643702400"; d="scan'208";a="265288101" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2022 20:01:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,287,1643702400"; d="scan'208";a="563900429" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 24 Apr 2022 20:01:24 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1nioyZ-00026I-KU; Mon, 25 Apr 2022 03:01:23 +0000 Date: Mon, 25 Apr 2022 11:01:22 +0800 From: kernel test robot To: Jani Nikula Cc: kbuild-all@lists.01.org, Linux Memory Management List , Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Subject: [linux-next:master 3423/5845] include/linux/compiler_types.h:352:45: error: call to '__compiletime_assert_265' declared with attribute error: BUILD_BUG_ON failed: sizeof(*edid) != EDID_LENGTH Message-ID: <202204251033.jhrKPFXp-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: D392B1C0043 X-Stat-Signature: itecij3u6gqmsrydtm1igoofgi6197tm Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=mUKv3qo5; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf21.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.115) smtp.mailfrom=lkp@intel.com X-Rspam-User: X-HE-Tag: 1650855684-663350 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: e7d6987e09a328d4a949701db40ef63fbb970670 commit: f1e4c916f97f6adc0848515d269b3899661873ce [3423/5845] drm/edid: add EDID block count and size helpers config: arm-buildonly-randconfig-r005-20220424 (https://download.01.org/0day-ci/archive/20220425/202204251033.jhrKPFXp-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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/next/linux-next.git/commit/?id=f1e4c916f97f6adc0848515d269b3899661873ce git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout f1e4c916f97f6adc0848515d269b3899661873ce # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Note: the linux-next/master HEAD e7d6987e09a328d4a949701db40ef63fbb970670 builds fine. It may have been fixed somewhere. All errors (new ones prefixed by >>): In file included from : In function 'edid_block_data', inlined from 'drm_edid_is_valid' at drivers/gpu/drm/drm_edid.c:1905:25: >> include/linux/compiler_types.h:352:45: error: call to '__compiletime_assert_265' declared with attribute error: BUILD_BUG_ON failed: sizeof(*edid) != EDID_LENGTH 352 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:333:25: note: in definition of macro '__compiletime_assert' 333 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:352:9: note: in expansion of macro '_compiletime_assert' 352 | _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) | ^~~~~~~~~~~~~~~~ drivers/gpu/drm/drm_edid.c:1593:9: note: in expansion of macro 'BUILD_BUG_ON' 1593 | BUILD_BUG_ON(sizeof(*edid) != EDID_LENGTH); | ^~~~~~~~~~~~ In function 'edid_block_data', inlined from 'edid_extension_block_data' at drivers/gpu/drm/drm_edid.c:1600:9, inlined from 'drm_for_each_detailed_block' at drivers/gpu/drm/drm_edid.c:2543:19: >> include/linux/compiler_types.h:352:45: error: call to '__compiletime_assert_265' declared with attribute error: BUILD_BUG_ON failed: sizeof(*edid) != EDID_LENGTH 352 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:333:25: note: in definition of macro '__compiletime_assert' 333 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:352:9: note: in expansion of macro '_compiletime_assert' 352 | _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) | ^~~~~~~~~~~~~~~~ drivers/gpu/drm/drm_edid.c:1593:9: note: in expansion of macro 'BUILD_BUG_ON' 1593 | BUILD_BUG_ON(sizeof(*edid) != EDID_LENGTH); | ^~~~~~~~~~~~ In function 'edid_block_data', inlined from 'drm_edid_is_valid' at drivers/gpu/drm/drm_edid.c:1905:25, inlined from 'drm_add_edid_modes' at drivers/gpu/drm/drm_edid.c:5792:15: >> include/linux/compiler_types.h:352:45: error: call to '__compiletime_assert_265' declared with attribute error: BUILD_BUG_ON failed: sizeof(*edid) != EDID_LENGTH 352 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:333:25: note: in definition of macro '__compiletime_assert' 333 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:352:9: note: in expansion of macro '_compiletime_assert' 352 | _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) | ^~~~~~~~~~~~~~~~ drivers/gpu/drm/drm_edid.c:1593:9: note: in expansion of macro 'BUILD_BUG_ON' 1593 | BUILD_BUG_ON(sizeof(*edid) != EDID_LENGTH); | ^~~~~~~~~~~~ In function 'edid_block_data', inlined from 'drm_do_get_edid' at drivers/gpu/drm/drm_edid.c:2179:25: >> include/linux/compiler_types.h:352:45: error: call to '__compiletime_assert_265' declared with attribute error: BUILD_BUG_ON failed: sizeof(*edid) != EDID_LENGTH 352 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:333:25: note: in definition of macro '__compiletime_assert' 333 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:352:9: note: in expansion of macro '_compiletime_assert' 352 | _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) | ^~~~~~~~~~~~~~~~ drivers/gpu/drm/drm_edid.c:1593:9: note: in expansion of macro 'BUILD_BUG_ON' 1593 | BUILD_BUG_ON(sizeof(*edid) != EDID_LENGTH); | ^~~~~~~~~~~~ In function 'edid_block_data', inlined from 'edid_extension_block_data' at drivers/gpu/drm/drm_edid.c:1600:9, inlined from 'drm_find_edid_extension' at drivers/gpu/drm/drm_edid.c:3518:14: >> include/linux/compiler_types.h:352:45: error: call to '__compiletime_assert_265' declared with attribute error: BUILD_BUG_ON failed: sizeof(*edid) != EDID_LENGTH 352 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:333:25: note: in definition of macro '__compiletime_assert' 333 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:352:9: note: in expansion of macro '_compiletime_assert' 352 | _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) | ^~~~~~~~~~~~~~~~ drivers/gpu/drm/drm_edid.c:1593:9: note: in expansion of macro 'BUILD_BUG_ON' 1593 | BUILD_BUG_ON(sizeof(*edid) != EDID_LENGTH); | ^~~~~~~~~~~~ vim +/__compiletime_assert_265 +352 include/linux/compiler_types.h eb5c2d4b45e3d2 Will Deacon 2020-07-21 338 eb5c2d4b45e3d2 Will Deacon 2020-07-21 339 #define _compiletime_assert(condition, msg, prefix, suffix) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 340 __compiletime_assert(condition, msg, prefix, suffix) eb5c2d4b45e3d2 Will Deacon 2020-07-21 341 eb5c2d4b45e3d2 Will Deacon 2020-07-21 342 /** eb5c2d4b45e3d2 Will Deacon 2020-07-21 343 * compiletime_assert - break build and emit msg if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 344 * @condition: a compile-time constant condition to check eb5c2d4b45e3d2 Will Deacon 2020-07-21 345 * @msg: a message to emit if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 346 * eb5c2d4b45e3d2 Will Deacon 2020-07-21 347 * In tradition of POSIX assert, this macro will break the build if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 348 * supplied condition is *false*, emitting the supplied error message if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 349 * compiler has support to do so. eb5c2d4b45e3d2 Will Deacon 2020-07-21 350 */ eb5c2d4b45e3d2 Will Deacon 2020-07-21 351 #define compiletime_assert(condition, msg) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 @352 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) eb5c2d4b45e3d2 Will Deacon 2020-07-21 353 :::::: The code at line 352 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 https://01.org/lkp