Nathan Chancellor 67f52a9540 efi/arm: Don't expect a return value of ptdump_debugfs_register
As of commit e2a2e56e4082 ("arm64: dump: no need to check return value
of debugfs_create functions") in the arm64 for-next/core branch,
ptdump_debugfs_register does not have a return value, which causes a
build error here:

drivers/firmware/efi/arm-runtime.c:51:9: error: returning 'void' from a
function with incompatible result type 'int'
        return ptdump_debugfs_register(&efi_ptdump_info, "efi_page_tables");
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

The arm version is still awaiting acceptance [1] but in anticipation
of that patch being merged, restructure this function to call
ptdump_debugfs_register without expecting a return value.

[1]: https://lore.kernel.org/lkml/20190122144114.9816-3-gregkh@linuxfoundation.org/

Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2019-02-04 16:53:30 +00:00
..
2019-01-20 10:24:30 +12:00
2018-12-19 09:40:13 +01:00
2019-01-19 07:17:19 +12:00
2019-01-20 09:12:50 +12:00
2018-12-31 17:32:35 -08:00
2018-12-29 08:20:44 -07:00
2018-12-27 10:43:24 -08:00
2019-01-19 05:46:00 +12:00
2018-12-28 20:54:57 -08:00
2019-01-11 00:15:04 +01:00
2018-12-28 13:19:59 -08:00
2019-01-15 06:24:36 +12:00
2019-01-18 17:17:20 +12:00
2019-01-05 11:30:37 -08:00
2018-12-28 16:52:18 -08:00
2019-01-15 06:24:36 +12:00
2019-01-15 06:26:28 +12:00
2019-01-19 16:06:52 -08:00
2019-01-20 09:12:50 +12:00
2019-01-19 07:26:16 +12:00
2019-01-05 11:23:17 -08:00
2018-12-29 13:03:29 -08:00
2018-12-24 12:06:56 +01:00
2019-01-01 13:24:31 -08:00
2019-01-20 09:15:04 +12:00
2019-01-14 05:49:35 +12:00
2018-12-31 13:06:30 -08:00
2019-01-14 05:47:48 +12:00
2018-12-28 20:54:57 -08:00
2019-01-14 05:45:28 +12:00
2019-01-19 05:43:05 +12:00
2019-01-19 05:53:41 +12:00
2018-12-29 13:40:29 -08:00