Commit Graph

221821 Commits

Author SHA1 Message Date
mrg 41e6463624 - remove set but unused variable.
- put variables only inside #ifdef inside that same #ifdef.
  use __USE() where appropriate.
2013-10-19 21:00:32 +00:00
mrg e392147a46 avoid using __USE() in the tools version of this. 2013-10-19 20:49:22 +00:00
mrg 34287b30e3 convert ufs_rw{16,32,64}() into real inline functions in all cases,
so that they consume their second arguments properly.
2013-10-19 20:12:18 +00:00
christos 1cfe8e1462 add new scopeid function docs 2013-10-19 19:59:05 +00:00
christos e29c34aa52 document the scopeid functions 2013-10-19 19:56:56 +00:00
martin db379ec35c Remove an unused variable 2013-10-19 19:47:55 +00:00
mrg fa33d35f40 - remove unused but set variables.
- use __USE() where necessary.
- remove useless 'volatile' markers

kd.c:consinit() might be wrong for old proms, but i've not
changed it really.
2013-10-19 19:40:23 +00:00
martin 2af58edbe2 Mark a potentially unused variable 2013-10-19 19:29:59 +00:00
martin e13fb3704a Mark unused (in the !FFS_EI case) variables as such. 2013-10-19 19:28:13 +00:00
christos e5d5564a4b remove __unused now that it is used. 2013-10-19 19:22:16 +00:00
christos 86b6b2fef2 make cpu_need_resched() macros consistent; __USE flags 2013-10-19 19:20:59 +00:00
martin 4618c726c3 Eliminate a variable only used in diagnostic kernels 2013-10-19 19:20:50 +00:00
martin d3e65eabc6 Remove unused variable 2013-10-19 19:13:51 +00:00
martin 4fc0fb89a3 Mark a potentially unused variable 2013-10-19 19:10:12 +00:00
martin ed33e23721 Avoid unused variables 2013-10-19 19:08:39 +00:00
martin 7e04d278d2 Mark a variable that is only tested in DIAGNOSTIC kernels as potentially
unused.
2013-10-19 19:03:30 +00:00
martin 8afc72d050 cpu_need_resched(ci, type) might not make use of the type argument - mark
the variable declaration accordingly.
2013-10-19 18:42:05 +00:00
martin 2610fadf05 Ifdef a variable like its use 2013-10-19 18:39:30 +00:00
christos d56fcfc956 fix unused variable warnings 2013-10-19 17:45:00 +00:00
christos 973ed75f39 initialize variables 2013-10-19 17:44:37 +00:00
christos 05546cf9db build the .h before the .o 2013-10-19 17:28:38 +00:00
christos 193b880fad fix unused variable warnings 2013-10-19 17:19:30 +00:00
christos 0a77b69ab6 fix unused variable warnings. 2013-10-19 17:16:37 +00:00
christos 94a96ec4ae use new scopeid functions 2013-10-19 17:16:25 +00:00
christos a18b60aecf move all the necessay code inside ifdef 2013-10-19 17:10:17 +00:00
christos b02f1063c3 using sizeof(char *) to compute the size of a buffer is not going to work
very well.
2013-10-19 17:09:38 +00:00
christos 4013b33b0e move all the unused code inside #if 0 2013-10-19 17:08:15 +00:00
christos e243964246 move all the code that is unused inside #if 0 2013-10-19 17:06:57 +00:00
christos 5084cd4f69 avoid pointer gymnastics 2013-10-19 17:05:58 +00:00
christos f2bb6cd861 remove unused 2013-10-19 17:04:41 +00:00
martin 69d5d9c026 Mark a potentially unused (if an arch implements pmap_update as empty
macro) variable accordingly.
2013-10-19 16:33:11 +00:00
martin b59cd17e74 Mark a potentially unused (ifndef FFS_EI) variable 2013-10-19 16:30:57 +00:00
martin 2f3905777f Mark a potentially unused variable 2013-10-19 16:23:17 +00:00
martin cc82fef0a2 comment out unused code (for documentation purposes) 2013-10-19 16:21:57 +00:00
martin 7536c3dbed Make sure we don't accidently pass an unsolicited packet as "ack only"
(which would dereference unitialized pointers)
2013-10-19 16:19:13 +00:00
christos 740c6aa538 use correct function 2013-10-19 15:59:15 +00:00
christos 04908d82dd use correct function and symbolic constants 2013-10-19 15:56:05 +00:00
christos 730b60ec52 use symbolic flags 2013-10-19 15:50:26 +00:00
christos 1f484a2734 use new constants 2013-10-19 15:47:02 +00:00
christos c7c7d1300b define constants for scopeid function flags. 2013-10-19 15:44:29 +00:00
christos c60f6fad95 fix userland build, by moving all the unused stuff inside ifdef _KERNEL 2013-10-19 15:20:52 +00:00
martin 9197dcbb29 Mark a potentialy unused variable 2013-10-19 14:33:07 +00:00
skrll bd44ed7096 #if 0 some unsed code which should probably be finished. 2013-10-19 14:03:04 +00:00
skrll e89d113c63 Use __unused on a variable used in a KASSERT 2013-10-19 14:02:29 +00:00
skrll 94f8286b66 Remove unused variable. 2013-10-19 14:00:59 +00:00
skrll 1e2bd251c8 Appease gcc 4.8.
XXX should really use bus_space(9)
2013-10-19 13:49:11 +00:00
tsutsui 0148f33f56 Wrap long lines overflowed after EXT2_ prefix addtion to fs macro. 2013-10-19 13:42:10 +00:00
skrll e2826bcdf9 __unused 2013-10-19 13:29:10 +00:00
skrll be4a844aec Remove unused variable. 2013-10-19 13:28:36 +00:00
skrll 3e1d409f65 Remember to unmap pagezero once we've finished with it. Found by gcc 4.8. 2013-10-19 13:21:43 +00:00