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 98E6EC61DA4 for ; Wed, 22 Feb 2023 11:02:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231641AbjBVLCi (ORCPT ); Wed, 22 Feb 2023 06:02:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231386AbjBVLCe (ORCPT ); Wed, 22 Feb 2023 06:02:34 -0500 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3805C38E98 for ; Wed, 22 Feb 2023 03:02:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677063741; x=1708599741; h=date:from:to:cc:subject:message-id:mime-version; bh=RrW1Q6oWcVpnMdKJ1V3iFevgdjdLDN/lg9gJTCYPX3s=; b=N6hgPt7iQxk6y9kzFRsCFoNS+N4HutU9cYhwCPE8FAKU3UBLdpS2ttg4 BD06ui8/oENC/4S4KWqwOShSyP/Vfmb2Ue71gPWxJ+gJV9d/qo7ICYcy1 Ufd17IwxMszuhDNayN9dBiwgJKOutdtZozDLpc36XxTADQ8erjsoAUhae W7Auk5yhcg628oDSMDi6INXOIwgWdHXsJKvOow5cYqnCT5oVSI3VoXCoF pVPrz2jceLuel5l7ssgPcebPqNeffvEa7b1V3x9vVu1Ld384wiHbnKT0T XRUY7OA4vtk8Qhd5ZBCsuXxbqMICiHgYwcqzdD4C+9hqc4pISGThl5DEy g==; X-IronPort-AV: E=McAfee;i="6500,9779,10628"; a="395376916" X-IronPort-AV: E=Sophos;i="5.97,318,1669104000"; d="scan'208";a="395376916" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2023 03:02:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10628"; a="735866279" X-IronPort-AV: E=Sophos;i="5.97,318,1669104000"; d="scan'208";a="735866279" Received: from lkp-server01.sh.intel.com (HELO 3895f5c55ead) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 22 Feb 2023 03:02:10 -0800 Received: from kbuild by 3895f5c55ead with local (Exim 4.96) (envelope-from ) id 1pUmsz-0000HZ-2g; Wed, 22 Feb 2023 11:02:09 +0000 Date: Wed, 22 Feb 2023 19:01:12 +0800 From: kernel test robot To: Karsten Graul Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org Subject: net/smc/smc_llc.c:40:1: warning: alignment 1 of 'struct smc_llc_hdr' is less than 4 Message-ID: <202302221942.MupxsxQU-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Karsten, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 5b7c4cabbb65f5c469464da6c5f614cbd7f730f2 commit: b4ba4652b3f8b7c9bbb5786f8acf4724bdab2196 net/smc: extend LLC layer for SMC-Rv2 date: 1 year, 4 months ago config: arm-buildonly-randconfig-r003-20230222 (https://download.01.org/0day-ci/archive/20230222/202302221942.MupxsxQU-lkp@intel.com/config) compiler: arm-linux-gnueabi-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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b4ba4652b3f8b7c9bbb5786f8acf4724bdab2196 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout b4ba4652b3f8b7c9bbb5786f8acf4724bdab2196 # 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=arm olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash arch/arm/mach-pxa/ drivers/net/ethernet/google/gve/ drivers/net/ethernet/intel/i40e/ drivers/net/ethernet/intel/iavf/ net/smc/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202302221942.MupxsxQU-lkp@intel.com/ All warnings (new ones prefixed by >>): >> net/smc/smc_llc.c:40:1: warning: alignment 1 of 'struct smc_llc_hdr' is less than 4 [-Wpacked-not-aligned] 40 | } __packed; /* format defined in | ^ In file included from : In function 'smc_llc_add_pending_send', inlined from 'smc_llc_send_message' at net/smc/smc_llc.c:760:7: include/linux/compiler_types.h:322:45: error: call to '__compiletime_assert_550' declared with attribute error: must increase SMC_WR_BUF_SIZE to at least sizeof(struct smc_llc_msg) 322 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:303:25: note: in definition of macro '__compiletime_assert' 303 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:322:9: note: in expansion of macro '_compiletime_assert' 322 | _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) | ^~~~~~~~~~~~~~~~~~ net/smc/smc_llc.c:409:9: note: in expansion of macro 'BUILD_BUG_ON_MSG' 409 | BUILD_BUG_ON_MSG( | ^~~~~~~~~~~~~~~~ include/linux/compiler_types.h:322:45: error: call to '__compiletime_assert_551' declared with attribute error: must adapt SMC_WR_TX_SIZE to sizeof(struct smc_llc_msg); if not all smc_wr upper layer protocols use the same message size any more, must start to set link->wr_tx_sges[i].length on each individual smc_wr_tx_send() 322 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:303:25: note: in definition of macro '__compiletime_assert' 303 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:322:9: note: in expansion of macro '_compiletime_assert' 322 | _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) | ^~~~~~~~~~~~~~~~~~ net/smc/smc_llc.c:412:9: note: in expansion of macro 'BUILD_BUG_ON_MSG' 412 | BUILD_BUG_ON_MSG( | ^~~~~~~~~~~~~~~~ In function 'smc_llc_add_pending_send', inlined from 'smc_llc_send_confirm_rkey' at net/smc/smc_llc.c:492:7: include/linux/compiler_types.h:322:45: error: call to '__compiletime_assert_550' declared with attribute error: must increase SMC_WR_BUF_SIZE to at least sizeof(struct smc_llc_msg) 322 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:303:25: note: in definition of macro '__compiletime_assert' 303 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:322:9: note: in expansion of macro '_compiletime_assert' 322 | _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) | ^~~~~~~~~~~~~~~~~~ net/smc/smc_llc.c:409:9: note: in expansion of macro 'BUILD_BUG_ON_MSG' 409 | BUILD_BUG_ON_MSG( | ^~~~~~~~~~~~~~~~ include/linux/compiler_types.h:322:45: error: call to '__compiletime_assert_551' declared with attribute error: must adapt SMC_WR_TX_SIZE to sizeof(struct smc_llc_msg); if not all smc_wr upper layer protocols use the same message size any more, must start to set link->wr_tx_sges[i].length on each individual smc_wr_tx_send() 322 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:303:25: note: in definition of macro '__compiletime_assert' 303 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:322:9: note: in expansion of macro '_compiletime_assert' 322 | _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) | ^~~~~~~~~~~~~~~~~~ net/smc/smc_llc.c:412:9: note: in expansion of macro 'BUILD_BUG_ON_MSG' 412 | BUILD_BUG_ON_MSG( | ^~~~~~~~~~~~~~~~ In function 'smc_llc_add_pending_send', inlined from 'smc_llc_add_link_cont' at net/smc/smc_llc.c:833:7: include/linux/compiler_types.h:322:45: error: call to '__compiletime_assert_550' declared with attribute error: must increase SMC_WR_BUF_SIZE to at least sizeof(struct smc_llc_msg) 322 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:303:25: note: in definition of macro '__compiletime_assert' 303 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:322:9: note: in expansion of macro '_compiletime_assert' 322 | _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) | ^~~~~~~~~~~~~~~~~~ net/smc/smc_llc.c:409:9: note: in expansion of macro 'BUILD_BUG_ON_MSG' 409 | BUILD_BUG_ON_MSG( | ^~~~~~~~~~~~~~~~ include/linux/compiler_types.h:322:45: error: call to '__compiletime_assert_551' declared with attribute error: must adapt SMC_WR_TX_SIZE to sizeof(struct smc_llc_msg); if not all smc_wr upper layer protocols use the same message size any more, must start to set link->wr_tx_sges[i].length on each individual smc_wr_tx_send() 322 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:303:25: note: in definition of macro '__compiletime_assert' 303 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:322:9: note: in expansion of macro '_compiletime_assert' 322 | _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) | ^~~~~~~~~~~~~~~~~~ net/smc/smc_llc.c:412:9: note: in expansion of macro 'BUILD_BUG_ON_MSG' 412 | BUILD_BUG_ON_MSG( | ^~~~~~~~~~~~~~~~ In function 'smc_llc_add_pending_send', vim +40 net/smc/smc_llc.c 23 24 struct smc_llc_hdr { 25 struct smc_wr_rx_hdr common; 26 union { 27 struct { 28 u8 length; /* 44 */ 29 #if defined(__BIG_ENDIAN_BITFIELD) 30 u8 reserved:4, 31 add_link_rej_rsn:4; 32 #elif defined(__LITTLE_ENDIAN_BITFIELD) 33 u8 add_link_rej_rsn:4, 34 reserved:4; 35 #endif 36 }; 37 u16 length_v2; /* 44 - 8192*/ 38 }; 39 u8 flags; > 40 } __packed; /* format defined in 41 * IBM Shared Memory Communications Version 2 42 * (https://www.ibm.com/support/pages/node/6326337) 43 */ 44 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests