tunahansahiner / easy-slow-down-manager

Automatically exported from code.google.com/p/easy-slow-down-manager
0 stars 0 forks source link

Kernel 3.10.0 build error #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to build the module on kernel 3.10.0 on 3.9.* all was working 
flawlessly, however on 3.10 I'm getting the following errors:

make -C /lib/modules/3.10.0-1.g3dcd746-desktop/build M=`pwd` modules
make: Entering directory `/usr/src/linux-3.10.0-1.g3dcd746-obj/x86_64/desktop'
  CC [M]  /home/user/Software/drivers/easy-slow-down-manager/easy_slow_down_manager.o
/home/user/Software/drivers/easy-slow-down-manager/easy_slow_down_manager.c: In 
function ‘__check_debug’:
/home/user/Software/drivers/easy-slow-down-manager/easy_slow_down_manager.c:97:1
: warning: return from incompatible pointer type [enabled by default]
/home/user/Software/drivers/easy-slow-down-manager/easy_slow_down_manager.c: In 
function ‘easy_slow_down_init’:
/home/user/Software/drivers/easy-slow-down-manager/easy_slow_down_manager.c:293:
5: error: implicit declaration of function ‘create_proc_entry’ 
[-Werror=implicit-function-declaration]
/home/user/Software/drivers/easy-slow-down-manager/easy_slow_down_manager.c:293:
26: warning: assignment makes pointer from integer without a cast [enabled by 
default]
/home/user/Software/drivers/easy-slow-down-manager/easy_slow_down_manager.c:301:
29: error: dereferencing pointer to incomplete type
/home/user/Software/drivers/easy-slow-down-manager/easy_slow_down_manager.c:302:
29: error: dereferencing pointer to incomplete type
/home/user/Software/drivers/easy-slow-down-manager/easy_slow_down_manager.c:305:
26: warning: assignment makes pointer from integer without a cast [enabled by 
default]
/home/user/Software/drivers/easy-slow-down-manager/easy_slow_down_manager.c:314:
29: error: dereferencing pointer to incomplete type
/home/user/Software/drivers/easy-slow-down-manager/easy_slow_down_manager.c:315:
29: error: dereferencing pointer to incomplete type
/home/user/Software/drivers/easy-slow-down-manager/easy_slow_down_manager.c:318:
26: warning: assignment makes pointer from integer without a cast [enabled by 
default]
/home/user/Software/drivers/easy-slow-down-manager/easy_slow_down_manager.c:328:
29: error: dereferencing pointer to incomplete type
/home/user/Software/drivers/easy-slow-down-manager/easy_slow_down_manager.c:329:
29: error: dereferencing pointer to incomplete type
cc1: some warnings being treated as errors
make[3]: *** 
[/home/user/Software/drivers/easy-slow-down-manager/easy_slow_down_manager.o] 
Error 1
make[2]: *** [_module_/home/user/Software/drivers/easy-slow-down-manager] Error 
2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2
make: Leaving directory `/usr/src/linux-3.10.0-1.g3dcd746-obj/x86_64/desktop'

Any advice or patch?

Original issue reported on code.google.com by peter.au...@gmail.com on 13 Jul 2013 at 8:40

GoogleCodeExporter commented 9 years ago
I managed to compile these modules and it seems to work

Original comment by blackhaw...@gmail.com on 28 Jul 2013 at 9:21

Attachments:

GoogleCodeExporter commented 9 years ago
A bit improved patch:
 - added copy_to_user to reads
 - removed #ifdefs since fops should work for 3.9 too

Btw, this still not fixed in trunk, is project dead?

Original comment by kuznecov...@gmail.com on 18 Sep 2013 at 7:11

Attachments:

GoogleCodeExporter commented 9 years ago
Well with this patch it still compiled in Linux 3.19 for me... but the system 
freezes when I try to read the current status ;)

Original comment by D.G.Jan...@gmail.com on 16 Jun 2015 at 3:07