All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fengguang Wu <fengguang.wu@intel.com>
To: kernel-janitors@vger.kernel.org
Subject: [samsung:v4l-framedesc 168/235] drivers/media/usb/pwc/pwc-if.c:1003:16: warning: ignoring return val
Date: Sat, 29 Sep 2012 05:49:04 +0000	[thread overview]
Message-ID: <20120929054904.GA24004@localhost> (raw)

Hi Ezequiel,

FYI, there are new compile warnings show up in

tree:   git://git.infradead.org/users/kmpark/linux-samsung v4l-framedesc
head:   fc4382b505966b2574c985588ac23825dd639e29
commit: 896f38f582730a19eb49677105b4fe4c0270b82e [168/235] [media] videobuf2-core: Replace BUG_ON and return an error at vb2_queue_init()
config: x86_64-allmodconfig

All warnings:

drivers/media/usb/pwc/pwc-if.c: In function 'usb_pwc_probe':
drivers/media/usb/pwc/pwc-if.c:1003:16: warning: ignoring return value of 'vb2_queue_init', declared with attribute warn_unused_result [-Wunused-result]
--
drivers/media/usb/uvc/uvc_queue.c: In function 'uvc_queue_init':
drivers/media/usb/uvc/uvc_queue.c:134:16: warning: ignoring return value of 'vb2_queue_init', declared with attribute warn_unused_result [-Wunused-result]

vim +1003 drivers/media/usb/pwc/pwc-if.c

885fe18f drivers/media/video/pwc/pwc-if.c (Hans de Goede  2011-06-06   996) 	/* Init videobuf2 queue structure */
885fe18f drivers/media/video/pwc/pwc-if.c (Hans de Goede  2011-06-06   997) 	pdev->vb_queue.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
885fe18f drivers/media/video/pwc/pwc-if.c (Hans de Goede  2011-06-06   998) 	pdev->vb_queue.io_modes = VB2_MMAP | VB2_USERPTR | VB2_READ;
885fe18f drivers/media/video/pwc/pwc-if.c (Hans de Goede  2011-06-06   999) 	pdev->vb_queue.drv_priv = pdev;
885fe18f drivers/media/video/pwc/pwc-if.c (Hans de Goede  2011-06-06  1000) 	pdev->vb_queue.buf_struct_size = sizeof(struct pwc_frame_buf);
885fe18f drivers/media/video/pwc/pwc-if.c (Hans de Goede  2011-06-06  1001) 	pdev->vb_queue.ops = &pwc_vb_queue_ops;
885fe18f drivers/media/video/pwc/pwc-if.c (Hans de Goede  2011-06-06  1002) 	pdev->vb_queue.mem_ops = &vb2_vmalloc_memops;
885fe18f drivers/media/video/pwc/pwc-if.c (Hans de Goede  2011-06-06 @1003) 	vb2_queue_init(&pdev->vb_queue);
885fe18f drivers/media/video/pwc/pwc-if.c (Hans de Goede  2011-06-06  1004) 
9a7b2d1f drivers/media/video/pwc/pwc-if.c (Hans de Goede  2011-06-06  1005) 	/* Init video_device structure */
9a7b2d1f drivers/media/video/pwc/pwc-if.c (Hans de Goede  2011-06-06  1006) 	memcpy(&pdev->vdev, &pwc_template, sizeof(pwc_template));
9a7b2d1f drivers/media/video/pwc/pwc-if.c (Hans de Goede  2011-06-06  1007) 	strcpy(pdev->vdev.name, name);
2e43dec0 drivers/media/video/pwc/pwc-if.c (Hans Verkuil   2012-07-02  1008) 	pdev->vdev.queue = &pdev->vb_queue;
2e43dec0 drivers/media/video/pwc/pwc-if.c (Hans Verkuil   2012-07-02  1009) 	pdev->vdev.queue->lock = &pdev->vb_queue_lock;
76ae8538 drivers/media/video/pwc/pwc-if.c (Hans de Goede  2011-07-19  1010) 	set_bit(V4L2_FL_USE_FH_PRIO, &pdev->vdev.flags);
9a7b2d1f drivers/media/video/pwc/pwc-if.c (Hans de Goede  2011-06-06  1011) 	video_set_drvdata(&pdev->vdev, pdev);

The code at line 1003 was first introduced by commit:
885fe18 [media] pwc: Replace private buffer management code with videobuf2

---
0-DAY kernel build testing backend         Open Source Technology Centre
Fengguang Wu, Yuanhan Liu                              Intel Corporation

                 reply	other threads:[~2012-09-29  5:49 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=20120929054904.GA24004@localhost \
    --to=fengguang.wu@intel.com \
    --cc=kernel-janitors@vger.kernel.org \
    /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.