[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202206171648.tLa7qWNK-lkp@intel.com>
Date: Fri, 17 Jun 2022 17:10:11 +0800
From: kernel test robot <lkp@...el.com>
To: Mordechay Goodstein <mordechay.goodstein@...el.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org,
Luca Coelho <luciano.coelho@...el.com>
Subject: drivers/net/wireless/intel/iwlwifi/fw/api/rx.h:442:2: warning: field
within 'struct iwl_rx_mpdu_desc_v1' is less aligned than 'union
iwl_rx_mpdu_desc_v1::(anonymous at
drivers/net/wireless/intel/iwlwifi/fw/api/rx.h:442:2)' and is usually due to
'struct i...
Hi Mordechay,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 47700948a4abb4a5ae13ef943ff682a7f327547a
commit: 9cd243f24ec1960403de5f24f45155af24d94b13 iwlwifi: move iwl_configure_rxq to be used by other op_modes
date: 1 year, 2 months ago
config: arm-randconfig-r014-20220617 (https://download.01.org/0day-ci/archive/20220617/202206171648.tLa7qWNK-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d764aa7fc6b9cc3fbe960019018f5f9e941eb0a6)
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=9cd243f24ec1960403de5f24f45155af24d94b13
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 9cd243f24ec1960403de5f24f45155af24d94b13
# 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 drivers/net/wireless/intel/iwlwifi/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
In file included from drivers/net/wireless/intel/iwlwifi/fw/init.c:13:
>> drivers/net/wireless/intel/iwlwifi/fw/api/rx.h:442:2: warning: field within 'struct iwl_rx_mpdu_desc_v1' is less aligned than 'union iwl_rx_mpdu_desc_v1::(anonymous at drivers/net/wireless/intel/iwlwifi/fw/api/rx.h:442:2)' and is usually due to 'struct iwl_rx_mpdu_desc_v1' being packed, which can lead to unaligned accesses [-Wunaligned-access]
union {
^
1 warning generated.
vim +442 drivers/net/wireless/intel/iwlwifi/fw/api/rx.h
8a6171a7b601e3 drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Luca Coelho 2018-06-26 383
6857df8c10e698 drivers/net/wireless/intel/iwlwifi/mvm/fw-api-rx.h Johannes Berg 2017-03-15 384 /**
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 385 * struct iwl_rx_mpdu_desc_v1 - RX MPDU descriptor
6857df8c10e698 drivers/net/wireless/intel/iwlwifi/mvm/fw-api-rx.h Johannes Berg 2017-03-15 386 */
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 387 struct iwl_rx_mpdu_desc_v1 {
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 388 /* DW7 - carries rss_hash only when rpa_en == 1 */
dabf9844385885 drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Johannes Berg 2018-04-26 389 union {
6857df8c10e698 drivers/net/wireless/intel/iwlwifi/mvm/fw-api-rx.h Johannes Berg 2017-03-15 390 /**
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 391 * @rss_hash: RSS hash value
6857df8c10e698 drivers/net/wireless/intel/iwlwifi/mvm/fw-api-rx.h Johannes Berg 2017-03-15 392 */
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 393 __le32 rss_hash;
dabf9844385885 drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Johannes Berg 2018-04-26 394
dabf9844385885 drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Johannes Berg 2018-04-26 395 /**
bdf180c8d375ee drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Shaul Triebitz 2018-07-02 396 * @phy_data2: depends on info type (see @phy_data1)
dabf9844385885 drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Johannes Berg 2018-04-26 397 */
bdf180c8d375ee drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Shaul Triebitz 2018-07-02 398 __le32 phy_data2;
dabf9844385885 drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Johannes Berg 2018-04-26 399 };
dabf9844385885 drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Johannes Berg 2018-04-26 400
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 401 /* DW8 - carries filter_match only when rpa_en == 1 */
dabf9844385885 drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Johannes Berg 2018-04-26 402 union {
6857df8c10e698 drivers/net/wireless/intel/iwlwifi/mvm/fw-api-rx.h Johannes Berg 2017-03-15 403 /**
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 404 * @filter_match: filter match value
6857df8c10e698 drivers/net/wireless/intel/iwlwifi/mvm/fw-api-rx.h Johannes Berg 2017-03-15 405 */
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 406 __le32 filter_match;
dabf9844385885 drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Johannes Berg 2018-04-26 407
dabf9844385885 drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Johannes Berg 2018-04-26 408 /**
bdf180c8d375ee drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Shaul Triebitz 2018-07-02 409 * @phy_data3: depends on info type (see @phy_data1)
dabf9844385885 drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Johannes Berg 2018-04-26 410 */
bdf180c8d375ee drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Shaul Triebitz 2018-07-02 411 __le32 phy_data3;
dabf9844385885 drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Johannes Berg 2018-04-26 412 };
dabf9844385885 drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Johannes Berg 2018-04-26 413
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 414 /* DW9 */
6857df8c10e698 drivers/net/wireless/intel/iwlwifi/mvm/fw-api-rx.h Johannes Berg 2017-03-15 415 /**
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 416 * @rate_n_flags: RX rate/flags encoding
6857df8c10e698 drivers/net/wireless/intel/iwlwifi/mvm/fw-api-rx.h Johannes Berg 2017-03-15 417 */
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 418 __le32 rate_n_flags;
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 419 /* DW10 */
6857df8c10e698 drivers/net/wireless/intel/iwlwifi/mvm/fw-api-rx.h Johannes Berg 2017-03-15 420 /**
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 421 * @energy_a: energy chain A
6857df8c10e698 drivers/net/wireless/intel/iwlwifi/mvm/fw-api-rx.h Johannes Berg 2017-03-15 422 */
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 423 u8 energy_a;
6857df8c10e698 drivers/net/wireless/intel/iwlwifi/mvm/fw-api-rx.h Johannes Berg 2017-03-15 424 /**
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 425 * @energy_b: energy chain B
6857df8c10e698 drivers/net/wireless/intel/iwlwifi/mvm/fw-api-rx.h Johannes Berg 2017-03-15 426 */
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 427 u8 energy_b;
6857df8c10e698 drivers/net/wireless/intel/iwlwifi/mvm/fw-api-rx.h Johannes Berg 2017-03-15 428 /**
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 429 * @channel: channel number
6857df8c10e698 drivers/net/wireless/intel/iwlwifi/mvm/fw-api-rx.h Johannes Berg 2017-03-15 430 */
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 431 u8 channel;
6857df8c10e698 drivers/net/wireless/intel/iwlwifi/mvm/fw-api-rx.h Johannes Berg 2017-03-15 432 /**
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 433 * @mac_context: MAC context mask
6857df8c10e698 drivers/net/wireless/intel/iwlwifi/mvm/fw-api-rx.h Johannes Berg 2017-03-15 434 */
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 435 u8 mac_context;
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 436 /* DW11 */
6857df8c10e698 drivers/net/wireless/intel/iwlwifi/mvm/fw-api-rx.h Johannes Berg 2017-03-15 437 /**
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 438 * @gp2_on_air_rise: GP2 timer value on air rise (INA)
6857df8c10e698 drivers/net/wireless/intel/iwlwifi/mvm/fw-api-rx.h Johannes Berg 2017-03-15 439 */
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 440 __le32 gp2_on_air_rise;
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 441 /* DW12 & DW13 */
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 @442 union {
6857df8c10e698 drivers/net/wireless/intel/iwlwifi/mvm/fw-api-rx.h Johannes Berg 2017-03-15 443 /**
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 444 * @tsf_on_air_rise:
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 445 * TSF value on air rise (INA), only valid if
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 446 * %IWL_RX_MPDU_PHY_TSF_OVERLOAD isn't set
6857df8c10e698 drivers/net/wireless/intel/iwlwifi/mvm/fw-api-rx.h Johannes Berg 2017-03-15 447 */
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 448 __le64 tsf_on_air_rise;
bdf180c8d375ee drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Shaul Triebitz 2018-07-02 449
bdf180c8d375ee drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Shaul Triebitz 2018-07-02 450 struct {
6857df8c10e698 drivers/net/wireless/intel/iwlwifi/mvm/fw-api-rx.h Johannes Berg 2017-03-15 451 /**
bdf180c8d375ee drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Shaul Triebitz 2018-07-02 452 * @phy_data0: depends on info_type, see @phy_data1
6857df8c10e698 drivers/net/wireless/intel/iwlwifi/mvm/fw-api-rx.h Johannes Berg 2017-03-15 453 */
bdf180c8d375ee drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Shaul Triebitz 2018-07-02 454 __le32 phy_data0;
bdf180c8d375ee drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Shaul Triebitz 2018-07-02 455 /**
bdf180c8d375ee drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Shaul Triebitz 2018-07-02 456 * @phy_data1: valid only if
bdf180c8d375ee drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Shaul Triebitz 2018-07-02 457 * %IWL_RX_MPDU_PHY_TSF_OVERLOAD is set,
bdf180c8d375ee drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Shaul Triebitz 2018-07-02 458 * see &enum iwl_rx_phy_data1.
bdf180c8d375ee drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Shaul Triebitz 2018-07-02 459 */
bdf180c8d375ee drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Shaul Triebitz 2018-07-02 460 __le32 phy_data1;
bdf180c8d375ee drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Shaul Triebitz 2018-07-02 461 };
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 462 };
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 463 } __packed;
18ead597daa17a drivers/net/wireless/intel/iwlwifi/fw/api/rx.h Golan Ben Ami 2018-02-05 464
:::::: The code at line 442 was first introduced by commit
:::::: 18ead597daa17a557249cf4b2f494361d836ed52 iwlwifi: support new rx_mpdu_desc api
:::::: TO: Golan Ben Ami <golan.ben.ami@...el.com>
:::::: CC: Luca Coelho <luciano.coelho@...el.com>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists