diff options
author | Mike Marshall <hubcap@omnibond.com> | 2015-07-28 19:27:51 +0200 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2015-10-03 17:40:02 +0200 |
commit | 84d02150dea7571dc32176e35d65eecde82631a9 (patch) | |
tree | 0d2fe61c71db6eee07f7610eaf6d681f6dec56f3 /fs/orangefs/protocol.h | |
parent | Orangefs: kernel client update 1. (diff) | |
download | linux-84d02150dea7571dc32176e35d65eecde82631a9.tar.xz linux-84d02150dea7571dc32176e35d65eecde82631a9.zip |
Orangefs: sooth most sparse complaints
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/protocol.h')
-rw-r--r-- | fs/orangefs/protocol.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/fs/orangefs/protocol.h b/fs/orangefs/protocol.h index 8e0c8a6158f7..ca7cef9590d3 100644 --- a/fs/orangefs/protocol.h +++ b/fs/orangefs/protocol.h @@ -341,7 +341,7 @@ __s32 PINT_non_errno_mapping[] = { \ extern __s32 PINT_errno_mapping[]; \ extern __s32 PINT_non_errno_mapping[]; \ extern const char *PINT_non_errno_strerror_mapping[]; \ -__s32 PVFS_get_errno_mapping(__s32 error) \ +static __s32 PVFS_get_errno_mapping(__s32 error) \ { \ __s32 ret = error, mask = 0; \ __s32 positive = ((error > -1) ? 1 : 0); \ @@ -364,16 +364,6 @@ __s32 PVFS_get_errno_mapping(__s32 error) \ } \ return ret; \ } \ -__s32 PVFS_errno_to_error(int err) \ -{ \ - __s32 e = 0; \ - \ - for (; e < PVFS_ERRNO_MAX; ++e) \ - if (PINT_errno_mapping[e] == err) \ - return e | PVFS_ERROR_BIT; \ - \ - return err; \ -} \ DECLARE_ERRNO_MAPPING() /* permission bits */ |