lkml.org 
[lkml]   [2000]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: kernel BUG at linux/include/linux/mm.h:302!
Date
> From: Giacomo Catenazzi <cate@student.ethz.ch>
> Date: Thu, 17 Feb 2000 09:29:06 +0100 (MET)
> Subject: [2.3.4[45], imm module] kernel BUG at linux/include/linux/mm.h:302!
>

I had the same error when I compiled a module without -D__SMP__ and tried to
load it into an smp kernel. The problem I faced was that spinlock_t is 8 bytes
for smp kernels and 0 bytes for up. Due to this size of zone_struct was
different in kernel and the module. Following check failed because of that.

extern inline struct page * alloc_pages(int gfp_mask, unsigned long order)
{
/* temporary check. */
if (contig_page_data.node_zonelists[gfp_mask].gfp_mask != (gfp_mask))
BUG();

Did you compile kernel and modules with mp config and then compiled kernel
only with SMP?

--
Amit Kale
Veritas Software ( http://www.veritas.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/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.022 / U:1.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site