All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android12-5.10 0/2] drivers/crypto/qat/qat_common/adf_isr.c:128:43: warning: taking address of packed member 'status' of class or structure 'adf_accel_dev' may result in an unaligned pointer value
@ 2026-09-18 21:19 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-18 21:19 UTC (permalink / raw)
  To: cros-kernel-buildreports; +Cc: oe-kbuild-all

tree:   https://android.googlesource.com/kernel/common android12-5.10
head:   263b10a805c674d459d56d22ffe205ade744fe7e
commit: 218c2836b3987f3fa1d9eac505462cded0821e4c [0/2] crypto: qat - fix VF2PF work teardown race in adf_disable_sriov()
config: i386-randconfig-1005-20260918 (https://download.01.org/0day-ci/archive/20260919/202609190537.B3RFOTVl-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 7252edd9aa82ef1c570ff6694ef7f4763a8a5d2f)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260919/202609190537.B3RFOTVl-lkp@intel.com/reproduce)

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/202609190537.B3RFOTVl-lkp@intel.com/

All warnings (new ones prefixed by >>):

   clang: warning: optimization flag '-falign-jumps=0' is not supported [-Wignored-optimization-argument]
   In file included from drivers/crypto/qat/qat_common/adf_isr.c:6:
   In file included from include/linux/pci.h:35:
   In file included from include/linux/kobject.h:20:
   In file included from include/linux/sysfs.h:16:
   In file included from include/linux/kernfs.h:13:
   In file included from include/linux/idr.h:15:
   In file included from include/linux/radix-tree.h:14:
   In file included from include/linux/percpu.h:6:
   In file included from include/linux/preempt.h:79:
   In file included from arch/x86/include/asm/preempt.h:7:
   In file included from include/linux/thread_info.h:39:
   arch/x86/include/asm/thread_info.h:185:13: warning: calling '__builtin_frame_address' with a nonzero argument is unsafe [-Wframe-address]
     185 |         oldframe = __builtin_frame_address(1);
         |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/x86/include/asm/thread_info.h:187:11: warning: calling '__builtin_frame_address' with a nonzero argument is unsafe [-Wframe-address]
     187 |                 frame = __builtin_frame_address(2);
         |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/crypto/qat/qat_common/adf_isr.c:6:
   In file included from include/linux/pci.h:35:
   In file included from include/linux/kobject.h:20:
   In file included from include/linux/sysfs.h:16:
   In file included from include/linux/kernfs.h:13:
   In file included from include/linux/idr.h:15:
   In file included from include/linux/radix-tree.h:19:
   In file included from include/linux/xarray.h:14:
   In file included from include/linux/gfp.h:6:
   include/linux/mmzone.h:1136:6: warning: variable 'nid' set but not used [-Wunused-but-set-variable]
    1136 |         int nid;
         |             ^
>> drivers/crypto/qat/qat_common/adf_isr.c:128:43: warning: taking address of packed member 'status' of class or structure 'adf_accel_dev' may result in an unaligned pointer value [-Waddress-of-packed-member]
     128 |         if (!test_bit(ADF_STATUS_IRQ_ALLOCATED, &accel_dev->status) || !msixe)
         |                                                  ^~~~~~~~~~~~~~~~~
   4 warnings generated.


vim +128 drivers/crypto/qat/qat_common/adf_isr.c

   119	
   120	void adf_isr_sync_ae_cluster(struct adf_accel_dev *accel_dev)
   121	{
   122		struct adf_accel_pci *pci_dev_info = &accel_dev->accel_pci_dev;
   123		struct adf_hw_device_data *hw_data = accel_dev->hw_device;
   124		struct msix_entry *msixe = pci_dev_info->msix_entries.entries;
   125		u32 num_entries = pci_dev_info->msix_entries.num_entries;
   126		u32 irq_idx;
   127	
 > 128		if (!test_bit(ADF_STATUS_IRQ_ALLOCATED, &accel_dev->status) || !msixe)
   129			return;
   130	
   131		irq_idx = num_entries > 1 ? hw_data->num_banks : 0;
   132		if (irq_idx >= num_entries)
   133			return;
   134	
   135		synchronize_irq(msixe[irq_idx].vector);
   136	}
   137	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2026-09-18 21:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-18 21:19 [android-common:android12-5.10 0/2] drivers/crypto/qat/qat_common/adf_isr.c:128:43: warning: taking address of packed member 'status' of class or structure 'adf_accel_dev' may result in an unaligned pointer value kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.