linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: alebas@televes.com
To: linuxppc-embedded@ozlabs.org
Subject: [patch] Solves syslib/m8260_setup.c ROOT_DEV problem
Date: Fri, 12 Nov 2004 14:09:13 +0100	[thread overview]
Message-ID: <1100264953.4194b5f9eab0f@webmail.televes.com:443> (raw)

Hi,

This patch applies against head versions of both linuxppc-2.5 in ppc.bkbits.net
and linux-2.5 in linux.bkbits.net

I don't now if this has been corrected in some other tree.

The patch corrects the following error during compilation

  LD      arch/ppc/lib/built-in.o
  CC      arch/ppc/syslib/m8260_setup.o
arch/ppc/syslib/m8260_setup.c: In function `m8260_setup_arch':
arch/ppc/syslib/m8260_setup.c:56: `ROOT_DEV' undeclared (first use in this
function)
arch/ppc/syslib/m8260_setup.c:56: (Each undeclared identifier is reported only
once
arch/ppc/syslib/m8260_setup.c:56: for each function it appears in.)
arch/ppc/syslib/m8260_setup.c:56: `Root_RAM0' undeclared (first use in this
function)
arch/ppc/syslib/m8260_setup.c: In function `m8260_show_cpuinfo':
arch/ppc/syslib/m8260_setup.c:149: warning: unsigned int format, long unsigned
int arg (arg 5)
arch/ppc/syslib/m8260_setup.c:149: warning: int format, long unsigned int arg
(arg 6)
arch/ppc/syslib/m8260_setup.c:149: warning: unsigned int format, long unsigned
int arg (arg 7)
arch/ppc/syslib/m8260_setup.c:149: warning: unsigned int format, long unsigned
int arg (arg 8)
arch/ppc/syslib/m8260_setup.c:149: warning: unsigned int format, long unsigned
int arg (arg 9)
make[1]: *** [arch/ppc/syslib/m8260_setup.o] Error 1
make: *** [arch/ppc/syslib] Error 2

Here, arch was ppc and configuration was ads8272_defconfig.

Best regards,

Alex


--- arch/ppc/syslib/m8260_setup.c.orig  2004-11-12 11:55:32.000000000 +0100
+++ arch/ppc/syslib/m8260_setup.c       2004-11-12 13:55:00.000000000 +0100
@@ -16,6 +16,9 @@
 #include <linux/slab.h>
 #include <linux/init.h>
 #include <linux/initrd.h>
+#ifdef CONFIG_BLK_DEV_INITRD
+#include <linux/root_dev.h>
+#endif
 #include <linux/seq_file.h>
 #include <linux/irq.h>

             reply	other threads:[~2004-11-12 13:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-12 13:09 alebas [this message]
2004-11-18 16:03 ` [patch] Solves syslib/m8260_setup.c ROOT_DEV problem Tom Rini

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='1100264953.4194b5f9eab0f@webmail.televes.com:443' \
    --to=alebas@televes.com \
    --cc=linuxppc-embedded@ozlabs.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;
as well as URLs for NNTP newsgroup(s).