All of lore.kernel.org
 help / color / mirror / Atom feed
From: robt201108@gmail.com (robert)
To: linux-arm-kernel@lists.infradead.org
Subject: Kernel 3.13-rc - DreamPlug compile failure - PHYS_OFFSET undeclared
Date: Tue, 03 Dec 2013 22:54:52 +0000	[thread overview]
Message-ID: <529E613C.5030902@gmail.com> (raw)

Kernel 3.12.2 compiles and install/runs OK, but 3.13-rc1 and -rc2 (and
linux-next) compile fails, when configured for DreamPlug..

Steps to reproduce:
# make ......... kirkwood_defconfig
# make xconfig
Select 'General setup' / 'Embedded system'
Deselect 'Patch physical to virtual translations at runtime'
Set value of 'Physical address of main memory' to 0x0
(save config), then:
# make -j4
.....
.....
DTC arch/arm/boot/dts/kirkwood-ts219-6282.dtb
In file included from ~/linux-3.13-rc2/arch/arm/include/asm/page.h:163:0,
from include/linux/mm_types.h:16,
from include/linux/sched.h:24,
from arch/arm/kernel/asm-offsets.c:13:
~/linux-3.13-rc2/arch/arm/include/asm/memory.h: In function
?__virt_to_phys?:
~/linux-3.13-rc2/arch/arm/include/asm/memory.h:244:40: error:
?PHYS_OFFSET? undeclared (first use in this function)
~/linux-3.13-rc2/arch/arm/include/asm/memory.h:244:40: note: each
undeclared identifier is reported only once for each function it appears in
~/linux-3.13-rc2/arch/arm/include/asm/memory.h: In function
?__phys_to_virt?:
~/linux-3.13-rc2/arch/arm/include/asm/memory.h:249:13: error:
?PHYS_OFFSET? undeclared (first use in this function)
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2

The error does not occur if 'Patch physical to virtual translations at
runtime' is _selected_, bu the resulting kernel will not boot on the
DreamPlug..

In case there was some odd problem with the cross-compiler, I have also
reproduced the problem compiling the kernel on the DreamPlug itself..

Robert Gadsdon
December 3, 2013

             reply	other threads:[~2013-12-03 22:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-03 22:54 robert [this message]
2013-12-07 15:25 ` Kernel 3.13-rc - DreamPlug compile failure - PHYS_OFFSET undeclared robert
2013-12-07 16:04   ` Andrew Lunn

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=529E613C.5030902@gmail.com \
    --to=robt201108@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.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 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.