i found the problem. in the kernel 3.14 there was the GobiNet and 
GobiSerial driver modules for this usb modem Sierra AC341U. however when I 
tried to build the same driver again for the kernel 4.1 many errors appeared

specially this error 
*‘struct file’ has no member named ‘f_dentry’*

when i built the same file on kernel 3.14 and 3.8 the error didn't come up 
and i was able to build the module is there any solution for kernel 4.x

T@ThinkPad-T450s:~/Workspace/KernelDevelopment/kernelFile/output-4.1/GobiDrivers/GobiNet$
 
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-
rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions Module.* 
modules.order
make -C 
/home/T/Workspace/KernelDevelopment/kernelFile/output-4.1/lib/modules/4.1.27/build
 
M=/home/T/Workspace/KernelDevelopment/kernelFile/output-4.1/GobiDrivers/GobiNet 
modules
make[1]: Entering directory 
'/home/T/Workspace/KernelDevelopment/kernelFile/linux-4.1'
  CC [M] 
 
/home/T/Workspace/KernelDevelopment/kernelFile/output-4.1/GobiDrivers/GobiNet/GobiUSBNet.o
In file included from include/net/sock.h:58:0,
                 from include/net/inet_sock.h:27,
                 from include/net/ip.h:30,
                 from 
/home/T/Workspace/KernelDevelopment/kernelFile/output-4.1/GobiDrivers/GobiNet/GobiUSBNet.c:89:
include/linux/memcontrol.h: In function ‘task_in_memcg_oom’:
include/linux/memcontrol.h:146:9: warning: return makes integer from 
pointer without a cast [-Wint-conversion]
  return p->memcg_oom.memcg;
         ^
  CC [M] 
 
/home/T/Workspace/KernelDevelopment/kernelFile/output-4.1-modified/GobiDrivers/GobiNet/QMIDevice.o
/home/T/Workspace/KernelDevelopment/kernelFile/output-4.1/GobiDrivers/GobiNet/QMIDevice.c:
 
In function ‘UserspaceunlockedIOCTL’:
/home/T/Workspace/KernelDevelopment/kernelFile/output-4.1/GobiDrivers/GobiNet/QMIDevice.c:2311:26:
 
error: ‘struct file’ has no member named ‘f_dentry’
       pFilp->f_op = pFilp->f_dentry->d_inode->i_fop;
                          ^
/home/T/Workspace/KernelDevelopment/kernelFile/output-4.1/GobiDrivers/GobiNet/QMIDevice.c:
 
In function ‘UserspaceClose’:
/home/T/Workspace/KernelDevelopment/kernelFile/output-4.1/GobiDrivers/GobiNet/QMIDevice.c:2758:26:
 
error: ‘struct file’ has no member named ‘f_dentry’
       pFilp->f_op = pFilp->f_dentry->d_inode->i_fop;
                          ^
/home/T/Workspace/KernelDevelopment/kernelFile/output-4.1/GobiDrivers/GobiNet/QMIDevice.c:
 
In function ‘UserspaceRead’:
/home/T/Workspace/KernelDevelopment/kernelFile/output-4.1/GobiDrivers/GobiNet/QMIDevice.c:2816:26:
 
error: ‘struct file’ has no member named ‘f_dentry’
       pFilp->f_op = pFilp->f_dentry->d_inode->i_fop;
                          ^
/home/T/Workspace/KernelDevelopment/kernelFile/output-4.1/GobiDrivers/GobiNet/QMIDevice.c:
 
In function ‘UserspaceWrite’:
/home/T/Workspace/KernelDevelopment/kernelFile/output-4.1/GobiDrivers/GobiNet/QMIDevice.c:2899:26:
 
error: ‘struct file’ has no member named ‘f_dentry’
       pFilp->f_op = pFilp->f_dentry->d_inode->i_fop;
                          ^
/home/T/Workspace/KernelDevelopment/kernelFile/output-4.1/GobiDrivers/GobiNet/QMIDevice.c:
 
In function ‘UserspacePoll’:
/home/T/Workspace/KernelDevelopment/kernelFile/output-4.1/GobiDrivers/GobiNet/QMIDevice.c:2977:26:
 
error: ‘struct file’ has no member named ‘f_dentry’
       pFilp->f_op = pFilp->f_dentry->d_inode->i_fop;
                          ^
/home/T/Workspace/KernelDevelopment/kernelFile/output-4.1/GobiDrivers/GobiNet/QMIDevice.c:
 
In function ‘DeregisterQMIDevice’:
/home/T/Workspace/KernelDevelopment/kernelFile/output-4.1/GobiDrivers/GobiNet/QMIDevice.c:3364:43:
 
error: ‘struct file’ has no member named ‘f_dentry’
                if (pFilp != NULL &&  pFilp->f_dentry != NULL)
                                           ^
/home/T/Workspace/KernelDevelopment/kernelFile/output-4.1/GobiDrivers/GobiNet/QMIDevice.c:3366:28:
 
error: ‘struct file’ has no member named ‘f_dentry’
                   if (pFilp->f_dentry->d_inode == pOpenInode)
                            ^
scripts/Makefile.build:258: recipe for target 
'/home/T/Workspace/KernelDevelopment/kernelFile/output-4.1/GobiDrivers/GobiNet/QMIDevice.o'
 
failed
make[2]: *** 
[/home/T/Workspace/KernelDevelopment/kernelFile/output-4.1/GobiDrivers/GobiNet/QMIDevice.o]
 
Error 1
Makefile:1385: recipe for target 
'_module_/home/ou-4305/Workspace/KernelDevelopment/kernelFile/output-4.1-modified-trash/GobiDrivers/GobiNet'
 
failed
make[1]: *** 
[_module_/home/T/Workspace/KernelDevelopment/kernelFile/output-4.1/GobiDrivers/GobiNet]
 
Error 2
make[1]: Leaving directory 
'/home/T/Workspace/KernelDevelopment/kernelFile/linux-4.1'
Makefile:10: recipe for target 'all' failed
make: *** [all] Error 2




On Friday, July 1, 2016 at 12:19:02 PM UTC-5, William Hermans wrote:
>
> These types of USB "modems" typically present themselves as a Serial 
> device . . .
>
> On Fri, Jul 1, 2016 at 4:46 AM, toni incog <[email protected] 
> <javascript:>> wrote:
>
>> Could it be you're missing the usbmodeswitch package? A usb modem present 
>> itself as a cdrom and if the type is known usbmodeswitch will turn it 
>> into a ttyUSBx.
>>
>> -- 
>> For more options, visit http://beagleboard.org/discuss
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "BeagleBoard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/beagleboard/1939be8b-d50b-45e5-bcb7-41606c74f087%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/beagleboard/1939be8b-d50b-45e5-bcb7-41606c74f087%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/ccdedb3a-d24f-42ad-9a66-fe42d2803b04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to