From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (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 DF51C25B1C5 for ; Tue, 20 May 2025 18:37:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747766245; cv=none; b=oTBD9xAPulL04Wf7KZjXDM4FNON+1lB0scic/m/1kasQUQY4Mch6R4wFJRkYwSRvegKPvIO0INMLNv+DMFeS+npiNSyUNqpV8airnRoBuT51xCqj4n0UP7q4ki1wCq3Ewa4yPoZxfukKQumDpJoy9IKIwChP5lwjmSpSjyHn/Ug= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747766245; c=relaxed/simple; bh=11ekMgj7fA1qKRO+lkjjIu8a9rUPkxE+jBWkPDPg6gE=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=FKnETYOTpNZGtmBkR5OOHjDh59JbY36wfr2xQ0VKHog0Ez/pLoS6mq6W1eJbcF2tTtrrVe5NkQn9bbc8+VZ4V/6E3MOO5U5r9hs0J/ZLlUqjwpJGdw6ppxlEk+YU+L0UBmCuBle2W96538ImDHz7uFvHweR7aIQ7wnhXBBtHjfw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=lfoARWV4; arc=none smtp.client-ip=192.198.163.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="lfoARWV4" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1747766244; x=1779302244; h=date:from:to:cc:subject:message-id:mime-version; bh=11ekMgj7fA1qKRO+lkjjIu8a9rUPkxE+jBWkPDPg6gE=; b=lfoARWV4ZK03NVw+WmL55EIAOYxExiuMPz4ncR9BLnYW7TIva01Exyhm nCPgH1FFuMxtZvSERJspkonmxY2o4eE3M529Ryzsy7BrLzsF3fVAKdOrJ N4MRDOfT5tcdHZnlX/b0hR3DxdwdO18Ov/mf0e3n9rmCkpnqeivE3A8d2 WCcL4aBR0bMOgp6pmuS/8Phx0nZSwmZEw786m1GbnWdeg3m+AkYiBLPAw 0+KIaMlRcXyjX2llN2JAATQCaGVc1k5vz4e1d+9onMlmAA4BVpM6jI40u UdKJ3ELLlGO1PLZZi9/UkiC/HAXAq5MXDV2THMdU0fJ49/GjBlD2r5y51 Q==; X-CSE-ConnectionGUID: z7EAB/h7TIKvp6ljIKFZcg== X-CSE-MsgGUID: 622l7FmzQCS+KxFVwVWMJw== X-IronPort-AV: E=McAfee;i="6700,10204,11439"; a="48834935" X-IronPort-AV: E=Sophos;i="6.15,302,1739865600"; d="scan'208";a="48834935" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2025 11:37:23 -0700 X-CSE-ConnectionGUID: 6LwuzoTMQFSFbMYYUBQX3Q== X-CSE-MsgGUID: YOgvsE37RvWvZlZbnuLS/w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,302,1739865600"; d="scan'208";a="144906008" Received: from lkp-server01.sh.intel.com (HELO 1992f890471c) ([10.239.97.150]) by orviesa005.jf.intel.com with ESMTP; 20 May 2025 11:37:21 -0700 Received: from kbuild by 1992f890471c with local (Exim 4.96) (envelope-from ) id 1uHRq3-000NSy-0B; Tue, 20 May 2025 18:37:19 +0000 Date: Wed, 21 May 2025 02:36:53 +0800 From: kernel test robot To: Breno Leitao Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Jakub Kicinski , Vladimir Oltean Subject: include/soc/fsl/qman.h:383:4: warning: field context_a within 'struct qm_fqd' is less aligned than 'union (unnamed union at include/soc/fsl/qman.h:365:2)' and is usually due to 'struct qm_fqd' being packed, which can lead to unaligned accesses Message-ID: <202505210229.ucGZlmoj-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Breno, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: a5806cd506af5a7c19bcd596e4708b5c464bfd21 commit: 782fe08e9861d00ce8aca370453dd9ceb9a23d50 soc: fsl: qbman: FSL_DPAA depends on COMPILE_TEST date: 10 months ago config: arm-randconfig-001-20250521 (https://download.01.org/0day-ci/archive/20250521/202505210229.ucGZlmoj-lkp@intel.com/config) compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250521/202505210229.ucGZlmoj-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202505210229.ucGZlmoj-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c:13: In file included from include/linux/fsl/ptp_qoriq.h:11: In file included from include/linux/ptp_clock_kernel.h:15: In file included from include/linux/skbuff.h:17: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:8: In file included from include/linux/cacheflush.h:5: In file included from arch/arm/include/asm/cacheflush.h:10: In file included from include/linux/mm.h:2258: include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 514 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ In file included from drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c:15: In file included from drivers/net/ethernet/freescale/dpaa/dpaa_eth.h:12: >> include/soc/fsl/qman.h:383:4: warning: field context_a within 'struct qm_fqd' is less aligned than 'union (unnamed union at include/soc/fsl/qman.h:365:2)' and is usually due to 'struct qm_fqd' being packed, which can lead to unaligned accesses [-Wunaligned-access] 383 | } context_a; | ^ 2 warnings generated. vim +383 include/soc/fsl/qman.h c535e923bb97a4 Claudiu Manoil 2016-09-22 346 c535e923bb97a4 Claudiu Manoil 2016-09-22 347 struct qm_fqd { c535e923bb97a4 Claudiu Manoil 2016-09-22 348 /* _res[6-7], orprws[3-5], oa[2], olws[0-1] */ c535e923bb97a4 Claudiu Manoil 2016-09-22 349 u8 orpc; c535e923bb97a4 Claudiu Manoil 2016-09-22 350 u8 cgid; c535e923bb97a4 Claudiu Manoil 2016-09-22 351 __be16 fq_ctrl; /* See QM_FQCTRL_<...> */ c535e923bb97a4 Claudiu Manoil 2016-09-22 352 __be16 dest_wq; /* channel[3-15], wq[0-2] */ c535e923bb97a4 Claudiu Manoil 2016-09-22 353 __be16 ics_cred; /* 15-bit */ c535e923bb97a4 Claudiu Manoil 2016-09-22 354 /* c535e923bb97a4 Claudiu Manoil 2016-09-22 355 * For "Initialize Frame Queue" commands, the write-enable mask c535e923bb97a4 Claudiu Manoil 2016-09-22 356 * determines whether 'td' or 'oac_init' is observed. For query c535e923bb97a4 Claudiu Manoil 2016-09-22 357 * commands, this field is always 'td', and 'oac_query' (below) reflects c535e923bb97a4 Claudiu Manoil 2016-09-22 358 * the Overhead ACcounting values. c535e923bb97a4 Claudiu Manoil 2016-09-22 359 */ c535e923bb97a4 Claudiu Manoil 2016-09-22 360 union { c535e923bb97a4 Claudiu Manoil 2016-09-22 361 __be16 td; /* "Taildrop": _res[13-15], mant[5-12], exp[0-4] */ c535e923bb97a4 Claudiu Manoil 2016-09-22 362 struct qm_fqd_oac oac_init; c535e923bb97a4 Claudiu Manoil 2016-09-22 363 }; c535e923bb97a4 Claudiu Manoil 2016-09-22 364 __be32 context_b; c535e923bb97a4 Claudiu Manoil 2016-09-22 365 union { c535e923bb97a4 Claudiu Manoil 2016-09-22 366 /* Treat it as 64-bit opaque */ c535e923bb97a4 Claudiu Manoil 2016-09-22 367 __be64 opaque; c535e923bb97a4 Claudiu Manoil 2016-09-22 368 struct { c535e923bb97a4 Claudiu Manoil 2016-09-22 369 __be32 hi; c535e923bb97a4 Claudiu Manoil 2016-09-22 370 __be32 lo; c535e923bb97a4 Claudiu Manoil 2016-09-22 371 }; c535e923bb97a4 Claudiu Manoil 2016-09-22 372 /* Treat it as s/w portal stashing config */ c535e923bb97a4 Claudiu Manoil 2016-09-22 373 /* see "FQD Context_A field used for [...]" */ c535e923bb97a4 Claudiu Manoil 2016-09-22 374 struct { c535e923bb97a4 Claudiu Manoil 2016-09-22 375 struct qm_fqd_stashing stashing; c535e923bb97a4 Claudiu Manoil 2016-09-22 376 /* c535e923bb97a4 Claudiu Manoil 2016-09-22 377 * 48-bit address of FQ context to c535e923bb97a4 Claudiu Manoil 2016-09-22 378 * stash, must be cacheline-aligned c535e923bb97a4 Claudiu Manoil 2016-09-22 379 */ c535e923bb97a4 Claudiu Manoil 2016-09-22 380 __be16 context_hi; c535e923bb97a4 Claudiu Manoil 2016-09-22 381 __be32 context_lo; c535e923bb97a4 Claudiu Manoil 2016-09-22 382 } __packed; c535e923bb97a4 Claudiu Manoil 2016-09-22 @383 } context_a; c535e923bb97a4 Claudiu Manoil 2016-09-22 384 struct qm_fqd_oac oac_query; c535e923bb97a4 Claudiu Manoil 2016-09-22 385 } __packed; c535e923bb97a4 Claudiu Manoil 2016-09-22 386 :::::: The code at line 383 was first introduced by commit :::::: c535e923bb97a4b361e89a6383693482057f8b0c soc/fsl: Introduce DPAA 1.x QMan device driver :::::: TO: Claudiu Manoil :::::: CC: Scott Wood -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki