712-3.3-can-fixes.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --- a/Embedded/src/CAN/can_main.c
  2. +++ b/Embedded/src/CAN/can_main.c
  3. @@ -72,6 +72,7 @@
  4. #include "can_main.h"
  5. #include "can_ioctl.h"
  6. #include <linux/fs.h>
  7. +#include <linux/module.h>
  8. MODULE_AUTHOR("Intel(R) Corporation");
  9. @@ -110,7 +111,7 @@ struct file_operations file_ops = {
  10. .owner = THIS_MODULE,
  11. .read = can_read,
  12. .write = can_write,
  13. - .ioctl = can_dev_io,
  14. + .unlocked_ioctl = can_dev_io,
  15. .open = can_open,
  16. .release = can_release
  17. };
  18. @@ -594,8 +595,7 @@ int icp_can_reset(can_os_t *can_os)
  19. /*****************************************************************************
  20. * Device IO control function. Used by user apps to configure CAN device.
  21. *****************************************************************************/
  22. -int can_dev_io(struct inode *inode, struct file *filp, unsigned int cmd,
  23. - unsigned long arg)
  24. +long can_dev_io(struct file *filp, unsigned int cmd, unsigned long arg)
  25. {
  26. can_os_t *can_os;
  27. unsigned int err=0;
  28. --- a/Embedded/src/CAN/can_main.h
  29. +++ b/Embedded/src/CAN/can_main.h
  30. @@ -157,8 +157,7 @@ ssize_t can_write(
  31. int icp_can_reset(
  32. can_os_t *can_os);
  33. -int can_dev_io(
  34. - struct inode *inode,
  35. +long can_dev_io(
  36. struct file *filp,
  37. unsigned int cmd,
  38. unsigned long arg);