All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jiri Pirko <jiri@nvidia.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [jpirko-mlxsw:wip_attestation_all_1 43/62] drivers/ctlv/core.c:644:6: warning: 'ctlv_device_priv_aligned' defined but not used
Date: Sun, 18 Oct 2026 09:43:33 +0200	[thread overview]
Message-ID: <202610162114.Al712poE-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-10-18  7:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202610162114.Al712poE-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jiri@nvidia.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.