Revision 6280, 25.9 KB (checked in by khali, 12 days ago)

libsensors: Fix sparse warnings

Sparse wants forward declarations of static functions to be static as
well. For sensors_eval_expr, do that. For the error callbacks,
rearrange the code so that the forward declarations are no longer

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
1lm-sensors CHANGES file
5  documentation: Update the note about libsensors license
6  sensors.conf.5: Enhance the hysteresis documentation
7  sensors.conf.default: Add support for NCT6779 and NCT6791
8  libsensors: Get rid of arbitrary limit on per-type sensor count
9              Add support for temperature min and critical min hysteresis
10              Fix sparse warnings
11  sensors: Add support for temperature min and critical min hysteresis
12  fancontrol: Deal with moving hwmon attributes
13              Fix shell error when FCFANS is not set
14  healthd: Avoid using external commands
15  sensors-detect: Add detection of ADC128D818
16                  Add detection of AMD family 16h Kabini and Mullins
17                  Add detection of ITE IT8620E and IT8623E
18                  Add detection of TMP441, TMP442, LM95233, LM95234,
19                  and LM95235
20                  Add detection of NCT7802Y
21                  Print kernel version and processor information
22                  Add detection of NCT6792D
23                  Add reference to nct6683 driver
24                  Show that NCT6102D/6104D/6106D are supported by nct6775 driver
25                  Show NCT5573D as compatible to NCT6776F with same chip ID
26                  Document support for EMC1402, EMC1404, and EMC1424
27                  Detect new revisions of EMC14xx
28                  Add detection of EMC1422
29                  Document driver support for TMP431 and TMP432
30                  Add detection of TMP400 and TMP435
31                  Add detection of IT8786E
32                  Add detection of IT8780F
33                  Add detection of IT8731F and IT8732F
34                  Add detection of Intel 5500/5520/X58
35                  Loosen detection rules for TS3000/TSE2002
36                  Add detection of TSE2004 and TS3001
37                  Document driver support for NCT7802Y
38                  Add detection of NCT7904D
39                  Add detection of IT8790E
413.3.5 "Happy Birthday Beddy" (2014-01-22)
42  libsensors: Improve documentation of two functions
43              Increase MAX_SENSORS_PER_TYPE to 33
44  init: Fix EnvironmentFile in service files
45        Drop dependency from service files
46  sensors-conf-convert: Add a manual page
47  sensors-detect: Report built-in drivers as such
48                  Use modules.builtin instead of /sys/module
49                  Handle built-in modules properly
50                  Add detection of NCT6791D
51                  Add detection of NCT6681D, NCT6682D, and NCT6683D
52                  Add detection of F71868A
53                  Add detection of IT8603E
54                  Add two PCI IDs for new family 15h AMD processors
55                  Introduce automatic mode (--auto)
56                  Detect incorrect non-interactive runs
57                  Rework option handling
58                  Fix use of uninitialized value 'vendor_id' on ppc64
59                  Add detection of TMP451
60                  Add detection of SMSC EMC2104
623.3.4 (2013-05-27)
63  sensors.conf.5: Mention "sensors -u" to get the raw feature names
64  sensors: Clarify what option -u is good for
65  fancontrol: Fix handling of absolute paths in config
66  pwmconfig: Print the initial PWM values
67             Raise the detection threshold to 3/4
68             Properly deal with multiple fan control
69  sensors-detect: Add detection of AMD family 16h power sensors
70                  Map IT8771E, IT8772E, IT8782F and IT8783F to it87
71                  Use /sys/module instead of /proc/modules where available
72                  Drop legacy sysconfig configuration file syntax
73                  Stay alive when /dev/port is missing
74                  Add detection of IT8752F
75                  Add detection of MCP98244
76                  Add detection of LM95234
77                  Add detection of TMP431/TMP432
78                  Update Nuvoton chip information and NCT6106D chip detection
79                  Drop unreliable DS1621/DS1631 detection
813.3.3 "Happy Birthday Sophie" (2012-11-06)
82  documentation: Update fan-divisors, fan divisors are optional
83  libsensors: Fix warning about library path not in /etc/
84  sensors: Fix libiconv linkage need detection in rare corner case
85           Add support for humidity output
86           Add long switches to manual page
87  sensors-detect: Don't choke on systems without PCI
88                  Avoid probing EDID addresses on graphics cards (#2386)
89                  Add detection of NCT6779D and NCT6102D/NCT6106D
90                  Add detection of SMSC LPC47N217 and SIO10N268
91                  Do not scan I2C adapters on graphics cards by default
92                  Fix parent class discovery when multiplexer is present
943.3.2 (2012-03-14)
95  libsensors: Added support for new sysfs attributes
96              Change sysfs detection to survive upcoming kernel changes
97  sensord: Fix memory leaks revealed by valgrind
98           Minor performance improvements
99  sensors: Added support for new sysfs attributes
100           Display both instantaneous and average power if available.
101           Report thermal sensor type 1 as CPU diode
102           Align power values better
103           Fix power interval output
104  fancontrol: Support setup where one PWM output controls several fans
105              Output error messages to stderr
106  sensors-detect: Stop calling for PIIX5 SMBus testers
107                  Improve filtering of fake DMI data
108                  Print DMI system/product version if available
109                  Fix loading of the cpuid module
110                  Make LM73 detection less problematic
111                  Add detection of National Semiconductor LM96163
112                  Add detection of GMT G781
113                  Properly handle Super-I/O chips without logical device
114                  Add detection of National Semiconductor LM96080
115                  Add detection of ITE IT8771E
116                  Add detection of ITE IT8781F, IT8782F and IT8783F
117                  Add detection of ITE IT8510E/TE/G, IT8511E/TE/G,
118                         IT8513E/F/G, and IT8518E
119                  Add detection of ST Microelectronics STTS2002 and STTS3000
120                  Add detection of IDT TSE2002GB2, TS3000GB2, Microchip MCP9804,
121                         and Atmel AT30TS00
1233.3.1 (2011-07-21)
124  isadump: Add support for word (16-bit) and long (32-bit) reads
125  isaset: Add support for word (16-bit) and long (32-bit) writes
126  sensors.conf.default: Add a section for the EMC6W201
127  sensors-detect: Add AMD family 15h CPU detection
128                  Add detection of ADT7461A / NCT1008
129                  Add detection of ITE IT8516E/F/G
130                  Integrate with systemd
131                  Drop unreliable smart battery detection
132                  Add detection of SMSC EMC6W201
133                  Drop unreliable detection of Maxim MAX6650
134                  Add detection of SMSC EMC2300
135                  Add detection of MAX6642
136                  Add detection of ITE IT8772E
137                  Don't advertise the ipmisensors driver
138                  Add detection of SA56004
139                  Add detection of LM95245
1413.3.0 (2011-03-28)
142  Makefile: Check for bison and flex
143  libsensors: Add support for intrusion detection (#2370)
144              Compute MAX_SUBFEATURES at run-time (#2378)
145              Compute MAX_*_SENSOR_TYPES at build time (#2378)
146              Add support for new sysfs attributes (#2379)
147              Add support for humidity sensors
148              Limit symbol visibility
149  sensors.conf.default: Add a section for the W83627THF
150                        Add a section for the SCH5127
151                        Add a section for the W83627UHG
152                        Add a section for the W83795G/ADG
153                        Add a section for the F81865F
154  sensors: Display 3 decimal places in raw output
155           Add support for intrusion detection (#2370)
156           Fix automatic unit selection of 0 value
157           Added support for additional sensor attributes (#2379)
158  sensors-detect: Improve LM90 and W83L771 detection
159                  Fix error seen if I2C bus numbers are not sequential
160                  Add detection of SMSC EMC1423
161                  Add detection of the Analog Devices ADT7410
162                  Add detection of the National Semiconductor LM94
163                  Add detection of the ITE IT8728F
164                  Implement universal detection for coretemp (#2381)
165                  Add detection of Maxim MAX6639
166                  Add detection of SMSC EMC1023, EMC1043, EMC1053, and EMC1063
167                  Add detection of Nuvoton NCT5571D, NCT5577D and NCT6776F
168                  Add detection of SMSC EMC1002, EMC1033, EMC1046, EMC1047,
169                        EMC1072, EMC1073, EMC1074, EMC1402, and EMC1424
170                  Fixed address ranges checked for SMSC EMC1403 and EMC1404.
171                  Fix detection of SPD EEPROM on DDR3 memory modules
172                  Add detection of AMD family 12h and 14h thermal sensors
173                  Add detection of EMC6D103S
174                  Add detection of National Semiconductor LM75A
175                  Count DMI chassis type 8 as a laptop
176                  Add detection of SMSC SCH5627
177                  Add detection of many Fintek Super-I/O devices
1793.2.0 (2010-10-10)
180  libsensors: Increase MAX_SENSORS_PER_TYPE to 24
181              Map individual beep features
182              Change license to LGPL
183  pwmconfig: Sample all fan speeds before returning to full speed (#2380)
184             Wait for fans to return to full speed only once per PWM
185             Drop legacy invocations of cut
186  sensors.conf.default: W83667HG config is similar to W83627EHF/DHG
187  sensord: Fix support of multiple chips (#2377)
188  sensors: Properly handle sensor input read errors
189  sensors-detect: Give udev time to settle before accessing i2c nodes
190                  Add support for Intel PCH (SMBus)
191                  Add support for SMSC EMC1403 and EMC1404
192                  Fix detection of RB-C3 AMD Family 10h CPU
193                  Add support for SMSC EMC2103
194                  Add support for Fintek F71889ED
195                  Add support for ITE IT8721F
196                  Fix Maxim MAX6690 support
197                  Fix handling of duplicate detections
198                  Add support for STMicroelectronics STTS424
199                  Add support for NXP SE97 / SE97B
200                  Add reference to NCT6771F/NCT6772F/NCT6775F
201                  Add support for several JC42.4 compliant temperature sensors
202                  Add support for ITE IT8512E/F and IT8758E
2043.1.2 (2010-02-02)
205  libsensors: Support upcoming sysfs path to i2c adapters
206              Add support for HID devices
207  fancontrol: Check that all referenced sysfs files exist
208              Check that all devices match the configuration file
209  pwmconfig: Exit immediately if not root
210             Save device paths and names in configuration file
211  sensors.conf.default: Encourage user to not modify this file
212                        Add a section for adt7473 and adt7475
213                        Add a section for adt7476 and adt7490
214  sensord: Don't name our variables "alarm"
215           Major refactoring including
216           - Cleanup of huge functions
217           - Remove needless casts
218           - Fix coding style
219           - Break long lines
220           - Make functions more robust
221           - Remove unused return value
222           - Make CGI script more XHTML compatible
223  sensors: Fix iconv-related build warning in set_degstr
224  sensors-detect: Refer to tmp401 driver if TMP411 is detected
225                  Clean up the discovery of i2c adapters
226                  Report unsupported Access Bus adapters
227                  Add detection for TI's TMP421, TMP422 and TMP423 chips
228                  The SMSC LPC47M233 isn't currently supported
229                  Support upcoming sysfs path to i2c adapters
230                  Rename the modprobe configuration file to lm_sensors.conf
231                  Only report AMD Family 10h CPU with working sensors
232                  Add detection for AMD Family 11h thermal sensors
233                  Add detection for Intel Atom thermal sensors
234                  Add detection for National Semiconductor LM73
235                  Add SMBus detection for AMD Hudson-2
236                  Add detection for Nuvoton W83667HG-B and W83677HG-I
237                  Add detection for Analog Devices ADT7490
238                  Refer to f71882fg driver if F71889FG is detected
239                  Add detecton for Fintek F71869FG
240                  Detect ADT7473 at 0x2c and 0x2d
241                  More known revisions for the ADT7476
242                  Add detection for Nuvoton W83L771AWG/ASG
243                  Add detection for VIA Nano
244                  Add detection for Texas Instruments AMC6821
245                  Add detection for Analog Devices ADT7411
246  sysconfig-lm_sensors-convert: Fix exit code
2483.1.1 (2009-06-21)
249  isadump: Use geteuid instead of getuid so that setuid bit works
250  isaset: Use geteuid instead of getuid so that setuid bit works
251  libsensors: Don't rely on dirent->dt_type being set
252              New method to free the memory allocated for chip names
253  Makefile: Include generated source files in dependency checking
254            Make it possible to skip building of the static library
255  fancontrol: Add support for absolute path to hwmon devices
256  sensord: Remove the hidden commandline interface
257           Introduce struct sensord_arguments
258           Using sigaction for signal handlers
259           Convert to linux coding style
260           Cleanup and refactoring of the source code
261           Don't use the system log when generating a CGI script
262           Disable unit scaling for fan speeds
263           Use daemon logging facility instead of local4 by default
264           Fix a memory leak when a chip name is provided
265  sensors: Fix a memory leak when a chip name is provided
266  sensors-detect: Add nNidia nForce MCP78S SMBus detection
267                  Display Super-I/O address even if LD is disabled
268                  Differentiate between PC8374L and WPCD377I
269                  Use dmidecode to find IPMI interfaces if available
270                  Add Nuvoton W83795G/ADG detection
271                  Add National Semiconductor LM95241 detection
272                  Add Winbond/Nuvoton W83627DHG-P and W83627UHG detection
2743.1.0 "Happy Birthday Lina" (2009-02-28)
275  libsensors: Add support for instantaneous power sensors
276              Add support for current sensors
277              Fix error propagation during expression evaluation
278              Detect excessive recursion depth during expression eval (#2365)
279              Return a string rather than NULL for unknown errors
280              Skip non-file sysfs entries for speed
281              Fix memory leak in scanner when using flex 2.5.9 or later
282              Report configuration file read errors
283              Exit the configuration file parser sooner
284              Free bus statements from the configuration file sooner
285              Read extra configuration files from /etc/sensors.d (#2174)
286              Report the configuration file name on parse errors
287              Add support for ACPI devices
288  libsensors.3: Reformat for clarity
289                Document function sensors_snprintf_chip_name
290                Document error-related functions
291  lm_sensors.init: Support new format of /etc/sysconfig/lm_sensors (#2246)
292                   Drop support for kernels 2.4 and earlier
293  lm_sensors.init.suse: Delete (actual SuSE script is much different)
294  Makefile: Install sensors.conf.default instead of (#2333)
295  pwmconfig: Drop support for kernels 2.4 and earlier
296  fancontrol: Don't round temperature values
297              Drop support for kernels 2.4 and earlier
298              Exit if configuration file can't be read
299              Create pid file only after successful initialization
300  maxilife scripts: Delete (driver never ported to Linux 2.6)
301  sensord: Accept negative temperatures in RRD database
302           Don't bail out on transient errors (#2330)
303  sensors: Add support for instantaneous power sensors
304           Add support for current sensors
305           Fix exit code in error case
306  sensors.conf.5: Lots of additions and reworks
307  sensors.conf.default: New, minimum version of (#2333)
308                        Add sections for the SMSC SCH311x and SCH5027
309 The LM99 offset is now handled in the lm90 driver
310                   Move help section to sensors.conf.5
311                   Add a section for the Asus/Fintek F8000
312  sensors-detect: Fix detection of ADT7463 and LM96000
313                  Add VIA VX800/VX820 SMBus support
314                  Fix detection of Intel 5000 series FB-DIMM AMB
315                  Fix detection of ADT7462
316                  Fix detection of SMSC LPC47M292
317                  Add SMSC LPC47M233 support
318                  Drop support for Linux 2.4 (#2325)
319                  Handle special case chips more efficiently
320                  Fix SMBus detection of W83627EHF and W83627DHG
321                  Get I2C adapter driver names from sysfs (#2328)
322                  Drop old SiS I2C adapter entries
323                  Drop separate LM78-J entry
324                  Merge all Mozart-2 entries
325                  Merge both GL518SM entries into one
326                  Complete GL520SM detection
327                  Improve GL525SM detection a bit
328                  Let kernel 2.6.28 and later handle chips aliases
329                  Unload kernel drivers when we are done with them (#2329)
330                  Fix handling of bus driver names with an underscore
331                  Simplify loading of bus drivers
332                  Fix bus number prediction logic (#2327)
333                  Suggest the sbs driver for smart batteries
334                  Drop alias detection for Super-I/O chips
335                  Move alias detection after all chip detections
336                  Probe chip types from safest to more risky (#2322)
337                  Add an option to skip ISA probes except IPMI
338                  Skip ISA detection by default if a Super I/O was found (#2322)
339                  Do not scan I2C adapters on multimedia cards by default
340                  Skip SMBus probing by default if a Super I/O was found (#2322)
341                  Display I2C address statictics with --stat
342                  Document the new detection order and rules
343                  Gather DMI data and print it at start-up
344                  Always probe the SMBus on Asus, Tyan and Supermicro boards
345                  Move IPMI interface detection to its own section
346                  Skip IPMI probing on laptops
347                  Add Winbond/Nuvoton W83667HG support
348                  Add Intel Core I7 support
349                  Generate new format for /etc/sysconfig/lm_sensors (#2246)
350                  Print warnings about missing modules on screen
351                  Fix detection of older DS1621
352                  Add nNidia nForce MCP67, MCP73, MCP79 SMBus support
353                  Exclude auto-loaded PCI and USB drivers from list (#2368)
354                  Special case probing i2c address 0x73 (to not crash FSC ICs)
355                  Add detection of FSC Hades and Syleus IC's
356                  Add detection of Winbond WPCD377I (no sensors)
357 Delete (functionality merged into sensors-detect)
358  sysconfig-lm_sensors-convert: Sample config file conversion script (#2246)
3603.0.3 (2008-09-28)
361  libsensors: Avoid namespace pollution
362  fancontrol: Don't use named pipes when we don't need them (#2319)
363  pwmconfig: Tell the user about gnuplot if it isn't installed
364             Fix MINSTOP and MINSTART test functions (#2340)
365             Test MINSTOP before MINSTART
366             Use better step values for MINSTOP test
367             Print the revision and date at start-up
368             Detect and report obviously incorrect fan speeds
369             Determine MINSTOP automatically
370             Skip MINSTOP and MINSTART tests if fan can't stop
371             Change default for MINTEMP from 0 to 20 degrees C
372             Add support for attributes in the hwmon class device (#2260)
373             Update manual page
374 Drop "label temp#_crit" statements
375  sensors-detect: Add Intel SCH (bus) support
376                  Add SMSC EMC6D103 support
377                  Improve MAX6657, MAX6658, MAX6659 detection
378                  Cache the byte data reads (#2326)
379                  Add Maxim MAX6654/MAX6690 support
380                  Add National Semiconductor LM95231 support
381                  Add Analog Devices ADT7481 support
382                  Refactor alias detection functions
383                  Fix Andigilog aSC7621 support
384                  Add Texas Instruments THMC51 support
385                  Fix Analog Devices ADT7461 support
386                  Add VIA C7 support
387                  Fix Winbond W83L786NR/NG/R/G support (#2336)
388                  Add Maxim MAX6646/MAX6647/MAX6649 support
389                  Add VIA VT1212 support
390                  Add SMSC EMC2700LPC support
391                  Add ITE IT8720F support
392                  Add Texas Instruments TMP411 support
393                  Prevent misdetection of W83627DHG on I2C as LM78
394                  W83627DHG has no subclients
395                  Add Maxim MAX1618 support
3973.0.2 (2008-05-18)
398  documentation: Delete the FAQ, now maintained on the wiki
399  libsensors: Use __func__ instead of __FUNCTION__
400              Parse the configuration file in C locale
401              Late compute statements override early ones
402              Support virtual hwmon devices (#2309)
403              Support power and energy sensors
404              Support DOS-style configuration files again (#2284)
405  pwmconfig: Don't create the configuration file before it's needed
406             Don't preserve configuration file customizations
407             Fix permissions of the configuration file
408             Don't start if fancontrol is running (#2299)
409  fancontrol: Don't start if already running (#2299)
410              Delete at exit time (#2299)
411  sensord: Fix support of multiple chip names on the command line (#2321)
412  sensors: Print energy and power sensors with automatically scaled units
413  sensors-detect: Add SMSC SCH5027D detection
414                  Do not access I/O ports on PPC
415                  Move south bridge sensor detection to the right section
416                  Run chip_special_cases() earlier
417                  New device ID for the SMSC SCH5317
418                  Add SMSC SCH5127 detection
419                  Add National Semiconductor LM64 detection
420                  Add Asus F8000 detection
421                  Add Intel ICH10 (bus) detection
422                  Don't probe I2C addresses 0x40-0x47
423                  Fix the parsing of I2C addresses not to scan
424                  Detect and skip 1-register-only I2C devices
425                  Avoid SMBus word transactions where possible
426                  Add Dallas DS1631 detection
4283.0.1 (2008-01-28)
429  documentation: Update the application writing guidelines
430  libsensors: No longer depend on libsysfs (#2262)
431              Don't guess the bus type from the device ID format (#2240)
432              Add support for attributes in the hwmon class device (#2260)
433  Makefile: No warnings about ld configuration for staged installations
434            Document the variable overriding mechanism (#2296)
435  pwmconfig: Really hide errors on sysfs writes
436             Deal gracefully with read-only pwm_enable files
437             Warn about outputs found in automatic mode
438             Repeat available configuration options before prompt (#2289)
439             Fix duplicate warning message when config file is broken
440  fancontrol: Detect improperly formatted FCTEMPS value (#2293)
441  sensord: Fix rrd support (#2276)
442           Use the same colors for daily and weekly charts
443           Drop workaround needed by old versions of rrdtool
444  sensors: Fix error path on library initialization error
445 Fix voltage value references (g520sm, lm80, pc87366)
446  sensors-detect: Drop PCA9540 detection
447                  Improve sysconfig and modprobe.d integration
448                  Add SMSC SCH5514D-NS detection (no sensors)
449                  Lower the confidence of MAX6650/MAX6651
450                  Add Fintek F71858DG detection
451                  Add Fintek F81216D detection (no sensors)
452  unhide_ICH_SMBus: Add support for the 82801AA (ICH)
4543.0.0 (2007-11-24)
455  Makefile: Fix MODULE_DIR usage in etc
456            Fix build on PPC
457  pwmconfig: Better diagnostics in pwmdisable
458             Give the fans some time to spin up
459  sensors-detect: Add Texas Instruments TMP401 detection
460                  Mention the f75375s driver
461                  Add SMSC LPC47B367-NC detection (no sensors)
462                  Reduce w83781d/lm78 I2C address probing range
463                  Add Intel Celeron 4xx and Penryn (CPU on 45nm) detection
4653.0.0-rc3 (2007-10-28)
466  libsensors: Add a default configuration file
467              Fix memory leaks on initialization error
468              Make the configuration file optional
469              Change the default configuration file to /etc/sensors3.conf
470  sensord: Reload config on SIGHUP rather than automatically
471           No default configuration file name
472  sensors: Fix file handle leak on library initialization error
473           Handle the case where voltage measurements aren't available
474           No default configuration file name
475           Install as sensors again
476 Install as sensors3.conf
477  sensors-detect: Fix SMSC LPC47B357/M967 detection
478                  Select the right driver for FSC chips
479 Handle alternative chip lists
4813.0.0-rc2 (2007-10-10)
482  useful_addresses.html: Moved to the wiki
483  Makefile: Add sensors-conf-convert to make install
484  libsensors: Notify the caller when writing a value fails
485              Differentiate between different read error types
486              Report I/O errors as such
487  sensord: Log the error code on failure
488           Drop the configuration file search path mechanism (#2259)
489           Manual page update
490  sensors: Fix spurious critical temperature alarm
491           Print error messages to stderr
492           Make error messages more helpful and consistent
493           Better handling of the fault flags
494  sensors-conf-convert: Add a short help text
495  sensors-detect: Fix SMSC SCH311x detection
496                  Add AMD K10 CPU sensor detection
4983.0.0-rc1 (2007-09-25)
499  Initial release
Note: See TracBrowser for help on using the browser.