Skip to contentSkip to conversation

2.6.35-rc2 compilation error on Alpha

DISCUSSION Michael Cree 4 participants 6 messages Jun 6, 2010 – Jun 8, 2010 Alpha port

lore
Share & tools
lore
#0 lore raw

When compiling 2.6.35-rc2 for Alpha architecture the following compiler error is seen:

CC arch/alpha/kernel/asm-offsets.s
In file included from include/linux/kernel.h:17,
from include/linux/sched.h:54,
from arch/alpha/kernel/asm-offsets.c:9:
include/linux/bitops.h: In function ‘hweight_long’:
include/linux/bitops.h:49: error: implicit declaration of function ‘__arch_hweight32’

Cheers
Michael.
--
To unsubscribe from this list: send the line "unsubscribe linux-alpha" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer
#1 lore raw
Quoted 11 lines · Michael Cree

When compiling 2.6.35-rc2 for Alpha architecture the following compiler error is seen:

 CC      arch/alpha/kernel/asm-offsets.s
In file included from include/linux/kernel.h:17,
                from include/linux/sched.h:54,
                from arch/alpha/kernel/asm-offsets.c:9:
include/linux/bitops.h: In function ‘hweight_long’:
include/linux/bitops.h:49: error: implicit declaration of function ‘__arch_hweight32’

Quoted 7 lines

Cheers
Michael.
--
To unsubscribe from this list: send the line "unsubscribe linux-alpha" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Yeah, it was a stupid typo in 1527bc8b928dd1399c3d3467dd47d9ede210978a. I've fixed it and put the patch in my tree for Linus.

Unfortunately, there's another compile error--PCI breakage. I'll do this too...

Thanks,
Matt
--
To unsubscribe from this list: send the line "unsubscribe linux-alpha" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 12 lines · Matt Turner
Quoted 10 lines · Michael Cree

When compiling 2.6.35-rc2 for Alpha architecture the following compiler error is seen:

CC arch/alpha/kernel/asm-offsets.s
In file included from include/linux/kernel.h:17,
from include/linux/sched.h:54,
from arch/alpha/kernel/asm-offsets.c:9:
include/linux/bitops.h: In function ‘hweight_long’:
include/linux/bitops.h:49: error: implicit declaration of function ‘__arch_hweight32’

Quoted 3 lines

Yeah, it was a stupid typo in 1527bc8b928dd1399c3d3467dd47d9ede210978a. I've fixed it and put the patch in my tree for Linus.

Ah, now the offending commit is pointed out to me I can see the trivial fix. With that, as you say, compilation now bombs out in the pci-sysfs stuff. Since you claim to have that in hand I'll await your solution.

Cheers
Michael.
--
To unsubscribe from this list: send the line "unsubscribe linux-alpha" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer
#3 lore raw
Quoted 23 lines · Michael Cree
Quoted 14 lines · Matt Turner
Quoted 11 lines · Michael Cree

When compiling 2.6.35-rc2 for Alpha architecture the following compiler error is seen:

 CC      arch/alpha/kernel/asm-offsets.s
In file included from include/linux/kernel.h:17,
                from include/linux/sched.h:54,
                from arch/alpha/kernel/asm-offsets.c:9:
include/linux/bitops.h: In function ‘hweight_long’:
include/linux/bitops.h:49: error: implicit declaration of function ‘__arch_hweight32’

Quoted 3 lines

Yeah, it was a stupid typo in 1527bc8b928dd1399c3d3467dd47d9ede210978a. I've fixed it and put the patch in my tree for Linus.

Ah, now the offending commit is pointed out to me I can see the trivial fix. With that, as you say, compilation now bombs out in the pci-sysfs stuff. Since you claim to have that in hand I'll await your solution.

Quoted 7 lines

Cheers
Michael.
--
To unsubscribe from this list: send the line "unsubscribe linux-alpha" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Fixes for both breaks are in:
git://git.kernel.org/pub/scm/linux/kernel/git/mattst88/alpha-2.6.git
for-linus

I know alpha hardware isn't easy to get your hands on to compile test these changes, but guys, please just send linux-alpha@ the patch and _I'll_ do it. Both these breaks were not even compile tested.

pci break: 2c3c8bea608866d8bd9dcf92657d57fdcac011c5 hweight break: 1527bc8b928dd1399c3d3467dd47d9ede210978a

Greg, I haven't checked, but if either of these commits are in .34 or older, then my fixes need to go into -stable.

Thanks,
Matt

#4 lore raw
Quoted 40 lines · Matt Turner
Quoted 23 lines · Michael Cree
Quoted 14 lines · Matt Turner
Quoted 11 lines · On Sun, Jun 6, 2010 at 6:35 PM, Michael Cree<[email protected]> ?wrote:

When compiling 2.6.35-rc2 for Alpha architecture the following compiler error is seen:

?CC ? ? ?arch/alpha/kernel/asm-offsets.s
In file included from include/linux/kernel.h:17,
? ? ? ? ? ? ? ? from include/linux/sched.h:54,
? ? ? ? ? ? ? ? from arch/alpha/kernel/asm-offsets.c:9:
include/linux/bitops.h: In function ?hweight_long?:
include/linux/bitops.h:49: error: implicit declaration of function ?__arch_hweight32?

Quoted 3 lines

Yeah, it was a stupid typo in 1527bc8b928dd1399c3d3467dd47d9ede210978a. I've fixed it and put the patch in my tree for Linus.

Ah, now the offending commit is pointed out to me I can see the trivial fix. ?With that, as you say, compilation now bombs out in the pci-sysfs stuff. ?Since you claim to have that in hand I'll await your solution.

Quoted 7 lines

Cheers
Michael.
--
To unsubscribe from this list: send the line "unsubscribe linux-alpha" in the body of a message to [email protected]
More majordomo info at ?http://vger.kernel.org/majordomo-info.html

Fixes for both breaks are in:

   git://git.kernel.org/pub/scm/linux/kernel/git/mattst88/alpha-2.6.git

for-linus

I know alpha hardware isn't easy to get your hands on to compile test these changes, but guys, please just send linux-alpha@ the patch and _I'll_ do it. Both these breaks were not even compile tested.

Quoted 5 lines

pci break: 2c3c8bea608866d8bd9dcf92657d57fdcac011c5 hweight break: 1527bc8b928dd1399c3d3467dd47d9ede210978a

Greg, I haven't checked, but if either of these commits are in .34 or older, then my fixes need to go into -stable.

Could you check please?

thanks,

greg k-h

#5 lore raw
In reply to Matt Turner
Quoted 3 lines · * Matt Turner ([email protected]) wrote:

Fixes for both breaks are in:

   git://git.kernel.org/pub/scm/linux/kernel/git/mattst88/alpha-2.6.git

for-linus

Your 83926ce2dd37e4337ecf53b1e435d08e70b5871b will work, but you can also simply drop the filp from pci_mmap_resource(). That's an internal helper (local to alpha/kernel/pci-sysfs.c) and doesn't require the filp. Sorry, that was my fault, and should be localized to 2.6.35-rc.

Quoted 5 lines

I know alpha hardware isn't easy to get your hands on to compile test these changes, but guys, please just send linux-alpha@ the patch and _I'll_ do it. Both these breaks were not even compile tested.

pci break: 2c3c8bea608866d8bd9dcf92657d57fdcac011c5

$ git describe --contains 2c3c8bea608866d8bd9dcf92657d57fdcac011c5
v2.6.35-rc1~459^2~9
Quoted 4 lines

hweight break: 1527bc8b928dd1399c3d3467dd47d9ede210978a

Greg, I haven't checked, but if either of these commits are in .34 or older, then my fixes need to go into -stable.