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 3BDA6C433EF for ; Sat, 22 Jan 2022 10:44:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233880AbiAVKoi (ORCPT ); Sat, 22 Jan 2022 05:44:38 -0500 Received: from mga06.intel.com ([134.134.136.31]:65310 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233835AbiAVKoh (ORCPT ); Sat, 22 Jan 2022 05:44:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642848277; x=1674384277; h=date:from:to:cc:subject:message-id:mime-version; bh=+QvsIxeGcYkl/A1U5Osq5yeMqcCLUOrLGPqPG8HZ4+E=; b=exfRd9JnzCDlVW7l9YltnXZ774POl+ocyeCyPUfUHc7H2hoKB25sk4Xa FFG7Lohgqkii+gK8ds7Ujd9s6hArrSTPDJQC61Y9X/kE2GydSjz1IRH9P qh748rGfM9CwY0Gle0mYuwzvxvHAUnuIM46PRM0LL24q4GorQ5HqKnacj CCh4RGv09eH+naExsfw+rghvVJNMhSikJvK90whqoj7ksbK9SCNq/+g55 lZzbKGq1xVl51VlP17i/NLVvZQj2cbBt0LxAM/5ZyJUpVYiVaZjc+EEdl dKDYMleoXAKBVZ2LhVKhQGPSoSpFw3WlqBvNXTT8KmO4vlod7JVDC3U4K g==; X-IronPort-AV: E=McAfee;i="6200,9189,10234"; a="306529998" X-IronPort-AV: E=Sophos;i="5.88,308,1635231600"; d="scan'208";a="306529998" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jan 2022 02:44:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,308,1635231600"; d="scan'208";a="579872984" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 22 Jan 2022 02:44:34 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nBDsn-000GJM-SW; Sat, 22 Jan 2022 10:44:33 +0000 Date: Sat, 22 Jan 2022 18:44:16 +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: <202201221855.aplqWaqk-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 tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 9b57f458985742bd1c585f4c7f36d04634ce1143 commit: 7878f22a2e03b69baf792f74488962981a1c9547 scsi: qla2xxx: edif: Add getfcinfo and statistic bsgs date: 6 months ago config: arm-randconfig-r036-20220122 (https://download.01.org/0day-ci/archive/20220122/202201221855.aplqWaqk-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7b3d30728816403d1fd73cc5082e9fb761262bce) 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