Tim Gardner
b8850d1fa8
fs: namespace: suppress 'may be used uninitialized' warnings
...
The gcc version 4.9.1 compiler complains Even though it isn't possible for
these variables to not get initialized before they are used.
fs/namespace.c: In function ‘SyS_mount’:
fs/namespace.c:2720:8: warning: ‘kernel_dev’ may be used uninitialized in this function [-Wmaybe-uninitialized]
ret = do_mount(kernel_dev, kernel_dir->name, kernel_type, flags,
^
fs/namespace.c:2699:8: note: ‘kernel_dev’ was declared here
char *kernel_dev;
^
fs/namespace.c:2720:8: warning: ‘kernel_type’ may be used uninitialized in this function [-Wmaybe-uninitialized]
ret = do_mount(kernel_dev, kernel_dir->name, kernel_type, flags,
^
fs/namespace.c:2697:8: note: ‘kernel_type’ was declared here
char *kernel_type;
^
Fix the warnings by simplifying copy_mount_string() as suggested by Al Viro.
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2014-10-09 02:39:10 -04:00
..
2014-10-09 02:39:04 -04:00
2014-08-08 15:57:24 -07:00
2014-06-12 10:30:18 -07:00
2014-10-09 02:38:56 -04:00
2014-10-09 02:38:52 -04:00
2014-08-08 15:57:20 -07:00
2014-08-08 15:57:24 -07:00
2014-10-09 02:38:57 -04:00
2014-10-09 02:39:05 -04:00
2014-10-09 02:38:58 -04:00
2014-10-09 02:39:03 -04:00
2014-08-08 15:57:20 -07:00
2014-06-04 16:53:53 -07:00
2014-08-08 15:57:25 -07:00
2014-07-09 16:58:21 -07:00
2014-06-06 16:08:14 -07:00
2014-08-08 15:57:27 -07:00
2014-06-04 16:54:14 -07:00
2014-08-08 15:57:18 -07:00
2014-08-08 15:57:24 -07:00
2014-06-04 16:54:14 -07:00
2014-07-15 22:40:22 +02:00
2014-08-19 23:16:51 +02:00
2014-09-03 09:37:30 -04:00
2014-09-02 00:22:24 -07:00
2014-06-12 10:30:18 -07:00
2014-09-17 22:41:40 +01:00
2014-10-09 02:38:57 -04:00
2014-10-09 02:38:56 -04:00
2014-06-12 10:30:18 -07:00
2014-08-07 14:40:09 -04:00
2014-08-08 15:57:22 -07:00
2014-06-04 16:54:11 -07:00
2014-08-19 18:29:30 +02:00
2014-08-28 22:22:29 -04:00
2014-10-09 02:39:01 -04:00
2014-06-12 10:30:18 -07:00
2014-10-09 02:38:56 -04:00
2014-09-08 12:03:32 -04:00
2014-08-06 18:01:12 -07:00
2014-08-08 15:57:20 -07:00
2014-06-04 16:54:21 -07:00
2014-10-09 02:38:57 -04:00
2014-07-12 18:43:42 -04:00
2014-09-08 12:02:03 -04:00
2014-09-26 08:10:34 -07:00
2014-09-10 15:42:12 -07:00
2014-08-06 18:01:12 -07:00
2014-09-26 08:10:34 -07:00
2014-08-08 15:57:25 -07:00
2014-10-09 02:38:58 -04:00
2014-08-08 15:57:25 -07:00
2014-08-08 15:57:26 -07:00
2014-07-15 22:40:23 +02:00
2014-08-08 15:57:18 -07:00
2014-08-13 17:45:40 -06:00
2014-08-08 15:57:25 -07:00
2014-08-06 18:01:13 -07:00
2014-06-03 08:11:18 -07:00
2014-07-31 15:52:51 +03:00
2014-09-04 21:37:41 +02:00
2014-09-26 21:17:52 -04:00
2014-09-02 12:12:53 +10:00
2014-09-04 16:54:47 -04:00
2014-06-10 13:57:22 -07:00
2014-08-07 14:40:09 -04:00
2014-10-09 02:39:00 -04:00
2014-10-09 02:39:00 -04:00
2014-10-09 02:39:00 -04:00
2014-06-04 16:54:21 -07:00
2014-06-12 10:30:18 -07:00
2014-10-09 02:39:03 -04:00
2014-07-11 13:53:04 +03:00
2014-10-09 02:39:10 -04:00
2014-07-23 15:10:54 -07:00
2014-10-09 02:39:02 -04:00
2014-09-26 21:16:51 -04:00
2014-06-06 16:08:16 -07:00
2014-09-10 15:42:12 -07:00
2014-10-09 02:39:00 -04:00
2014-08-08 15:57:31 -07:00
2014-06-12 10:30:18 -07:00
2014-08-07 14:40:09 -04:00
2014-07-16 15:10:39 +02:00
2014-08-08 15:57:31 -07:00
2014-10-09 02:39:10 -04:00
2014-06-04 16:53:55 -07:00
2014-08-22 09:58:22 -04:00
2014-08-07 14:40:08 -04:00
2014-06-25 22:08:29 -04:00
2014-10-09 02:38:55 -04:00
2014-06-04 16:54:02 -07:00
2014-10-09 02:38:57 -04:00
2014-10-09 02:39:10 -04:00
2014-08-01 02:36:04 -04:00
2014-08-30 18:31:41 -04:00
2014-07-29 18:08:50 -07:00
2014-10-09 02:39:05 -04:00
2014-06-04 16:53:52 -07:00
2014-07-03 09:21:54 -07:00
2014-06-12 00:28:09 -04:00
2014-10-09 02:39:02 -04:00
2014-09-05 08:16:21 -07:00
2014-07-23 10:18:02 -07:00
2014-07-23 15:10:55 -07:00