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 C786DC433EF for ; Tue, 8 Mar 2022 13:16:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347077AbiCHNRa (ORCPT ); Tue, 8 Mar 2022 08:17:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241499AbiCHNRX (ORCPT ); Tue, 8 Mar 2022 08:17:23 -0500 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9190637A10 for ; Tue, 8 Mar 2022 05:16:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646745387; x=1678281387; h=date:from:to:cc:subject:message-id:mime-version; bh=TmshGfoVA94eSIHIZl5LlloKGipSQcdVXDWPW170y9A=; b=jORQyAJ0o3m5GVu/2eGvCEjn+Z1d0h2BLuuF0dMi4yzSsTxZR66Ad8Vz 3ADM0zGIEcUWGt038dm1jzaSe4nKAlCnFWrObGlYv8DQkmIf1+dF+wWW1 cqbJQEC5RKQcC4K+s09n5EYxRQy4aiaMSTtXY2iAtcErrj02nkdZiRZvz M4pZ6NU0dwVacVC7FlbHPv6SMF9drKDDbQcX+8WVPhLgX/TfF7U4jQKar V14PgQxtT1jqLysMH8/2e1mZgXv2M3hRF7jnVUOg+w5L0rYzPhCgBeTJ3 BaPaWRwKNqIWS1RPJH/Hc1mu8brgZl2yKfFfzgvYTqaQlDamawm2EHa3b g==; X-IronPort-AV: E=McAfee;i="6200,9189,10279"; a="234633185" X-IronPort-AV: E=Sophos;i="5.90,164,1643702400"; d="scan'208";a="234633185" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2022 05:16:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,164,1643702400"; d="scan'208";a="643653384" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga004.jf.intel.com with ESMTP; 08 Mar 2022 05:16:24 -0800 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nRZhP-0001R0-La; Tue, 08 Mar 2022 13:16:23 +0000 Date: Tue, 8 Mar 2022 21:15:33 +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: <202203082144.e6Hftzd0-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Quinn, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: ea4424be16887a37735d6550cfd0611528dbe5d9 commit: 7878f22a2e03b69baf792f74488962981a1c9547 scsi: qla2xxx: edif: Add getfcinfo and statistic bsgs date: 7 months ago config: arm-randconfig-c002-20220307 (https://download.01.org/0day-ci/archive/20220308/202203082144.e6Hftzd0-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e) 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 arch/arm/mach-sa1100/ drivers/scsi/qla2xxx/ 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