Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1331445

[PATCH v2] let kernfs_name_locked & kernfs_name return size_t

From Christian Brauner <christian.brauner@mailbox.org>
Newsgroups linux.kernel
Subject [PATCH v2] let kernfs_name_locked & kernfs_name return size_t
Date 2016-02-10 20:10 +0100
Message-ID <r0Ijg-6oz-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Simple patch that changes the return value of kernfs_name_locked and kernfs_name
to size_t which alignes these functions with kernfs_path_len which also returns
size_t.

Patch was made against for-4.5 branch of Tejun's cgroup tree.  (As per Tejun's
request, ccing gregkh@linuxfoundation.org and linux-kernel@vger.kernel.org.)

Changelog
        20150210: - Change return type of kernfs_name in kernfs.h as well.
                  - Build tested against Tejun's for-4.5 tree, 4.5-rc2 and
                    mainline 4.5-rc3.

*Note*, the changes in kernfs.h change the dummy return value of the static
inline definition of kernfs_name from -ENOSYS. I changed it to 0 analogous to
kernfs_path_len. I don't know if this is considered a deal-breaker.

Christian Brauner (1):
  let kernfs_name_locked & kernfs_name return size_t

 fs/kernfs/dir.c        | 4 ++--
 include/linux/kernfs.h | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

-- 
2.7.1

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH v2] let kernfs_name_locked & kernfs_name return size_t Christian Brauner <christian.brauner@mailbox.org> - 2016-02-10 20:10 +0100
  [PATCH v2] let kernfs_name_locked & kernfs_name return size_t Christian Brauner <christian.brauner@mailbox.org> - 2016-02-10 20:10 +0100
  Re: [PATCH v2] let kernfs_name_locked & kernfs_name return size_t Greg KH <gregkh@linuxfoundation.org> - 2016-02-12 04:20 +0100

csiph-web