All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Love <rml@tech9.net>
To: davej@codemonkey.org.uk
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] fix trivial drivers/char/agp/generic.c compile warning
Date: 11 Dec 2002 01:07:55 -0500	[thread overview]
Message-ID: <1039586875.8018.23.camel@phantasy> (raw)

In 2.5.51, I get:

 drivers/char/agp/generic.c: In function `agp_generic_create_gatt_table':
 drivers/char/agp/generic.c:472: warning: assignment from incompatible pointer type

gatt_table_real used to be 'u32' but now it is 'unsigned long'... and a
typecast was not updated.

Trivial patch applied, against 2.5.51.

	Robert Love


 drivers/char/agp/generic.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


diff -urN linux-2.5.51/drivers/char/agp/generic.c linux/drivers/char/agp/generic.c
--- linux-2.5.51/drivers/char/agp/generic.c	2002-12-10 17:45:01.000000000 -0500
+++ linux/drivers/char/agp/generic.c	2002-12-11 01:00:28.000000000 -0500
@@ -469,8 +469,8 @@
 	for (page = virt_to_page(table); page <= virt_to_page(table_end); page++)
 		SetPageReserved(page);
 
-	agp_bridge.gatt_table_real = (u32 *) table;
-	agp_gatt_table = (void *)table; 
+	agp_bridge.gatt_table_real = (unsigned long *) table;
+	agp_gatt_table = (void *)table;
 	CACHE_FLUSH();
 	agp_bridge.gatt_table = ioremap_nocache(virt_to_phys(table),
 					(PAGE_SIZE * (1 << page_order)));





                 reply	other threads:[~2002-12-11  6:00 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=1039586875.8018.23.camel@phantasy \
    --to=rml@tech9.net \
    --cc=davej@codemonkey.org.uk \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.