Could you please merge this? This has been accepted but not in mainline master.
Thanks, Zhe On 3/4/20 2:48 PM, He Zhe wrote: > From: He Zhe <[email protected]> > > 32-bit user-space program would get errors like the following from ioctl > syscall due to missing compat_ioctl. > MCE_GET_RECORD_LEN: Inappropriate ioctl for device > > compat_ptr_ioctl is provided as a generic implementation of .compat_ioctl > file operation to ioctl functions that either ignore the argument or pass > a pointer to a compatible data type. > > https://lore.kernel.org/lkml/[email protected]/ > > Signed-off-by: He Zhe <[email protected]> > --- > arch/x86/kernel/cpu/mce/dev-mcelog.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/x86/kernel/cpu/mce/dev-mcelog.c > b/arch/x86/kernel/cpu/mce/dev-mcelog.c > index 7c8958d..6c9b91b7 100644 > --- a/arch/x86/kernel/cpu/mce/dev-mcelog.c > +++ b/arch/x86/kernel/cpu/mce/dev-mcelog.c > @@ -328,6 +328,7 @@ static const struct file_operations mce_chrdev_ops = { > .write = mce_chrdev_write, > .poll = mce_chrdev_poll, > .unlocked_ioctl = mce_chrdev_ioctl, > + .compat_ioctl = compat_ptr_ioctl, > .llseek = no_llseek, > }; > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#8708): https://lists.yoctoproject.org/g/linux-yocto/message/8708 Mute This Topic: https://lists.yoctoproject.org/mt/74368714/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
