All of lore.kernel.org
 help / color / mirror / Atom feed
* [xilinx-xlnx:xlnx_rebase_v6.6 553/860] drivers/media/platform/xilinx/xilinx-hdcp2x-rx.c:120:22: error: implicit declaration of function 'kzalloc'; did you mean 'vzalloc'?
@ 2024-03-04  4:01 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-03-04  4:01 UTC (permalink / raw)
  To: Kunal Rane; +Cc: oe-kbuild-all, git, Michal Simek, Vishal Sagar

Hi Kunal,

First bad commit (maybe != root cause):

tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v6.6
head:   24eec56fe5bd68cae795c37c61276b4dcf218a53
commit: 1204997d6408fb1e0f0bf7420c58e4f0e0db33bb [553/860] v4l2: xilinx: dprx: Add HDCP2x support
config: arc-allmodconfig (https://download.01.org/0day-ci/archive/20240304/202403041120.HXWIOYvb-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240304/202403041120.HXWIOYvb-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/202403041120.HXWIOYvb-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/media/platform/xilinx/xilinx-hdcp2x-rx.c: In function 'xhdcp2x_rx_init':
>> drivers/media/platform/xilinx/xilinx-hdcp2x-rx.c:120:22: error: implicit declaration of function 'kzalloc'; did you mean 'vzalloc'? [-Werror=implicit-function-declaration]
     120 |         xhdcp2x_rx = kzalloc(sizeof(*xhdcp2x_rx), GFP_KERNEL);
         |                      ^~~~~~~
         |                      vzalloc
   drivers/media/platform/xilinx/xilinx-hdcp2x-rx.c:120:20: warning: assignment to 'struct xlnx_hdcp2x_config *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     120 |         xhdcp2x_rx = kzalloc(sizeof(*xhdcp2x_rx), GFP_KERNEL);
         |                    ^
   cc1: some warnings being treated as errors


vim +120 drivers/media/platform/xilinx/xilinx-hdcp2x-rx.c

cec9562010804d Kunal Rane 2023-09-04  105  
cec9562010804d Kunal Rane 2023-09-04  106  int *xhdcp2x_rx_init(struct device *dev, void *protocol_ref, void __iomem *xhdcp_base_address,
cec9562010804d Kunal Rane 2023-09-04  107  		     enum xhdcp2x_rx_protocol protocol_rx, bool is_repeater, u8 lane_count)
cec9562010804d Kunal Rane 2023-09-04  108  {
cec9562010804d Kunal Rane 2023-09-04  109  	int status;
cec9562010804d Kunal Rane 2023-09-04  110  	struct xlnx_hdcp2x_config *xhdcp2x_rx;
cec9562010804d Kunal Rane 2023-09-04  111  
cec9562010804d Kunal Rane 2023-09-04  112  	if (!dev || !protocol_ref || !xhdcp_base_address)
cec9562010804d Kunal Rane 2023-09-04  113  		return ERR_PTR(-EINVAL);
cec9562010804d Kunal Rane 2023-09-04  114  
cec9562010804d Kunal Rane 2023-09-04  115  	if (is_repeater) {
cec9562010804d Kunal Rane 2023-09-04  116  		dev_info(dev, "Hdcp2x repeater functionality not supported\n");
cec9562010804d Kunal Rane 2023-09-04  117  		return ERR_PTR(-EINVAL);
cec9562010804d Kunal Rane 2023-09-04  118  	}
cec9562010804d Kunal Rane 2023-09-04  119  
cec9562010804d Kunal Rane 2023-09-04 @120  	xhdcp2x_rx = kzalloc(sizeof(*xhdcp2x_rx), GFP_KERNEL);
cec9562010804d Kunal Rane 2023-09-04  121  	if (!xhdcp2x_rx)
cec9562010804d Kunal Rane 2023-09-04  122  		return ERR_PTR(-ENOMEM);
cec9562010804d Kunal Rane 2023-09-04  123  
cec9562010804d Kunal Rane 2023-09-04  124  	xhdcp2x_rx->xhdcp2x_hw.hdcp2xcore_address = (void __iomem *)xhdcp_base_address;
cec9562010804d Kunal Rane 2023-09-04  125  	xhdcp2x_rx->dev = dev;
cec9562010804d Kunal Rane 2023-09-04  126  	xhdcp2x_rx->interface_ref = protocol_ref;
cec9562010804d Kunal Rane 2023-09-04  127  	xhdcp2x_rx->interface_base = xhdcp_base_address;
cec9562010804d Kunal Rane 2023-09-04  128  	xhdcp2x_rx->is_repeater = is_repeater ? 1 : 0;
cec9562010804d Kunal Rane 2023-09-04  129  	xhdcp2x_rx->lane_count = lane_count;
cec9562010804d Kunal Rane 2023-09-04  130  	xhdcp2x_rx->protocol = protocol_rx;
cec9562010804d Kunal Rane 2023-09-04  131  	xhdcp2x_rx->rx_caps[0] = HDCP_2_2_RX_CAPS_VERSION_VAL;
cec9562010804d Kunal Rane 2023-09-04  132  	xhdcp2x_rx->rx_caps[1] = 0x00;
cec9562010804d Kunal Rane 2023-09-04  133  	xhdcp2x_rx->rx_caps[2] = (xhdcp2x_rx->mode == xhdcp2x_rx_receiver) ?
cec9562010804d Kunal Rane 2023-09-04  134  				RXCAPS_HDCP_ENABLE :  RXCAPS_REPEATER;
cec9562010804d Kunal Rane 2023-09-04  135  	xhdcp2x_rx->keys_loaded = 0;
cec9562010804d Kunal Rane 2023-09-04  136  
cec9562010804d Kunal Rane 2023-09-04  137  	xhdcp2x_rx->xhdcp2x_hw.rng_inst.rng_coreaddress =
cec9562010804d Kunal Rane 2023-09-04  138  		xhdcp2x_rx->xhdcp2x_hw.hdcp2xcore_address + XHDCP2X_RNG_OFFSET;
cec9562010804d Kunal Rane 2023-09-04  139  	xhdcp2x_rx->xhdcp2x_hw.mmult_inst.mmult_coreaddress =
cec9562010804d Kunal Rane 2023-09-04  140  		xhdcp2x_rx->xhdcp2x_hw.hdcp2xcore_address + XHDCP2X_MMULT_OFFSET;
cec9562010804d Kunal Rane 2023-09-04  141  	xhdcp2x_rx->xhdcp2x_hw.cipher_inst.cipher_coreaddress =
cec9562010804d Kunal Rane 2023-09-04  142  		xhdcp2x_rx->xhdcp2x_hw.hdcp2xcore_address + XHDCP2X_CIPHER_OFFSET;
cec9562010804d Kunal Rane 2023-09-04  143  
cec9562010804d Kunal Rane 2023-09-04  144  	status = xlnx_hdcp2x_rng_cfg_init(&xhdcp2x_rx->xhdcp2x_hw.rng_inst);
cec9562010804d Kunal Rane 2023-09-04  145  	if (status < 0)
cec9562010804d Kunal Rane 2023-09-04  146  		return ERR_PTR(-EINVAL);
cec9562010804d Kunal Rane 2023-09-04  147  
cec9562010804d Kunal Rane 2023-09-04  148  	status = xlnx_hdcp2x_mmult_cfginit(&xhdcp2x_rx->xhdcp2x_hw.mmult_inst);
cec9562010804d Kunal Rane 2023-09-04  149  	if (status < 0)
cec9562010804d Kunal Rane 2023-09-04  150  		return ERR_PTR(-EINVAL);
cec9562010804d Kunal Rane 2023-09-04  151  
cec9562010804d Kunal Rane 2023-09-04  152  	status = xlnx_hdcp2x_cipher_cfg_init(&xhdcp2x_rx->xhdcp2x_hw.cipher_inst);
cec9562010804d Kunal Rane 2023-09-04  153  	if (status < 0)
cec9562010804d Kunal Rane 2023-09-04  154  		return ERR_PTR(-EINVAL);
cec9562010804d Kunal Rane 2023-09-04  155  
cec9562010804d Kunal Rane 2023-09-04  156  	xlnx_hdcp2x_rx_cipher_init(&xhdcp2x_rx->xhdcp2x_hw.cipher_inst);
cec9562010804d Kunal Rane 2023-09-04  157  
cec9562010804d Kunal Rane 2023-09-04  158  	mutex_init(&xhdcp2x_rx->hdcprx_mutex);
cec9562010804d Kunal Rane 2023-09-04  159  
cec9562010804d Kunal Rane 2023-09-04  160  	INIT_DELAYED_WORK(&xhdcp2x_rx->sm_work, xhdcp2x_sm_work_func);
cec9562010804d Kunal Rane 2023-09-04  161  
cec9562010804d Kunal Rane 2023-09-04  162  	return (void *)xhdcp2x_rx;
cec9562010804d Kunal Rane 2023-09-04  163  }
cec9562010804d Kunal Rane 2023-09-04  164  

:::::: The code at line 120 was first introduced by commit
:::::: cec9562010804d75b0950a245e7d8e2d778510ba v4l2: xilinx: Add HDCP2x Rx support

:::::: TO: Kunal Rane <kunal.rane@amd.com>
:::::: CC: Michal Simek <michal.simek@amd.com>

-- 
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:[~2024-03-04  4:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-04  4:01 [xilinx-xlnx:xlnx_rebase_v6.6 553/860] drivers/media/platform/xilinx/xilinx-hdcp2x-rx.c:120:22: error: implicit declaration of function 'kzalloc'; did you mean 'vzalloc'? 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.