From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6D37E7E for ; Mon, 25 Jul 2022 22:34:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7261C341C8; Mon, 25 Jul 2022 22:34:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658788457; bh=YUM91tAW6kCbHBwCMTDSAq1X+h3xTTK/y1W6Pq3tGBY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EBeV3UOBkPdruyjvVEXN0JPRa8LYxQxYIOipxldxaXG5RZHQOu03+uTMnfLx7Cbmf 5pVDaLW2EgMskPVPh5u6048/QbEqaZeYOKQlp2RV5oCORXGfpH6m27Z6Tc+3N8fkq4 3AhwDQCNUDZj+pNe5z5Hdil/FaYMixfskr6b6U4pIVIbKe0ipTBki0vCu+Imn+m0GA 0w+W+11GM7TsX67yAbAMGoZyojeX/Lqp+0PUkFQ1/xtByx0wNiUFepmA8a1WsacguT iNPp+0tyo4b1Sbc1KQYo6hZZ5/TP06I8VFfL2YQQPBCAoVzr29q1RJ5wDyModc3fhB QsKHA1sPxIt3w== Date: Mon, 25 Jul 2022 15:34:15 -0700 From: Nathan Chancellor To: kernel test robot Cc: Simon Trimmer , llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Mark Brown Subject: Re: sound/soc/codecs/wm_adsp.c:1490:32: warning: taking address of packed member 'name' of class or structure 'wm_adsp_host_buf_coeff_v1' may result in an unaligned pointer value Message-ID: References: <202207260648.ERQjXCRB-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202207260648.ERQjXCRB-lkp@intel.com> On Tue, Jul 26, 2022 at 06:29:46AM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: e0dccc3b76fb35bb257b4118367a883073d7390e > commit: 353bb6a5f2ac495f289b7c7a528c7d134c9a8ec4 ASoC: wm_adsp: Compressed stream DSP memory structs should be __packed > date: 5 months ago > config: arm-randconfig-r013-20220724 (https://download.01.org/0day-ci/archive/20220726/202207260648.ERQjXCRB-lkp@intel.com/config) > compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 9e88cbcc403bdf82f29259ad60ff60a8fc4434a1) > 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=353bb6a5f2ac495f289b7c7a528c7d134c9a8ec4 > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > git fetch --no-tags linus master > git checkout 353bb6a5f2ac495f289b7c7a528c7d134c9a8ec4 > # 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 sound/soc/codecs/ > > If you fix the issue, kindly add following tag where applicable > Reported-by: kernel test robot > > All warnings (new ones prefixed by >>): > > >> sound/soc/codecs/wm_adsp.c:1490:32: warning: taking address of packed member 'name' of class or structure 'wm_adsp_host_buf_coeff_v1' may result in an unaligned pointer value [-Waddress-of-packed-member] > cs_dsp_remove_padding((u32 *)&coeff_v1.name, ARRAY_SIZE(coeff_v1.name)); > ^~~~~~~~~~~~~ > 1 warning generated. This warning is disabled in the main Makefile but a recent change in LLVM has caused that check to fail, sorry for the noise :( https://github.com/ClangBuiltLinux/linux/issues/1674 Cheers, Nathan From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============1567460334510337495==" MIME-Version: 1.0 From: Nathan Chancellor To: kbuild-all@lists.01.org Subject: Re: sound/soc/codecs/wm_adsp.c:1490:32: warning: taking address of packed member 'name' of class or structure 'wm_adsp_host_buf_coeff_v1' may result in an unaligned pointer value Date: Mon, 25 Jul 2022 15:34:15 -0700 Message-ID: In-Reply-To: <202207260648.ERQjXCRB-lkp@intel.com> List-Id: --===============1567460334510337495== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Tue, Jul 26, 2022 at 06:29:46AM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.gi= t master > head: e0dccc3b76fb35bb257b4118367a883073d7390e > commit: 353bb6a5f2ac495f289b7c7a528c7d134c9a8ec4 ASoC: wm_adsp: Compresse= d stream DSP memory structs should be __packed > date: 5 months ago > config: arm-randconfig-r013-20220724 (https://download.01.org/0day-ci/arc= hive/20220726/202207260648.ERQjXCRB-lkp(a)intel.com/config) > compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 9e88= cbcc403bdf82f29259ad60ff60a8fc4434a1) > reproduce (this is a W=3D1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbi= n/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=3D353bb6a5f2ac495f289b7c7a528c7d134c9a8ec4 > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/= git/torvalds/linux.git > git fetch --no-tags linus master > git checkout 353bb6a5f2ac495f289b7c7a528c7d134c9a8ec4 > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W= =3D1 O=3Dbuild_dir ARCH=3Darm SHELL=3D/bin/bash sound/soc/codecs/ > = > If you fix the issue, kindly add following tag where applicable > Reported-by: kernel test robot > = > All warnings (new ones prefixed by >>): > = > >> sound/soc/codecs/wm_adsp.c:1490:32: warning: taking address of packed = member 'name' of class or structure 'wm_adsp_host_buf_coeff_v1' may result = in an unaligned pointer value [-Waddress-of-packed-member] > cs_dsp_remove_padding((u32 *)&coeff_v1.name, ARRAY_SIZE(coeff_= v1.name)); > ^~~~~~~~~~~~~ > 1 warning generated. This warning is disabled in the main Makefile but a recent change in LLVM has caused that check to fail, sorry for the noise :( https://github.com/ClangBuiltLinux/linux/issues/1674 Cheers, Nathan --===============1567460334510337495==--