From: richard offer <offer@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: [Linux-ia64] minor tidy up of some warnings.
Date: Thu, 02 Aug 2001 22:23:40 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590693005995@msgid-missing> (raw)
Here's a list of some of the issues I found while compiling with the
following warnings enabled
-Wimplicit-int \
-Wimplicit-function-declaration \
-Wimplicit -Wmain -Wreturn-type \
-Wunused-function -Wunused-label \
-Wunused-value -Wswitch \
-Wcomment \
-Wchar-subscripts -Wparentheses \
-Werror
Using -Wall -Werror will fail due to a number of unitialized variables
(dummy variables in the _syscall defns in asm/unistd.h)
I always try to build with -Werror set to make the build fail at compile
time rather than execution.
unw_access_pr
=======
in arch/ia64/kernel/unwind.c:509 is declared inline, in
include/asm-ia64/unwind.h it has no inline modifier.
acpi_ds_exec_end_op
=========
dswexec.c: In function `acpi_ds_exec_end_op':
dswexec.c:619: warning: cast from pointer to integer of different size
--- drivers/acpi/dispatcher/dswexec.c.pre-rmo Tue Jul 31 11:31:17 2001
+++ drivers/acpi/dispatcher/dswexec.c Thu Aug 2 14:14:07 2001
@@ -616,7 +616,7 @@
(walk_state->control_state->common.state =
CONTROL_PREDICATE_EXECUTING) &&
(walk_state->control_state->control.predicate_op = op)) {
- status = acpi_ds_get_predicate_value (walk_state, op, (u32)
result_obj);
+ status = acpi_ds_get_predicate_value (walk_state, op, (u32)
(result_obj != NULL));
result_obj = NULL;
}
acpi_init
====
driver.c: In function `acpi_init':
driver.c:90: warning: assignment makes integer from pointer without a cast
--- drivers/acpi/driver.c.pre-rmo Tue Jul 31 11:41:19 2001
+++ drivers/acpi/driver.c Thu Aug 2 14:38:03 2001
@@ -87,7 +87,7 @@
return -ENODEV;
}
#else
- rsdp_phys = efi.acpi;
+ rsdp_phys = (ACPI_PHYSICAL_ADDRESS) efi.acpi;
#endif
/* from this point on, on error we must call acpi_terminate() */
acpi_ev_asynch_execute_gpe_method
================
evevent.c: In function `acpi_ev_gpe_dispatch':
evevent.c:749: warning: cast to pointer from integer of different size
These are all over the place, basically they are storing something that is
an int into a void * and then getting it back out again (typecasting it as
it comes back out).
Not sure how to handle this. Comments ?
richard.
-----------------------------------------------------------------------
Richard Offer Technical Lead, Trust Technology, SGI
"Specialization is for insects"
_______________________________________________________________________
next reply other threads:[~2001-08-02 22:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-02 22:23 richard offer [this message]
2001-08-06 18:24 ` [Linux-ia64] minor tidy up of some warnings David Mosberger
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=marc-linux-ia64-105590693005995@msgid-missing \
--to=offer@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