From: Antti Palosaari <crope@iki.fi>
To: kbuild test robot <lkp@intel.com>
Cc: kbuild-all@01.org, linux-media@vger.kernel.org,
Hans Verkuil <hverkuil@xs4all.nl>
Subject: Re: [PATCHv5 10/13] hackrf: add support for transmitter
Date: Sun, 11 Oct 2015 17:42:05 +0300 [thread overview]
Message-ID: <561A753D.8010600@iki.fi> (raw)
In-Reply-To: <201510110807.WZHKJhfM%fengguang.wu@intel.com>
Moikka!
IMHO it is false positive. Variable which is defined on line 777 is used
just few lines later on line 782 as can be seen easily. I think it is
because option CONFIG_DYNAMIC_DEBUG is not set => dev_dbg_ratelimited()
macro is likely just NOP and gives that warning. Maybe some more logic
to is needed in order to avoid that kind of warnings.
regards
Antti
On 10/11/2015 03:55 AM, kbuild test robot wrote:
> Hi Antti,
>
> [auto build test WARNING on linuxtv-media/master -- if it's inappropriate base, please ignore]
>
> config: i386-randconfig-i1-201541 (attached as .config)
> reproduce:
> # save the attached .config to linux build tree
> make ARCH=i386
>
> All warnings (new ones prefixed by >>):
>
> drivers/media/usb/hackrf/hackrf.c: In function 'hackrf_buf_queue':
>>> drivers/media/usb/hackrf/hackrf.c:777:24: warning: unused variable 'intf' [-Wunused-variable]
> struct usb_interface *intf = dev->intf;
> ^
>
> vim +/intf +777 drivers/media/usb/hackrf/hackrf.c
>
> 761
> 762 /* Need at least 8 buffers */
> 763 if (vq->num_buffers + *nbuffers < 8)
> 764 *nbuffers = 8 - vq->num_buffers;
> 765 *nplanes = 1;
> 766 sizes[0] = PAGE_ALIGN(dev->buffersize);
> 767
> 768 dev_dbg(dev->dev, "nbuffers=%d sizes[0]=%d\n", *nbuffers, sizes[0]);
> 769 return 0;
> 770 }
> 771
> 772 static void hackrf_buf_queue(struct vb2_buffer *vb)
> 773 {
> 774 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
> 775 struct vb2_queue *vq = vb->vb2_queue;
> 776 struct hackrf_dev *dev = vb2_get_drv_priv(vq);
> > 777 struct usb_interface *intf = dev->intf;
> 778 struct hackrf_buffer *buffer = container_of(vbuf, struct hackrf_buffer, vb);
> 779 struct list_head *buffer_list;
> 780 unsigned long flags;
> 781
> 782 dev_dbg_ratelimited(&intf->dev, "\n");
> 783
> 784 if (vq->type == V4L2_BUF_TYPE_SDR_CAPTURE)
> 785 buffer_list = &dev->rx_buffer_list;
>
> ---
> 0-DAY kernel test infrastructure Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all Intel Corporation
>
--
http://palosaari.fi/
next prev parent reply other threads:[~2015-10-11 14:42 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-10 16:50 [PATCHv5 00/13] SDR transmitter API Antti Palosaari
2015-10-10 16:50 ` [PATCHv5 01/13] v4l2: rename V4L2_TUNER_ADC to V4L2_TUNER_SDR Antti Palosaari
2015-10-10 16:50 ` [PATCHv5 02/13] v4l2: add RF gain control Antti Palosaari
2015-10-10 16:50 ` [PATCHv5 03/13] DocBook: document tuner " Antti Palosaari
2015-10-10 16:51 ` [PATCHv5 04/13] v4l2: add support for SDR transmitter Antti Palosaari
2015-10-10 16:51 ` [PATCHv5 05/13] DocBook: document " Antti Palosaari
2015-10-10 16:51 ` [PATCHv5 06/13] v4l: add type field to v4l2_modulator struct Antti Palosaari
2015-10-10 16:51 ` [PATCHv5 07/13] DocBook: add modulator type field Antti Palosaari
2015-10-10 16:51 ` [PATCHv5 08/13] hackrf: add control for RF amplifier Antti Palosaari
2015-10-10 16:51 ` [PATCHv5 09/13] hackrf: switch to single function which configures everything Antti Palosaari
2015-10-10 16:51 ` [PATCHv5 10/13] hackrf: add support for transmitter Antti Palosaari
2015-10-11 0:55 ` kbuild test robot
2015-10-11 14:42 ` Antti Palosaari [this message]
2015-10-12 15:42 ` Sebastian Reichel
2015-10-10 16:51 ` [PATCHv5 11/13] hackrf: do not set human readable name for formats Antti Palosaari
2015-10-10 16:51 ` [PATCHv5 12/13] DocBook: add SDR specific info to G_TUNER / S_TUNER Antti Palosaari
2015-10-10 16:51 ` [PATCHv5 13/13] DocBook: add SDR specific info to G_MODULATOR / S_MODULATOR Antti Palosaari
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=561A753D.8010600@iki.fi \
--to=crope@iki.fi \
--cc=hverkuil@xs4all.nl \
--cc=kbuild-all@01.org \
--cc=linux-media@vger.kernel.org \
--cc=lkp@intel.com \
/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.