Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Raymond <rayau@netvigator.com>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: Re: CVS compile issue
Date: Thu, 11 Aug 2005 14:52:54 +0200	[thread overview]
Message-ID: <s5hiryc63fd.wl%tiwai@suse.de> (raw)
In-Reply-To: <42FB33B8.8070708@netvigator.com>

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);

??  Where HZ is defined/declared in your kernel?

Takashi


-------------------------------------------------------
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

  reply	other threads:[~2005-08-11 12:52 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 [this message]
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

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=s5hiryc63fd.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=rayau@netvigator.com \
    /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