Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp977250iog; Fri, 24 Jun 2022 20:11:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sR2yGF5Fq2tMJ8tTVBVCE7eSuce7oglRrvhIWLnZiXx8fPiHyIgLaI58jhnxWL+JJrjACW X-Received: by 2002:a05:6a02:286:b0:40d:86ec:626a with SMTP id bk6-20020a056a02028600b0040d86ec626amr1810285pgb.486.1656126663623; Fri, 24 Jun 2022 20:11:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656126663; cv=none; d=google.com; s=arc-20160816; b=NIxKszlS7yVdaykSx/Zii6B+N30ahKs5BUHBX0QsCu6WI1yE8DgoMuZ3pkUmmQAsZU eKC+ysYluOc1CGaELJjZ34J0Ch8trkuR4E/qiPOX9qSNAdHY+P0b6+7gsqqr2ZeG6GL5 ccSCJvXzJQtnVc/gt0M3RBORGGZq/GAg2kLHqDEXNfbEf4p5OZXa9fanh27O3J+mK+P5 8qboy996qMlERMTsfYfoYKlL3Wj7wEJqnLcY/uZpQW/FcF6FqLSxQCHaaNYP2xOXfE10 plg0BSYevJvRhIqD3TZRCUxoCKE/ZlBlqxTkf6BSC7oLjA0IixXKgt3/fD1MWKob0RF/ nV9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=no+ziDWh1FXD+0lle82+hQEj1xbsjyobiunVoR7Ju4s=; b=DufR126/7sA8H93R8NZt+IvmcpElADlfLTULCegsG2wCc8THdsX9WO996CxQMsprLC SOpEBrDlnpGoshxS241c1rfEMKxAt8bZAVJD742y909TAyyIlXFShprRbn0KNsiGIxJ5 va+ucUzDEp938Mvl1vKv2Wh03YUDgI0lfwxG54Xr689BCW1o/I5X60v91bKnjeCEMgxs VjfE3Yd8btwRJuK813CcK1x+mKKwiyMNo1wecwo7p2nIP8v7puWsP58kAsCIAQAdVCB9 I2E674rByigypXVcXYO7CjPqYOEyFooukLhSXj4J3ul9nzn3JXm5btJO6Gdz3XthRUWw gWVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UN0DEn11; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h2-20020a17090aea8200b001ecb6b82063si4992478pjz.115.2022.06.24.20.10.47; Fri, 24 Jun 2022 20:11:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UN0DEn11; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231713AbiFYCos (ORCPT + 99 others); Fri, 24 Jun 2022 22:44:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229844AbiFYCor (ORCPT ); Fri, 24 Jun 2022 22:44:47 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8AD84756B for ; Fri, 24 Jun 2022 19:44:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656125085; x=1687661085; h=date:from:to:cc:subject:message-id:mime-version; bh=lhf2cpaLyrgMFW/oM/kAcIqZ1W3FB8AGWbSkn2LzutQ=; b=UN0DEn11SOWVW7ULZy6XyNhHmzuEDojxiEqcjWGllk9ST1Ts7A51FCYu iHnKjJr+lJdm3Iq06m9/ycLI028eCT2YTHAgl4oqieAnt/3jYS+L6qMnm hpkdoLJYb9FrTkgHHXbfMv66qL+t2IpkFsb1T3XBY+0cJNWaBUntUObtl wE7TwrSjPYT1O9pkJZ+TXHDUr9nsaH/u8V6vauY1dSzeaflXFpIhKUqtD 6BLGyQuuf9D0uK0jLEgkGW0+7d3yjEYNaimLcTbpRwyoEalzQq9fd2PH4 E2Poa0CGVg2BNrsisRZI3OP6G8lCaFbOKksVc6z04u8S3dRJxb3le4ITb Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10388"; a="367454888" X-IronPort-AV: E=Sophos;i="5.92,221,1650956400"; d="scan'208";a="367454888" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2022 19:44:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,221,1650956400"; d="scan'208";a="731553152" Received: from lkp-server01.sh.intel.com (HELO 68b931ab7ac1) ([10.239.97.150]) by fmsmga001.fm.intel.com with ESMTP; 24 Jun 2022 19:44:44 -0700 Received: from kbuild by 68b931ab7ac1 with local (Exim 4.95) (envelope-from ) id 1o4vmu-0005Bx-4r; Sat, 25 Jun 2022 02:44:44 +0000 Date: Sat, 25 Jun 2022 10:43:58 +0800 From: kernel test robot To: Karsten Graul Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: net/smc/smc_llc.c:26:2: warning: field within 'struct smc_llc_hdr' is less aligned than 'union smc_llc_hdr::(anonymous at net/smc/smc_llc.c:26:2)' and is usually due to 'struct smc_llc_hdr' being packed, which can lead to unaligned accesses Message-ID: <202206240723.OOu0nUgA-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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: 92f20ff72066d8d7e2ffb655c2236259ac9d1c5d commit: b4ba4652b3f8b7c9bbb5786f8acf4724bdab2196 net/smc: extend LLC layer for SMC-Rv2 date: 8 months ago config: arm-randconfig-c002-20220622 (https://download.01.org/0day-ci/archive/20220624/202206240723.OOu0nUgA-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project af6d2a0b6825e71965f3e2701a63c239fa0ad70f) 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 # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # 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=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash net/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> net/smc/smc_llc.c:26:2: warning: field within 'struct smc_llc_hdr' is less aligned than 'union smc_llc_hdr::(anonymous at net/smc/smc_llc.c:26:2)' and is usually due to 'struct smc_llc_hdr' being packed, which can lead to unaligned accesses [-Wunaligned-access] union { ^ 1 warning generated. vim +26 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://01.org/lkp