Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Ubuntu 14.04 LTS - 3.2.0-88-virtual #126-Ubuntu #107

Open
daugustus opened this issue Oct 29, 2015 · 4 comments
Open

Ubuntu 14.04 LTS - 3.2.0-88-virtual #126-Ubuntu #107

daugustus opened this issue Oct 29, 2015 · 4 comments

Comments

@daugustus
Copy link

I am unable successfully compile the modules. I have tried both master and the 3.9 branch.

Thanks!
Dave

Here is the compilation error:
make -C /lib/modules/3.2.0-88-virtual/build M=/usr/local/src/EnhanceIO-master/Driver/enhanceio modules V=0
make[1]: Entering directory /usr/src/linux-headers-3.2.0-88-virtual' CC [M] /usr/local/src/EnhanceIO-master/Driver/enhanceio/eio_procfs.o /usr/local/src/EnhanceIO-master/Driver/enhanceio/eio_procfs.c: In function ‘eio_stats_open’: /usr/local/src/EnhanceIO-master/Driver/enhanceio/eio_procfs.c:1803:2: error: implicit declaration of function ‘PDE_DATA’ [-Werror=implicit-function-declaration] /usr/local/src/EnhanceIO-master/Driver/enhanceio/eio_procfs.c:1803:2: warning: passing argument 3 of ‘single_open’ makes pointer from integer without a cast [enabled by default] include/linux/seq_file.h:119:5: note: expected ‘void *’ but argument is of type ‘int’ /usr/local/src/EnhanceIO-master/Driver/enhanceio/eio_procfs.c: In function ‘eio_errors_open’: /usr/local/src/EnhanceIO-master/Driver/enhanceio/eio_procfs.c:1836:2: warning: passing argument 3 of ‘single_open’ makes pointer from integer without a cast [enabled by default] include/linux/seq_file.h:119:5: note: expected ‘void *’ but argument is of type ‘int’ /usr/local/src/EnhanceIO-master/Driver/enhanceio/eio_procfs.c: In function ‘eio_iosize_hist_open’: /usr/local/src/EnhanceIO-master/Driver/enhanceio/eio_procfs.c:1871:2: warning: passing argument 3 of ‘single_open’ makes pointer from integer without a cast [enabled by default] include/linux/seq_file.h:119:5: note: expected ‘void *’ but argument is of type ‘int’ /usr/local/src/EnhanceIO-master/Driver/enhanceio/eio_procfs.c: In function ‘eio_version_open’: /usr/local/src/EnhanceIO-master/Driver/enhanceio/eio_procfs.c:1893:2: warning: passing argument 3 of ‘single_open’ makes pointer from integer without a cast [enabled by default] include/linux/seq_file.h:119:5: note: expected ‘void *’ but argument is of type ‘int’ /usr/local/src/EnhanceIO-master/Driver/enhanceio/eio_procfs.c: In function ‘eio_config_open’: /usr/local/src/EnhanceIO-master/Driver/enhanceio/eio_procfs.c:1930:2: warning: passing argument 3 of ‘single_open’ makes pointer from integer without a cast [enabled by default] include/linux/seq_file.h:119:5: note: expected ‘void *’ but argument is of type ‘int’ cc1: some warnings being treated as errors make[2]: *** [/usr/local/src/EnhanceIO-master/Driver/enhanceio/eio_procfs.o] Error 1 make[1]: *** [_module_/usr/local/src/EnhanceIO-master/Driver/enhanceio] Error 2 make[1]: Leaving directory/usr/src/linux-headers-3.2.0-88-virtual'
make: *** [modules] Error 2

@deepenmehta85
Copy link
Contributor

This is valid issue as PDE_DATA is introduced in Kernel version 3.10.
Will submit the required changes Today.

deepenmehta85 added a commit to deepenmehta85/EnhanceIO that referenced this issue Oct 29, 2015
PDE_DATA is introduced from Kernel 3.10.
create_proc_entry() no more supported from kernel 3.10.

Handled both cases. Now, code will run from Kernel 2.6.32 to 4.2.

Signed-off-by: Deepen Mehta <[email protected]>
bhansaliakhil added a commit that referenced this issue Oct 29, 2015
@bhansaliakhil
Copy link
Contributor

Hi Daugustus, could you please verify the latest patch from deepenmehta85 and close the issue if you find it fixed. Thanks.

@daugustus
Copy link
Author

Thanks for that. Now getting a new error:

make -C /lib/modules/3.2.0-88-virtual/build M=/usr/local/src/EnhanceIO-master/Driver/enhanceio modules V=0
make[1]: Entering directory /usr/src/linux-headers-3.2.0-88-virtual' CC [M] /usr/local/src/EnhanceIO-master/Driver/enhanceio/eio_conf.o CC [M] /usr/local/src/EnhanceIO-master/Driver/enhanceio/eio_ioctl.o CC [M] /usr/local/src/EnhanceIO-master/Driver/enhanceio/eio_main.o CC [M] /usr/local/src/EnhanceIO-master/Driver/enhanceio/eio_mem.o CC [M] /usr/local/src/EnhanceIO-master/Driver/enhanceio/eio_policy.o CC [M] /usr/local/src/EnhanceIO-master/Driver/enhanceio/eio_procfs.o /usr/local/src/EnhanceIO-master/Driver/enhanceio/eio_procfs.c: In function ‘eio_module_procfs_init’: /usr/local/src/EnhanceIO-master/Driver/enhanceio/eio_procfs.c:1241:3: error: expected ‘;’ before ‘if’ /usr/local/src/EnhanceIO-master/Driver/enhanceio/eio_procfs.c: In function ‘eio_procfs_ctr’: /usr/local/src/EnhanceIO-master/Driver/enhanceio/eio_procfs.c:1275:2: error: expected ‘;’ before ‘if’ /usr/local/src/EnhanceIO-master/Driver/enhanceio/eio_procfs.c:1279:2: error: expected ‘;’ before ‘if’ /usr/local/src/EnhanceIO-master/Driver/enhanceio/eio_procfs.c:1283:2: error: expected ‘;’ before ‘if’ /usr/local/src/EnhanceIO-master/Driver/enhanceio/eio_procfs.c:1287:2: error: expected ‘;’ before ‘if’ make[2]: *** [/usr/local/src/EnhanceIO-master/Driver/enhanceio/eio_procfs.o] Error 1 make[1]: *** [_module_/usr/local/src/EnhanceIO-master/Driver/enhanceio] Error 2 make[1]: Leaving directory/usr/src/linux-headers-3.2.0-88-virtual'
make: *** [modules] Error 2

@deepenmehta85
Copy link
Contributor

Hello Daugustus,

I already pushed a new patch before 2/3 hours which have fixed for your newly reported issue.
Hope Akhil will push it soon.

Deepen

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants