mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* PageSkip
@ 2000-08-12 18:01 Russell King
  2000-08-13  0:19 ` PageSkip David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Russell King @ 2000-08-12 18:01 UTC (permalink / raw)
  To: linux-kernel

I've just done a grep for PageSkip on all .c and .h files in the current
(2.4.0-test6) kernel, and have come up with:

./include/asm-i386/pgtable.h:#define PageSkip(page)             (0)
./include/asm-mips/pgtable.h:#define PageSkip(page)             (0)
./include/asm-alpha/pgtable.h:#define PageSkip(page)            (0)
./include/asm-m68k/pgtable.h:#define PageSkip(page)             (0)
./include/asm-ppc/pgtable.h:#define PageSkip(page)              (0)
./include/asm-arm/pgtable.h:#define PageSkip(page)              (machine_is_riscpc() && test_bit(PG_skip, &(page)->flags))
./include/asm-sh/pgtable.h:#define PageSkip(page)               (0)
./include/asm-ia64/pgtable.h:#define PageSkip(page)             (0)
./include/asm-mips64/pgtable.h:#define PageSkip(page)           test_bit(PG_skip, &(page)->flags)
./include/asm-s390/pgtable.h:#define PageSkip(page)          (0)
./arch/arm/mm/init.c:                   if (PageSkip(page)) {
./arch/mips64/sgi-ip27/ip27-memory.c:                   if (PageSkip(mem_map+tmp))

Since this macro is only used in two architecture-specific places, is there
any reason to keep it in the header files?

On ARM, I'm planning on moving it out of pgtable.h and into mm/init.c.
   _____
  |_____| ------------------------------------------------- ---+---+-
  |   |         Russell King        rmk@arm.linux.org.uk      --- ---
  | | | | http://www.arm.linux.org.uk/personal/aboutme.html   /  /  |
  | +-+-+                                                     --- -+-
  /   |               THE developer of ARM Linux              |+| /|\
 /  | | |                                                     ---  |
    +-+-+ -------------------------------------------------  /\\\  |

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: PageSkip
  2000-08-12 18:01 PageSkip Russell King
@ 2000-08-13  0:19 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2000-08-13  0:19 UTC (permalink / raw)
  To: rmk; +Cc: linux-kernel

   From: Russell King <rmk@arm.linux.org.uk>
   Date: 	Sat, 12 Aug 2000 19:01:53 +0100 (BST)

   I've just done a grep for PageSkip on all .c and .h files in the current
   (2.4.0-test6) kernel, and have come up with:

 ...

   Since this macro is only used in two architecture-specific places, is there
   any reason to keep it in the header files?

   On ARM, I'm planning on moving it out of pgtable.h and into mm/init.c.

It should die just about everywhere, there should be no use for it
anymore for any port.

it only existed to handle generic parts of the kernel which wished to
walk the mem_map[] array by hand, there is no such code any more
thanks to various cleanups by Kanoj and others.  Ergo PageSkip and
PG_skip can both be just eradicated along with any code referencing
it.  Unless, you are using it for some strange purpose inside your
ports, and I bet even those cases can be easily removed.

Later,
David S. Miller
davem@redhat.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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

end of thread, other threads:[~2000-08-13  0:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-12 18:01 PageSkip Russell King
2000-08-13  0:19 ` PageSkip David S. Miller

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

all inboxes | Powered by JetHome®