Bug 12289 - Build fails on alpha architecture (pci_ioremap)
Summary: Build fails on alpha architecture (pci_ioremap)
Status: CLOSED CODE_FIX
Alias: None
Product: Platform Specific/Hardware
Classification: Unclassified
Component: Alpha (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Richard Henderson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-25 02:40 UTC by Tobias Klausmann
Modified: 2009-01-11 04:39 UTC (History)
2 users (show)

See Also:
Kernel Version: 2.6.28-rc*, 2.6.28
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments

Description Tobias Klausmann 2008-12-25 02:40:06 UTC
Latest working kernel version: 2.6.27.10
Earliest failing kernel version: 2.6.28-rc1
Distribution: Gentoo
Hardware Environment: ES40, XP1000
Software Environment: gcc version 4.2.4 

Normal config using "zcat /proc/config.gz > .config && make oldconfig",
then "make all":

$ make all
scripts/kconfig/conf -s arch/alpha/Kconfig
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  CHK     include/linux/utsrelease.h
  UPD     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-alpha
  CC      kernel/bounds.s
  GEN     include/linux/bounds.h
  CC      arch/alpha/kernel/asm-offsets.s
In file included from /home/klausman/src/linux-2.6.28-rc1/arch/alpha/include/asm/core_tsunami.h:5,
                 from /home/klausman/src/linux-2.6.28-rc1/arch/alpha/include/asm/io.h:232,
                 from arch/alpha/kernel/asm-offsets.c:12:
include/linux/pci.h: In function 'pci_ioremap_bar':
include/linux/pci.h:1148: error: implicit declaration of function 'ioremap_nocache'
include/linux/pci.h:1149: warning: return makes pointer from integer without a cast
In file included from arch/alpha/kernel/asm-offsets.c:12:
/home/klausman/src/linux-2.6.28-rc1/arch/alpha/include/asm/io.h: At top level:
/home/klausman/src/linux-2.6.28-rc1/arch/alpha/include/asm/io.h:300: error: conflicting types for 'ioremap_nocache'
include/linux/pci.h:1148: error: previous implicit declaration of 'ioremap_nocache' was here
make[1]: *** [arch/alpha/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2

Snippet is from -rc1 but .28 fails in the very same way (and all rc's did, too).
Comment 1 Tobias Klausmann 2008-12-25 02:52:57 UTC
This has been discussed already on lkml:

http://www.nabble.com/-ALPHA--2.6.28-rc-fails-to-compile-td20223847.html

If testing of the mentioned patch is needed, I'm all ears.
Comment 2 Daniel Drake 2009-01-01 04:59:05 UTC
Downstream ref: https://bugs.gentoo.org/show_bug.cgi?id=252488
Comment 3 Daniel Drake 2009-01-11 04:39:37 UTC
Fixed by commit 1684f5ddd4c0c754f52c78eaa2c5c69ad09fb18c

Note You need to log in before you can comment on or make changes to this bug.