Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2447304imi; Sun, 24 Jul 2022 20:58:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vRL44u6Z+oZtHYGjPgKFEl8sQN7qD84PCzlXwJEN9X/S1uiR70RPAvih+K6C1Gm9XBOaWX X-Received: by 2002:a17:902:ea06:b0:16d:5c8c:4167 with SMTP id s6-20020a170902ea0600b0016d5c8c4167mr7823431plg.57.1658721482176; Sun, 24 Jul 2022 20:58:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658721482; cv=none; d=google.com; s=arc-20160816; b=XzeqKbM4wu37AsqoUkAxTK3MLCGnFhdrj5og8sJAqyYUE2VjTpq5WTQcoDjlqdnbfW nl9iKB+PeLo+GAm/Bln0ccfYVsPXjszleDBzfeV2eWyS7rqVlNl9suDataKlVjzNshcC wxXe+JafTEhTpwKURQ1lNgLvO6KcyR1iaR+HsFFv1CaoGj8RVOYkIkd7jNyXjPhqYO6h yEXtNl0e66QlfTt7KwOFJqRo9Isul1lIPd/rFBEm1C8JLkOhCsEfNtbYl9oK772e8ZGJ wHTWaPCzwCzG9Z0VhC251B12brxHUxIAZev/NOHb+7Jv7+AQ5yq3xeGagWxVYvsJIosU Uf9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=GBRxVxbMKSCyJqKTwGPV6M8jq5EG5JgBj0bdGIBTXC0=; b=HIldtQONoirATlYFAlo96WKFCHvdYeix8tfUQRo8XXLTZBhZ6+E5JCELchgydSMmy5 AI1fK185bMSfCuRKBMU9hZl/n4DqSy5jH0rWLl4gKsCCHOiOBkYHahnKDy1/XezGE4aS 9CeVf80gfNsVhLlUZboxn+WPqTq1aFikmvF6vfYNiLXP6Ytw2K0Zsh+3uzstVNmRJNYV tGoAvPhpmAOB3zubmOF4EFMaEIonsnYCwKhy5s9vWLGg1CyQGHAW7wrVeoHHh3Y4n+OA fvdHacr9BNsXAAM8emjg0v7hzti2uqSJ6gb9TDs2+b9Otevqm+WgQeacoYHlJReVu2L4 YJiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JDnvI9dT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k23-20020a635617000000b004197b8c080fsi13262658pgb.440.2022.07.24.20.57.46; Sun, 24 Jul 2022 20:58:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JDnvI9dT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230380AbiGYDzB (ORCPT + 99 others); Sun, 24 Jul 2022 23:55:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbiGYDzA (ORCPT ); Sun, 24 Jul 2022 23:55:00 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05850BF70 for ; Sun, 24 Jul 2022 20:54:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658721298; x=1690257298; h=date:from:to:cc:subject:message-id:mime-version; bh=ec4XM4FM3uNcxeqXUFmyoEcKZzAjNzVO988olMBtawc=; b=JDnvI9dTiUpaDolnVw04sPjChyI1uaDdKpwofNaRKZl9I1up40ZsA4LL jT7B3vHAThEXcsxTu+/T9+jlktCr1rSpBxaXgIQnUvMt+uuHXfOHkGGkR Hx1C3ybu5htL0DtUGhEiCI2pwGxH+VDCpkni31YRaZpULrFdkdU98I2kB pqPKgROIPB5U82GobXKAmzFeiPn0KPc6D3nc9T9fx07HhQ/BhnDuXmfWf ceJQ6ENKmA7K4G3LOc8hKJNgDlWSBJtuYLqNa+svZ8J68xkbFczfnrxRR 4gVTmq99NfBMIaI08YhSDktjW/oYni66qdrf0oA0sMHxcNjBXIQRaMF2r g==; X-IronPort-AV: E=McAfee;i="6400,9594,10418"; a="267996276" X-IronPort-AV: E=Sophos;i="5.93,191,1654585200"; d="scan'208";a="267996276" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jul 2022 20:54:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,191,1654585200"; d="scan'208";a="627280316" Received: from lkp-server01.sh.intel.com (HELO e0eace57cfef) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 24 Jul 2022 20:54:56 -0700 Received: from kbuild by e0eace57cfef with local (Exim 4.96) (envelope-from ) id 1oFpBI-0004h5-0R; Mon, 25 Jul 2022 03:54:56 +0000 Date: Mon, 25 Jul 2022 11:53:55 +0800 From: kernel test robot To: Oleksij Rempel Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Jonathan Cameron , Andy Shevchenko Subject: drivers/iio/adc/ti-tsc2046.c:242:62: warning: taking address of packed member 'data' of class or structure 'tsc2046_adc_atom' may result in an unaligned pointer value Message-ID: <202207251140.M7YAqoLC-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Oleksij, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: e0dccc3b76fb35bb257b4118367a883073d7390e commit: 9374e8f5a38defe90bc65b2decf317c1c62d91dd iio: adc: add ADC driver for the TI TSC2046 controller date: 1 year, 2 months ago config: arm-randconfig-r025-20220724 (https://download.01.org/0day-ci/archive/20220725/202207251140.M7YAqoLC-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=9374e8f5a38defe90bc65b2decf317c1c62d91dd git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 9374e8f5a38defe90bc65b2decf317c1c62d91dd # 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/iio/adc/ drivers/staging/ fs/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/iio/adc/ti-tsc2046.c:242:62: warning: taking address of packed member 'data' of class or structure 'tsc2046_adc_atom' may result in an unaligned pointer value [-Waddress-of-packed-member] return FIELD_GET(TI_TSC2046_DATA_12BIT, get_unaligned_be16(&buf->data)); ^~~~~~~~~ include/linux/bitfield.h:108:27: note: expanded from macro 'FIELD_GET' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^~~~ include/linux/bitfield.h:52:38: note: expanded from macro '__BF_FIELD_CHECK' BUILD_BUG_ON_MSG((_mask) > (typeof(_reg))~0ull, \ ^~~~ include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^~~~ note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:308:9: note: expanded from macro '__compiletime_assert' if (!(condition)) \ ^~~~~~~~~ include/linux/compiler.h:56:47: note: expanded from macro 'if' #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) ) ^~~~ include/linux/compiler.h:58:52: note: expanded from macro '__trace_if_var' #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) ^~~~ >> drivers/iio/adc/ti-tsc2046.c:242:62: warning: taking address of packed member 'data' of class or structure 'tsc2046_adc_atom' may result in an unaligned pointer value [-Waddress-of-packed-member] return FIELD_GET(TI_TSC2046_DATA_12BIT, get_unaligned_be16(&buf->data)); ^~~~~~~~~ include/linux/bitfield.h:108:27: note: expanded from macro 'FIELD_GET' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^~~~ include/linux/bitfield.h:52:38: note: expanded from macro '__BF_FIELD_CHECK' BUILD_BUG_ON_MSG((_mask) > (typeof(_reg))~0ull, \ ^~~~ include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^~~~ note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:308:9: note: expanded from macro '__compiletime_assert' if (!(condition)) \ ^~~~~~~~~ include/linux/compiler.h:56:47: note: expanded from macro 'if' #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) ) ^~~~ include/linux/compiler.h:58:61: note: expanded from macro '__trace_if_var' #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) ^~~~ >> drivers/iio/adc/ti-tsc2046.c:242:62: warning: taking address of packed member 'data' of class or structure 'tsc2046_adc_atom' may result in an unaligned pointer value [-Waddress-of-packed-member] return FIELD_GET(TI_TSC2046_DATA_12BIT, get_unaligned_be16(&buf->data)); ^~~~~~~~~ include/linux/bitfield.h:108:27: note: expanded from macro 'FIELD_GET' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^~~~ include/linux/bitfield.h:52:38: note: expanded from macro '__BF_FIELD_CHECK' BUILD_BUG_ON_MSG((_mask) > (typeof(_reg))~0ull, \ ^~~~ include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^~~~ note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler.h:56:47: note: expanded from macro 'if' #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) ) ^~~~ include/linux/compiler.h:58:86: note: expanded from macro '__trace_if_var' #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) ^~~~ include/linux/compiler.h:69:3: note: expanded from macro '__trace_if_value' (cond) ? \ ^~~~ 3 warnings generated. vim +242 drivers/iio/adc/ti-tsc2046.c 239 240 static u16 tsc2046_adc_get_value(struct tsc2046_adc_atom *buf) 241 { > 242 return FIELD_GET(TI_TSC2046_DATA_12BIT, get_unaligned_be16(&buf->data)); 243 } 244 -- 0-DAY CI Kernel Test Service https://01.org/lkp