ShabbyX / RTAI

(NO LONGER MAINTAINED) Clone of RTAI from https://www.rtai.org
28 stars 17 forks source link

__devinit problem in base/arch/x86/calibration/smi-module.c #11

Closed steffenmauch closed 11 years ago

steffenmauch commented 11 years ago

I think through the latest merge, __devinit has appeared inside base/arch/x86/calibration/smi-module.c again.

With __devinit it does not compile with Ubuntu 12.04!

ShabbyX commented 11 years ago

@steffenmauch, I compiled under 12.04 just a couple days ago (after the merge) and it was alright. Can you let me know more information from your setup? For example the output of the following commands:

$ gcc --version
$ uname -a
steffenmauch commented 11 years ago

Linux rtai-fpga 3.8.13-RTAI #4 SMP PREEMPT Sat Aug 3 12:04:41 CEST 2013 i686 i686 i386 GNU/Linux

gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

tried with x86 and x86_64 Ubuntu 12.04.2 LTS

ShabbyX commented 11 years ago

Fixed in bd08e27e9d81251b68db3d4ed8bb44f2d8b6ba58

Thanks for the report.

NTULINUX commented 11 years ago

Should line 36 have a space after pound?

ShabbyX commented 11 years ago

That's how I indent directives inside #if. I don't recall right now how that's done in RTAI. Feel free to update it to RTAI's style