public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: William D Waddington <william.waddington@beezmo.com>
To: Arjan van de Ven <arjan@infradead.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [RFCLUE3] flagging kernel interface changes
Date: Wed, 15 Nov 2006 14:37:59 -0800	[thread overview]
Message-ID: <455B96C7.8010202@beezmo.com> (raw)
In-Reply-To: <1163629533.31358.168.camel@laptopd505.fenrus.org>

Arjan van de Ven wrote:
>> I don't want to start an argument about	"stable_api_nonsense" or 
>> the wisdom of out-of-tree drivers.  Just curious about the - why - 
>> and whether it is indifference or antagonism toward drivers outside
>>  the fold. Or ???
> 
> 
> Hi,
> 
> in general the best approach has been to make the driver support the 
> NEW interface, and then do some compat thing to fake the old one. The
>  other way around is going to be MUCH more painful long term. So as 
> general rule: always follow the latest API, and use a compat.h hack 
> for older kernels inside your driver, but keep the normal code clean.
>  It's not always easy, but keeping old API and faking it to the new 
> one is only going to be really really painful; things will deviate 
> more and more over time and at some point you'll have to jump anyway.

Good point.  I actually try to do it that way.  Should have said

#ifndef NEW_INTERFACE
...

> In addition quite a few api changes are done in a way that make this
>  less painful than the other way around..

The other part of the question is why this irq_handler prototype change
in 2.6.19 isn't flagged to make things a little easier.

> however in general really there is pain to be out-of-tree; and to
> some degree that's an incentive to merge back  :)

No argument, but I don't have the stamina to try to get my 10+ year
old code out of the public domain and into the main line :)

Many thanks for your reply,
Bill
-- 
--------------------------------------------
William D Waddington
Bainbridge Island, WA, USA
william.waddington@beezmo.com
--------------------------------------------
"Even bugs...are unexpected signposts on
the long road of creativity..." - Ken Burtch

  reply	other threads:[~2006-11-15 22:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-15 22:14 [RFCLUE3] flagging kernel interface changes William D Waddington
2006-11-15 22:25 ` Arjan van de Ven
2006-11-15 22:37   ` William D Waddington [this message]
2006-11-16  1:05     ` Bryan O'Sullivan
2006-11-15 23:17 ` Jesper Juhl
2007-01-21 19:15   ` William D Waddington

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=455B96C7.8010202@beezmo.com \
    --to=william.waddington@beezmo.com \
    --cc=arjan@infradead.org \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox