Several of my testers are being blocked by this as well.  Instead of having a log2_compat.h, wouldn't it be easier to have an rtctimer.patch that reverts to prior rtctimer.c behaviour?  What was the purpose of this patch?  The l"is_power_of_2 function isn't even in a release kernel (it will be in 2.6.21).

Here is a patch against the 1.0.14rc3 tarball.  It will need more refinement for HG, but it works on my Mandriva 2007 kernels.


Signed off by Tobin Davis <tdavis@dsl-only.net>

On Thu, 2007-03-01 at 11:56 -0800, Allyn, Mark A wrote:
Hi:
 
I am getting the same error trying to compile either the 1.0.14rc3 or the Mercury versions of the driver.
 
I get the following in both:
 
====================================
 
  CC [M]  /root/newaudio/alsa-driver-1.0.14rc3/acore/rtctimer.o
In file included from /root/newaudio/alsa-driver-1.0.14rc3/include/linux/log2.h:1,
                 from /root/newaudio/alsa-driver-1.0.14rc3/acore/../alsa-kernel/core/rtctimer.c:27,
                 from /root/newaudio/alsa-driver-1.0.14rc3/acore/rtctimer.c:1:
/root/newaudio/alsa-driver-1.0.14rc3/include/log2_compat.h:8: error: syntax error before "is_power_of_2"
/root/newaudio/alsa-driver-1.0.14rc3/include/log2_compat.h:9: warning: return type defaults to `int'
make[4]: *** [/root/newaudio/alsa-driver-1.0.14rc3/acore/rtctimer.o] Error 1
make[3]: *** [/root/newaudio/alsa-driver-1.0.14rc3/acore] Error 2
make[2]: *** [_module_/root/newaudio/alsa-driver-1.0.14rc3] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/mnt1/src/linux-2.6.17.13.i686'
make: *** [compile] Error 2

 
====================================
 
The header file, log2_compat.h is not in the rc2 release; I have no problems compiling rc2.
 
Does this mean that I have to be up to a certain rev on the kernel?
 
I am running red flag with the 2.6.17.13 kernel.
 
Thanks
 
Mark Allyn
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Alsa-devel mailing list Alsa-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-devel