All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans Verkuil <hverkuil@xs4all.nl>
To: Rafael van Horn <rafael.vanhorn@gmail.com>, linux-media@vger.kernel.org
Subject: Re: media_build wrong patch
Date: Fri, 18 Jul 2014 02:03:56 +0200	[thread overview]
Message-ID: <53C8646C.4060809@xs4all.nl> (raw)
In-Reply-To: <53C8606C.4000907@gmail.com>

On 07/18/2014 01:46 AM, Rafael van Horn wrote:
> Hi,
> 
> I'd like to file a bug in the latest commit: 
> b6f4c524e0fe8f2d50b0a2f849e022adef76c6cc
> 
> The file backports/api_version.patch rejects to patch the 
> linux/drivers/media/v4l2-core/v4l2-ioctl.c because of wrong line numbers 
> and because the code doesn't match.

You are probably using the build script which downloads the code. That's
build once a day and yours is old. Try again tomorrow, it should be fine
again (or not, we're merging a lot of code, so breakages may happen for
the next few days).

Regards,

	Hans

> 
> 
> This is your code:
> -----------------------------------------------------------------------
> --- a/drivers/media/v4l2-core/v4l2-ioctl.c
> +++ b/drivers/media/v4l2-core/v4l2-ioctl.c
> @@ -1009,7 +1009,7 @@ static int v4l_querycap(const struct 
> v4l2_ioctl_ops *ops,
>   	struct v4l2_capability *cap = (struct v4l2_capability *)arg;
>   	int ret;
> 
> -	cap->version = LINUX_VERSION_CODE;
> +	cap->version = V4L2_VERSION;
> 
>   	ret = ops->vidioc_querycap(file, fh, cap);
> 
> -----------------------------------------------------------------------
> 
> This should be there:
> -----------------------------------------------------------------------
> --- a/drivers/media/v4l2-core/v4l2-ioctl.c
> +++ b/drivers/media/v4l2-core/v4l2-ioctl.c
> @@ -964,7 +964,7 @@ static int v4l_querycap(const struct v4l2_ioctl_ops 
> *ops,
>   {
>   	struct v4l2_capability *cap = (struct v4l2_capability *)arg;
> 
> -	cap->version = LINUX_VERSION_CODE;
> +	cap->version = V4L2_VERSION;
>   	return ops->vidioc_querycap(file, fh, cap);
>   }
> 
> -----------------------------------------------------------------------
> 
> In the C file there's no ret variable and all the code is moved 
> somewhere else, but it's not @@ line 1009.
> 
> The diff file is attached.
> 
> When I hacked the patch file, I built everything.
> 
> Regards.
> Rafael van Horn
> 
> 
> 
> 
> 
> -----------------------------------------------------------------------
> 
> Debian 7.6
> gcc Version: 4:4.7.2-1
> make Version: 3.81-8.2
> perl Version: 5.14.2-21+deb7u1
> linux-headers-amd64 Version: 3.2+46
> patch Version: 2.6.1-3
> 


      reply	other threads:[~2014-07-18  0:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-17 23:46 media_build wrong patch Rafael van Horn
2014-07-18  0:03 ` Hans Verkuil [this message]

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=53C8646C.4060809@xs4all.nl \
    --to=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    --cc=rafael.vanhorn@gmail.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.