From: "Fernando Luis Vázquez Cao" <fernando@oss.ntt.co.jp>
To: gregkh@suse.de, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [PATCH] staging/vt6655: pointer to driver_data needs to be type long
Date: Fri, 26 Jun 2009 11:12:12 +0900 [thread overview]
Message-ID: <4A442E7C.7070301@oss.ntt.co.jp> (raw)
Fix the compilation error below while at it.
drivers/staging/vt6655/device_main.c:347: warning: cast from pointer to integer of different size
drivers/staging/vt6655/device_main.c:347: error: initializer element is not constant
drivers/staging/vt6655/device_main.c:347: error: (near initialization for ‘device_id_table[0].driver_data’)
Signed-off-by: Fernando Luis Vazquez Cao <fernando@oss.ntt.co.jp>
---
diff -urNp linux-2.6.31-rc1-orig/drivers/staging/vt6655/device_main.c linux-2.6.31-rc1/drivers/staging/vt6655/device_main.c
--- linux-2.6.31-rc1-orig/drivers/staging/vt6655/device_main.c 2009-06-26 10:58:19.752045244 +0900
+++ linux-2.6.31-rc1/drivers/staging/vt6655/device_main.c 2009-06-26 10:47:43.954543595 +0900
@@ -344,7 +344,7 @@ static CHIP_INFO chip_info_table[]= {
};
static struct pci_device_id device_id_table[] __devinitdata = {
-{ 0x1106, 0x3253, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (int)&chip_info_table[0]},
+{ 0x1106, 0x3253, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (long)&chip_info_table[0]},
{ 0, }
};
#endif
next reply other threads:[~2009-06-26 2:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-26 2:12 Fernando Luis Vázquez Cao [this message]
2009-07-02 19:49 ` Greg KH
2009-07-03 1:41 ` Fernando Luis Vázquez Cao
2009-07-04 15:42 ` Greg KH
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=4A442E7C.7070301@oss.ntt.co.jp \
--to=fernando@oss.ntt.co.jp \
--cc=gregkh@suse.de \
--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
Powered by JetHome