linux-mips
[Top] [All Lists]

Re: [PATCH 4/6] MIPS: Implement Read Inhibit/eXecute Inhibit

To: Manuel Lauss <manuel.lauss@googlemail.com>
Subject: Re: [PATCH 4/6] MIPS: Implement Read Inhibit/eXecute Inhibit
From: David Daney <david.s.daney@gmail.com>
Date: Sun, 14 Feb 2010 18:08:23 -0800
Cc: David Daney <ddaney@caviumnetworks.com>, linux-mips@linux-mips.org, ralf@linux-mips.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type; bh=joZl54JJ4ilC+2KWc/1VE3n+yPOrZTm45AaVcipozto=; b=arwOhkDbWAl0HCyo9fsuIpBqw514GwMLh4kETMmXRkSitmo6XNKiFCIzHTRXABw15W oXA8lcfp1UPchSosZXlxHg5nrmeUH4M7WUVUqEyFipaYuqDsdPwqxUJb5r7E+9bEP9in lxteLIev/K6owuM0kHnxFRAXj2fDtouVId44o=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; b=KoZm69duqP8Nf5CQfjPR1umZYqsdwbkTbOba6rJDysbg1xkUx101FoScvJce1YSmTF GOdsmZVEABU2rRPbdEJy61wC/NX+oYtH+nCeC7zFHZr0dfbHTBZSiRNcL8BZSiTy6fXK K5HGX5pY9NyyrfsahpyC8Z9Yx15pD36Au/GhQ=
In-reply-to: <4B78A0C1.1070509@gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <4B733C71.8030304@caviumnetworks.com> <1265843569-5786-4-git-send-email-ddaney@caviumnetworks.com> <f861ec6f1002141216t233fde34t1586bcd50dc051b4@mail.gmail.com> <4B78A0C1.1070509@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc11 Thunderbird/3.0.1
On 02/14/2010 05:17 PM, David Daney wrote:
On 02/14/2010 12:16 PM, Manuel Lauss wrote:
Hi David,

this patch breaks my Alchemy builds:

Using /mnt/data/_home/mano/db1200/kernel/linux-2.6.git as source for kernel
GEN /mnt/data/_home/mano/db1200/kernel/kbuild-linux-2.6.git/Makefile
CHK include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
CC arch/mips/kernel/asm-offsets.s
In file included from
/mnt/data/_home/mano/db1200/kernel/linux-2.6.git/arch/mips/include/asm/io.h:25,
from
/mnt/data/_home/mano/db1200/kernel/linux-2.6.git/arch/mips/include/asm/page.h:46,
from
/mnt/data/_home/mano/db1200/kernel/linux-2.6.git/include/linux/mm_types.h:15,
from
/mnt/data/_home/mano/db1200/kernel/linux-2.6.git/include/linux/sched.h:63,
from
/mnt/data/_home/mano/db1200/kernel/linux-2.6.git/arch/mips/kernel/asm-offsets.c:13: /mnt/data/_home/mano/db1200/kernel/linux-2.6.git/arch/mips/include/asm/pgtable-bits.h:
In function 'pte_to_entrylo':
/mnt/data/_home/mano/db1200/kernel/linux-2.6.git/arch/mips/include/asm/pgtable-bits.h:146:
error: '_PAGE_NO_READ_SHIFT' undeclared (first use in this function)
/mnt/data/_home/mano/db1200/kernel/linux-2.6.git/arch/mips/include/asm/pgtable-bits.h:146:
error: (Each undeclared identifier is reported only once
/mnt/data/_home/mano/db1200/kernel/linux-2.6.git/arch/mips/include/asm/pgtable-bits.h:146:
error: for each function it appears in.)
/mnt/data/_home/mano/db1200/kernel/linux-2.6.git/arch/mips/include/asm/pgtable-bits.h:155:
error: '_PAGE_GLOBAL_SHIFT' undeclared (first use in this function)
/mnt/data/_home/mano/db1200/kernel/linux-2.6.git/arch/mips/include/asm/pgtable-bits.h:156:
error: '_PAGE_NO_EXEC' undeclared (first use in this function)
/mnt/data/_home/mano/db1200/kernel/linux-2.6.git/arch/mips/include/asm/pgtable-bits.h:156:
error: '_PAGE_NO_READ' undeclared (first use in this function)
In file included from
/mnt/data/_home/mano/db1200/kernel/linux-2.6.git/include/linux/mm.h:39,
from
/mnt/data/_home/mano/db1200/kernel/linux-2.6.git/arch/mips/kernel/asm-offsets.c:14: /mnt/data/_home/mano/db1200/kernel/linux-2.6.git/arch/mips/include/asm/pgtable.h:
In function 'pte_modify':
/mnt/data/_home/mano/db1200/kernel/linux-2.6.git/arch/mips/include/asm/pgtable.h:351:
error: '_PFN_MASK' undeclared (first use in this function)
make[2]: *** [arch/mips/kernel/asm-offsets.s] Error 1
make[1]: *** [prepare0] Error 2
make: *** [sub-make] Error 2
Whoops! I will endeavor to fix this.

Try the attached patch, it allows me to build an au1000 kernel. But since I don't have harware, I cannot test it.

I started with pb1500_defconfig, but had to disable au1000_eth.c:

drivers/net/au1000_eth.c: In function ‘au1000_probe’:
drivers/net/au1000_eth.c:1009: error: implicit declaration of function ‘DECLARE_MAC_BUF’ drivers/net/au1000_eth.c:1009: error: ‘ethaddr’ undeclared (first use in this function) drivers/net/au1000_eth.c:1009: error: (Each undeclared identifier is reported only once
drivers/net/au1000_eth.c:1009: error: for each function it appears in.)

David Daney.

Attachment: dd.patch
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>