fs: namei: use __pure modifier as declared in headers
PATCH 1/1 fs: namei: use __pure modifier as declared in headers
sparse complains about different modifiers here. The function definitions should simply use their declarations' modifiers.
We also shrink the text width to our 80 characters maximum while we are at it. This makes it sparse- and checkpatch-clean.
Signed-off-by Martin Kepplinger <[email protected]>
--- fs/namei.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
fs/namei.c +3 -2
@@ -1925,7 +1925,8 @@ static inline unsigned int fold_hash(unsigned long x, unsigned long y)* payload bytes, to match the way that hash_name() iterates until it * finds the delimiter after the name. */ -unsigned int full_name_hash (const void *salt,const char *name,unsigned int len) +unsigned int __pure full_name_hash (const void *salt,const char *name, +unsigned int len) {unsigned long a, x =0 , y = (unsigned long )salt;
@@ -1946,7 +1947,7 @@ unsigned int full_name_hash(const void *salt, const char *name, unsigned int lenEXPORT_SYMBOL (full_name_hash);/* Return the "hash_len" (hash and length) of a null-terminated string */ -u64 hashlen_string (const void *salt,const char *name) +u64 __pure hashlen_string (const void *salt,const char *name) {unsigned long a =0 , x =0 , y = (unsigned long )salt;unsigned long adata, mask, len;
Signature · 1 line
2.1.4