From: "Mike Frysinger" <vapier.adi@gmail.com>
To: "Jeremy Fitzhardinge" <jeremy@goop.org>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: linux-next: 1ea0704e (ptep_modify_prot transaction abstraction) breaks no-mmu
Date: Tue, 15 Jul 2008 10:24:05 -0400 [thread overview]
Message-ID: <8bd0f97a0807150724x8f7095dl9b5d2e203053223f@mail.gmail.com> (raw)
In-Reply-To: <486CF610.7000905@goop.org>
On Thu, Jul 3, 2008 at 11:53 AM, Jeremy Fitzhardinge wrote:
> 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
>
> Uh, OK. What does mprotect do on a nommu system?
it depends on the port. by default, i'm pretty sure mprotect on all
nommu systems are realistically pretty much noops. the Blackfin can
do real protection (CONFIG_MPU), but with significant performance
degradation (since the page fault handler is not in hardware nor
hardware assisted in any way).
> 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?
simply move them into CONFIG_MMU for now
-mike
next prev parent reply other threads:[~2008-07-15 14:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-03 13:38 Mike Frysinger
2008-07-03 15:53 ` Jeremy Fitzhardinge
2008-07-15 14:00 ` Adrian Bunk
2008-07-15 14:24 ` Mike Frysinger [this message]
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=8bd0f97a0807150724x8f7095dl9b5d2e203053223f@mail.gmail.com \
--to=vapier.adi@gmail.com \
--cc=jeremy@goop.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
all inboxes | Powered by JetHome®