]> git.baikalelectronics.ru Git - kernel.git/commit
recordmcount: Remove unused fd from uwrite() and ulseek()
authorMatt Helsley <mhelsley@vmware.com>
Wed, 24 Jul 2019 21:04:57 +0000 (14:04 -0700)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sat, 31 Aug 2019 16:19:38 +0000 (12:19 -0400)
commit4fa8b54112629f49ef324c9af1676c1d37accd0b
tree9bb366f7bc3147f7243a53c345a566e359778898
parent0bde668d1114ff04e197271f0d9d0ee85979c927
recordmcount: Remove unused fd from uwrite() and ulseek()

uwrite() works within the pseudo-mapping and extends it as necessary
without needing the file descriptor (fd) parameter passed to it.
Similarly, ulseek() doesn't need its fd parameter. These parameters
were only added because the functions bear a conceptual resemblance
to write() and lseek(). Worse, they obscure the fact that at the time
uwrite() and ulseek() are called fd_map is not a valid file descriptor.

Remove the unused file descriptor parameters that make it look like
fd_map is still valid.

Link: http://lkml.kernel.org/r/2a136e820ee208469d375265c7b8eb28570749a0.1563992889.git.mhelsley@vmware.com
Signed-off-by: Matt Helsley <mhelsley@vmware.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
scripts/recordmcount.c
scripts/recordmcount.h