nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   [ 319.17 + 3.9 ] void value not ignored as it ought to be (http://www.nvnews.net/vbulletin/showthread.php?t=205128)

pavlinux 05-03-13 04:28 PM

[ 319.17 + 3.9 ] void value not ignored as it ought to be
 
Quote:

/usr/src/319.17/kernel/nv-i2c.c: In function ‘nv_i2c_del_adapter’:
/usr/src/319.17/kernel/nv-i2c.c:327:14: error: void value not ignored as it ought to be
Code:

326  // attempt release with the OS
327    osstatus = i2c_del_adapter(pI2cAdapter);

WTF?

siddly 05-05-13 01:20 AM

Re: [ 319.17 + 3.9 ] void value not ignored as it ought to be
 
Seeing the same. It's returning "void" and I tried different ways to get around it but so far no luck.

There is no problem with up to 3.9.0-rc8.

mahashakti89 05-05-13 01:57 AM

Re: [ 319.17 + 3.9 ] void value not ignored as it ought to be
 
Hi ...

Facing same problem here . And no clue how to solve it. Googling around doesn't help.

Cheers

mahashakti89

siddly 05-05-13 02:41 AM

Re: [ 319.17 + 3.9 ] void value not ignored as it ought to be
 
Quote:

Originally Posted by mahashakti89 (Post 2590171)
Hi ...

Facing same problem here . And no clue how to solve it. Googling around doesn't help.

Cheers

mahashakti89

I did a fair bit of googling around also.
Tried deleting that section and also trying "int", "BOOL", etc. which induces different errors.

mlauss 05-06-13 07:18 AM

Re: [ 319.17 + 3.9 ] void value not ignored as it ought to be
 
osstatus = 0;
i2c_del_adapter(pI2cAdapter);

siddly 05-06-13 07:41 AM

Re: [ 319.17 + 3.9 ] void value not ignored as it ought to be
 
from /usr/src/NVIDIA-Linux-x86_64-319.17/kernel/nv-linux.h:115,
from /usr/src/NVIDIA-Linux-x86_64-319.17/kernel/nv-i2c.c:15:
/usr/src/linux-3.9.0/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’:
/usr/src/linux-3.9.0/arch/x86/include/asm/uaccess_64.h:62:6: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/usr/src/NVIDIA-Linux-x86_64-319.17/kernel/nv-i2c.c: In function ‘nv_i2c_del_adapter’:
/usr/src/NVIDIA-Linux-x86_64-319.17/kernel/nv-i2c.c:316:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/usr/src/NVIDIA-Linux-x86_64-319.17/kernel/nv-i2c.c:328:13: error: void value not ignored as it ought to be
make[4]: *** [/usr/src/NVIDIA-Linux-x86_64-319.17/kernel/nv-i2c.o] Error 1
make[3]: *** [_module_/usr/src/NVIDIA-Linux-x86_64-319.17/kernel] Error 2
make[2]: *** [sub-make] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [install] Error 2

CODE:-
BOOL NV_API_CALL nv_i2c_del_adapter(nv_state_t *nv, void *data)
{
struct i2c_adapter *pI2cAdapter = (struct i2c_adapter *)data;
int osstatus = 0;
i2c_del_adapter(pI2cAdapter);
BOOL wasReleased = FALSE;

#if defined(KERNEL_2_4)
if (!NV_WEAK_SYMBOL_PRESENT(i2c_add_adapter))
return FALSE;
if (!NV_WEAK_SYMBOL_PRESENT(i2c_del_adapter))
return FALSE;
#endif

if (!pI2cAdapter) return FALSE;

// attempt release with the OS
osstatus = i2c_del_adapter(pI2cAdapter);

if (!osstatus)
{
os_free_mem(pI2cAdapter);
wasReleased = TRUE;
}

return wasReleased;
}

mahashakti89 05-06-13 01:04 PM

Re: [ 319.17 + 3.9 ] void value not ignored as it ought to be
 
Hi,

Could you eleborate your last answer ... ?
Have you solved the problem ?

Thanks

mahashakti89

siddly 05-06-13 02:17 PM

Re: [ 319.17 + 3.9 ] void value not ignored as it ought to be
 
Quote:

Originally Posted by mahashakti89 (Post 2590233)
Hi,

Could you eleborate your last answer ... ?
Have you solved the problem ?

Thanks

mahashakti89

The error persists as in the post above where I posted the error and the code as I modified it with
i2c_del_adapter(pI2cAdapter);

placed after
int osstatus=0;

Milos_SD 05-12-13 09:18 AM

Re: [ 319.17 + 3.9 ] void value not ignored as it ought to be
 
I have the same problem, but it is on 3.10-rc1. On 3.9 and 3.9.1 modul is compiling without a problem.


All times are GMT -5. The time now is 11:10 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2014, nV News.