All of lore.kernel.org
 help / color / mirror / Atom feed
* [xilinx-xlnx:xlnx_rebase_v6.1_LTS 1216/1363] drivers/staging/xlnx_hdcp1x/xilinx-hdcp1x-cipher.c:812: warning: Function parameter or member 'bx' not described in 'xhdcp1x_cipher_setb'
@ 2023-09-19 18:29 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-09-19 18:29 UTC (permalink / raw)
  To: Katta Dhanunjanrao; +Cc: oe-kbuild-all, git, Michal Simek

tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v6.1_LTS
head:   4f412ed20fd2c5353c1e878ef9ed77952a5040a1
commit: e6f04926dcd85fb353928a9c899a54e023bf4e69 [1216/1363] staging: xlnx_hdcp1x: Add HDCP1x cipher common functionality
config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20230920/202309200212.AZDbCXZz-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230920/202309200212.AZDbCXZz-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/202309200212.AZDbCXZz-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/staging/xlnx_hdcp1x/xilinx-hdcp1x-cipher.c:812: warning: Function parameter or member 'bx' not described in 'xhdcp1x_cipher_setb'
>> drivers/staging/xlnx_hdcp1x/xilinx-hdcp1x-cipher.c:812: warning: Function parameter or member 'by' not described in 'xhdcp1x_cipher_setb'
>> drivers/staging/xlnx_hdcp1x/xilinx-hdcp1x-cipher.c:812: warning: Function parameter or member 'bz' not described in 'xhdcp1x_cipher_setb'
>> drivers/staging/xlnx_hdcp1x/xilinx-hdcp1x-cipher.c:812: warning: Excess function parameter 'x' description in 'xhdcp1x_cipher_setb'
>> drivers/staging/xlnx_hdcp1x/xilinx-hdcp1x-cipher.c:812: warning: Excess function parameter 'y' description in 'xhdcp1x_cipher_setb'
>> drivers/staging/xlnx_hdcp1x/xilinx-hdcp1x-cipher.c:812: warning: Excess function parameter 'z' description in 'xhdcp1x_cipher_setb'


vim +812 drivers/staging/xlnx_hdcp1x/xilinx-hdcp1x-cipher.c

   799	
   800	/**
   801	 * xhdcp1x_cipher_setb - This function writes the contents of the B register in BM0.
   802	 * @ref: reference to cipher instance
   803	 * @x: is the value to be written to bx.
   804	 * @y: is the value to be written to by.
   805	 * @z: is the value to be written to bz.
   806	 *
   807	 * @return:
   808	 *		- SUCCESS if successful.
   809	 *		- NON_ZERO otherwise.
   810	 */
   811	int xhdcp1x_cipher_setb(void *ref, u32 bx, u32 by, u32 bz)
 > 812	{
   813		struct xhdcp1x_cipher *cipher = (struct xhdcp1x_cipher *)ref;
   814		u32 value = 0;
   815	
   816		if (!(xhdcp1x_cipher_is_enabled(cipher)))
   817			return -EINVAL;
   818	
   819		/* Clear the register update bit */
   820		value = xhdcp1x_cipher_read(cipher, XHDCP1X_CIPHER_REG_CONTROL);
   821		value &= ~XHDCP1X_CIPHER_BITMASK_CONTROL_UPDATE;
   822		xhdcp1x_cipher_write(cipher, XHDCP1X_CIPHER_REG_CONTROL, value);
   823	
   824		/* Update the Bx */
   825		value = (bx & XHDCP1X_CIPHER_SET_B);
   826		xhdcp1x_cipher_write(cipher, XHDCP1X_CIPHER_REG_CIPHER_BX, value);
   827	
   828		/* Update the By */
   829		value = (by & XHDCP1X_CIPHER_SET_B);
   830		xhdcp1x_cipher_write(cipher, XHDCP1X_CIPHER_REG_CIPHER_BY, value);
   831	
   832		/* Update the Bz */
   833		value = (bz & XHDCP1X_CIPHER_SET_B);
   834		xhdcp1x_cipher_write(cipher, XHDCP1X_CIPHER_REG_CIPHER_BZ, value);
   835	
   836		/* Set the register update bit */
   837		value = xhdcp1x_cipher_read(cipher, XHDCP1X_CIPHER_REG_CONTROL);
   838		value |= XHDCP1X_CIPHER_BITMASK_CONTROL_UPDATE;
   839		xhdcp1x_cipher_write(cipher, XHDCP1X_CIPHER_REG_CONTROL, value);
   840	
   841		return 0;
   842	}
   843	EXPORT_SYMBOL_GPL(xhdcp1x_cipher_setb);
   844	

-- 
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:[~2023-09-19 18:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-19 18:29 [xilinx-xlnx:xlnx_rebase_v6.1_LTS 1216/1363] drivers/staging/xlnx_hdcp1x/xilinx-hdcp1x-cipher.c:812: warning: Function parameter or member 'bx' not described in 'xhdcp1x_cipher_setb' 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.