All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kirill Tkhai <kirill.tkhai@gmail.com>
To: sparclinux@vger.kernel.org
Subject: sparc32: enabled CONFIG_SPARC_LEON leads to compile error
Date: Sun, 22 Jan 2012 19:57:42 +0000	[thread overview]
Message-ID: <1327262262.24076.17.camel@hp> (raw)

Hello!

I've just tried to compile kernel with enabled CONFIG_SPARC_LEON option
and I got a compile error. This is:

CC      arch/sparc/kernel/leon_pci.o
arch/sparc/kernel/leon_pci.c:156: error: redefinition of 'pci_device_to_OF_node'
include/linux/pci.h:1623: error: previous definition of 'pci_device_to_OF_node' was here
make[1]: *** [arch/sparc/kernel/leon_pci.o] Error 1
make: *** [arch/sparc/kernel] Error 2
make: *** Waiting for unfinished jobs....

It seems it happened because of closeness of two commits:

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;hd099d981c9916ec4a485b3ffbb89fa877fc595f

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h&893c1368aeb96e06e4f9dce61bbde3351d5e9f

It looks like it's enough to remove double function from leon_pci.c.

Kirill


             reply	other threads:[~2012-01-22 19:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-22 19:57 Kirill Tkhai [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-02-06 14:46 sparc32: enabled CONFIG_SPARC_LEON leads to compile error Daniel Hellstrom

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=1327262262.24076.17.camel@hp \
    --to=kirill.tkhai@gmail.com \
    --cc=sparclinux@vger.kernel.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.