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 493F92CA5 for ; Sat, 29 Jan 2022 20:30:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C68E3C340E5; Sat, 29 Jan 2022 20:30:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643488253; bh=YBtNVYCnYa+w/9Av4t+qwzrK/yfyOR1cVMkdIr9KKHc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sLPElV0P/nylfr2vGpGoaNeGXgYeV+cJGVc3wF1RjVoK7N51yb/QjhmVTBzbW37d0 /hTodWTrNZfc9RuJYw9eLMwnuyHl3nrb1FcjDpEJEQVZlEUSwNttNLsIqs9n5YAHdu R1jjqg+P82dw0NfdIfxSXsYTabMhrP+5UJbKjS6a2X9W0u/7azrGII9vxOpD4aTDb5 CLswCEMpLeBda8CTeK+WEftqeg/FAmcF0bkQg2OUUuiTB4LlCOcD71XCTydA3bubOq xDXLRzUeHmQDGHLCV3u/5i+oBqgULCyG1yx1mGTrGKLF91KV6KzkU21O9TwSf1r5hF akYhw1C2M2T5Q== Date: Sat, 29 Jan 2022 13:30:50 -0700 From: Nathan Chancellor To: kernel test robot Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Dmitry Torokhov Subject: Re: drivers/input/touchscreen/ads7846.c:705:24: warning: taking address of packed member 'data' of class or structure 'ads7846_buf' may result in an unaligned pointer value Message-ID: References: <202201300020.SS6KSznh-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: <202201300020.SS6KSznh-lkp@intel.com> On Sun, Jan 30, 2022 at 12:10:55AM +0800, kernel test robot wrote: > Hi Dmitry, > > FYI, the error/warning still remains. > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: cb323ee75d24e7acc2f188d123ba6df46159cf09 > commit: 415e915fdfc775ad0c6675fde1008f6f43dd6251 Merge tag 'v5.11' into next > date: 11 months ago > config: mips-randconfig-r025-20220129 (https://download.01.org/0day-ci/archive/20220130/202201300020.SS6KSznh-lkp@intel.com/config) > compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 33b45ee44b1f32ffdbc995e6fec806271b4b3ba4) > 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 mips cross compiling tool for clang build > # apt-get install binutils-mips-linux-gnu > # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=415e915fdfc775ad0c6675fde1008f6f43dd6251 > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > git fetch --no-tags linus master > git checkout 415e915fdfc775ad0c6675fde1008f6f43dd6251 > # 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=mips SHELL=/bin/bash arch/mips/kernel/ drivers/input/touchscreen/ > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All warnings (new ones prefixed by >>): > > >> drivers/input/touchscreen/ads7846.c:705:24: warning: taking address of packed member 'data' of class or structure 'ads7846_buf' may result in an unaligned pointer value [-Waddress-of-packed-member] > value = be16_to_cpup(&buf->data); > ^~~~~~~~~ > 1 warning generated. Same root cause as https://lore.kernel.org/r/YenXz+RznXBuJMSR@dev-arch.archlinux-ax161/. Fixed with https://lore.kernel.org/r/20220125221925.3547683-2-nathan@kernel.org/. Sorry for the noise, this should have only been sent to our mailing list, not maintainers. Cheers, Nathan