linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c:185:18: warning: taking address of packed member '' of class or structure 'adf_accel_dev' may result in an unaligned pointer value
@ 2021-09-03 12:30 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-03 12:30 UTC (permalink / raw)
  To: Kanchana Velusamy
  Cc: llvm, kbuild-all, linux-kernel, Herbert Xu, Marco Chiappero,
	Giovanni Cabiddu, Fiona Trahe

[-- Attachment #1: Type: text/plain, Size: 3669 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   a9c9a6f741cdaa2fa9ba24a790db8d07295761e3
commit: 07df385e645ed3b7fd3ac2d5c4c3e825b54bb7e4 crypto: qat - protect interrupt mask CSRs with a spinlock
date:   13 days ago
config: i386-buildonly-randconfig-r002-20210903 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 1104e3258b5064e7110cc297e2cec60ac9acfc0a)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=07df385e645ed3b7fd3ac2d5c4c3e825b54bb7e4
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 07df385e645ed3b7fd3ac2d5c4c3e825b54bb7e4
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   clang-14: warning: optimization flag '-falign-jumps=0' is not supported [-Wignored-optimization-argument]
   In file included from drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c:3:
   In file included from drivers/crypto/qat/qat_dh895xcc/../qat_common/adf_accel_devices.h:5:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:5:
   In file included from include/linux/context_tracking_state.h:5:
   In file included from include/linux/percpu.h:6:
   In file included from include/linux/preempt.h:78:
   In file included from arch/x86/include/asm/preempt.h:7:
   In file included from include/linux/thread_info.h:60:
   arch/x86/include/asm/thread_info.h:172:13: warning: calling '__builtin_frame_address' with a nonzero argument is unsafe [-Wframe-address]
           oldframe = __builtin_frame_address(1);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/x86/include/asm/thread_info.h:174:11: warning: calling '__builtin_frame_address' with a nonzero argument is unsafe [-Wframe-address]
                   frame = __builtin_frame_address(2);
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c:185:18: warning: taking address of packed member '' of class or structure 'adf_accel_dev' may result in an unaligned pointer value [-Waddress-of-packed-member]
           spin_lock_init(&accel_dev->pf.vf2pf_ints_lock);
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/spinlock.h:338:38: note: expanded from macro 'spin_lock_init'
           __raw_spin_lock_init(spinlock_check(lock),              \
                                               ^~~~
   drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c:238:28: warning: taking address of packed member 'csr_ops' of class or structure 'adf_hw_device_data' may result in an unaligned pointer value [-Waddress-of-packed-member]
           adf_gen2_init_hw_csr_ops(&hw_data->csr_ops);
                                     ^~~~~~~~~~~~~~~~
   4 warnings generated.


vim +185 drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c

   182	
   183	static int adf_pf_enable_vf2pf_comms(struct adf_accel_dev *accel_dev)
   184	{
 > 185		spin_lock_init(&accel_dev->pf.vf2pf_ints_lock);
   186	
   187		return 0;
   188	}
   189	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 40202 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-03 12:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-03 12:30 drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c:185:18: warning: taking address of packed member '' of class or structure 'adf_accel_dev' may result in an unaligned pointer value kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).