All of lore.kernel.org
 help / color / mirror / Atom feed
* [Kernel-janitors] Re: check_region question
@ 2004-06-28 14:42 Domen Puncer
  2004-06-28 15:54 ` Carlo Perassi
  2004-07-05 15:07 ` maximilian attems
  0 siblings, 2 replies; 3+ messages in thread
From: Domen Puncer @ 2004-06-28 14:42 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 1428 bytes --]

On 28/06/04 11:57 +0200, Carlo Perassi wrote:
> Hi
> compiling a new 2.6.7 I got
> drivers/ide/pci/trm290.c:376: warning: `check_region' is deprecated
> drivers/char/specialix.c:290: warning: `check_region' is deprecated
> 
> So I searched and found (see the end of the email) a lot of places where
> that call occours.
> I guess this is not (always) a "search/replace" task so my question is 
> 
> (a)
> if a call like
> check_region(s, n)
> should be replaced with
> request_region(s, n, name)
> (where name is something like hwif->name)
> and
> (b)
> if an if statement like
> if (check_region(s, n))
> should be replaced with
> if (!request_region(s, n, name))
> is there something more than ((a) + (b)) to convert a deprecated section
> of code?

It's not that simple.
There's been some recent discussion about this here, and i'm sure you
can find old check_region patches which were wrong, and a nice
description of what is wrong.

Basically, check_region() was used before request_region(), now you
have to check you didn't request a region that you shouldn't.
And that request_region() that was in code before usually get's removed.
(I hope i make some sense)

> I found some old patches which should be good examples but I don't know
> this topic enough to make a general theory.
> 
> Thanks.
> 
...
> sound/oss/waveartist.c:1349
> sound/oss/pss.c:191
...
Don't bother with these, they'll probably get removed in 2.7.x

[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Kernel-janitors] Re: check_region question
  2004-06-28 14:42 [Kernel-janitors] Re: check_region question Domen Puncer
@ 2004-06-28 15:54 ` Carlo Perassi
  2004-07-05 15:07 ` maximilian attems
  1 sibling, 0 replies; 3+ messages in thread
From: Carlo Perassi @ 2004-06-28 15:54 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 458 bytes --]

> It's not that simple.
> There's been some recent discussion about this here, and i'm sure you
> can find old check_region patches which were wrong, and a nice
> description of what is wrong.

One of the best I found is
http://lists.osdl.org/pipermail/kernel-janitors/2004-January/000346.html
but I found it this afternoon (CET).
Thanks.

-- 
Carlo Perassi - http://www.linux.it/~carlo/
I don't use fancy debuggers, I use print statements (Brian Kernighan)

[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Kernel-janitors] Re: check_region question
  2004-06-28 14:42 [Kernel-janitors] Re: check_region question Domen Puncer
  2004-06-28 15:54 ` Carlo Perassi
@ 2004-07-05 15:07 ` maximilian attems
  1 sibling, 0 replies; 3+ messages in thread
From: maximilian attems @ 2004-07-05 15:07 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 274 bytes --]

On Mon, 28 Jun 2004, Walter Harms wrote:

> perhaps this can go as link to the TODO list ?
> It would be very usefull including comments why certain drivers
> have not been fixed (yet).

agreed, 
added link to Randy's mail to check_region -> request_region item!

a++ maks


[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-07-05 15:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-28 14:42 [Kernel-janitors] Re: check_region question Domen Puncer
2004-06-28 15:54 ` Carlo Perassi
2004-07-05 15:07 ` maximilian attems

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.