+
Hi Andrew,
Quoted 42 lines · On Fri, 13 Nov 2009 19:56:28 -0800, [email protected] wrote:
The patch titled
drivers/hwmon/f75375s.c: fix warning, and probable bug
has been added to the -mm tree. Its filename is
drivers-hwmon-f75375sc-fix-warning-and-probable-bug.patchBefore you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's*** Remember to use
Documentation/SubmitChecklistwhen testing your code ***See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject:drivers/hwmon/f75375s.c: fix warning, and probable bug
From: Andrew Morton <[email protected]>
drivers/hwmon/f75375s.c: In function 'f75375_detect':drivers/hwmon/f75375s.c:689: warning: comparison is always false due to limited range of data typedrivers/hwmon/f75375s.c:689: warning: comparison is always false due to limited range of data typedrivers/hwmon/f75375s.c:691: warning: comparison is always false due to limited range of data typedrivers/hwmon/f75375s.c:691: warning: comparison is always false due to limited range of data typeCc Riku Voipio <[email protected]>Cc Jean Delvare <[email protected]>Cc Corentin Labbe <[email protected]>Signed-off-by Andrew Morton <[email protected]>---
drivers/hwmon/f75375s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)diff -puN
drivers/hwmon/f75375s.c~adrivers/hwmon/f75375s.c
drivers/hwmon/f75375s.c static int f75375_detect(struct i2c_clie · line 687
Quoted 8 lines
drivers/hwmon/f75375s.c renamed from drivers/hwmon/f75375s.c~a +1
-1@@ -681,7 +681,7 @@ static int f75375_detect(struct i2c_clie struct i2c_board_info *info) {struct i2c_adapter *adapter = client->adapter; -u8 vendid, chipid, version; +u16 vendid, chipid, version;const char *name; vendid =f75375_read16 (client,F75375_REG_VENDOR );
Good catch. I am responsible for this bug, which was introduced by my patch hwmon-cleanup-detect-functions.patch. I wonder why your gcc warned you about the problem and did not tell me. Anyway, thanks for reporting, it's fixed now.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors