Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 05-03-13, 05:28 PM   #1
pavlinux
Registered User
 
pavlinux's Avatar
 
Join Date: Feb 2006
Location: Moscow, Russia
Posts: 57
Default [ 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?
pavlinux is offline   Reply With Quote
Old 05-05-13, 02:20 AM   #2
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default 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.
siddly is offline   Reply With Quote
Old 05-05-13, 02:57 AM   #3
mahashakti89
Registered User
 
Join Date: Sep 2009
Posts: 14
Default 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
mahashakti89 is offline   Reply With Quote
Old 05-05-13, 03:41 AM   #4
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default Re: [ 319.17 + 3.9 ] void value not ignored as it ought to be

Quote:
Originally Posted by mahashakti89 View Post
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.
siddly is offline   Reply With Quote
Old 05-06-13, 08:18 AM   #5
mlauss
Registered User
 
Join Date: Aug 2007
Posts: 43
Default Re: [ 319.17 + 3.9 ] void value not ignored as it ought to be

osstatus = 0;
i2c_del_adapter(pI2cAdapter);
mlauss is offline   Reply With Quote
Old 05-06-13, 08:41 AM   #6
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default 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;
}
siddly is offline   Reply With Quote
Old 05-06-13, 02:04 PM   #7
mahashakti89
Registered User
 
Join Date: Sep 2009
Posts: 14
Default 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
mahashakti89 is offline   Reply With Quote
Old 05-06-13, 03:17 PM   #8
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default Re: [ 319.17 + 3.9 ] void value not ignored as it ought to be

Quote:
Originally Posted by mahashakti89 View Post
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;
siddly is offline   Reply With Quote

Old 05-12-13, 10:18 AM   #9
Milos_SD
Registered User
 
Join Date: Jan 2009
Posts: 19
Default 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.
Milos_SD is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Black Hole Fun: Bit.Trip Void News Archived News Items 0 12-21-12 08:10 AM
Picasa 3.9 Build 136.9 News Archived News Items 0 09-12-12 05:30 AM
Gamersgate Void mojoman0 Gaming Central 3 05-29-12 01:59 PM
Space Is Infinite, Time Is Brief: Kinetic Void News Archived News Items 0 05-24-12 12:30 PM

All times are GMT -5. The time now is 12:10 AM.


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