From: Raymond <rayau@netvigator.com>
To: alsa-devel@lists.sourceforge.net
Subject: Re: CVS compile issue
Date: Thu, 11 Aug 2005 22:17:23 +0800 [thread overview]
Message-ID: <42FB5DF3.7020109@netvigator.com> (raw)
In-Reply-To: <s5hiryc63fd.wl%tiwai@suse.de>
Takashi Iwai wrote:
> At Thu, 11 Aug 2005 19:17:12 +0800,
> Raymond wrote:
>
>>There is a "division by zero" warning for drivers which include
>>"driver.h" on Kernel 2.4
>>
>>
>>gcc32 -D__KERNEL__ -DMODULE=1 -I/alsa/cvs/alsa-driver/include
>>-I/lib/modules/2.4.22-1.2199.nptl/build/include -O2
>>-mpreferred-stack-boundary=2 -march=i686 -DLINUX -Wall
>>-Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2
>>-fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -nostdinc
>>-iwithprefix include -DMODVERSIONS -include
>>/lib/modules/2.4.22-1.2199.nptl/build/include/linux/modversions.h
>>-DKBUILD_BASENAME=intel8x0 -c -o intel8x0.o intel8x0.c
>>In file included from /alsa/cvs/alsa-driver/include/sound/driver.h:42,
>> from intel8x0.c:29:
>>/alsa/cvs/alsa-driver/include/adriver.h: In function `jiffies_to_msecs':
>>/alsa/cvs/alsa-driver/include/adriver.h:639: warning: division by zero
>
>
> Is it the line:
> else if (HZ > 1000 && !(HZ % 1000))
> ==> return (j + (HZ / 1000) - 1)/(HZ / 1000);
>
> ??
Yes
> Where HZ is defined/declared in your kernel?
>
Fedora Core 1
/usr/src/linux/include/asm/param.h
#ifndef HZ
#define HZ 100
#endif
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
prev parent reply other threads:[~2005-08-11 14:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-16 2:49 CVS compile issue Lee Revell
2005-07-17 3:58 ` Raymond
2005-08-11 11:17 ` Raymond
2005-08-11 12:52 ` Takashi Iwai
2005-08-11 14:08 ` Clemens Ladisch
2005-08-11 14:35 ` Takashi Iwai
2005-08-11 15:13 ` Clemens Ladisch
2005-08-11 14:17 ` Raymond [this message]
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=42FB5DF3.7020109@netvigator.com \
--to=rayau@netvigator.com \
--cc=alsa-devel@lists.sourceforge.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox