sys/sys: Remove VFS_MPLOCK2 macro
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 9 May 2015 21:28:25 +0000 (06:28 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sun, 10 May 2015 12:00:04 +0000 (21:00 +0900)
commite47b73c65d312cf196178b1110166a8d203abaeb
tree2edb0535f0f6642012a281daf2343398df64c461
parentc7b28cfd05b96eb648b16b5f40c0df89bb242240
sys/sys: Remove VFS_MPLOCK2 macro

- Not only vfs and filesystems are NOT using this macro,
  but also this macro doesn't work given that

- The local variable 'xlock_mpsafe' (which is visibly hidden
  from vfs C code) is being used without initializing, while
  this header doesn't provide a macro to initialze it.
  (even if it did provide the purpose of VFS_MPLOCK2 isn't
  very clear either).

- VFS_MPLOCK1 is the only one that works as expected and all
  the syscalls actually use this. Replacing VFS_MPLOCK1 with
  VFS_MPLOCK2 results compile error with -Werror=uninitialized.

  error: 'xlock_mpsafe' is used uninitialized in this function
  [-Werror=uninitialized]
      if (xlock_mpsafe) {
sys/kern/vfs_vopops.c
sys/sys/mount.h