* Two bugs in kernel 2.6.15-rc5
@ 2005-12-14 2:37 Luke Yang
2005-12-17 20:36 ` Andrew Morton
0 siblings, 1 reply; 2+ messages in thread
From: Luke Yang @ 2005-12-14 2:37 UTC (permalink / raw)
To: linux-kernel
Hi all,
During porting Blackfin architecture to latest kernel, I found two issues:
1. kernel/futex.c invokes handle_mm_fault() function, which calls
__handle_mm_fault(). But __handle_mm_fault() is defined in
mm/memory.c, which is only compiled when CONFIG_MMU is defined. So
those without MMUs can not use futex any more.
How do you think this shall be fixed? Use #ifdef CONFIG_MMU ... #endif?
2. In include/linux/module.h, "__crc_" and "__ksymtab_" are hard
coded to be the prefix for some kinds of symbols (CRC symbol and
ksymtab section). But in script /mod/modpost.c,
MODULE_SYMBOL_PREFIX##"__crc_" is used as the prefix to search CRC
symbols. So if an architecture (such as h8300 or Blackfin) defines
MODULE_SYMBOL_PREFIX as not NULL ("_"), modpost will always warn about
"no invalid crc".
I think we can just remove the MODULE_SYMBOL_PREFIX from CRC_PFX
and KSYMTAB_PFX in modpost.c. If you agree, I can send a patch for
this.
Best regards,
Luke Yang
Analog Device Inc.
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Two bugs in kernel 2.6.15-rc5
2005-12-14 2:37 Two bugs in kernel 2.6.15-rc5 Luke Yang
@ 2005-12-17 20:36 ` Andrew Morton
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2005-12-17 20:36 UTC (permalink / raw)
To: Luke Yang; +Cc: linux-kernel
Luke Yang <luke.adi@gmail.com> wrote:
>
> Hi all,
>
> During porting Blackfin architecture to latest kernel, I found two issues:
>
> 1. kernel/futex.c invokes handle_mm_fault() function, which calls
> __handle_mm_fault(). But __handle_mm_fault() is defined in
> mm/memory.c, which is only compiled when CONFIG_MMU is defined. So
> those without MMUs can not use futex any more.
>
> How do you think this shall be fixed? Use #ifdef CONFIG_MMU ... #endif?
See frv-make-futex-code-compilable-on-nommu.patch from recent -mm kernels.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-12-17 20:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-14 2:37 Two bugs in kernel 2.6.15-rc5 Luke Yang
2005-12-17 20:36 ` Andrew Morton
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®