mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jakub Bogusz <qboosh@pld-linux.org>
To: linux-kernel@vger.kernel.org, linux-fbdev-devel@lists.sourceforge.net
Subject: [PATCH] don't use floating point in tdfxfb
Date: Wed, 25 Feb 2004 12:55:31 +0100	[thread overview]
Message-ID: <20040225115530.GF16814@gruby.cs.net.pl> (raw)

[-- Attachment #1: Type: text/plain, Size: 516 bytes --]

This patch removes using of floating point operations in tdfxfb - they
are really not needed here (these consts are used only in substitutions
and comparisons with integers) are cause unresolved symbols on some
archs - e.g. on alpha:

*** Warning: "__ltdf2" [drivers/video/tdfxfb.ko] undefined!
*** Warning: "__adddf3" [drivers/video/tdfxfb.ko] undefined!
*** Warning: "__floatsidf" [drivers/video/tdfxfb.ko] undefined!


-- 
Jakub Bogusz    http://cyber.cs.net.pl/~qboosh/
PLD Team        http://www.pld-linux.org/

[-- Attachment #2: linux-tdfxfb-nofloat.patch --]
[-- Type: text/plain, Size: 513 bytes --]

--- linux-2.6.3/drivers/video/tdfxfb.c.orig	2004-02-24 11:08:06.000000000 +0100
+++ linux-2.6.3/drivers/video/tdfxfb.c	2004-02-25 12:33:09.000000000 +0100
@@ -86,9 +86,9 @@
 #define DPRINTK(a,b...)
 #endif 
 
-#define BANSHEE_MAX_PIXCLOCK 270000.0
-#define VOODOO3_MAX_PIXCLOCK 300000.0
-#define VOODOO5_MAX_PIXCLOCK 350000.0
+#define BANSHEE_MAX_PIXCLOCK 270000
+#define VOODOO3_MAX_PIXCLOCK 300000
+#define VOODOO5_MAX_PIXCLOCK 350000
 
 static struct fb_fix_screeninfo tdfx_fix __initdata = {
 	.id =		"3Dfx",

                 reply	other threads:[~2004-02-25 11:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20040225115530.GF16814@gruby.cs.net.pl \
    --to=qboosh@pld-linux.org \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®