From: Mauro Carvalho Chehab <maurochehab@gmail.com>
To: Andy Walls <awalls@md.metrocast.net>
Cc: Vincent McIntyre <vincent.mcintyre@gmail.com>,
linux-media@vger.kernel.org
Subject: Re: new_build on ubuntu (dvbdev.c)
Date: Sun, 14 Nov 2010 20:15:19 -0200 [thread overview]
Message-ID: <4CE05F77.3080703@gmail.com> (raw)
In-Reply-To: <1289736763.2431.10.camel@localhost>
Em 14-11-2010 10:12, Andy Walls escreveu:
> On Sun, 2010-11-14 at 20:26 +1100, Vincent McIntyre wrote:
>> On 11/14/10, Andy Walls <awalls@md.metrocast.net> wrote:
>>> On Sun, 2010-11-14 at 09:08 +1100, Vincent McIntyre wrote:
>
>
>>> noop_llseek() is a newer kernl function that provided a trivial llseek()
>>> implmenetation for drivers that don't support llseek() but still want to
>>> provide a successful return code:
>>>
>>> http://lkml.org/lkml/2010/4/9/193
>>> http://lkml.org/lkml/2010/4/9/184
>>>
>> Thanks for explaining this.
I've added several patches for the new-build today, in order to make it compile
against older kernels. I tested compilation here with both RHEL6 (2.6.32) and
Fedora 14 (2.6.35) and compilation is working fine. Didn't test the drivers.
I'm not sure if the remote controller will properly work with my quick backport.
>> First dumb question - (I'll try to minimise these)
>>
>> * Inspection of the patches new_build/backports shows all the patches
>> are to things in the v4l/ tree
>> * Yet the patch you pointed to is to fs/read_write.c and include/linux/fs.h
>>
>> So my question: should this function be implemented as a patch to
>> files outside the v4l/ tree
>
> I'm not sure, I haven't looked at the build system. I'm guessing no.
>
> The build system *should* be using the kernel include files from your
> distribution. Patching up fs.h in the git tree may not have any effect,
> and patching up fs/read_write.c in the git tree certainly won't have any
> effect.
>
> You also don't want to muck with your installed kernel files.
The patches generally reverse-apply some upstream change. Andy's approach
could be done via compat.h. I opted to just backport the upstream patch.
Anyway, there were other problems on it, due to other API changes, and to
the move of the rc-core from .../IR to .../rc directory.
I opted to simplify the backports, avoiding to duplicate the same patch on several
different directories.
>> or as additional .c and .h files within the v4l top level. I guess the
>> latter would then need to be #included in a bunch of v4l files. I'm
>> mainly unsure of the convention here.
>
> 1. A simple, stupid patch would just a statically defined, non-inline
> noop_llseek() function in each affected .c file.
>
> In this particular case I'm not sure adding a special .h file, a new .c
> file, a way to build the new .c file, and a bunch of #include's is worth
> it.
>
> or
>
> 2. I suppose you could have a patch add a .h file that defined a
> non-inline static noop_llseek() function and just #include that where
> needed.
>
> or
>
> 3. You could just add
>
> #define noop_llseek NULL
>
> instead of a real function in either of 1 or 2 above.
>
>> I checked the mkrufky tree mentioned in README.patches but that didn't help.
>> I also checked the mercurial tree and could not find any backport of
>> noop_llseek,
>> but I may have missed something.
>>
>> The consumers of the function appear to be:
>> $ find v4l -exec grep -li noop_llseek {} \;
>> v4l/dvb_frontend.c
>> v4l/lirc_imon.c
>> v4l/lirc_dev.c
>> v4l/lirc_it87.c
>> v4l/imon.c
>> v4l/dvb_ca_en50221.c
>> v4l/dvb_net.c
>> v4l/dvbdev.c
>> v4l/lirc_sasem.c
>> v4l/av7110_av.c
>> v4l/av7110.c
>> v4l/av7110_ir.c
>> v4l/dst_ca.c
>> v4l/firedtv-ci.c
>
> Regards,
> Andy
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-11-14 22:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-13 22:08 new_build on ubuntu (dvbdev.c) Vincent McIntyre
2010-11-13 21:33 ` Andy Walls
2010-11-14 9:26 ` Vincent McIntyre
2010-11-14 12:12 ` Andy Walls
2010-11-14 22:15 ` Mauro Carvalho Chehab [this message]
2010-11-15 9:39 ` Vincent McIntyre
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=4CE05F77.3080703@gmail.com \
--to=maurochehab@gmail.com \
--cc=awalls@md.metrocast.net \
--cc=linux-media@vger.kernel.org \
--cc=vincent.mcintyre@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox