Commit Graph

138020 Commits

Author SHA1 Message Date
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
he a6b58673ef Rename cpuspeed to cpu_speed as parammeter in tx39clock_cpuspeed() to
avoid shadowing warning.
2005-06-07 12:10:44 +00:00
he 7eb00d0e60 Add use of __UNCONST() to an invocation of tpcalib_ioctl(), as that
function may both read and write it's argument.  Here it is only
reading from the data argument under WSMOUSEIO_SCALIBCOORDS, so it
is actually fine, but type protection can't express this.
2005-06-07 12:06:55 +00:00
he 7461b37cb5 Rename local variable 'min' to 'mins' to avoid shadowing warning. 2005-06-07 12:02:46 +00:00
he b3331ee3d4 Add const to the name argument of __dbg_bit_print(). 2005-06-07 12:02:04 +00:00
he 7cb32336e1 Add const to the name fields in hipcio_chip and hpcio_attach_args. 2005-06-07 11:43:01 +00:00
skrll fa0ce9deca Sync with pcidevs changes. 2005-06-07 11:33:55 +00:00
skrll 2b6261fcdc Regen. 2005-06-07 11:33:06 +00:00
skrll d3624a9c95 Add some Intel 802.11 cards.
From OpenBSD.
2005-06-07 11:31:44 +00:00
martin 1ee0840364 Do not bother to post "keyboard idle" events to userland when we are
in wskbd raw input mode.
2005-06-07 10:29:08 +00:00
he 90d4762740 Initialize a local variable to appease -Wuninitialized.
Marked with XXXGCC for pmppc (found while compiling for it).

Reviewed by lukem.
2005-06-07 09:51:34 +00:00
he f104d7d50d Initialize a couple of local variables to appease -Wuninitialized.
Marked with XXXGCC for sun2 (found while compiling for it).

Reviewed by lukem.
2005-06-07 09:33:37 +00:00
he 07b1fe6a3e Initialize a local variable to appease -Wuninitialized.
Marked with XXXGCC for sun2 (found while compiling for it).

Reviewed by lukem.
2005-06-07 09:25:00 +00:00
he 7ed57630be Initialize a bunch of local variables in _rtld_relocate_nonplt_self().
Found by -Wuninitialized while compiling for newsmips.

Reviewed by lukem.
2005-06-07 09:20:19 +00:00
he 87292a6062 Initialize a variable to appease -Wuninitialized.
Marked with XXXGCC for dreamcast (found while compiling for it).

Reviewed by lukem.
2005-06-07 09:13:43 +00:00
he 2e34fff7c9 Add an initialization to appease -Wuninitialized.
Marked with XXXGCC for sun2 (found while building for it).

Reviewed by lukem.
2005-06-07 09:10:33 +00:00
he e82dc5dc94 Initialize metalbn in ufs_getlbns to appease -Wuninitialized.
Marked with XXXGCC for dreamcast (found while compiling for it).

Reviewed by lukem.
2005-06-07 09:08:07 +00:00
he 0a5aea28f2 Initialize ipid in two functions to NULL, to appease -Wuninitialized.
Marked with XXXGCC for dreamcast (found while compiling for it).

Reviewed (in slightly different form) by lukem.
2005-06-07 09:00:18 +00:00