All of lore.kernel.org
 help / color / mirror / Atom feed
* [jpirko-mlxsw:wip_attestation_all_1 43/62] drivers/ctlv/core.c:644:6: warning: 'ctlv_device_priv_aligned' defined but not used
@ 2026-10-18  7:43 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-18  7:43 UTC (permalink / raw)
  To: Jiri Pirko; +Cc: oe-kbuild-all

tree:   https://github.com/jpirko/linux_mlxsw wip_attestation_all_1
head:   e63637d55bc3ae7cbef988e3525c79b9381dba1b
commit: 902704a094b6c6cff853cd9f7279da6199ecf93d [43/62] ctlv: Add KUnit support
config: alpha-randconfig-r2200-20261016 (https://download.01.org/0day-ci/archive/20261016/202610162114.Al712poE-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 11.5.0
smatch: v0.5.0-9187-g5189e3fb
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261016/202610162114.Al712poE-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/202610162114.Al712poE-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/ctlv/core.c:644:6: warning: 'ctlv_device_priv_aligned' defined but not used [-Wunused-function]
     644 | bool ctlv_device_priv_aligned(struct ctlv_device *ctlvdev, u32 index)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/ctlv/core.c:637:7: warning: 'ctlv_device_priv' defined but not used [-Wunused-function]
     637 | void *ctlv_device_priv(struct ctlv_device *ctlvdev, u32 index)
         |       ^~~~~~~~~~~~~~~~
>> drivers/ctlv/core.c:129:6: warning: 'ctlv_family_claim_remove' defined but not used [-Wunused-function]
     129 | void ctlv_family_claim_remove(u16 family_id, const char *name)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~


vim +/ctlv_device_priv_aligned +644 drivers/ctlv/core.c

   635	
   636	VISIBLE_IF_KUNIT
 > 637	void *ctlv_device_priv(struct ctlv_device *ctlvdev, u32 index)
   638	{
   639		return ctlvdev->privs[index].priv;
   640	}
   641	EXPORT_SYMBOL_IF_KUNIT(ctlv_device_priv);
   642	
   643	VISIBLE_IF_KUNIT
 > 644	bool ctlv_device_priv_aligned(struct ctlv_device *ctlvdev, u32 index)
   645	{
   646		return IS_ALIGNED((unsigned long)ctlvdev->privs[index].priv,
   647				  CTLV_PRIV_ALIGN);
   648	}
   649	EXPORT_SYMBOL_IF_KUNIT(ctlv_device_priv_aligned);
   650	

--
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-10-18  7:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-18  7:43 [jpirko-mlxsw:wip_attestation_all_1 43/62] drivers/ctlv/core.c:644:6: warning: 'ctlv_device_priv_aligned' defined but not used 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.