Hi Lance,
kernel test robot noticed the following build warnings:
[auto build test WARNING on tip/locking/core] [also build test WARNING on akpm-mm/mm-everything sysctl/sysctl-next linus/master v6.17-rc2 next-20250822] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Lance-Yang/hung_task-fix-warn... base: tip/locking/core patch link: https://lore.kernel.org/r/20250823074048.92498-1-lance.yang%40linux.dev patch subject: [PATCH 1/1] hung_task: fix warnings by enforcing alignment on lock structures config: x86_64-buildonly-randconfig-001-20250823 (https://download.01.org/0day-ci/archive/20250824/202508240539.ARmC1Umu-lkp@i...) compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250824/202508240539.ARmC1Umu-lkp@i...)
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 lkp@intel.com | Closes: https://lore.kernel.org/oe-kbuild-all/202508240539.ARmC1Umu-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from sound/soc/codecs/mt6660.c:15:
sound/soc/codecs/mt6660.h:28:1: warning: alignment 1 of 'struct mt6660_chip' is less than 8 [-Wpacked-not-aligned]
28 | }; | ^
sound/soc/codecs/mt6660.h:25:22: warning: 'io_lock' offset 49 in 'struct mt6660_chip' isn't aligned to 8 [-Wpacked-not-aligned]
25 | struct mutex io_lock; | ^~~~~~~
vim +28 sound/soc/codecs/mt6660.h
f289e55c6eeb43 Jeff Chang 2020-01-16 19 f289e55c6eeb43 Jeff Chang 2020-01-16 20 struct mt6660_chip { f289e55c6eeb43 Jeff Chang 2020-01-16 21 struct i2c_client *i2c; f289e55c6eeb43 Jeff Chang 2020-01-16 22 struct device *dev; f289e55c6eeb43 Jeff Chang 2020-01-16 23 struct platform_device *param_dev; f289e55c6eeb43 Jeff Chang 2020-01-16 24 struct mt6660_platform_data plat_data; f289e55c6eeb43 Jeff Chang 2020-01-16 @25 struct mutex io_lock; f289e55c6eeb43 Jeff Chang 2020-01-16 26 struct regmap *regmap; f289e55c6eeb43 Jeff Chang 2020-01-16 27 u16 chip_rev; f289e55c6eeb43 Jeff Chang 2020-01-16 @28 }; f289e55c6eeb43 Jeff Chang 2020-01-16 29 #pragma pack(pop) f289e55c6eeb43 Jeff Chang 2020-01-16 30