Commit Graph

137587 Commits

Author SHA1 Message Date
he
d049b36b69 Add const to the prom_getenv() vector argument.
More function pointer prototypes can probably have const added, but
this gets us building for now.
2005-06-09 13:47:28 +00:00
he
78734c90bf Prefix variables in a macro with an underscore to avoid shadowing problems. 2005-06-09 13:45:31 +00:00
tron
abba7e56c8 Enable RAIDframe support in the NetBSD-macppc installation media.
Based on patches submitted by Ian Spray in PR port-macppc/30465.
2005-06-09 13:29:57 +00:00
he
e06cf89e96 Rename local variable tick' to ticks' to make this build with -Wshadow. 2005-06-09 12:25:32 +00:00
he
3ee7e97fcc Now that OF_read and OF_write have different signatures, we need to
cast one of them before assigning to a common function pointer.
Yes, this breaks strict type checking, but is needed to compile with
-Wcast-qual turned on.
2005-06-09 12:23:23 +00:00
tron
bd52bf6180 Change marker from "pmppc" to "powerpc" because a NetBSD-macppc build
is also affected.
2005-06-09 12:20:12 +00:00
he
7eaf447237 Adapt to compiling with -Wcast-qual by adding consts. 2005-06-09 11:24:04 +00:00
he
500225c986 Adapt to compiling with -Wcast-qual by passing NULL instead of a string
to config_rootfound().
2005-06-09 11:23:36 +00:00
he
1ce7c753b3 Add an initialization to placate -Wuninitialized.
Marked with XXXGCC for pmppc (found while compiling for it).
2005-06-09 09:36:19 +00:00
he
cc17b14ba8 Adapt to compiling with -Wcast-qual and -Wshadow. 2005-06-09 09:24:45 +00:00
he
bdc36c4d9b Adapt to compiling with -Wcast-qual by constifying vt220_putstring()'s
first argument.  Also gets rid of unneccessary casts to (u_char*).
2005-06-09 09:23:39 +00:00
he
f1f4a50e8b Adapt to compiling with -Wcast-qual by constifying a char* field. 2005-06-09 09:15:28 +00:00
he
54960c1bb7 Adapt to compiling with -Wcast-qual and -Wshadow by adding const in
appropriate places and renaming a few local variables.
2005-06-09 08:05:31 +00:00
skrll
00b45e0cff When the PDC_TLB_INFO call fails default to an HPT size of PAGE_SIZE.
My 715/50 can now boot.

Clean patch from Chuck Silvers.
2005-06-09 07:18:17 +00:00
he
f9c7d41f97 Adapt to compiling with -Wcast-qual by adding a const. 2005-06-09 06:48:44 +00:00
he
0b11d7187e Adapt to compiling with -Wcast-qual by setting the last argument to
config_rootfound() to NULL.
2005-06-09 06:48:16 +00:00
he
10d9cac89f Adapt to compiling with -Wcast-qual by adding const to a function
parameter of db_mach_cpu().
2005-06-09 06:27:18 +00:00
atatat
420d91208b Properly fix the constipated lossage wrt -Wcast-qual and the sysctl
code.  I know it's not the prettiest code, but it seems to work rather
well in spite of itself.
2005-06-09 02:19:59 +00:00
he
ac898acfa7 Rename an inner variable shadowing the 'v' parameter to appease -Wshadow. 2005-06-08 22:38:16 +00:00
he
beb03e4d32 Add __UNVOLATILE() to a cast when calling memset() to appease -Wcast-qual. 2005-06-08 22:33:56 +00:00
rjs
e222d37a70 Add message definitions for SWIM and for ADB autopoll. 2005-06-08 22:16:44 +00:00
dbj
36c3355e33 add code to handle inodes with extended attribute blocks
this is currently turned off with "#ifdef notyet" since the
kernel will not correctly clean up extended attribute blocks on truncation

Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.
2005-06-08 20:34:06 +00:00
perseant
4b8db8388e Use the correct method to create a new inode, when we allocate lost+found.
Correct uninitialized variable issues in pass6.c and dir.c (PR#30411 and
PR#30394, respectively).
2005-06-08 19:09:55 +00:00
fair
3f11934dfb Change the name of a shadowed variable in FW_DEBUG code to make this
compile again.
2005-06-08 18:33:15 +00:00
soren
444a2a0572 Revert previous change; the microphone input DMA channel is still not visible
to userland.
2005-06-08 17:55:06 +00:00
he
5f0e107e63 Adapt to compiling with -Wcast-qual by adding const to some pointer casts. 2005-06-08 13:54:38 +00:00
he
6e91e3b4f3 Adapt to changed signature of the arm get_bootconf_option() (adds a const). 2005-06-08 11:55:29 +00:00
yamt
656adb750b pf_reassemble: clear stale csum_flags. 2005-06-08 11:50:46 +00:00
martin
f2fa04e658 Use KBD_IDLE instead of magic constants 2005-06-08 10:06:23 +00:00
martin
b8aea19a7a Add a key symbol for the "Power" key. 2005-06-08 09:11:09 +00:00
he
3ffd57432b Add an __UNCONST() to appease -Wcast-qual.
XXX The way this is done is really wrong, as this function ends up
modifying read-only data marked with 'const'.
The reason we can get away with this is that apparently all the
ports using this code maps text and read-only data read-write.

Reviewed by christos, who suggested "a big XXX comment".
2005-06-08 07:49:45 +00:00
scw
50d7457a5f Thou shalt not allocate PAGE_SIZE automatic variables on the kernel stack. 2005-06-08 07:25:12 +00:00
pooka
3ff1c89a7f add bits for arcom viper 2005-06-08 05:33:46 +00:00
oster
77708271bf - initialize numRUsTotal before we indicate that we are doing a reconstruct.
- make numRUsComplete and numRUsTotal 64-bit quantities like
everything else that records this information.
2005-06-08 02:00:53 +00:00
fair
af23ff4dbb appease gcc -Wuninitialized 2005-06-08 00:19:18 +00:00
lukem
b3a34b7256 Support MKINET6=no building after the -Wuninitalized fix.
Noted by Jukka Salmi in email.
2005-06-07 22:21:57 +00:00
matt
bb583a82ce Make sure state.end has a valid initial value. 2005-06-07 22:02:48 +00:00
sjg
aa7b975acd Sometimes .BEGIN target is not wanted - eg in sub-make's. 2005-06-07 18:11:34 +00:00
is
7452bc547d Move ld and libbfd (needed by modload) to base, so that a base-only
system can load kernel modules.
2005-06-07 14:27:42 +00:00
he
07950b9fb6 Add initialization of a local variable to appease -Wuninitialized.
Marked with XXXGCC for hpcarm (found while compiling for it).
It appears that the reason is that gcc for this target is not able
to determine unchanging complementary conditionals and sort out the
corresponding assignment / use.
2005-06-07 14:01:49 +00:00
he
e670882cec Initialize a local variable in ufs_getlbns() to appease -Wuninitialized.
Marked with XXXGCC for sparc64 (found while compiling for it).

Reviewed by lukem.
2005-06-07 13:54:55 +00:00
he
0590642883 Initialize a local variable (bbinfop) to appease -Wuninitialized.
Marked with XXXGCC for sparc64 (found while compiling for it).

Reviewed by lukem.
2005-06-07 13:49:31 +00:00
peter
130e3c23a2 Fix typos. 2005-06-07 13:45:11 +00:00
he
63104d4c13 Initialize s, name and name_end in load_env() to appease -Wuninitialized.
Marked with XXXGCC for sparc64 (found while compiling for it).

Reviewed by lukem.
2005-06-07 13:43:52 +00:00
he
7cc15c3097 Initialize various local variables (clinfo, fltrinfo) to appease
-Wuninitialized.  Found while compiling for sun2.

Reviewed by lukem.
2005-06-07 13:39:37 +00:00
he
95094319c5 Initialize a local variable to appease -Wuninitialized.
Marked with XXXGCC for dreamcast (found while compiling for it).

Reviewed by lukem.
2005-06-07 13:36:28 +00:00
he
cabcbc12ed Initialize a local variable to appease -Wuninitialized.
Marked with XXXGCC for sun2 (found while compiling for it).

Reviewed by lukem.
2005-06-07 13:34:10 +00:00
he
136c962ff9 Initialize a local variable to appease -Wuninitialized.
Marked with XXXGCC for dreamcast (found while compiling for it).

Reviewed by lukem.
2005-06-07 13:26:26 +00:00
he
957e5645e9 Sprinkle some const around to make these files compile with -Wcast-qual. 2005-06-07 12:19:46 +00:00
jmmv
f51dc0f3a7 Constify char* arguments to pm_printerr. Fixes the build when ADB_DEBUG
is set.

Note that only the first argument needed to be constified to solve the issue,
but given the usage of the arguments in the function, it's worth to constify
all of them.
2005-06-07 12:14:13 +00:00