From 5ed76afa814812edaeaff2ea7b3227c18d5de5a6 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 4 Aug 2020 12:29:59 +0200 Subject: pkg/compiler: check for unused resources If a resource is never used as an input, it is not useful. It's effectively the same as using an integer. Detect such cases, they are quite confusing. Fix all existing errors in descriptions. This uncovered some interesting bugs as well, e.g. use of a completely unrelated fd subtype after copy-paste (while the resource that was supposed to be used there is completely unused). --- sys/linux/dev_sr.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/linux/dev_sr.txt') diff --git a/sys/linux/dev_sr.txt b/sys/linux/dev_sr.txt index 6dfc5e428..53cbf4075 100644 --- a/sys/linux/dev_sr.txt +++ b/sys/linux/dev_sr.txt @@ -3,6 +3,4 @@ include -resource fd_sr[fd_block] - -openat$sr(fd const[AT_FDCWD], file ptr[in, string["/dev/sr0"]], flags flags[open_flags], mode const[0]) fd_sr +openat$sr(fd const[AT_FDCWD], file ptr[in, string["/dev/sr0"]], flags flags[open_flags], mode const[0]) fd -- cgit mrf-deployment