Skip to content

Fix -Wunused-result warnings by checking return values

Cheng-Yang Chou linux-rt-users 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 11 repliesIn review
  2. v18 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- Add commit messages to all patches
- Ensure all patches pass checkpatch cleanly
- Link to v1: https://lore.kernel.org/all/[email protected]/

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8rt-utils.c: Check return values of write()src/lib/rt-utils.c+7 -21 reply
2/8pmqtest.c: Check return values of write() and ftruncate()src/pmqtest/pmqtest.c+5 -11 reply
3/8ptsematest.c: Check return values of write() and ftruncate()src/ptsematest/ptsematest.c+5 -11 reply
4/8rt-migrate-test.c: Check return values of write() and ftruncate()src/rt-migrate-test/rt-migrate-test.c+4 -11 reply
5/8cyclicdeadline.c: Check return values of write() and ftruncate()src/sched_deadline/cyclicdeadline.c+27 -51 reply
6/8deadline_test.c: Check return values of write() and ftruncate()src/sched_deadline/deadline_test.c+32 -51 reply
7/8sigwaittest.c: Check return values of write() and ftruncate()src/sigwaittest/sigwaittest.c+11 -21 reply
8/8svsematest.c: Check return values of write() and ftruncate()src/svsematest/svsematest.c+11 -21 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/8] Fix -Wunused-result warnings by checking return values

This v2 series adds proper commit messages and addresses coding style warnings previously reported by checkpatch.pl.

All patches have been verified with checkpatch.pl and show no errors or warnings.

Changes in v2:
- Add commit messages to all patches
- Ensure all patches pass checkpatch cleanly
- Link to v1: https://lore.kernel.org/all/[email protected]/

Thanks,
-chengyang

---

Cheng-Yang Chou (8):
rt-utils.c: Check return values of write()
pmqtest.c: Check return values of write() and ftruncate() ptsematest.c: Check return values of write() and ftruncate() rt-migrate-test.c: Check return values of write() and ftruncate() cyclicdeadline.c: Check return values of write() and ftruncate() deadline_test.c: Check return values of write() and ftruncate() sigwaittest.c: Check return values of write() and ftruncate() svsematest.c: Check return values of write() and ftruncate()

 src/lib/rt-utils.c                    |  9 +++++--
 src/pmqtest/pmqtest.c                 |  6 ++++-
 src/ptsematest/ptsematest.c           |  6 ++++-
 src/rt-migrate-test/rt-migrate-test.c |  5 +++-
 src/sched_deadline/cyclicdeadline.c   | 32 +++++++++++++++++++----
 src/sched_deadline/deadline_test.c    | 37 +++++++++++++++++++++++----
 src/sigwaittest/sigwaittest.c         | 13 ++++++++--
 src/svsematest/svsematest.c           | 13 ++++++++--
 8 files changed, 102 insertions(+), 19 deletions(-)
Signature · 1 line
2.48.1