title: " error: unknown field ‘compat_ioctl’ specified in initializer " while creating dummy ioctl
body: <p>static const struct inode_operations msdos_dir_inode_operations = {</p>
  
  <pre><code>.create     = msdos_create,
  .lookup     = msdos_lookup,
  .unlink     = msdos_unlink,
  .mkdir      = msdos_mkdir,
  .rmdir      = msdos_rmdir,
  .rename     = msdos_rename,
  .setattr    = fat_setattr,
  .getattr    = fat_getattr,
  .compat_ioctl   = my_ioctl,   ----&gt;error
  </code></pre>
  
  <p>};</p>
  
  <p>i also tried with unlocked_ioctl but same error occured</p>
  
  <p>[root@localhost fat]# make</p>
  
  <p>make -C /lib/modules/3.11.10-100.fc18.x86_64/build M=/home/aditya/linux-3.12.6/fs/fat modules</p>
  
  <p>make[1]: Entering directory `/usr/src/kernels/3.11.10-100.fc18.x86_64'
    CC [M]  /home/aditya/linux-3.12.6/fs/fat/namei_msdos.o</p>
  
  <p>/home/aditya/linux-3.12.6/fs/fat/namei_msdos.c:646:2: error: unknown field ‘compat_ioctl’ specified in initializer</p>
  
  <p>/home/aditya/linux-3.12.6/fs/fat/namei_msdos.c:646:2: warning: initialization from incompatible pointer type [enabled by default]
  /home/aditya/linux-3.12.6/fs/fat/namei_msdos.c:646:2: warning: (near initialization for ‘msdos_dir_inode_operations.setxattr’) [enabled by default]
  make[2]: <strong>* [/home/aditya/linux-3.12.6/fs/fat/namei_msdos.o] Error 1
  make[1]: *</strong> [<em>module</em>/home/aditya/linux-3.12.6/fs/fat] Error 2
  make[1]: Leaving directory `/usr/src/kernels/3.11.10-100.fc18.x86_64'
  make: <em>*</em> [all] Error 2</p>