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 2D0A9C64EC4 for ; Wed, 8 Mar 2023 14:31:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231349AbjCHObx (ORCPT ); Wed, 8 Mar 2023 09:31:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231959AbjCHOba (ORCPT ); Wed, 8 Mar 2023 09:31:30 -0500 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78FE961302 for ; Wed, 8 Mar 2023 06:31:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678285877; x=1709821877; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=gJDTZyEK3j/ZE8w6WAM+8z7xHyz+7KOG9iq+h+iMPCA=; b=KCMTgf3q674Rkzge2TlUn5yC2LwfjI3hrlDFxrtO7WbpsVeGr2H4vCHu iaz9u69SOEbugkmOZ+OokPMXWGDOme04HjmU2jabxqJEypQfKU3F3OWBH qCuAidy1wN1+JQ/I9mBm0fEFl57isMNz+k2uJ3HIiR5PKF1R53+Oi6QYq IaUNoTFShGgHihGQWzzQPDMgvYOwtCPE1jWOKVqlRPjtkLwlJBd9J06Vs fB/fDua5mK3FbF36Cgvl9mnqMDm/xcCXwOtmLBpwdryFEnMKLanh18S2u lxP6tOF58tB/517z37+MSEmizb48nwbfE2C4OFyKgJku0/9fMHQQqFhMr g==; X-IronPort-AV: E=McAfee;i="6500,9779,10642"; a="338492535" X-IronPort-AV: E=Sophos;i="5.98,244,1673942400"; d="scan'208";a="338492535" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2023 06:30:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10642"; a="820238349" X-IronPort-AV: E=Sophos;i="5.98,244,1673942400"; d="scan'208";a="820238349" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by fmsmga001.fm.intel.com with ESMTP; 08 Mar 2023 06:30:47 -0800 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pZuoY-0002B9-21; Wed, 08 Mar 2023 14:30:46 +0000 Date: Wed, 8 Mar 2023 22:30:04 +0800 From: kernel test robot To: Andrii Nakryiko , bpf@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net Cc: oe-kbuild-all@lists.linux.dev, andrii@kernel.org, kernel-team@meta.com, Tejun Heo Subject: Re: [PATCH v4 bpf-next 4/8] bpf: implement number iterator Message-ID: <202303082250.AUFm2qRJ-lkp@intel.com> References: <20230308035416.2591326-5-andrii@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230308035416.2591326-5-andrii@kernel.org> Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org Hi Andrii, I love your patch! Yet something to improve: [auto build test ERROR on bpf-next/master] url: https://github.com/intel-lab-lkp/linux/commits/Andrii-Nakryiko/bpf-factor-out-fetching-basic-kfunc-metadata/20230308-115539 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master patch link: https://lore.kernel.org/r/20230308035416.2591326-5-andrii%40kernel.org patch subject: [PATCH v4 bpf-next 4/8] bpf: implement number iterator config: nios2-randconfig-r001-20230306 (https://download.01.org/0day-ci/archive/20230308/202303082250.AUFm2qRJ-lkp@intel.com/config) compiler: nios2-linux-gcc (GCC) 12.1.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://github.com/intel-lab-lkp/linux/commit/19acf9ca01e2927a29d3235b3aa73598430dcb70 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Andrii-Nakryiko/bpf-factor-out-fetching-basic-kfunc-metadata/20230308-115539 git checkout 19acf9ca01e2927a29d3235b3aa73598430dcb70 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=nios2 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=nios2 SHELL=/bin/bash kernel/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202303082250.AUFm2qRJ-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from : kernel/bpf/bpf_iter.c: In function 'bpf_iter_num_new': >> include/linux/compiler_types.h:399:45: error: call to '__compiletime_assert_426' declared with attribute error: BUILD_BUG_ON failed: __alignof__(struct bpf_iter_num_kern) != __alignof__(struct bpf_iter_num) 399 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:380:25: note: in definition of macro '__compiletime_assert' 380 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:399:9: note: in expansion of macro '_compiletime_assert' 399 | _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) | ^~~~~~~~~~~~~~~~ kernel/bpf/bpf_iter.c:794:9: note: in expansion of macro 'BUILD_BUG_ON' 794 | BUILD_BUG_ON(__alignof__(struct bpf_iter_num_kern) != __alignof__(struct bpf_iter_num)); | ^~~~~~~~~~~~ vim +/__compiletime_assert_426 +399 include/linux/compiler_types.h eb5c2d4b45e3d2 Will Deacon 2020-07-21 385 eb5c2d4b45e3d2 Will Deacon 2020-07-21 386 #define _compiletime_assert(condition, msg, prefix, suffix) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 387 __compiletime_assert(condition, msg, prefix, suffix) eb5c2d4b45e3d2 Will Deacon 2020-07-21 388 eb5c2d4b45e3d2 Will Deacon 2020-07-21 389 /** eb5c2d4b45e3d2 Will Deacon 2020-07-21 390 * compiletime_assert - break build and emit msg if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 391 * @condition: a compile-time constant condition to check eb5c2d4b45e3d2 Will Deacon 2020-07-21 392 * @msg: a message to emit if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 393 * eb5c2d4b45e3d2 Will Deacon 2020-07-21 394 * In tradition of POSIX assert, this macro will break the build if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 395 * supplied condition is *false*, emitting the supplied error message if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 396 * compiler has support to do so. eb5c2d4b45e3d2 Will Deacon 2020-07-21 397 */ eb5c2d4b45e3d2 Will Deacon 2020-07-21 398 #define compiletime_assert(condition, msg) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 @399 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) eb5c2d4b45e3d2 Will Deacon 2020-07-21 400 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests