Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 184123 | Differences between
and this patch

Collapse All | Expand All

(-)oss-v4.2-build2005-src-gpl.orig/setup/Linux/oss/build/osscore.c (-5 / +5 lines)
Lines 911-917 Link Here
911
 *	are replaced by wrapper handles.
911
 *	are replaced by wrapper handles.
912
 */
912
 */
913
913
914
static struct file_operations *
914
static file_operations_no_const *
915
alloc_fop (oss_device_t * osdev, struct oss_file_operation_handle *op)
915
alloc_fop (oss_device_t * osdev, struct oss_file_operation_handle *op)
916
{
916
{
917
/*
917
/*
Lines 927-933 Link Here
927
 *	and WRAPPER_VERSION must be incremented.
927
 *	and WRAPPER_VERSION must be incremented.
928
 */
928
 */
929
929
930
  struct file_operations *fop;
930
  file_operations_no_const *fop;
931
931
932
  poll_t tmp_poll = (poll_t) op->poll;
932
  poll_t tmp_poll = (poll_t) op->poll;
933
  read_t tmp_read = (read_t) op->read;
933
  read_t tmp_read = (read_t) op->read;
Lines 942-951 Link Here
942
  new_ioctl_t tmp_unlocked_ioctl = (new_ioctl_t) op->unlocked_ioctl;
942
  new_ioctl_t tmp_unlocked_ioctl = (new_ioctl_t) op->unlocked_ioctl;
943
  new_ioctl_t tmp_compat_ioctl = (new_ioctl_t) op->compat_ioctl;
943
  new_ioctl_t tmp_compat_ioctl = (new_ioctl_t) op->compat_ioctl;
944
944
945
  fop = (struct file_operations *)
945
  fop = (file_operations_no_const *)
946
    oss_kmem_alloc (sizeof (struct file_operations));
946
    oss_kmem_alloc (sizeof (file_operations_no_const));
947
947
948
  memset ((char *) fop, 0, sizeof (struct file_operations));
948
  memset ((char *) fop, 0, sizeof (file_operations_no_const));
949
949
950
/*
950
/*
951
 *	Now the assignment
951
 *	Now the assignment

Return to bug 184123