From patchwork Tue Feb 19 09:08:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zheng Liu X-Patchwork-Id: 221649 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 1CC402C0094 for ; Tue, 19 Feb 2013 19:54:07 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932431Ab3BSIyG (ORCPT ); Tue, 19 Feb 2013 03:54:06 -0500 Received: from mail-pa0-f44.google.com ([209.85.220.44]:36381 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757313Ab3BSIyF (ORCPT ); Tue, 19 Feb 2013 03:54:05 -0500 Received: by mail-pa0-f44.google.com with SMTP id kp1so3278303pab.3 for ; Tue, 19 Feb 2013 00:54:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=4GLbGsm0a2fx4GvatiQwgeTFKQIrZ2M+iCYMCNUTtCM=; b=k57LxhkmLlIwYJgi3qtBBfpLbomHipm1cJ5nbd35h0sbcdePNVeK86BfpiRlc5fxY7 0AK28zFHtLQh52y1cIVaMsBcBoaVZi/p1s3nYbcHjKMxyErHNJeNQgHrs//2oBOSvSw0 sON+fWI4pf9B+mHhEXeUcSpt8pKjc0nzsIXhC8tsRmy7m+tl1NGUnUSazK86/QlghbpQ 6Ofb8wfHk92HnvKBBNnFdi6j3aSL97mGzNsG1Q5j5Eqty1mtWxnIzpH9FQrxEnmMn5JI MwCOKxu00TkrQcrjXNzv1CKuk4X5JzyfHO79nnxP1QtNasJMrkECKdzZ3VRhRzWPPjBb WGtA== X-Received: by 10.68.41.229 with SMTP id i5mr38042561pbl.62.1361264043913; Tue, 19 Feb 2013 00:54:03 -0800 (PST) Received: from lz-desktop.taobao.ali.com ([182.92.247.2]) by mx.google.com with ESMTPS id k7sm93423302paz.13.2013.02.19.00.53.58 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 19 Feb 2013 00:54:02 -0800 (PST) From: Zheng Liu To: linux-ext4@vger.kernel.org Cc: Zheng Liu Subject: [PATCH] ext4: fix a warning from sparse check for ext4_dir_llseek Date: Tue, 19 Feb 2013 17:08:46 +0800 Message-Id: <1361264926-8908-1-git-send-email-wenqing.lz@taobao.com> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org From: Zheng Liu ext4_dir_llseek is only used as a callback function, and no one calls it directly. So make it as a static function in order to remove a warning message from sparse check. Signed-off-by: Zheng Liu --- fs/ext4/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext4/dir.c b/fs/ext4/dir.c index 80a28b2..39460ac 100644 --- a/fs/ext4/dir.c +++ b/fs/ext4/dir.c @@ -333,7 +333,7 @@ static inline loff_t ext4_get_htree_eof(struct file *filp) * * For non-htree, ext4_llseek already chooses the proper max offset. */ -loff_t ext4_dir_llseek(struct file *file, loff_t offset, int whence) +static loff_t ext4_dir_llseek(struct file *file, loff_t offset, int whence) { struct inode *inode = file->f_mapping->host; int dx_dir = is_dx_dir(inode);