From: kernel test robot <lkp@intel.com>
To: Kunal Rane <kunal.rane@amd.com>
Cc: oe-kbuild-all@lists.linux.dev, git@amd.com,
Michal Simek <monstr@monstr.eu>,
Vishal Sagar <vishal.sagar@amd.co>
Subject: [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'?
Date: Mon, 4 Mar 2024 12:01:17 +0800 [thread overview]
Message-ID: <202403041120.HXWIOYvb-lkp@intel.com> (raw)
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
reply other threads:[~2024-03-04 4:02 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=202403041120.HXWIOYvb-lkp@intel.com \
--to=lkp@intel.com \
--cc=git@amd.com \
--cc=kunal.rane@amd.com \
--cc=monstr@monstr.eu \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=vishal.sagar@amd.co \
/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.