public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* unsigned long ioremap()?
@ 2001-05-03  6:55 Geert Uytterhoeven
  2001-05-03  7:08 ` David S. Miller
  2001-05-03  7:33 ` Jonathan Lundell
  0 siblings, 2 replies; 23+ messages in thread
From: Geert Uytterhoeven @ 2001-05-03  6:55 UTC (permalink / raw)
  To: Linux Kernel Development

	Hi,

Since you're not allowed to use direct memory dereferencing on ioremapped
areas, wouldn't it be more logical to let ioremap() return an unsigned long
instead of a void *?

Of course we then have to change readb() and friends to take a long as well,
but at least we'd get compiler warnings when someone tries to do a direct
dereference.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


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

end of thread, other threads:[~2001-05-13 14:39 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-03  6:55 unsigned long ioremap()? Geert Uytterhoeven
2001-05-03  7:08 ` David S. Miller
2001-05-03  7:18   ` Jeff Garzik
2001-05-03  7:29     ` C.Praveen
2001-05-03  7:46     ` Jonathan Lundell
2001-05-03  7:57       ` Geert Uytterhoeven
2001-05-03  7:53   ` Abramo Bagnara
2001-05-03  8:08     ` Jeff Garzik
2001-05-03  8:26       ` Geert Uytterhoeven
2001-05-03  8:39       ` Abramo Bagnara
2001-05-03  8:44         ` Jeff Garzik
2001-05-03  8:53           ` Abramo Bagnara
2001-05-03  9:45   ` David Woodhouse
2001-05-03  9:57     ` Abramo Bagnara
2001-05-04  0:22       ` David S. Miller
2001-05-04  7:15         ` Abramo Bagnara
2001-05-04  7:30           ` David S. Miller
2001-05-04 11:07             ` Abramo Bagnara
2001-05-04 13:53             ` Jonathan Lundell
2001-05-13 14:00           ` Jes Sorensen
2001-05-13 14:38             ` Abramo Bagnara
2001-05-03 10:02     ` David Woodhouse
2001-05-03  7:33 ` Jonathan Lundell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox