mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-13 17:00:15 +00:00
Removed some compiler warnings
All our own code (ie. anything not in the i2c directory) compiles now without warnings, even with WARN=1 (which sets -Wall -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline). There is one exception: the lex code (conf-lex.l) complains about unused functions. That's flex' fault, not ours! The i2c code still emits many warnings with the above flags; that's Simon's problem. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@233 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
5402bf4b71
commit
d78cd0cb5f
6 files changed
+14
-17
No files matched your search
@@ -251,7 +251,7 @@ int ali15x3_setup(void)
|
||||
#ifdef MAP_ACPI
|
||||
if (check_region(ali15x3_acpia, ALI15X3_ACPI_IOSIZE)) {
|
||||
printk("ali15x3.o: ALI15X3_acpi region 0x%x already in use!\n", ali15x3_acpia);
|
||||
printk("ali15x3.o: If conflicting ACPI software is installed, undefine MAP_ACPI and recompile!\n", ali15x3_acpia);
|
||||
printk("ali15x3.o: If conflicting ACPI software is installed, undefine MAP_ACPI and recompile!\n");
|
||||
error_return=-ENODEV;
|
||||
}
|
||||
#endif
|
||||
@@ -380,7 +380,7 @@ int ali15x3_transaction(void)
|
||||
then the BUSY bit may come back on when you try and use the chip again.
|
||||
If that's the case you are stuck.
|
||||
*/
|
||||
printk("ali15x3.o: Resetting entire SMB Bus to clear busy condition\n",temp);
|
||||
printk("ali15x3.o: Resetting entire SMB Bus to clear busy condition (%02x)\n",temp);
|
||||
outb_p(ALI15X3_T_OUT, SMBHSTCNT);
|
||||
temp = inb_p(SMBHSTSTS);
|
||||
}
|
||||
|
||||
@@ -199,7 +199,7 @@ static int find_via(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
int init_i2c_via()
|
||||
int init_i2c_via(void)
|
||||
{
|
||||
if (find_via() < 0) {
|
||||
printk("Error while reading PCI configuration\n");
|
||||
|
||||
Reference in new issue
Block a user