From: Jesse Barnes <jbarnes@engr.sgi.com>
To: linux-ia64@vger.kernel.org
Subject: [PATCH] gcc4 fixes for sn2
Date: Mon, 10 Jan 2005 21:52:04 +0000 [thread overview]
Message-ID: <200501101352.04806.jbarnes@engr.sgi.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 354 bytes --]
This patch is needed since "warning: use of cast expressions as lvalues is
deprecated" turned into an error in gcc4. We can use the convenience macros
for read access and explicit assignments for initialization. I thought about
using Alexandre's fixes, but this seemed a little simpler.
Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Thanks,
Jesse
[-- Attachment #2: sn2-io-init-gcc4-fixes.patch --]
[-- Type: text/plain, Size: 849 bytes --]
===== arch/ia64/sn/kernel/io_init.c 1.7 vs edited =====
--- 1.7/arch/ia64/sn/kernel/io_init.c 2005-01-07 21:44:03 -08:00
+++ edited/arch/ia64/sn/kernel/io_init.c 2005-01-10 13:50:14 -08:00
@@ -201,7 +201,7 @@
struct pci_dev *host_pci_dev;
int status = 0;
- SN_PCIDEV_INFO(dev) = kmalloc(sizeof(struct pcidev_info), GFP_KERNEL);
+ dev->sysdata = kmalloc(sizeof(struct pcidev_info), GFP_KERNEL);
if (SN_PCIDEV_INFO(dev) <= 0)
BUG(); /* Cannot afford to run out of memory */
memset(SN_PCIDEV_INFO(dev), 0, sizeof(struct pcidev_info));
@@ -309,8 +309,8 @@
* after this point.
*/
- PCI_CONTROLLER(bus) = controller;
- SN_PCIBUS_BUSSOFT(bus) = provider_soft;
+ bus->sysdata = controller;
+ PCI_CONTROLLER(bus)->platform_data = provider_soft;
nasid = NASID_GET(SN_PCIBUS_BUSSOFT(bus)->bs_base);
cnode = nasid_to_cnodeid(nasid);
reply other threads:[~2005-01-10 21:52 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=200501101352.04806.jbarnes@engr.sgi.com \
--to=jbarnes@engr.sgi.com \
--cc=linux-ia64@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