From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Mike Frysinger <vapier.adi@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: linux-next: 1ea0704e (ptep_modify_prot transaction abstraction) breaks no-mmu
Date: Thu, 03 Jul 2008 08:53:52 -0700 [thread overview]
Message-ID: <486CF610.7000905@goop.org> (raw)
In-Reply-To: <8bd0f97a0807030638g5eb8f0eavd740e990b1cdf1c5@mail.gmail.com>
Mike Frysinger wrote:
> the functions added to asm-generic/pgtable.h are only used by
> mm/mprotect.c (a MMU-only file), but they were not added inside of the
> CONFIG_MMU ifdef block. since the functions rely on things inside of
> CONFIG_MMU (the lines just above in pgtable.h), we get build failure
> on all no-mmu setups:
> CC init/main.o
> In file included from include/asm/pgtable.h:94,
> from include/linux/mm.h:39,
> from include/asm/dma.h:39,
> from include/linux/bootmem.h:8,
> from init/main.c:27:
> include/asm-generic/pgtable.h: In function '__ptep_modify_prot_start':
> include/asm-generic/pgtable.h:210: error: implicit declaration of
> function 'ptep_get_and_clear'
> include/asm-generic/pgtable.h:210: error: incompatible types in return
> make[1]: *** [init/main.o] Error 1
> make: *** [init/main.o] Error 2
> -mike
>
Uh, OK. What does mprotect do on a nommu system? Would it be
sufficient to move the definitions of __ptep_modify_prot_start/commit
out of a CONFIG_MMU block, or provide separate no-op versions?
J
next prev parent reply other threads:[~2008-07-03 15:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-03 13:38 linux-next: 1ea0704e (ptep_modify_prot transaction abstraction) breaks no-mmu Mike Frysinger
2008-07-03 15:53 ` Jeremy Fitzhardinge [this message]
2008-07-15 14:00 ` Adrian Bunk
2008-07-15 14:24 ` Mike Frysinger
2008-07-15 20:39 ` [PATCH] mm: fix ptep_modify_* for no-MMU systems Jeremy Fitzhardinge
2008-07-16 12:52 ` Adrian Bunk
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=486CF610.7000905@goop.org \
--to=jeremy@goop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=vapier.adi@gmail.com \
/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 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.