]> 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)
commitbfbaf5194451c0fdcb673a063a3beb34afe4bab8
tree07ca85b5531274c7bb4063ef391f2b8d2caaf057
parent6c7dfb421a1d588e4371f2533b86f866e0e3935c
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