Thiago Jung Bauermann bf8a1abc3d powerpc/kexec_file: Fix error code when trying to load kdump kernel
kexec_file_load() on powerpc doesn't support kdump kernels yet, so it
returns -ENOTSUPP in that case.

I've recently learned that this errno is internal to the kernel and
isn't supposed to be exposed to userspace. Therefore, change to
-EOPNOTSUPP which is defined in an uapi header.

This does indeed make kexec-tools happier. Before the patch, on
ppc64le:

  # ~bauermann/src/kexec-tools/build/sbin/kexec -s -p /boot/vmlinuz
  kexec_file_load failed: Unknown error 524

After the patch:

  # ~bauermann/src/kexec-tools/build/sbin/kexec -s -p /boot/vmlinuz
  kexec_file_load failed: Operation not supported

Fixes: a0458284f062 ("powerpc: Add support code for kexec_file_load()")
Cc: stable@vger.kernel.org # v4.10+
Reported-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Thiago Jung Bauermann <bauerman@linux.vnet.ibm.com>
Reviewed-by: Simon Horman <horms@verge.net.au>
Reviewed-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-04-01 00:47:44 +11:00
..
2017-11-16 12:47:46 -08:00
2018-01-15 09:35:26 +01:00
2018-03-28 22:59:50 +11:00
2018-01-21 23:21:14 +11:00
2016-08-07 23:50:09 -04:00
2016-08-07 23:50:09 -04:00
2018-02-02 10:01:04 -08:00
2016-08-07 23:50:09 -04:00
2018-02-02 10:01:04 -08:00
2018-03-31 09:09:36 +11:00
2017-12-11 13:03:35 +11:00
2018-02-06 09:59:40 -08:00
2018-02-10 14:08:26 -08:00
2018-03-28 22:59:50 +11:00
2018-03-31 09:09:36 +11:00
2018-03-31 09:09:36 +11:00
2018-03-30 23:34:26 +11:00
2018-03-31 09:09:36 +11:00
2017-11-16 12:47:46 -08:00
2015-04-07 17:15:13 +10:00
2018-02-02 10:01:04 -08:00