From: Willem <wdit@xs4all.nl>
To: jgarzik@pobox.com, linux-kernel@vger.kernel.org
Cc: matic@cyberia.net.lb, slaugther@linux.nu
Subject: Patch (fix for libata patch 2.6.0-1) in ata_std_bio_param
Date: Wed, 31 Dec 2003 00:24:08 +0100 [thread overview]
Message-ID: <200312310024.08393.wdit@xs4all.nl> (raw)
I got the following problem when compiling linux 2.6.0 + 2.6.0libata1 patch.
(On a recent Intel motherboard with SATA, so I applied the libata patch.)
Since I noticed this problem at the Gentoo bugs site as well
( http://bugs.gentoo.org/show_bug.cgi?id=36812 )
I decided to publish this patch, to help others.
LD .tmp_vmlinux1
drivers/built-in.o(.text+0xa7784): In function `ata_std_bios_param':
: undefined reference to `__udivdi3'
make: *** [.tmp_vmlinux1] Error 1
* gen_die(): Could not copy kernel binary to boot
The following patch fixes this.
Best regards, and happy 2004!
Willem Dekker
----
*** libata-scsi.c 2003-12-31 00:17:14.000000000 +0100
--- libata-scsi.org 2003-12-31 00:17:59.000000000 +0100
***************
*** 49,55 ****
{
geom[0] = 255;
geom[1] = 63;
! geom[2] = (int) capacity /(int) (geom[0] * geom[1]);
return 0;
}
--- 49,55 ----
{
geom[0] = 255;
geom[1] = 63;
! geom[2] = capacity / (geom[0] * geom[1]);
return 0;
}
next reply other threads:[~2003-12-30 23:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-30 23:24 Willem [this message]
2003-12-30 23:36 ` Jeff Garzik
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=200312310024.08393.wdit@xs4all.nl \
--to=wdit@xs4all.nl \
--cc=jgarzik@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=matic@cyberia.net.lb \
--cc=slaugther@linux.nu \
/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
Powered by JetHome