LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] DVB: Delete unused header file linux/dvb/version.h.
@ 2007-03-23 15:32 Robert P. J. Day
2007-03-23 15:47 ` [v4l-dvb-maintainer] " Marcel Siegert
0 siblings, 1 reply; 8+ messages in thread
From: Robert P. J. Day @ 2007-03-23 15:32 UTC (permalink / raw)
To: Linux Kernel Mailing List; +Cc: Andrew Morton, v4l-dvb-maintainer
Delete the unreferenced header file include/linux/dvb/version.h.
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
---
diff --git a/include/linux/dvb/version.h b/include/linux/dvb/version.h
deleted file mode 100644
index 6183c9c..0000000
--- a/include/linux/dvb/version.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * version.h
- *
- * Copyright (C) 2000 Holger Waechtler <holger@convergence.de>
- * for convergence integrated media GmbH
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * as published by the Free Software Foundation; either version 2.1
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- */
-
-#ifndef _DVBVERSION_H_
-#define _DVBVERSION_H_
-
-#define DVB_API_VERSION 3
-#define DVB_API_VERSION_MINOR 1
-
-#endif /*_DVBVERSION_H_*/
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA
http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [v4l-dvb-maintainer] [PATCH] DVB: Delete unused header file linux/dvb/version.h.
2007-03-23 15:32 [PATCH] DVB: Delete unused header file linux/dvb/version.h Robert P. J. Day
@ 2007-03-23 15:47 ` Marcel Siegert
2007-03-23 15:50 ` Robert P. J. Day
2007-03-23 16:02 ` Arjan van de Ven
0 siblings, 2 replies; 8+ messages in thread
From: Marcel Siegert @ 2007-03-23 15:47 UTC (permalink / raw)
To: v4l-dvb-maintainer
Cc: Robert P. J. Day, Linux Kernel Mailing List, Andrew Morton
On Friday 23 March 2007, Robert P. J. Day wrote:
>
> Delete the unreferenced header file include/linux/dvb/version.h.
>
> Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
>
NACK
this header is unreferenced in kernel, but used for applications that compile for userspace
to determine the api version.
regards
marcel
> ---
>
> diff --git a/include/linux/dvb/version.h b/include/linux/dvb/version.h
> deleted file mode 100644
> index 6183c9c..0000000
> --- a/include/linux/dvb/version.h
> +++ /dev/null
> @@ -1,29 +0,0 @@
> -/*
> - * version.h
> - *
> - * Copyright (C) 2000 Holger Waechtler <holger@convergence.de>
> - * for convergence integrated media GmbH
> - *
> - * This program is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public License
> - * as published by the Free Software Foundation; either version 2.1
> - * of the License, or (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
> - *
> - */
> -
> -#ifndef _DVBVERSION_H_
> -#define _DVBVERSION_H_
> -
> -#define DVB_API_VERSION 3
> -#define DVB_API_VERSION_MINOR 1
> -
> -#endif /*_DVBVERSION_H_*/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [v4l-dvb-maintainer] [PATCH] DVB: Delete unused header file linux/dvb/version.h.
2007-03-23 15:47 ` [v4l-dvb-maintainer] " Marcel Siegert
@ 2007-03-23 15:50 ` Robert P. J. Day
2007-03-23 16:02 ` Arjan van de Ven
1 sibling, 0 replies; 8+ messages in thread
From: Robert P. J. Day @ 2007-03-23 15:50 UTC (permalink / raw)
To: Marcel Siegert
Cc: v4l-dvb-maintainer, Linux Kernel Mailing List, Andrew Morton
On Fri, 23 Mar 2007, Marcel Siegert wrote:
> On Friday 23 March 2007, Robert P. J. Day wrote:
> >
> > Delete the unreferenced header file include/linux/dvb/version.h.
> >
> > Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
> >
> NACK
> this header is unreferenced in kernel, but used for applications that compile for userspace
> to determine the api version.
ah. i didn't notice that that file was being exported to userspace.
my fault.
rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA
http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [v4l-dvb-maintainer] [PATCH] DVB: Delete unused header file linux/dvb/version.h.
2007-03-23 15:47 ` [v4l-dvb-maintainer] " Marcel Siegert
2007-03-23 15:50 ` Robert P. J. Day
@ 2007-03-23 16:02 ` Arjan van de Ven
2007-03-23 16:18 ` Marcel Siegert
2007-03-24 12:04 ` Manu Abraham
1 sibling, 2 replies; 8+ messages in thread
From: Arjan van de Ven @ 2007-03-23 16:02 UTC (permalink / raw)
To: Marcel Siegert
Cc: v4l-dvb-maintainer, Robert P. J. Day, Linux Kernel Mailing List,
Andrew Morton
On Fri, 2007-03-23 at 16:47 +0100, Marcel Siegert wrote:
> On Friday 23 March 2007, Robert P. J. Day wrote:
> >
> > Delete the unreferenced header file include/linux/dvb/version.h.
> >
> > Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
> >
> NACK
> this header is unreferenced in kernel, but used for applications that compile for userspace
> to determine the api version.
btw that is something extremely evil to do. Either you have varying apis
between kernels (which is naughty, but I suppose you can go up in
capabilities) or it's fully static.
If it's dynamic, doing it compiletime is BAD. The same binaries should
run on multiple kernels after all. An ioctl or a sysfs thing or
something is a lot better than a compile time constant.
If it's entirely static exposing a "version" doesn't mean anything and
it might as well be killed...
Greetings,
Arjan van de Ven
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [v4l-dvb-maintainer] [PATCH] DVB: Delete unused header file linux/dvb/version.h.
2007-03-23 16:02 ` Arjan van de Ven
@ 2007-03-23 16:18 ` Marcel Siegert
2007-03-24 12:04 ` Manu Abraham
1 sibling, 0 replies; 8+ messages in thread
From: Marcel Siegert @ 2007-03-23 16:18 UTC (permalink / raw)
To: linux-kernel
Cc: Arjan van de Ven, v4l-dvb-maintainer, Robert P. J. Day, Andrew Morton
On Friday 23 March 2007, Arjan van de Ven wrote:
> On Fri, 2007-03-23 at 16:47 +0100, Marcel Siegert wrote:
> > On Friday 23 March 2007, Robert P. J. Day wrote:
> > >
> > > Delete the unreferenced header file include/linux/dvb/version.h.
> > >
> > > Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
> > >
> > NACK
> > this header is unreferenced in kernel, but used for applications that compile for userspace
> > to determine the api version.
>
>
> btw that is something extremely evil to do. Either you have varying apis
> between kernels (which is naughty, but I suppose you can go up in
> capabilities) or it's fully static.
>
> If it's dynamic, doing it compiletime is BAD. The same binaries should
> run on multiple kernels after all. An ioctl or a sysfs thing or
> something is a lot better than a compile time constant.
>
> If it's entirely static exposing a "version" doesn't mean anything and
> it might as well be killed...
>
> Greetings,
> Arjan van de Ven
hi arjan,
we discussed that topic - an IOCTL to determine the api version - on dvb ml in nov.2005 and
got no result. so this is still there and will stay imho, until we will find a solution.
regards
marcel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [v4l-dvb-maintainer] [PATCH] DVB: Delete unused header file linux/dvb/version.h.
2007-03-23 16:02 ` Arjan van de Ven
2007-03-23 16:18 ` Marcel Siegert
@ 2007-03-24 12:04 ` Manu Abraham
2007-03-25 9:11 ` Arjan van de Ven
1 sibling, 1 reply; 8+ messages in thread
From: Manu Abraham @ 2007-03-24 12:04 UTC (permalink / raw)
To: Arjan van de Ven
Cc: Marcel Siegert, Andrew Morton, v4l-dvb-maintainer,
Robert P. J. Day, Linux Kernel Mailing List
On 3/23/07, Arjan van de Ven <arjan@infradead.org> wrote:
> On Fri, 2007-03-23 at 16:47 +0100, Marcel Siegert wrote:
> > On Friday 23 March 2007, Robert P. J. Day wrote:
> > >
> > > Delete the unreferenced header file include/linux/dvb/version.h.
> > >
> > > Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
> > >
> > NACK
> > this header is unreferenced in kernel, but used for applications that compile for userspace
> > to determine the api version.
>
>
> btw that is something extremely evil to do. Either you have varying apis
> between kernels (which is naughty, but I suppose you can go up in
> capabilities) or it's fully static.
>
There are cases where we need an API update since newer systems do show up.
In such a case, the only way is to provide backward compatibility
while adding in newer stuff.
Currently we use the version major/minor for the userspace to identify
the in kernel API, while the userspace apps can remain binary
compatible
Regards,
Manu
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [v4l-dvb-maintainer] [PATCH] DVB: Delete unused header file linux/dvb/version.h.
2007-03-24 12:04 ` Manu Abraham
@ 2007-03-25 9:11 ` Arjan van de Ven
2007-03-25 12:03 ` Manu Abraham
0 siblings, 1 reply; 8+ messages in thread
From: Arjan van de Ven @ 2007-03-25 9:11 UTC (permalink / raw)
To: Manu Abraham
Cc: Marcel Siegert, Andrew Morton, v4l-dvb-maintainer,
Robert P. J. Day, Linux Kernel Mailing List
> There are cases where we need an API update since newer systems do show up.
> In such a case, the only way is to provide backward compatibility
> while adding in newer stuff.
>
> Currently we use the version major/minor for the userspace to identify
> the in kernel API, while the userspace apps can remain binary
> compatible
this is the problem exactly! Your userspace binary knows about the
kernel headers it was compiled against, not about the actual running
kernel! They are very likely not the same.
--
if you want to mail me at work (you don't), use arjan (at) linux.intel.com
Test the interaction between Linux and your BIOS via http://www.linuxfirmwarekit.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [v4l-dvb-maintainer] [PATCH] DVB: Delete unused header file linux/dvb/version.h.
2007-03-25 9:11 ` Arjan van de Ven
@ 2007-03-25 12:03 ` Manu Abraham
0 siblings, 0 replies; 8+ messages in thread
From: Manu Abraham @ 2007-03-25 12:03 UTC (permalink / raw)
To: Arjan van de Ven
Cc: Marcel Siegert, Andrew Morton, v4l-dvb-maintainer,
Robert P. J. Day, Linux Kernel Mailing List
On 3/25/07, Arjan van de Ven <arjan@infradead.org> wrote:
>
>
> > There are cases where we need an API update since newer systems do show up.
> > In such a case, the only way is to provide backward compatibility
> > while adding in newer stuff.
> >
> > Currently we use the version major/minor for the userspace to identify
> > the in kernel API, while the userspace apps can remain binary
> > compatible
>
> this is the problem exactly! Your userspace binary knows about the
> kernel headers it was compiled against, not about the actual running
> kernel! They are very likely not the same.
Well, we could go for an IOCTL in such a case to avoid the unpleasant scenario.
Manu
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-03-25 12:03 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-23 15:32 [PATCH] DVB: Delete unused header file linux/dvb/version.h Robert P. J. Day
2007-03-23 15:47 ` [v4l-dvb-maintainer] " Marcel Siegert
2007-03-23 15:50 ` Robert P. J. Day
2007-03-23 16:02 ` Arjan van de Ven
2007-03-23 16:18 ` Marcel Siegert
2007-03-24 12:04 ` Manu Abraham
2007-03-25 9:11 ` Arjan van de Ven
2007-03-25 12:03 ` Manu Abraham
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).