Masahiro Yamada
68048dce65
nilfs2: do not use unexported cpu_to_le32()/le32_to_cpu() in uapi header
...
commit c32cc30c0544f13982ee0185d55f4910319b1a79 upstream.
cpu_to_le32/le32_to_cpu is defined in include/linux/byteorder/generic.h,
which is not exported to user-space.
UAPI headers must use the ones prefixed with double-underscore.
Detected by compile-testing exported headers:
include/linux/nilfs2_ondisk.h: In function `nilfs_checkpoint_set_snapshot':
include/linux/nilfs2_ondisk.h:536:17: error: implicit declaration of function `cpu_to_le32' [-Werror=implicit-function-declaration]
cp->cp_flags = cpu_to_le32(le32_to_cpu(cp->cp_flags) | \
^
include/linux/nilfs2_ondisk.h:552:1: note: in expansion of macro `NILFS_CHECKPOINT_FNS'
NILFS_CHECKPOINT_FNS(SNAPSHOT, snapshot)
^~~~~~~~~~~~~~~~~~~~
include/linux/nilfs2_ondisk.h:536:29: error: implicit declaration of function `le32_to_cpu' [-Werror=implicit-function-declaration]
cp->cp_flags = cpu_to_le32(le32_to_cpu(cp->cp_flags) | \
^
include/linux/nilfs2_ondisk.h:552:1: note: in expansion of macro `NILFS_CHECKPOINT_FNS'
NILFS_CHECKPOINT_FNS(SNAPSHOT, snapshot)
^~~~~~~~~~~~~~~~~~~~
include/linux/nilfs2_ondisk.h: In function `nilfs_segment_usage_set_clean':
include/linux/nilfs2_ondisk.h:622:19: error: implicit declaration of function `cpu_to_le64' [-Werror=implicit-function-declaration]
su->su_lastmod = cpu_to_le64(0);
^~~~~~~~~~~
Link: http://lkml.kernel.org/r/20190605053006.14332-1-yamada.masahiro@socionext.com
Fixes: e63e88bc53 ("nilfs2: move ioctl interface and disk layout to uapi separately")
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com >
Acked-by: Ryusuke Konishi <konishi.ryusuke@gmail.com >
Cc: Arnd Bergmann <arnd@arndb.de >
Cc: Greg KH <gregkh@linuxfoundation.org >
Cc: Joe Perches <joe@perches.com >
Cc: <stable@vger.kernel.org > [4.9+]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-07-21 09:03:02 +02:00
..
2017-11-02 11:20:11 +01:00
2018-07-30 16:21:49 -04:00
2017-11-02 11:20:11 +01:00
2018-07-23 19:18:10 +01:00
2019-04-20 09:16:00 +02:00
2018-04-24 10:29:18 +02:00
2018-05-06 23:33:03 +02:00
2017-11-02 11:20:11 +01:00
2017-11-02 11:19:54 +01:00
2017-11-02 10:04:46 -07:00
2018-07-19 23:26:01 -07:00
2019-07-14 08:11:16 +02:00
2018-08-06 10:24:33 +02:00
2017-11-02 11:20:11 +01:00
2017-11-02 11:19:54 +01:00
2018-08-15 22:54:12 -07:00
2017-11-02 11:20:11 +01:00
2018-06-07 17:34:39 -07:00
2018-08-22 10:52:49 -07:00
2017-11-02 11:19:54 +01:00
2018-08-11 15:46:41 -06:00
2018-03-30 14:16:24 -06:00
2018-07-09 09:07:52 -06:00
2019-07-03 13:14:48 +02:00
2018-05-23 13:23:40 -04:00
2017-11-02 11:19:54 +01:00
2018-07-20 10:25:48 +02:00
2018-05-31 11:35:24 +02:00
2018-07-27 10:40:16 +02:00
2017-11-02 11:19:54 +01:00
2017-11-02 11:20:11 +01:00
2017-11-02 11:19:54 +01:00
2018-11-13 11:08:53 -08:00
2018-05-01 14:25:37 -04:00
2017-11-02 11:19:54 +01:00
2018-04-11 10:28:38 -07:00
2017-11-02 11:19:54 +01:00
2018-07-29 12:53:54 -07:00
2018-07-12 17:37:13 -07:00
2017-11-02 11:20:11 +01:00
2018-04-04 12:12:38 -04:00
2017-11-02 11:19:54 +01:00
2017-11-02 11:20:11 +01:00
2018-07-19 13:58:44 -07:00
2017-11-02 11:19:54 +01:00
2012-10-13 10:46:48 +01:00
2018-07-04 22:30:28 +09:00
2018-08-07 12:15:03 -07:00
2018-07-15 14:03:06 +02:00
2017-11-02 11:19:54 +01:00
2017-11-02 11:19:54 +01:00
2017-11-02 11:19:54 +01:00
2013-07-27 20:24:36 +02:00
2017-11-02 11:19:54 +01:00
2018-07-15 13:55:47 +02:00
2018-11-13 11:08:46 -08:00
2018-06-18 15:11:53 +10:00
2017-11-02 11:20:11 +01:00
2019-05-25 18:23:40 +02:00
2017-11-02 11:20:11 +01:00
2017-11-02 11:20:11 +01:00
2017-11-02 11:20:11 +01:00
2017-11-02 11:20:11 +01:00
2018-05-29 10:12:45 -04:00
2017-11-02 11:20:11 +01:00
2018-03-23 11:31:58 -04:00
2018-04-23 11:10:33 -04:00
2018-07-29 12:57:26 -07:00
2018-06-08 00:18:02 +02:00
2018-06-29 11:32:55 +09:00
2019-02-27 10:08:58 +01:00
2018-06-27 19:21:25 +02:00
2019-01-13 09:50:56 +01:00
2019-01-31 08:14:42 +01:00
2017-11-02 11:19:54 +01:00
2017-11-02 11:19:54 +01:00
2018-07-29 12:37:06 -07:00
2017-11-02 11:19:54 +01:00
2018-02-27 07:42:51 -06:00
2018-02-27 07:42:51 -06:00
2017-11-02 11:19:54 +01:00
2017-11-02 11:19:54 +01:00
2018-07-26 17:04:37 -07:00
2017-05-11 00:21:54 +09:00
2017-11-02 11:19:54 +01:00
2017-11-02 11:19:54 +01:00
2017-11-02 11:19:54 +01:00
2018-06-07 17:34:37 -07:00
2017-11-02 11:19:54 +01:00
2017-11-02 11:19:54 +01:00
2018-07-07 17:41:38 +02:00
2018-09-25 13:28:58 +02:00
2018-11-21 09:19:23 +01:00
2018-08-06 17:59:22 +02:00
2018-09-20 00:51:46 +02:00
2018-08-03 10:03:57 -07:00
2018-02-13 11:23:24 -05:00
2017-11-02 11:19:54 +01:00
2018-04-20 09:15:18 -04:00
2017-11-02 11:20:11 +01:00
2017-11-13 15:38:16 +00:00
2017-11-02 11:20:11 +01:00
2017-11-02 11:19:54 +01:00
2018-08-02 06:04:57 -04:00
2018-07-27 07:52:39 -04:00
2018-10-05 16:32:04 -07:00
2017-11-02 11:20:11 +01:00
2018-07-24 14:41:08 -07:00
2018-10-05 16:32:04 -07:00
2017-11-02 11:20:11 +01:00
2017-11-02 11:19:54 +01:00
2017-11-02 11:20:11 +01:00
2018-07-13 14:21:16 -07:00
2018-04-11 10:28:37 -07:00
2017-11-02 11:19:54 +01:00
2018-06-20 19:10:06 -06:00
2018-11-13 11:08:32 -08:00
2019-01-09 17:38:36 +01:00
2017-11-02 11:20:11 +01:00
2018-07-29 12:37:06 -07:00
2017-11-02 11:20:11 +01:00
2018-11-27 16:13:01 +01:00
2017-11-02 11:19:54 +01:00
2017-11-10 00:03:39 +01:00
2017-11-02 11:20:11 +01:00
2019-07-21 09:03:02 +02:00
2018-06-30 21:08:12 +09:00
2018-05-09 16:37:05 -04:00
2017-11-02 11:19:54 +01:00
2018-07-08 11:13:25 +09:00
2017-11-02 11:19:54 +01:00
2017-11-02 11:19:54 +01:00
2018-08-15 14:59:06 -05:00
2018-07-19 11:46:57 +01:00
2018-09-10 10:03:02 +02:00
2017-11-02 11:20:11 +01:00
2017-11-02 11:20:11 +01:00
2018-08-07 12:22:15 -07:00
2018-07-24 14:44:00 -07:00
2018-07-31 19:56:42 +10:00
2012-10-13 10:46:48 +01:00
2017-11-02 11:20:11 +01:00
2017-11-02 11:20:11 +01:00
2018-08-11 12:13:49 -07:00
2017-11-02 11:20:11 +01:00
2017-11-02 11:19:54 +01:00
2018-12-05 19:32:04 +01:00
2017-11-02 11:19:54 +01:00
2018-05-31 00:13:56 +08:00
2018-04-14 11:59:31 -04:00
2017-11-02 11:19:54 +01:00
2018-09-02 16:14:44 -07:00
2017-11-02 11:19:54 +01:00
2017-11-02 11:19:54 +01:00
2016-02-24 09:04:25 +01:00
2017-11-02 11:20:11 +01:00
2018-06-03 17:37:16 -07:00
2018-07-10 22:18:52 +02:00
2017-11-02 11:19:54 +01:00
2018-07-23 20:44:12 -07:00
2017-11-24 10:18:41 +00:00
2018-11-23 08:17:06 +01:00
2018-05-05 00:51:44 +02:00
2017-11-02 11:19:54 +01:00
2018-05-24 11:57:36 +02:00
2018-04-11 10:28:37 -07:00
2018-03-09 11:01:19 -08:00
2017-11-02 11:20:11 +01:00
2018-10-05 16:32:04 -07:00
2018-04-26 19:51:12 -05:00
2018-10-07 21:06:28 -07:00
2019-06-17 19:51:56 +02:00
2017-11-02 11:19:54 +01:00
2017-11-02 11:19:54 +01:00
2017-11-07 10:32:44 +01:00
2017-11-02 11:19:54 +01:00
2017-12-18 23:08:11 -06:00
2017-11-02 11:20:11 +01:00
2018-08-13 08:42:25 -07:00
2017-11-02 11:19:54 +01:00
2018-06-18 21:02:52 -04:00
2017-11-02 11:20:11 +01:00
2018-08-01 09:56:10 -07:00
2017-12-21 17:23:52 +01:00
2017-11-02 11:19:54 +01:00
2018-06-24 14:39:46 +02:00
2017-11-02 11:19:54 +01:00
2019-06-04 08:02:33 +02:00
2018-06-30 21:05:42 +09:00
2018-04-27 11:05:41 -04:00
2018-04-23 11:10:33 -04:00
2018-05-24 18:38:51 +02:00
2017-11-02 11:19:54 +01:00
2018-05-26 09:16:44 +02:00
2018-10-08 15:45:18 +01:00
2017-11-02 11:20:11 +01:00
2017-11-02 11:19:54 +01:00
2017-11-02 11:20:11 +01:00
2017-11-02 11:19:54 +01:00
2018-07-27 06:39:57 -04:00
2018-07-04 09:32:22 -04:00
2018-07-24 17:39:28 -04:00
2017-12-18 16:12:21 +01:00
2018-09-03 21:23:24 -07:00
2018-11-13 11:08:54 -08:00
2018-04-24 21:44:01 +03:00
2018-06-12 04:59:29 +03:00
2014-12-09 12:06:32 +02:00
2018-05-14 11:01:29 +02:00
2015-03-29 12:13:52 +10:30
2018-05-28 22:59:54 -04:00
2018-05-14 13:46:04 -04:00
2017-11-02 11:19:54 +01:00
2017-11-02 11:20:11 +01:00
2017-11-02 11:19:54 +01:00
2017-11-02 11:19:54 +01:00
2018-06-23 16:07:15 +02:00