From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 209082C80 for ; Tue, 8 Feb 2022 17:55:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644342906; x=1675878906; h=date:from:to:cc:subject:message-id:mime-version; bh=Y4sTN7TwueJtFfnhcW0aa6IWG7MJDn7ZjFeJtWWwxf4=; b=lSIXAPr3wOXUFDEJACq/zHAoMtxR5DMK78b0tgR3E9o2f/n93ixkqpT7 R9zmqx2TdKn1YG1P67aGHLN6iMJLE3xaN1pBsgscPOJ/J92dtt2PwCxFt tGXWNEAALX5fAI5OemojjVX+f6OCyEINNtfxgKVawYKDzZct29xN/m53Q nUJuoq5pfDikDbsrSbncKxJ8RlvpmRDKYa64VSkf/6gvdXnwn5IriHdxC oIbcTbP5IG2WECk+Y110GN7/mEaGV6eoFY2Z2PdTWyHwV9tcBb7hxfWd9 VJ+0Rbto8KeTTlLC1fOxCT/dqvKc5rAa3rIhhfWE2jGA2usK5ph8oExkz w==; X-IronPort-AV: E=McAfee;i="6200,9189,10252"; a="246596603" X-IronPort-AV: E=Sophos;i="5.88,353,1635231600"; d="scan'208";a="246596603" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2022 09:55:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,353,1635231600"; d="scan'208";a="482022665" Received: from lkp-server01.sh.intel.com (HELO d95dc2dabeb1) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 08 Feb 2022 09:55:01 -0800 Received: from kbuild by d95dc2dabeb1 with local (Exim 4.92) (envelope-from ) id 1nHUhg-0000Y9-HA; Tue, 08 Feb 2022 17:55:00 +0000 Date: Wed, 9 Feb 2022 01:54:10 +0800 From: kernel test robot To: Quinn Tran Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, "Martin K. Petersen" , Hannes Reinecke , Himanshu Madhani , Larry Wisneski , Duane Grigsby , Rick Hicksted Jr , Nilesh Javali Subject: drivers/scsi/qla2xxx/qla_edif_bsg.h:93:12: warning: field remote_pid within 'struct app_pinfo_req' is less aligned than 'port_id_t' and is usually due to 'struct app_pinfo_req' being packed, which can lead to unaligned accesses Message-ID: <202202090106.U3d0uaWb-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Hi Quinn, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 555f3d7be91a873114c9656069f1a9fa476ec41a commit: 7878f22a2e03b69baf792f74488962981a1c9547 scsi: qla2xxx: edif: Add getfcinfo and statistic bsgs date: 7 months ago config: arm-randconfig-r006-20220208 (https://download.01.org/0day-ci/archive/20220209/202202090106.U3d0uaWb-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project e8bff9ae54a55b4dbfeb6ba55f723abbd81bf494) 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=7878f22a2e03b69baf792f74488962981a1c9547 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 7878f22a2e03b69baf792f74488962981a1c9547 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/scsi/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from drivers/scsi/qla2xxx/qla_edif.c:6: In file included from drivers/scsi/qla2xxx/qla_def.h:34: include/uapi/scsi/scsi_bsg_fc.h:280:4: warning: field rqst_data within 'struct fc_bsg_request' is less aligned than 'union (unnamed union at include/uapi/scsi/scsi_bsg_fc.h:271:2)' and is usually due to 'struct fc_bsg_request' being packed, which can lead to unaligned accesses [-Wunaligned-access] } rqst_data; ^ In file included from drivers/scsi/qla2xxx/qla_edif.c:6: In file included from drivers/scsi/qla2xxx/qla_def.h:74: In file included from drivers/scsi/qla2xxx/qla_bsg.h:298: >> drivers/scsi/qla2xxx/qla_edif_bsg.h:93:12: warning: field remote_pid within 'struct app_pinfo_req' is less aligned than 'port_id_t' and is usually due to 'struct app_pinfo_req' being packed, which can lead to unaligned accesses [-Wunaligned-access] port_id_t remote_pid; ^ 2 warnings generated. vim +93 drivers/scsi/qla2xxx/qla_edif_bsg.h 7ebb336e45ef1c Quinn Tran 2021-06-23 89 7ebb336e45ef1c Quinn Tran 2021-06-23 90 struct app_pinfo_req { 7ebb336e45ef1c Quinn Tran 2021-06-23 91 struct app_id app_info; 7ebb336e45ef1c Quinn Tran 2021-06-23 92 uint8_t num_ports; 7ebb336e45ef1c Quinn Tran 2021-06-23 @93 port_id_t remote_pid; 7ebb336e45ef1c Quinn Tran 2021-06-23 94 uint8_t reserved[VND_CMD_APP_RESERVED_SIZE]; 7ebb336e45ef1c Quinn Tran 2021-06-23 95 } __packed; 7ebb336e45ef1c Quinn Tran 2021-06-23 96 :::::: The code at line 93 was first introduced by commit :::::: 7ebb336e45ef1ce23462c3bbd03779929008901f scsi: qla2xxx: edif: Add start + stop bsgs :::::: TO: Quinn Tran :::::: CC: Martin K. Petersen --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org