From patchwork Wed May 3 09:00:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 9709037 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5854B60385 for ; Wed, 3 May 2017 09:00:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 359182624A for ; Wed, 3 May 2017 09:00:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 276C128602; Wed, 3 May 2017 09:00:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DAD8F2624A for ; Wed, 3 May 2017 09:00:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752226AbdECJAy (ORCPT ); Wed, 3 May 2017 05:00:54 -0400 Received: from mout02.posteo.de ([185.67.36.66]:50180 "EHLO mout02.posteo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752172AbdECJAw (ORCPT ); Wed, 3 May 2017 05:00:52 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 3491C20E07 for ; Wed, 3 May 2017 11:00:50 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 3wHsZS4KYRz109t; Wed, 3 May 2017 11:00:48 +0200 (CEST) From: Martin Kepplinger To: viro@zeniv.linux.org.uk Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Martin Kepplinger Subject: [PATCH] fs: namei: use __pure modifier as declared in headers Date: Wed, 3 May 2017 11:00:41 +0200 Message-Id: <1493802041-30353-1-git-send-email-martink@posteo.de> X-Mailer: git-send-email 2.1.4 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- fs/namei.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/namei.c b/fs/namei.c index d7b88c7..3d18a8c 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -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 len EXPORT_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;