diff options
author | Daniel Golle <daniel@makrotopia.org> | 2020-01-04 11:47:50 +0200 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2020-01-04 16:23:21 +0200 |
commit | f64c64a91c86e07a9d34ff268df77b9625e11bd1 (patch) | |
tree | 0d511a8b9acb0788540337582bb52e853ad21257 /include | |
parent | e98e046f06f388e49c12e52b3a333a7e77c008cd (diff) | |
download | upstream-f64c64a91c86e07a9d34ff268df77b9625e11bd1.tar.gz upstream-f64c64a91c86e07a9d34ff268df77b9625e11bd1.tar.bz2 upstream-f64c64a91c86e07a9d34ff268df77b9625e11bd1.zip |
generic: fix compiler error in OpenWrt's kexec patch
330-MIPS-kexec-Accept-command-line-parameters-from-users.patch causes
problems when building with -Werror=unused-result.
arch/mips/kernel/machine_kexec.c: In function 'machine_kexec_init_argv':
arch/mips/kernel/machine_kexec.c:76:2: error: ignoring return value of 'copy_from_user', declared with attribute warn_unused_result [-Werror=unused-result]
copy_from_user(kexec_argv_buf, buf, size);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Fix this by handling the return value in an appropriate way.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions