Re: [PATCH 3/3 v2] staging: rtl8712: Drop get_recvframe_data()
by kernel test robot
Hi Kees,
I love your patch! Yet something to improve:
[auto build test ERROR on staging/staging-testing]
url: https://github.com/0day-ci/linux/commits/Kees-Cook/staging-rtl-Check-for-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git fa783154524a71ab74e293cd8251155e5971952b
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220115/202201151447.WZ02BFf7-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/190b2c80a0e1844b5e38a9311830227d2...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Kees-Cook/staging-rtl-Check-for-NULL-header-value/20220115-122817
git checkout 190b2c80a0e1844b5e38a9311830227d27533471
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/staging/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/staging/rtl8712/rtl871x_recv.c: In function 'r8712_portctrl':
>> drivers/staging/rtl8712/rtl871x_recv.c:237:8: error: 'precvframe' undeclared (first use in this function); did you mean 'precv_frame'?
237 | ptr = precvframe->u.hdr.rx_data;
| ^~~~~~~~~~
| precv_frame
drivers/staging/rtl8712/rtl871x_recv.c:237:8: note: each undeclared identifier is reported only once for each function it appears in
vim +237 drivers/staging/rtl8712/rtl871x_recv.c
223
224 /*###set the security information in the recv_frame */
225 union recv_frame *r8712_portctrl(struct _adapter *adapter,
226 union recv_frame *precv_frame)
227 {
228 u8 *psta_addr, *ptr;
229 uint auth_alg;
230 struct recv_frame_hdr *pfhdr;
231 struct sta_info *psta;
232 struct sta_priv *pstapriv;
233 union recv_frame *prtnframe;
234 u16 ether_type;
235
236 pstapriv = &adapter->stapriv;
> 237 ptr = precvframe->u.hdr.rx_data;
238 pfhdr = &precv_frame->u.hdr;
239 psta_addr = pfhdr->attrib.ta;
240 psta = r8712_get_stainfo(pstapriv, psta_addr);
241 auth_alg = adapter->securitypriv.AuthAlgrthm;
242 if (auth_alg == 2) {
243 /* get ether_type */
244 ptr = ptr + pfhdr->attrib.hdrlen + LLC_HEADER_SIZE;
245 ether_type = get_unaligned_be16(ptr);
246
247 if (psta && psta->ieee8021x_blocked) {
248 /* blocked
249 * only accept EAPOL frame
250 */
251 if (ether_type == 0x888e) {
252 prtnframe = precv_frame;
253 } else {
254 /*free this frame*/
255 r8712_free_recvframe(precv_frame,
256 &adapter->recvpriv.free_recv_queue);
257 prtnframe = NULL;
258 }
259 } else {
260 /* allowed
261 * check decryption status, and decrypt the
262 * frame if needed
263 */
264 prtnframe = precv_frame;
265 /* check is the EAPOL frame or not (Rekey) */
266 if (ether_type == 0x888e) {
267 /* check Rekey */
268 prtnframe = precv_frame;
269 }
270 }
271 } else {
272 prtnframe = precv_frame;
273 }
274 return prtnframe;
275 }
276
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
Re: [PATCH v3 5/5] HID: add spi-hid, transport driver for HID over SPI bus
by kernel test robot
Hi Dmitry,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on hid/for-next]
[also build test WARNING on jikos-trivial/for-next v5.16 next-20220114]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Dmitry-Antipov/Add-spi-hid-trans...
base: https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-next
config: powerpc-allyesconfig (https://download.01.org/0day-ci/archive/20220115/202201151433.04afZ5aZ-lk...)
compiler: powerpc-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/3773341a27b69fe38edd03823be246aa3...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Dmitry-Antipov/Add-spi-hid-transport-for-HID-over-SPI-bus/20220115-103254
git checkout 3773341a27b69fe38edd03823be246aa38001e6a
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/hid/spi-hid/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/hid/spi-hid/spi-hid-core.c:203:8: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
203 | static const char *const spi_hid_power_mode_string(u8 power_state)
| ^~~~~
--
In file included from include/trace/define_trace.h:102,
from drivers/hid/spi-hid/spi-hid_trace.h:198,
from drivers/hid/spi-hid/trace.c:11:
drivers/hid/spi-hid/./spi-hid_trace.h: In function 'trace_raw_output_spi_hid':
>> drivers/hid/spi-hid/./spi-hid_trace.h:144:19: warning: format '%d' expects a matching 'int' argument [-Wformat=]
144 | TP_printk("spi%d.%d: (%04x:%04x v%d) HID v%d.%d state i:%d p:%d len i:%d o:%d r:%d flags %c:%d",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/trace_events.h:399:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
399 | trace_event_printf(iter, print); \
| ^~~~~
drivers/hid/spi-hid/./spi-hid_trace.h:144:9: note: in expansion of macro 'TP_printk'
144 | TP_printk("spi%d.%d: (%04x:%04x v%d) HID v%d.%d state i:%d p:%d len i:%d o:%d r:%d flags %c:%d",
| ^~~~~~~~~
In file included from include/trace/trace_events.h:433,
from include/trace/define_trace.h:102,
from drivers/hid/spi-hid/spi-hid_trace.h:198,
from drivers/hid/spi-hid/trace.c:11:
drivers/hid/spi-hid/./spi-hid_trace.h:144:102: note: format string is defined here
144 | TP_printk("spi%d.%d: (%04x:%04x v%d) HID v%d.%d state i:%d p:%d len i:%d o:%d r:%d flags %c:%d",
| ~^
| |
| int
--
>> drivers/hid/spi-hid/trace.c:10: warning: expecting prototype for trace.c(). Prototype was for CREATE_TRACE_POINTS() instead
--
>> drivers/hid/spi-hid/spi-hid-core.c:378: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
* Handle the reset response from the FW by sending a request for the device
vim +203 drivers/hid/spi-hid/spi-hid-core.c
202
> 203 static const char *const spi_hid_power_mode_string(u8 power_state)
204 {
205 switch (power_state) {
206 case SPI_HID_POWER_MODE_ON:
207 return "d0";
208 case SPI_HID_POWER_MODE_SLEEP:
209 return "d2";
210 case SPI_HID_POWER_MODE_OFF:
211 return "d3";
212 case SPI_HID_POWER_MODE_WAKING_SLEEP:
213 return "d3*";
214 default:
215 return "unknown";
216 }
217 }
218
219 static void spi_hid_suspend(struct spi_hid *shid)
220 {
221 struct device *dev = &shid->spi->dev;
222
223 if (shid->power_state == SPI_HID_POWER_MODE_OFF)
224 return;
225
226 disable_irq(shid->spi->irq);
227 shid->ready = false;
228 sysfs_notify(&dev->kobj, NULL, "ready");
229
230 spi_hid_of_assert_reset(&shid->conf);
231
232 shid->power_state = SPI_HID_POWER_MODE_OFF;
233 }
234
235 static void spi_hid_resume(struct spi_hid *shid)
236 {
237 if (shid->power_state == SPI_HID_POWER_MODE_ON)
238 return;
239
240 shid->power_state = SPI_HID_POWER_MODE_ON;
241 enable_irq(shid->spi->irq);
242 shid->input_transfer_pending = 0;
243
244 spi_hid_of_deassert_reset(&shid->conf);
245 }
246
247 static struct hid_device *spi_hid_disconnect_hid(struct spi_hid *shid)
248 {
249 struct hid_device *hid = shid->hid;
250
251 shid->hid = NULL;
252
253 return hid;
254 }
255
256 static void spi_hid_stop_hid(struct spi_hid *shid)
257 {
258 struct hid_device *hid;
259
260 hid = spi_hid_disconnect_hid(shid);
261 if (hid) {
262 cancel_work_sync(&shid->create_device_work);
263 cancel_work_sync(&shid->refresh_device_work);
264 hid_destroy_device(hid);
265 }
266 }
267
268 static void spi_hid_error_handler(struct spi_hid *shid)
269 {
270 struct device *dev = &shid->spi->dev;
271 int ret;
272
273 if (shid->power_state == SPI_HID_POWER_MODE_OFF)
274 return;
275
276 if (shid->attempts++ >= SPI_HID_MAX_RESET_ATTEMPTS) {
277 dev_err(dev, "unresponsive device, aborting.\n");
278 spi_hid_stop_hid(shid);
279 spi_hid_of_assert_reset(&shid->conf);
280 ret = spi_hid_of_power_down(&shid->conf);
281 if (ret) {
282 dev_err(dev, "failed to disable regulator\n");
283 shid->regulator_error_count++;
284 shid->regulator_last_error = ret;
285 }
286 return;
287 }
288
289 trace_spi_hid_error_handler(shid);
290
291 shid->ready = false;
292 sysfs_notify(&dev->kobj, NULL, "ready");
293
294 spi_hid_of_assert_reset(&shid->conf);
295
296 shid->power_state = SPI_HID_POWER_MODE_OFF;
297 shid->input_transfer_pending = 0;
298 cancel_work_sync(&shid->reset_work);
299
300 spi_hid_of_sleep_minimal_reset_delay(&shid->conf);
301
302 shid->power_state = SPI_HID_POWER_MODE_ON;
303
304 spi_hid_of_deassert_reset(&shid->conf);
305 }
306
307 static void spi_hid_error_work(struct work_struct *work)
308 {
309 struct spi_hid *shid = container_of(work, struct spi_hid, error_work);
310
311 spi_hid_error_handler(shid);
312 }
313
314 static int spi_hid_send_output_report(struct spi_hid *shid,
315 struct spi_hid_output_report *report)
316 {
317 struct spi_hid_output_buf *buf = &shid->output;
318 struct device *dev = &shid->spi->dev;
319 u16 report_length;
320 u16 padded_length;
321 u8 padding;
322 int ret;
323
324 if (report->content_length > shid->desc.max_output_length) {
325 dev_err(dev, "Output report too big, content_length 0x%x\n",
326 report->content_length);
327 ret = -E2BIG;
328 goto out;
329 }
330
331 spi_hid_populate_output_header(buf->header, &shid->conf, report);
332
333 if (report->content_length)
334 memcpy(&buf->content, report->content, report->content_length);
335
336 report_length = sizeof(buf->header) + report->content_length;
337 padded_length = round_up(report_length, 4);
338 padding = padded_length - report_length;
339 memset(&buf->content[report->content_length], 0, padding);
340
341 ret = spi_hid_output(shid, buf, padded_length);
342 if (ret) {
343 dev_err(dev, "Failed output transfer\n");
344 goto out;
345 }
346
347 return 0;
348
349 out:
350 return ret;
351 }
352
353 static int spi_hid_sync_request(struct spi_hid *shid,
354 struct spi_hid_output_report *report)
355 {
356 struct device *dev = &shid->spi->dev;
357 int ret = 0;
358
359 ret = spi_hid_send_output_report(shid, report);
360 if (ret) {
361 dev_err(dev, "Failed to transfer output report\n");
362 return ret;
363 }
364
365 mutex_unlock(&shid->lock);
366 ret = wait_for_completion_interruptible_timeout(&shid->output_done,
367 msecs_to_jiffies(1000));
368 mutex_lock(&shid->lock);
369 if (ret == 0) {
370 dev_err(dev, "Response timed out\n");
371 return -ETIMEDOUT;
372 }
373
374 return 0;
375 }
376
377 /**
> 378 * Handle the reset response from the FW by sending a request for the device
379 * descriptor.
380 */
381 static void spi_hid_reset_work(struct work_struct *work)
382 {
383 struct spi_hid *shid =
384 container_of(work, struct spi_hid, reset_work);
385 struct device *dev = &shid->spi->dev;
386 struct spi_hid_output_report report = {
387 .report_type = SPI_HID_OUTPUT_REPORT_TYPE_DEVICE_DESC_REQUEST,
388 .content_length = 0x0,
389 .content_id = SPI_HID_OUTPUT_REPORT_CONTENT_ID_DESC_REQUEST,
390 .content = NULL,
391 };
392 int ret;
393
394 trace_spi_hid_reset_work(shid);
395
396 if (shid->ready) {
397 dev_err(dev, "Spontaneous FW reset!");
398 shid->ready = false;
399 sysfs_notify(&dev->kobj, NULL, "ready");
400 shid->dir_count++;
401 }
402
403 if (shid->power_state == SPI_HID_POWER_MODE_OFF)
404 return;
405
406 if (flush_work(&shid->create_device_work))
407 dev_err(dev, "Reset handler waited for create_device_work");
408
409 if (flush_work(&shid->refresh_device_work))
410 dev_err(dev, "Reset handler waited for refresh_device_work");
411
412 mutex_lock(&shid->lock);
413 ret = spi_hid_sync_request(shid, &report);
414 mutex_unlock(&shid->lock);
415 if (ret) {
416 dev_WARN_ONCE(dev, true,
417 "Failed to send device descriptor request\n");
418 spi_hid_error_handler(shid);
419 }
420 }
421
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[xilinx-xlnx:master 10/326] drivers/media/i2c/adv7511-v4l2.c:2102:63: sparse: sparse: incorrect type in argument 1 (different base types)
by kernel test robot
Hi Quanyang,
First bad commit (maybe != root cause):
tree: https://github.com/Xilinx/linux-xlnx master
head: 6a698dbaaf0e6caa053476c2f661b36885a0ce30
commit: bd76b5963aee700d5e6ff0cd29834bfdaf05532e [10/326] media: adv7511-v4l2: fix compile error
config: alpha-randconfig-s031-20220113 (https://download.01.org/0day-ci/archive/20220115/202201151359.AyphE74l-lk...)
compiler: alpha-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://github.com/Xilinx/linux-xlnx/commit/bd76b5963aee700d5e6ff0cd29834...
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx master
git checkout bd76b5963aee700d5e6ff0cd29834bfdaf05532e
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=alpha SHELL=/bin/bash drivers/media/i2c/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/media/i2c/adv7511-v4l2.c:2102:63: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@
drivers/media/i2c/adv7511-v4l2.c:2102:63: sparse: expected restricted __be32 const [usertype] *p
drivers/media/i2c/adv7511-v4l2.c:2102:63: sparse: got unsigned int const [usertype] *[assigned] prop
drivers/media/i2c/adv7511-v4l2.c:2106:65: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@
drivers/media/i2c/adv7511-v4l2.c:2106:65: sparse: expected restricted __be32 const [usertype] *p
drivers/media/i2c/adv7511-v4l2.c:2106:65: sparse: got unsigned int const [usertype] *[assigned] prop
drivers/media/i2c/adv7511-v4l2.c:2110:62: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@
drivers/media/i2c/adv7511-v4l2.c:2110:62: sparse: expected restricted __be32 const [usertype] *p
drivers/media/i2c/adv7511-v4l2.c:2110:62: sparse: got unsigned int const [usertype] *[assigned] prop
drivers/media/i2c/adv7511-v4l2.c:2117:55: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@
drivers/media/i2c/adv7511-v4l2.c:2117:55: sparse: expected restricted __be32 const [usertype] *p
drivers/media/i2c/adv7511-v4l2.c:2117:55: sparse: got unsigned int const [usertype] *[assigned] prop
drivers/media/i2c/adv7511-v4l2.c:2121:55: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@
drivers/media/i2c/adv7511-v4l2.c:2121:55: sparse: expected restricted __be32 const [usertype] *p
drivers/media/i2c/adv7511-v4l2.c:2121:55: sparse: got unsigned int const [usertype] *[assigned] prop
drivers/media/i2c/adv7511-v4l2.c:2125:55: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@
drivers/media/i2c/adv7511-v4l2.c:2125:55: sparse: expected restricted __be32 const [usertype] *p
drivers/media/i2c/adv7511-v4l2.c:2125:55: sparse: got unsigned int const [usertype] *[assigned] prop
drivers/media/i2c/adv7511-v4l2.c:2129:55: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@
drivers/media/i2c/adv7511-v4l2.c:2129:55: sparse: expected restricted __be32 const [usertype] *p
drivers/media/i2c/adv7511-v4l2.c:2129:55: sparse: got unsigned int const [usertype] *[assigned] prop
drivers/media/i2c/adv7511-v4l2.c:2133:55: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@
drivers/media/i2c/adv7511-v4l2.c:2133:55: sparse: expected restricted __be32 const [usertype] *p
drivers/media/i2c/adv7511-v4l2.c:2133:55: sparse: got unsigned int const [usertype] *[assigned] prop
drivers/media/i2c/adv7511-v4l2.c:2137:55: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@
drivers/media/i2c/adv7511-v4l2.c:2137:55: sparse: expected restricted __be32 const [usertype] *p
drivers/media/i2c/adv7511-v4l2.c:2137:55: sparse: got unsigned int const [usertype] *[assigned] prop
drivers/media/i2c/adv7511-v4l2.c:2141:55: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@
drivers/media/i2c/adv7511-v4l2.c:2141:55: sparse: expected restricted __be32 const [usertype] *p
drivers/media/i2c/adv7511-v4l2.c:2141:55: sparse: got unsigned int const [usertype] *[assigned] prop
drivers/media/i2c/adv7511-v4l2.c:2151:42: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@
drivers/media/i2c/adv7511-v4l2.c:2151:42: sparse: expected restricted __be32 const [usertype] *p
drivers/media/i2c/adv7511-v4l2.c:2151:42: sparse: got unsigned int const [usertype] *[assigned] prop
drivers/media/i2c/adv7511-v4l2.c:2157:55: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@
drivers/media/i2c/adv7511-v4l2.c:2157:55: sparse: expected restricted __be32 const [usertype] *p
drivers/media/i2c/adv7511-v4l2.c:2157:55: sparse: got unsigned int const [usertype] *[assigned] prop
drivers/media/i2c/adv7511-v4l2.c:2161:55: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@
drivers/media/i2c/adv7511-v4l2.c:2161:55: sparse: expected restricted __be32 const [usertype] *p
drivers/media/i2c/adv7511-v4l2.c:2161:55: sparse: got unsigned int const [usertype] *[assigned] prop
drivers/media/i2c/adv7511-v4l2.c:2165:55: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@
drivers/media/i2c/adv7511-v4l2.c:2165:55: sparse: expected restricted __be32 const [usertype] *p
drivers/media/i2c/adv7511-v4l2.c:2165:55: sparse: got unsigned int const [usertype] *[assigned] prop
drivers/media/i2c/adv7511-v4l2.c:2169:55: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@
drivers/media/i2c/adv7511-v4l2.c:2169:55: sparse: expected restricted __be32 const [usertype] *p
drivers/media/i2c/adv7511-v4l2.c:2169:55: sparse: got unsigned int const [usertype] *[assigned] prop
drivers/media/i2c/adv7511-v4l2.c:2174:63: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@
drivers/media/i2c/adv7511-v4l2.c:2174:63: sparse: expected restricted __be32 const [usertype] *p
drivers/media/i2c/adv7511-v4l2.c:2174:63: sparse: got unsigned int const [usertype] *[assigned] prop
drivers/media/i2c/adv7511-v4l2.c:2181:72: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@
drivers/media/i2c/adv7511-v4l2.c:2181:72: sparse: expected restricted __be32 const [usertype] *p
drivers/media/i2c/adv7511-v4l2.c:2181:72: sparse: got unsigned int const [usertype] *[assigned] prop
drivers/media/i2c/adv7511-v4l2.c:2186:72: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@
drivers/media/i2c/adv7511-v4l2.c:2186:72: sparse: expected restricted __be32 const [usertype] *p
drivers/media/i2c/adv7511-v4l2.c:2186:72: sparse: got unsigned int const [usertype] *[assigned] prop
drivers/media/i2c/adv7511-v4l2.c:2191:72: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@
drivers/media/i2c/adv7511-v4l2.c:2191:72: sparse: expected restricted __be32 const [usertype] *p
drivers/media/i2c/adv7511-v4l2.c:2191:72: sparse: got unsigned int const [usertype] *[assigned] prop
drivers/media/i2c/adv7511-v4l2.c:2196:72: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@
drivers/media/i2c/adv7511-v4l2.c:2196:72: sparse: expected restricted __be32 const [usertype] *p
drivers/media/i2c/adv7511-v4l2.c:2196:72: sparse: got unsigned int const [usertype] *[assigned] prop
drivers/media/i2c/adv7511-v4l2.c:2201:72: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@
drivers/media/i2c/adv7511-v4l2.c:2201:72: sparse: expected restricted __be32 const [usertype] *p
drivers/media/i2c/adv7511-v4l2.c:2201:72: sparse: got unsigned int const [usertype] *[assigned] prop
drivers/media/i2c/adv7511-v4l2.c:2206:72: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@
drivers/media/i2c/adv7511-v4l2.c:2206:72: sparse: expected restricted __be32 const [usertype] *p
drivers/media/i2c/adv7511-v4l2.c:2206:72: sparse: got unsigned int const [usertype] *[assigned] prop
drivers/media/i2c/adv7511-v4l2.c:2211:72: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@
drivers/media/i2c/adv7511-v4l2.c:2211:72: sparse: expected restricted __be32 const [usertype] *p
drivers/media/i2c/adv7511-v4l2.c:2211:72: sparse: got unsigned int const [usertype] *[assigned] prop
drivers/media/i2c/adv7511-v4l2.c:2216:72: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@
drivers/media/i2c/adv7511-v4l2.c:2216:72: sparse: expected restricted __be32 const [usertype] *p
drivers/media/i2c/adv7511-v4l2.c:2216:72: sparse: got unsigned int const [usertype] *[assigned] prop
drivers/media/i2c/adv7511-v4l2.c:2221:72: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@
drivers/media/i2c/adv7511-v4l2.c:2221:72: sparse: expected restricted __be32 const [usertype] *p
drivers/media/i2c/adv7511-v4l2.c:2221:72: sparse: got unsigned int const [usertype] *[assigned] prop
drivers/media/i2c/adv7511-v4l2.c:2226:72: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@
drivers/media/i2c/adv7511-v4l2.c:2226:72: sparse: expected restricted __be32 const [usertype] *p
drivers/media/i2c/adv7511-v4l2.c:2226:72: sparse: got unsigned int const [usertype] *[assigned] prop
drivers/media/i2c/adv7511-v4l2.c:2231:72: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@
drivers/media/i2c/adv7511-v4l2.c:2231:72: sparse: expected restricted __be32 const [usertype] *p
drivers/media/i2c/adv7511-v4l2.c:2231:72: sparse: got unsigned int const [usertype] *[assigned] prop
drivers/media/i2c/adv7511-v4l2.c:2236:72: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@
drivers/media/i2c/adv7511-v4l2.c:2236:72: sparse: expected restricted __be32 const [usertype] *p
drivers/media/i2c/adv7511-v4l2.c:2236:72: sparse: got unsigned int const [usertype] *[assigned] prop
vim +2102 drivers/media/i2c/adv7511-v4l2.c
5a544cce2177fe drivers/media/i2c/adv7511.c Hans Verkuil 2013-08-23 2086
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2087
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2088 static void adv7511_get_ofdt_config(struct i2c_client *client,
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2089 struct adv7511_state *state)
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2090 {
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2091 struct device_node *dn = client->dev.of_node;
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2092 struct device_node *np;
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2093 struct adv7511_config *config = &state->cfg;
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2094 u32 const *prop;
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2095 int size;
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2096 bool vin_loaded, vout_loaded;
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2097
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2098 vin_loaded = vout_loaded = false;
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2099
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2100 prop = of_get_property(dn, "edid-addr", &size);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2101 if (prop)
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 @2102 state->pdata.i2c_edid = (uint8_t)be32_to_cpup(prop);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2103
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2104 prop = of_get_property(dn, "pktmem-addr", &size);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2105 if (prop)
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2106 state->pdata.i2c_pktmem = (uint8_t)be32_to_cpup(prop);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2107
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2108 prop = of_get_property(dn, "cec-addr", &size);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2109 if (prop)
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2110 state->pdata.i2c_cec = (uint8_t)be32_to_cpup(prop);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2111
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2112 np = of_find_node_by_name(dn, "video-input");
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2113 if (np) {
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2114 prop = of_get_property(np, "input-id", &size);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2115 if (prop)
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2116 config->in_params.input_id =
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2117 (uint8_t)be32_to_cpup(prop);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2118 prop = of_get_property(np, "input-style", &size);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2119 if (prop)
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2120 config->in_params.input_style =
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2121 (uint8_t)be32_to_cpup(prop);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2122 prop = of_get_property(np, "input-color-depth", &size);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2123 if (prop)
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2124 config->in_params.input_color_depth =
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2125 (uint8_t)be32_to_cpup(prop);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2126 prop = of_get_property(np, "bit-justification", &size);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2127 if (prop)
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2128 config->in_params.bit_justification =
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2129 (uint8_t)be32_to_cpup(prop);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2130 prop = of_get_property(np, "hsync-polarity", &size);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2131 if (prop)
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2132 config->in_params.hsync_polarity =
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2133 (uint8_t)be32_to_cpup(prop);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2134 prop = of_get_property(np, "vsync-polarity", &size);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2135 if (prop)
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2136 config->in_params.vsync_polarity =
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2137 (uint8_t)be32_to_cpup(prop);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2138 prop = of_get_property(np, "clock-delay", &size);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2139 if (prop)
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2140 config->in_params.clock_delay =
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2141 (uint8_t)be32_to_cpup(prop);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2142 vin_loaded = true;
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2143 } else {
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2144 pr_info("No video input configuration, using device default\n");
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2145 }
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2146
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2147 np = of_find_node_by_name(dn, "video-output");
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2148 if (np) {
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2149 prop = of_get_property(np, "hdmi-mode", &size);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2150 if (prop) {
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2151 if (be32_to_cpup(prop) == 1)
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2152 config->out_params.hdmi_mode = true;
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2153 }
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2154 prop = of_get_property(np, "output-format", &size);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2155 if (prop)
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2156 config->out_params.output_format =
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2157 (uint8_t)be32_to_cpup(prop);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2158 prop = of_get_property(np, "output-color-space", &size);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2159 if (prop)
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2160 config->out_params.output_color_space =
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2161 (uint8_t)be32_to_cpup(prop);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2162 prop = of_get_property(np, "up-conversion", &size);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2163 if (prop)
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2164 config->out_params.up_conversion =
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2165 (uint8_t)be32_to_cpup(prop);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2166 prop = of_get_property(np, "csc-enable", &size);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2167 if (prop)
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2168 config->out_params.csc_enable =
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2169 (uint8_t)be32_to_cpup(prop);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2170 if (config->out_params.csc_enable) {
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2171 prop = of_get_property(np, "csc-scaling-factor", &size);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2172 if (prop) {
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2173 config->out_params.csc_scaling_factor =
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2174 (uint8_t)be32_to_cpup(prop);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2175 }
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2176 np = of_find_node_by_name(dn, "csc-coefficients");
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2177 if (np) {
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2178 prop = of_get_property(np, "a1", &size);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2179 if (prop) {
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2180 config->out_params.csc_coeff.a1 =
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2181 (uint16_t)be32_to_cpup(prop);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2182 }
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2183 prop = of_get_property(np, "a2", &size);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2184 if (prop) {
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2185 config->out_params.csc_coeff.a2 =
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2186 (uint16_t)be32_to_cpup(prop);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2187 }
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2188 prop = of_get_property(np, "a3", &size);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2189 if (prop) {
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2190 config->out_params.csc_coeff.a3 =
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2191 (uint16_t)be32_to_cpup(prop);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2192 }
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2193 prop = of_get_property(np, "a4", &size);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2194 if (prop) {
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2195 config->out_params.csc_coeff.a4 =
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2196 (uint16_t)be32_to_cpup(prop);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2197 }
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2198 prop = of_get_property(np, "b1", &size);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2199 if (prop) {
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2200 config->out_params.csc_coeff.b1 =
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2201 (uint16_t)be32_to_cpup(prop);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2202 }
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2203 prop = of_get_property(np, "b2", &size);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2204 if (prop) {
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2205 config->out_params.csc_coeff.b2 =
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2206 (uint16_t)be32_to_cpup(prop);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2207 }
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2208 prop = of_get_property(np, "b3", &size);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2209 if (prop) {
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2210 config->out_params.csc_coeff.b3 =
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2211 (uint16_t)be32_to_cpup(prop);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2212 }
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2213 prop = of_get_property(np, "b4", &size);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2214 if (prop) {
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2215 config->out_params.csc_coeff.b4 =
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2216 (uint16_t)be32_to_cpup(prop);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2217 }
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2218 prop = of_get_property(np, "c1", &size);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2219 if (prop) {
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2220 config->out_params.csc_coeff.c1 =
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2221 (uint16_t)be32_to_cpup(prop);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2222 }
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2223 prop = of_get_property(np, "c2", &size);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2224 if (prop) {
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2225 config->out_params.csc_coeff.c2 =
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2226 (uint16_t)be32_to_cpup(prop);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2227 }
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2228 prop = of_get_property(np, "c3", &size);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2229 if (prop) {
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2230 config->out_params.csc_coeff.c3 =
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2231 (uint16_t)be32_to_cpup(prop);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2232 }
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2233 prop = of_get_property(np, "c4", &size);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2234 if (prop) {
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2235 config->out_params.csc_coeff.c4 =
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2236 (uint16_t)be32_to_cpup(prop);
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2237 }
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2238 } else {
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2239 pr_info("No CSC coefficients, using default\n");
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2240 }
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2241 }
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2242 vout_loaded = true;
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2243 } else {
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2244 pr_info("No video output configuration, using device default\n");
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2245 }
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2246
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2247 if (vin_loaded && vout_loaded)
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2248 config->loaded = true;
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2249 }
c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2250
:::::: The code at line 2102 was first introduced by commit
:::::: c2644339194bd7be4ce6023d72f5e7a03f55ef6b drivers: media: Customized adv7511 for Xylon LogiCVC (deprecated)
:::::: TO: Radhey Shyam Pandey <radhey.shyam.pandey(a)xilinx.com>
:::::: CC: Michal Simek <michal.simek(a)xilinx.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[deller-parisc:5.16-vdso-6 3/3] arch/parisc/kernel/vdso32/sigtramp.S:26: Error: unknown pseudo-op: `.proc'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git 5.16-vdso-6
head: b7e375e2ced653c4615242d90232d4a0238dcac1
commit: b7e375e2ced653c4615242d90232d4a0238dcac1 [3/3] p3-vdso patch by Dave Anglin
config: parisc-randconfig-r005-20220114 (https://download.01.org/0day-ci/archive/20220115/202201151353.1cReL9cI-lk...)
compiler: hppa64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git/c...
git remote add deller-parisc https://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git
git fetch --no-tags deller-parisc 5.16-vdso-6
git checkout b7e375e2ced653c4615242d90232d4a0238dcac1
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=parisc prepare
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/parisc/kernel/vdso64/Makefile:30: FORCE prerequisite is missing
gcc: error: unrecognized command-line option '-mno-space-regs'
gcc: error: unrecognized command-line option '-mdisable-fpregs'
gcc: error: unrecognized command-line option '-mschedule=8000'
arch/parisc/kernel/vdso32/sigtramp.S: Assembler messages:
>> arch/parisc/kernel/vdso32/sigtramp.S:26: Error: unknown pseudo-op: `.proc'
>> arch/parisc/kernel/vdso32/sigtramp.S:27: Error: unknown pseudo-op: `.callinfo'
>> arch/parisc/kernel/vdso32/sigtramp.S:28: Error: unknown pseudo-op: `.entry'
arch/parisc/kernel/vdso32/sigtramp.S:31: Error: no such instruction: `ldi 0,%r25'
>> arch/parisc/kernel/vdso32/sigtramp.S:32: Error: no such instruction: `ble 0x100(%sr2,%r0)'
arch/parisc/kernel/vdso32/sigtramp.S:33: Error: no such instruction: `ldi 173,%r20'
arch/parisc/kernel/vdso32/sigtramp.S:35: Error: no such instruction: `ldi 1,%r25'
arch/parisc/kernel/vdso32/sigtramp.S:36: Error: no such instruction: `ble 0x100(%sr2,%r0)'
arch/parisc/kernel/vdso32/sigtramp.S:37: Error: no such instruction: `ldi 173,%r20'
>> arch/parisc/kernel/vdso32/sigtramp.S:39: Error: unknown pseudo-op: `.exit'
>> arch/parisc/kernel/vdso32/sigtramp.S:40: Error: unknown pseudo-op: `.procend'
>> arch/parisc/kernel/vdso32/sigtramp.S:87: Error: unknown pseudo-op: `.stringz'
arch/parisc/kernel/vdso32/restart_syscall.S: Assembler messages:
arch/parisc/kernel/vdso32/restart_syscall.S:15: Error: bad or irreducible absolute expression
arch/parisc/kernel/vdso32/restart_syscall.S:15: Error: junk at end of line, first unrecognized character is `:'
arch/parisc/kernel/vdso32/restart_syscall.S:25: Error: no such instruction: `ldw 0(%sp),%r31'
arch/parisc/kernel/vdso32/restart_syscall.S:28: Error: no such instruction: `be 0x100(%sr2,%r0)'
arch/parisc/kernel/vdso32/restart_syscall.S:29: Error: no such instruction: `ldi 0,%r20'
arch/parisc/kernel/vdso32/restart_syscall.S:31: Error: .cfi_endproc without corresponding .cfi_startproc
make[2]: *** [arch/parisc/kernel/vdso32/Makefile:36: arch/parisc/kernel/vdso32/sigtramp.o] Error 1
arch/parisc/kernel/vdso32/datapage.S: Assembler messages:
arch/parisc/kernel/vdso32/datapage.S:18: Error: bad or irreducible absolute expression
arch/parisc/kernel/vdso32/datapage.S:18: Error: junk at end of line, first unrecognized character is `:'
arch/parisc/kernel/vdso32/datapage.S:23: Error: no such instruction: `bl 1f,%r1'
arch/parisc/kernel/vdso32/datapage.S:24: Error: no such instruction: `depi 0,31,12,%r1'
arch/parisc/kernel/vdso32/datapage.S:25: Error: no such instruction: `bv %r0(%r2)'
arch/parisc/kernel/vdso32/datapage.S:26: Error: no such instruction: `ldw 0(%r1),%r28'
arch/parisc/kernel/vdso32/datapage.S:28: Error: .cfi_endproc without corresponding .cfi_startproc
gcc: error: unrecognized command-line option '-mno-fast-indirect-calls'; did you mean '-mno-force-indirect-call'?
make[2]: *** [arch/parisc/kernel/vdso32/Makefile:36: arch/parisc/kernel/vdso32/restart_syscall.o] Error 1
gcc: error: unrecognized command-line option '-mno-long-calls'
gcc: error: unrecognized command-line option '-mlong-calls'
make[2]: *** [arch/parisc/kernel/vdso32/Makefile:36: arch/parisc/kernel/vdso32/datapage.o] Error 1
gcc: error: unrecognized command-line option '-mno-fast-indirect-calls'; did you mean '-mno-force-indirect-call'?
make[2]: *** [arch/parisc/kernel/vdso32/Makefile:39: arch/parisc/kernel/vdso32/vdso32_generic.o] Error 1
make[2]: Target 'include/generated/vdso32-offsets.h' not remade because of errors.
make[1]: *** [arch/parisc/Makefile:188: vdso_prepare] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:219: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +26 arch/parisc/kernel/vdso32/sigtramp.S
12
13 .text
14
15 /* The nop here is a hack. The dwarf2 unwind routines subtract 1 from
16 the return address to get an address in the middle of the presumed
17 call instruction. Since we don't have a call here, we artifically
18 extend the range covered by the unwind info by adding a nop before
19 the real start. */
20 nop
21
22 // ENTRY_CFI(__kernel_sigtramp_rt)
23 .globl __kernel_sigtramp_rt // 32/64 anhängen
24 .type __kernel_sigtramp_rt, @function
25 __kernel_sigtramp_rt:
> 26 .proc
> 27 .callinfo NO_CALLS
> 28 .entry
29
30 .Lsigrt_start = . - 4
31 0: ldi 0, %r25 /* (in_syscall=0) */
> 32 ble 0x100(%sr2, %r0)
33 ldi __NR_rt_sigreturn, %r20
34
35 1: ldi 1, %r25 /* (in_syscall=1) */
36 ble 0x100(%sr2, %r0)
37 ldi __NR_rt_sigreturn, %r20
38 .Lsigrt_end:
> 39 .exit
> 40 .procend
41 .size __kernel_sigtramp_rt,.-__kernel_sigtramp_rt
42
43 // ENDPROC_CFI(__kernel_sigtramp_rt)
44
45 .section .eh_frame,"a",@progbits
46
47 /* This is where the mcontext_t struct can be found on the stack. */
48 // #define PTREGS -0x2a0 /* 32-bit process offset */
49 #define PTREGS CONTEXT_REGS32 /* 32-bit process offset 672 */
50
51 /* Size of regs. */
52 #define RSIZE 4
53
54 /* Register sp can be found at offset 0x7c in mcontext_t structure. */
55 .macro cfa_save
56 .byte 0x0f /* DW_CFA_def_cfa_expression */
57 .uleb128 9f - 1f /* length */
58 1:
59 .byte 0x8e /* DW_OP_breg30 */
60 .sleb128 PTREGS
61 .byte 0x23 /* DW_OP_plus_uconst */
62 .uleb128 0x7c
63 .byte 0x06 /* DW_OP_deref */
64 9:
65 .endm
66
67 /* Register REGNO can be found at offset OFS of the mcontext_t structure. */
68 .macro rsave regno,ofs
69 .byte 0x10 /* DW_CFA_expression */
70 .uleb128 \regno; /* regno */
71 .uleb128 9f - 1f /* length */
72 1:
73 .byte 0x8e /* DW_OP_breg30 */
74 .sleb128 PTREGS
75 .ifne \ofs
76 .byte 0x23 /* DW_OP_plus_uconst */
77 .uleb128 \ofs
78 .endif
79 9:
80 .endm
81
82 .Lcie:
83 .long .Lcie_end - .Lcie_start
84 .Lcie_start:
85 .long 0 /* CIE ID */
86 .byte 1 /* Version number */
> 87 .stringz "zRS" /* NUL-terminated augmentation string */
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[mingo-tip:sched/headers 2114/2384] arch/mips/n64/irq.c:13:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'arch_init_irq'
by kernel test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head: 4c707c1c0de83967079b4e385012fa5b00e2cd11
commit: 9b3c6ae85a5f3f3a0471ed5fba5c33471c2d9290 [2114/2384] headers/deps: irq: Optimize <linux/irq.h> dependencies, remove <linux/slab.h>
config: mips-randconfig-r036-20220113 (https://download.01.org/0day-ci/archive/20220115/202201151359.yIVoREOh-lk...)
compiler: mips-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=...
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip sched/headers
git checkout 9b3c6ae85a5f3f3a0471ed5fba5c33471c2d9290
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash arch/mips/n64/ drivers/media/rc/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/interrupt.h:23,
from arch/mips/n64/irq.c:8:
arch/mips/include/asm/irq.h:23:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'init_IRQ'
23 | extern void __init init_IRQ(void);
| ^~~~~~~~
>> arch/mips/n64/irq.c:13:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'arch_init_irq'
13 | void __init arch_init_irq(void)
| ^~~~~~~~~~~~~
vim +13 arch/mips/n64/irq.c
baec970aa5ba11 Lauri Kasanen 2021-01-13 12
baec970aa5ba11 Lauri Kasanen 2021-01-13 @13 void __init arch_init_irq(void)
:::::: The code at line 13 was first introduced by commit
:::::: baec970aa5ba11099ad7a91773350c91fb2113f0 mips: Add N64 machine type
:::::: TO: Lauri Kasanen <cand(a)gmx.com>
:::::: CC: Thomas Bogendoerfer <tsbogend(a)alpha.franken.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[mingo-tip:sched/headers 2114/2384] arch/mips/vr41xx/common/irq.c:105:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'arch_init_irq'
by kernel test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head: 4c707c1c0de83967079b4e385012fa5b00e2cd11
commit: 9b3c6ae85a5f3f3a0471ed5fba5c33471c2d9290 [2114/2384] headers/deps: irq: Optimize <linux/irq.h> dependencies, remove <linux/slab.h>
config: mips-randconfig-r034-20220113 (https://download.01.org/0day-ci/archive/20220115/202201151230.NFPpJt0T-lk...)
compiler: mipsel-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=...
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip sched/headers
git checkout 9b3c6ae85a5f3f3a0471ed5fba5c33471c2d9290
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash arch/mips/vr41xx/common/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/irq.h:19,
from include/linux/irqdesc.h:6,
from arch/mips/vr41xx/common/irq.c:7:
arch/mips/include/asm/irq.h:23:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'init_IRQ'
23 | extern void __init init_IRQ(void);
| ^~~~~~~~
arch/mips/vr41xx/common/irq.c:22:5: warning: no previous prototype for 'cascade_irq' [-Wmissing-prototypes]
22 | int cascade_irq(unsigned int irq, int (*get_irq)(unsigned int))
| ^~~~~~~~~~~
>> arch/mips/vr41xx/common/irq.c:105:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'arch_init_irq'
105 | void __init arch_init_irq(void)
| ^~~~~~~~~~~~~
vim +105 arch/mips/vr41xx/common/irq.c
979934da9e7a00 Yoichi Yuasa 2005-09-03 104
979934da9e7a00 Yoichi Yuasa 2005-09-03 @105 void __init arch_init_irq(void)
:::::: The code at line 105 was first introduced by commit
:::::: 979934da9e7a0005bd9c8b1d7d00febb59ff67f7 [PATCH] mips: update IRQ handling for vr41xx
:::::: TO: Yoichi Yuasa <yuasa(a)hh.iij4u.or.jp>
:::::: CC: Linus Torvalds <torvalds(a)evo.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[freescale-fslc:pr/521 1977/9999] drivers/soc/imx/busfreq-imx8mq.c:304:6: error: redefinition of 'request_bus_freq'
by kernel test robot
Hi Jindong,
First bad commit (maybe != root cause):
tree: https://github.com/Freescale/linux-fslc pr/521
head: e1200a7e26459892adfac6cb313bd8458b21fa95
commit: 5c690f143dd1d4a1c4fcbd013ee3d7d8388e1e6b [1977/9999] MA-17911 soc: imx: Allow IMX8M_BUSFREQ to be loadable as module
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20220115/202201151028.FVJ5Rjlo-lk...)
compiler: m68k-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/Freescale/linux-fslc/commit/5c690f143dd1d4a1c4fcbd013e...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/521
git checkout 5c690f143dd1d4a1c4fcbd013ee3d7d8388e1e6b
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/init.h:5,
from include/linux/arm-smccc.h:8,
from drivers/soc/imx/busfreq-imx8mq.c:15:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/m68k/include/asm/page_mm.h:169:50: warning: ordered comparison of pointer with null pointer [-Wextra]
169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
| ^~
include/linux/compiler.h:78:45: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:9: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:143:17: note: in expansion of macro 'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
drivers/soc/imx/busfreq-imx8mq.c: At top level:
>> drivers/soc/imx/busfreq-imx8mq.c:304:6: error: redefinition of 'request_bus_freq'
304 | void request_bus_freq(enum bus_freq_mode mode)
| ^~~~~~~~~~~~~~~~
In file included from drivers/soc/imx/busfreq-imx8mq.c:16:
include/linux/busfreq-imx.h:58:20: note: previous definition of 'request_bus_freq' with type 'void(enum bus_freq_mode)'
58 | static inline void request_bus_freq(enum bus_freq_mode mode)
| ^~~~~~~~~~~~~~~~
>> drivers/soc/imx/busfreq-imx8mq.c:340:6: error: redefinition of 'release_bus_freq'
340 | void release_bus_freq(enum bus_freq_mode mode)
| ^~~~~~~~~~~~~~~~
In file included from drivers/soc/imx/busfreq-imx8mq.c:16:
include/linux/busfreq-imx.h:61:20: note: previous definition of 'release_bus_freq' with type 'void(enum bus_freq_mode)'
61 | static inline void release_bus_freq(enum bus_freq_mode mode)
| ^~~~~~~~~~~~~~~~
>> drivers/soc/imx/busfreq-imx8mq.c:393:5: error: redefinition of 'get_bus_freq_mode'
393 | int get_bus_freq_mode(void)
| ^~~~~~~~~~~~~~~~~
In file included from drivers/soc/imx/busfreq-imx8mq.c:16:
include/linux/busfreq-imx.h:72:19: note: previous definition of 'get_bus_freq_mode' with type 'int(void)'
72 | static inline int get_bus_freq_mode(void)
| ^~~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for NEED_MULTIPLE_NODES
Depends on DISCONTIGMEM || NUMA
Selected by
- SINGLE_MEMORY_CHUNK && MMU
vim +/request_bus_freq +304 drivers/soc/imx/busfreq-imx8mq.c
43e127d4a2ffa1 Bai Ping 2017-10-30 303
43e127d4a2ffa1 Bai Ping 2017-10-30 @304 void request_bus_freq(enum bus_freq_mode mode)
43e127d4a2ffa1 Bai Ping 2017-10-30 305 {
43e127d4a2ffa1 Bai Ping 2017-10-30 306 mutex_lock(&bus_freq_mutex);
43e127d4a2ffa1 Bai Ping 2017-10-30 307
43e127d4a2ffa1 Bai Ping 2017-10-30 308 if (mode == BUS_FREQ_HIGH)
43e127d4a2ffa1 Bai Ping 2017-10-30 309 high_bus_count++;
43e127d4a2ffa1 Bai Ping 2017-10-30 310 else if (mode == BUS_FREQ_AUDIO)
43e127d4a2ffa1 Bai Ping 2017-10-30 311 audio_bus_count++;
43e127d4a2ffa1 Bai Ping 2017-10-30 312 else if (mode == BUS_FREQ_LOW)
43e127d4a2ffa1 Bai Ping 2017-10-30 313 low_bus_count++;
43e127d4a2ffa1 Bai Ping 2017-10-30 314
43e127d4a2ffa1 Bai Ping 2017-10-30 315 if (busfreq_suspended || !bus_freq_scaling_initialized ||
43e127d4a2ffa1 Bai Ping 2017-10-30 316 !bus_freq_scaling_is_active) {
43e127d4a2ffa1 Bai Ping 2017-10-30 317 mutex_unlock(&bus_freq_mutex);
43e127d4a2ffa1 Bai Ping 2017-10-30 318 return;
43e127d4a2ffa1 Bai Ping 2017-10-30 319 }
43e127d4a2ffa1 Bai Ping 2017-10-30 320
43e127d4a2ffa1 Bai Ping 2017-10-30 321 cancel_low_bus_freq_handler();
43e127d4a2ffa1 Bai Ping 2017-10-30 322
43e127d4a2ffa1 Bai Ping 2017-10-30 323 if ((mode == BUS_FREQ_HIGH) && (!high_bus_freq_mode)) {
43e127d4a2ffa1 Bai Ping 2017-10-30 324 set_high_bus_freq(1);
43e127d4a2ffa1 Bai Ping 2017-10-30 325 mutex_unlock(&bus_freq_mutex);
43e127d4a2ffa1 Bai Ping 2017-10-30 326 return;
43e127d4a2ffa1 Bai Ping 2017-10-30 327 }
43e127d4a2ffa1 Bai Ping 2017-10-30 328
43e127d4a2ffa1 Bai Ping 2017-10-30 329 if ((mode == BUS_FREQ_AUDIO) && (!high_bus_freq_mode) &&
43e127d4a2ffa1 Bai Ping 2017-10-30 330 (!audio_bus_freq_mode)) {
43e127d4a2ffa1 Bai Ping 2017-10-30 331 set_low_bus_freq();
43e127d4a2ffa1 Bai Ping 2017-10-30 332 mutex_unlock(&bus_freq_mutex);
43e127d4a2ffa1 Bai Ping 2017-10-30 333 return;
43e127d4a2ffa1 Bai Ping 2017-10-30 334 }
43e127d4a2ffa1 Bai Ping 2017-10-30 335
43e127d4a2ffa1 Bai Ping 2017-10-30 336 mutex_unlock(&bus_freq_mutex);
43e127d4a2ffa1 Bai Ping 2017-10-30 337 }
43e127d4a2ffa1 Bai Ping 2017-10-30 338 EXPORT_SYMBOL(request_bus_freq);
43e127d4a2ffa1 Bai Ping 2017-10-30 339
43e127d4a2ffa1 Bai Ping 2017-10-30 @340 void release_bus_freq(enum bus_freq_mode mode)
43e127d4a2ffa1 Bai Ping 2017-10-30 341 {
43e127d4a2ffa1 Bai Ping 2017-10-30 342 mutex_lock(&bus_freq_mutex);
43e127d4a2ffa1 Bai Ping 2017-10-30 343 if (mode == BUS_FREQ_HIGH) {
43e127d4a2ffa1 Bai Ping 2017-10-30 344 if (high_bus_count == 0) {
43e127d4a2ffa1 Bai Ping 2017-10-30 345 dev_err(busfreq_dev, "high bus count mismatch!\n");
43e127d4a2ffa1 Bai Ping 2017-10-30 346 dump_stack();
43e127d4a2ffa1 Bai Ping 2017-10-30 347 mutex_unlock(&bus_freq_mutex);
43e127d4a2ffa1 Bai Ping 2017-10-30 348 return;
43e127d4a2ffa1 Bai Ping 2017-10-30 349 }
43e127d4a2ffa1 Bai Ping 2017-10-30 350 high_bus_count--;
43e127d4a2ffa1 Bai Ping 2017-10-30 351 } else if (mode == BUS_FREQ_AUDIO) {
43e127d4a2ffa1 Bai Ping 2017-10-30 352 if (audio_bus_count == 0) {
43e127d4a2ffa1 Bai Ping 2017-10-30 353 dev_err(busfreq_dev, "audio bus count mismatch!\n");
43e127d4a2ffa1 Bai Ping 2017-10-30 354 dump_stack();
43e127d4a2ffa1 Bai Ping 2017-10-30 355 mutex_unlock(&bus_freq_mutex);
43e127d4a2ffa1 Bai Ping 2017-10-30 356 return;
43e127d4a2ffa1 Bai Ping 2017-10-30 357 }
43e127d4a2ffa1 Bai Ping 2017-10-30 358 audio_bus_count--;
43e127d4a2ffa1 Bai Ping 2017-10-30 359 } else if (mode == BUS_FREQ_LOW) {
43e127d4a2ffa1 Bai Ping 2017-10-30 360 if (low_bus_count == 0) {
43e127d4a2ffa1 Bai Ping 2017-10-30 361 dev_err(busfreq_dev, "low bus count mismatch!\n");
43e127d4a2ffa1 Bai Ping 2017-10-30 362 dump_stack();
43e127d4a2ffa1 Bai Ping 2017-10-30 363 mutex_unlock(&bus_freq_mutex);
43e127d4a2ffa1 Bai Ping 2017-10-30 364 return;
43e127d4a2ffa1 Bai Ping 2017-10-30 365 }
43e127d4a2ffa1 Bai Ping 2017-10-30 366 low_bus_count--;
43e127d4a2ffa1 Bai Ping 2017-10-30 367 }
43e127d4a2ffa1 Bai Ping 2017-10-30 368
43e127d4a2ffa1 Bai Ping 2017-10-30 369 if (busfreq_suspended || !bus_freq_scaling_initialized ||
43e127d4a2ffa1 Bai Ping 2017-10-30 370 !bus_freq_scaling_is_active) {
43e127d4a2ffa1 Bai Ping 2017-10-30 371 mutex_unlock(&bus_freq_mutex);
43e127d4a2ffa1 Bai Ping 2017-10-30 372 return;
43e127d4a2ffa1 Bai Ping 2017-10-30 373 }
43e127d4a2ffa1 Bai Ping 2017-10-30 374
43e127d4a2ffa1 Bai Ping 2017-10-30 375 if ((!audio_bus_freq_mode) && (high_bus_count == 0) &&
43e127d4a2ffa1 Bai Ping 2017-10-30 376 (audio_bus_count != 0)) {
43e127d4a2ffa1 Bai Ping 2017-10-30 377 set_low_bus_freq();
43e127d4a2ffa1 Bai Ping 2017-10-30 378 mutex_unlock(&bus_freq_mutex);
43e127d4a2ffa1 Bai Ping 2017-10-30 379 return;
43e127d4a2ffa1 Bai Ping 2017-10-30 380 }
43e127d4a2ffa1 Bai Ping 2017-10-30 381
43e127d4a2ffa1 Bai Ping 2017-10-30 382 if ((!low_bus_freq_mode) && (high_bus_count == 0) &&
43e127d4a2ffa1 Bai Ping 2017-10-30 383 (audio_bus_count == 0)) {
43e127d4a2ffa1 Bai Ping 2017-10-30 384 set_low_bus_freq();
43e127d4a2ffa1 Bai Ping 2017-10-30 385 mutex_unlock(&bus_freq_mutex);
0e73ee47110db0 Bai Ping 2018-01-08 386 return;
43e127d4a2ffa1 Bai Ping 2017-10-30 387 }
43e127d4a2ffa1 Bai Ping 2017-10-30 388
43e127d4a2ffa1 Bai Ping 2017-10-30 389 mutex_unlock(&bus_freq_mutex);
43e127d4a2ffa1 Bai Ping 2017-10-30 390 }
43e127d4a2ffa1 Bai Ping 2017-10-30 391 EXPORT_SYMBOL(release_bus_freq);
43e127d4a2ffa1 Bai Ping 2017-10-30 392
43e127d4a2ffa1 Bai Ping 2017-10-30 @393 int get_bus_freq_mode(void)
43e127d4a2ffa1 Bai Ping 2017-10-30 394 {
43e127d4a2ffa1 Bai Ping 2017-10-30 395 return cur_bus_freq_mode;
43e127d4a2ffa1 Bai Ping 2017-10-30 396 }
43e127d4a2ffa1 Bai Ping 2017-10-30 397 EXPORT_SYMBOL(get_bus_freq_mode);
43e127d4a2ffa1 Bai Ping 2017-10-30 398
:::::: The code at line 304 was first introduced by commit
:::::: 43e127d4a2ffa1fdad45da32c320035719feff90 MLK-16689-03 driver: soc: Add busfreq driver for imx8mq
:::::: TO: Bai Ping <ping.bai(a)nxp.com>
:::::: CC: Dong Aisheng <aisheng.dong(a)nxp.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week