]> git.baikalelectronics.ru Git - kernel.git/commit
proc: simplify proc_register calling conventions
authorChristoph Hellwig <hch@lst.de>
Tue, 24 Apr 2018 15:00:52 +0000 (17:00 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 16 May 2018 05:23:35 +0000 (07:23 +0200)
commitbe99017425eff8d57d9412f4a8c717dc22e319ed
tree07ca85b5531274c7bb4063ef391f2b8d2caaf057
parent4e2324d2122d12f90d59b69b2a964f81e4a8d87a
proc: simplify proc_register calling conventions

Return registered entry on success, return NULL on failure and free the
passed in entry.  Also expose it in internal.h as we'll start using it
in proc_net.c soon.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/proc/generic.c
fs/proc/internal.h