* [Linux-ia64] Integer to Pointer Cast Warnings when Building 2.4.17
@ 2002-06-03 12:39 LAKSHMIPATHY,ARUN (HP-India,ex2)
2002-06-03 14:48 ` [Linux-ia64] Integer to Pointer Cast Warnings when Building 2 Matt_Domsch
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: LAKSHMIPATHY,ARUN (HP-India,ex2) @ 2002-06-03 12:39 UTC (permalink / raw)
To: linux-ia64
Hi,
I Get an integer to pointer typecast warning from some of the sources when
building the 2.4.17 kernel, I am using the base 2.4.17 kernel and the ia64
patch with no other patches, the kernel builds fine and comes up fine.
Wanted to be sure that this is not a cause for concern. Enclosed below is
the excerpt of the build o/p.
make[1]: Entering directory `/kernel/linux/arch/ia64/ia32'
sys_ia32.c: In function `sys32_brk':
sys_ia32.c:3824: warning: passing arg 1 of `__do_clear_user' makes pointer
from integer without a cast
make[4]: Entering directory `/kernel/linux/drivers/acpi/dispatcher'
dswexec.c: In function `acpi_ds_exec_end_op':
dswexec.c:580: warning: cast from pointer to integer of different size
make[4]: Entering directory `/kernel/linux/drivers/acpi/events'
evevent.c: In function `acpi_ev_asynch_execute_gpe_method':
evevent.c:686: warning: cast from pointer to integer of different size
evevent.c: In function `acpi_ev_gpe_dispatch':
evevent.c:802: warning: cast to pointer from integer of different size
make[3]: Entering directory `/kernel/linux/drivers/acpi'
os.c: In function `acpi_os_get_root_pointer':
os.c:206: warning: assignment makes integer from pointer without a cast
make[3]: Entering directory `/kernel/linux/drivers/scsi'
megaraid.c: In function `megaraid_queue':
megaraid.c:3805: warning: cast to pointer from integer of different size
Regards
Arun
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [Linux-ia64] Integer to Pointer Cast Warnings when Building 2
2002-06-03 12:39 [Linux-ia64] Integer to Pointer Cast Warnings when Building 2.4.17 LAKSHMIPATHY,ARUN (HP-India,ex2)
@ 2002-06-03 14:48 ` Matt_Domsch
2002-06-03 15:00 ` [Linux-ia64] Integer to Pointer Cast Warnings when Building 2.4.17 n0ano
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Matt_Domsch @ 2002-06-03 14:48 UTC (permalink / raw)
To: linux-ia64
> make[3]: Entering directory `/kernel/linux/drivers/scsi'
> megaraid.c: In function `megaraid_queue':
> megaraid.c:3805: warning: cast to pointer from integer of
> different size
This one is OK, albeit not obvious. That's inside an ioctl that can only be
called by a 32-bit user space application (no equivalent 64-bit app exists).
The code is:
char *user_area = NULL;
user_area = (char *)*((u32*)&pScb->SCpnt->cmnd[4]);
copy_to_user(user_area,...)
a 32-bit value which is a pointer inside a 32-bit application gets promoted
to a 64-bit pointer inside the ioctl so that copy_to_user can be used.
Thanks,
Matt
--
Matt Domsch
Sr. Software Engineer
Dell Linux Solutions www.dell.com/linux
Linux on Dell mailing lists @ http://lists.us.dell.com
#1 US Linux Server provider for 2001!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Linux-ia64] Integer to Pointer Cast Warnings when Building 2.4.17
2002-06-03 12:39 [Linux-ia64] Integer to Pointer Cast Warnings when Building 2.4.17 LAKSHMIPATHY,ARUN (HP-India,ex2)
2002-06-03 14:48 ` [Linux-ia64] Integer to Pointer Cast Warnings when Building 2 Matt_Domsch
@ 2002-06-03 15:00 ` n0ano
2002-06-03 17:23 ` David Mosberger
2002-06-03 17:35 ` Matthew Wilcox
3 siblings, 0 replies; 5+ messages in thread
From: n0ano @ 2002-06-03 15:00 UTC (permalink / raw)
To: linux-ia64
Arun-
Looks like the prototype for `__do_clear_user' changed, I can fix this
when I get home this evening.
On Mon, Jun 03, 2002 at 05:57:47PM +0530, LAKSHMIPATHY,ARUN (HP-India,ex2) wrote:
> Hi,
>
> I Get an integer to pointer typecast warning from some of the sources when
> building the 2.4.17 kernel, I am using the base 2.4.17 kernel and the ia64
> patch with no other patches, the kernel builds fine and comes up fine.
> Wanted to be sure that this is not a cause for concern. Enclosed below is
> the excerpt of the build o/p.
>
> make[1]: Entering directory `/kernel/linux/arch/ia64/ia32'
> sys_ia32.c: In function `sys32_brk':
> sys_ia32.c:3824: warning: passing arg 1 of `__do_clear_user' makes pointer
> from integer without a cast
>
--
Don Dugger
"Censeo Toto nos in Kansa esse decisse." - D. Gale
n0ano@indstorage.com
Ph: 303/652-0870x117
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Linux-ia64] Integer to Pointer Cast Warnings when Building 2.4.17
2002-06-03 12:39 [Linux-ia64] Integer to Pointer Cast Warnings when Building 2.4.17 LAKSHMIPATHY,ARUN (HP-India,ex2)
2002-06-03 14:48 ` [Linux-ia64] Integer to Pointer Cast Warnings when Building 2 Matt_Domsch
2002-06-03 15:00 ` [Linux-ia64] Integer to Pointer Cast Warnings when Building 2.4.17 n0ano
@ 2002-06-03 17:23 ` David Mosberger
2002-06-03 17:35 ` Matthew Wilcox
3 siblings, 0 replies; 5+ messages in thread
From: David Mosberger @ 2002-06-03 17:23 UTC (permalink / raw)
To: linux-ia64
>>>>> On Mon, 3 Jun 2002 17:57:47 +0530, "LAKSHMIPATHY,ARUN (HP-India,ex2)" <arun_lakshmipathy@hp.com> said:
Arun> make[4]: Entering directory
Arun> `/kernel/linux/drivers/acpi/dispatcher' dswexec.c: In function
Arun> `acpi_ds_exec_end_op': dswexec.c:580: warning: cast from
Arun> pointer to integer of different size
Arun> make[4]: Entering directory
Arun> `/kernel/linux/drivers/acpi/events' evevent.c: In function
Arun> `acpi_ev_asynch_execute_gpe_method': evevent.c:686: warning:
Arun> cast from pointer to integer of different size evevent.c: In
Arun> function `acpi_ev_gpe_dispatch': evevent.c:802: warning: cast
Arun> to pointer from integer of different size
Arun> make[3]: Entering directory `/kernel/linux/drivers/acpi' os.c:
Arun> In function `acpi_os_get_root_pointer': os.c:206: warning:
Arun> assignment makes integer from pointer without a cast
These come from the ACPI subsystem. They annoy me, too, but it's up
to the ACPI folks to fix them. It's possible they're already fixed in
the latest ACPI drops.
--david
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Linux-ia64] Integer to Pointer Cast Warnings when Building 2.4.17
2002-06-03 12:39 [Linux-ia64] Integer to Pointer Cast Warnings when Building 2.4.17 LAKSHMIPATHY,ARUN (HP-India,ex2)
` (2 preceding siblings ...)
2002-06-03 17:23 ` David Mosberger
@ 2002-06-03 17:35 ` Matthew Wilcox
3 siblings, 0 replies; 5+ messages in thread
From: Matthew Wilcox @ 2002-06-03 17:35 UTC (permalink / raw)
To: linux-ia64
On Mon, Jun 03, 2002 at 10:23:09AM -0700, David Mosberger wrote:
> These come from the ACPI subsystem. They annoy me, too, but it's up
> to the ACPI folks to fix them. It's possible they're already fixed in
> the latest ACPI drops.
When compiling my current tree which includes ACPI CA 20020517, the only
warning I get is:
pci_irq.c: In function `acpi_pci_irq_enable':
pci_irq.c:304: warning: unused variable `irq_mask'
which is a fairly benign type of warning.
--
Revolutions do not require corporate support.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-06-03 17:35 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-03 12:39 [Linux-ia64] Integer to Pointer Cast Warnings when Building 2.4.17 LAKSHMIPATHY,ARUN (HP-India,ex2)
2002-06-03 14:48 ` [Linux-ia64] Integer to Pointer Cast Warnings when Building 2 Matt_Domsch
2002-06-03 15:00 ` [Linux-ia64] Integer to Pointer Cast Warnings when Building 2.4.17 n0ano
2002-06-03 17:23 ` David Mosberger
2002-06-03 17:35 ` Matthew Wilcox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox