linux/Documentation/watchdog
Arnd Bergmann 9dd8d5f870 Documentation/watchdog: check return value for magic close
A recent commit added a write to the watchdog test code for doing the "magic
close", but that caused a compile-time warning:

Documentation/watchdog/src/watchdog-test.c: In function ‘main’:
Documentation/watchdog/src/watchdog-test.c:94:5: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]

This changes the code to print a runtime warning if the write fails.

Fixes: 5a2d3de196 ("Documentation/watchdog: add support for magic close to watchdog-test")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
2016-07-25 11:02:17 +02:00
..
src Documentation/watchdog: check return value for magic close 2016-07-25 11:02:17 +02:00
convert_drivers_to_kernel_api.txt watchdog: Add support for WDIOC_GETTIMELEFT IOCTL in watchdog core 2012-03-27 20:15:37 +02:00
hpwdt.txt watchdog: hpwdt: remove email address from doc 2016-07-17 20:54:07 +02:00
Makefile Documentation: use subdir-y to avoid unnecessary built-in.o files 2014-09-26 11:02:55 +02:00
pcwd-watchdog.txt [WATCHDOG] clean-up watchdog documentation 2007-05-24 17:26:11 +00:00
watchdog-api.txt Documentation: fix two typos in watchdog-api.txt 2014-08-05 22:43:21 +02:00
watchdog-kernel-api.txt watchdog: Implement status function in watchdog core 2016-07-19 10:09:07 +02:00
watchdog-parameters.txt Documentation: Add ebc-c384_wdt watchdog-parameters.txt entry 2016-05-14 18:28:29 +02:00
wdt.txt watchdog: update/improve/consolidate watchdog driver 2010-05-25 09:05:34 +00:00