From patchwork Thu Sep 1 10:17:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 75185 Delivered-To: patch@linaro.org Received: by 10.140.29.8 with SMTP id a8csp211377qga; Thu, 1 Sep 2016 03:18:19 -0700 (PDT) X-Received: by 10.66.150.39 with SMTP id uf7mr25066543pab.23.1472725099707; Thu, 01 Sep 2016 03:18:19 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d190si5023884pfd.93.2016.09.01.03.18.19; Thu, 01 Sep 2016 03:18:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932434AbcIAKSQ (ORCPT + 27 others); Thu, 1 Sep 2016 06:18:16 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:35819 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751340AbcIAKSO (ORCPT ); Thu, 1 Sep 2016 06:18:14 -0400 Received: by mail-pa0-f54.google.com with SMTP id hb8so28574944pac.2 for ; Thu, 01 Sep 2016 03:18:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=MbaxnTB694EqIZ5Ui+Ug7s6h6VSPd5myTYG/zJ7Rhk8=; b=c80M1knTWLZt/MaN689ZuKBs8B+5TiCZBkiVinjv4m4/9kAW2hkVliTkFJjiklMPQ4 Zk+bOHdX26xwTtz9w5FivegQXRasOn8yLLry4g0vOoPv0H4oqX2wJl6ebH49za0V/PTC 4nxfOieYVPMAX0iMd/LvYBy0pcXMbT87BysRg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=MbaxnTB694EqIZ5Ui+Ug7s6h6VSPd5myTYG/zJ7Rhk8=; b=awV4VB/OXImU1aEfopxB1UkpwhLgctd3VnwBCv8k1P2tHHl+YU/QY+CsqDlihI/GDo rOXaS1ZbV9pJf7JiPOqNtTNX/V1hzgsi/LgV3V7i+5ZZPPxsZ9mQ6ce1HUhquhQfDK0o 4AcJQ9FTsmeTryK9QYmps7o/R6nJUVvx1qZqYtP9e03dEa0k92OdALhzCaX4WJ6a1LvG lEH28RbP0mGZVBtflZir4FOQBFsnWkka4HOrvfYnn8cLLyodIrelCP2476YbPv7yYOUV Xl1hkKkzELJkvafjBCwpIDgydsDjaOAz8SwOKinUoYARhRm/Lrw9+Pwo0YJP57Esf+u3 rWLQ== X-Gm-Message-State: AE9vXwP35PJtszqWJs6t0BUeVdZCzaKaNXNBrxAaj+peIDh32WF6RdqLpobwIpMVOAexcuiq X-Received: by 10.66.142.197 with SMTP id ry5mr25121534pab.49.1472725094078; Thu, 01 Sep 2016 03:18:14 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.82]) by smtp.gmail.com with ESMTPSA id an11sm6311419pac.26.2016.09.01.03.18.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Sep 2016 03:18:13 -0700 (PDT) From: Baoyou Xie To: axboe@fb.com, asamymuthupa@micron.com, smani@micron.com, rsambandam@micron.com, vgunasekaran@micron.com Cc: viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] mtip32xx: mark mtip_block_release() static Date: Thu, 1 Sep 2016 18:17:43 +0800 Message-Id: <1472725063-30128-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 1 warning when building kernel with W=1: drivers/block/mtip32xx/mtip32xx.c:3689:6: warning: no previous prototype for 'mtip_block_release' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. So this patch marks it 'static'. Signed-off-by: Baoyou Xie --- drivers/block/mtip32xx/mtip32xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c index 2aca98e..88c4685 100644 --- a/drivers/block/mtip32xx/mtip32xx.c +++ b/drivers/block/mtip32xx/mtip32xx.c @@ -3686,7 +3686,7 @@ static int mtip_block_open(struct block_device *dev, fmode_t mode) return -ENODEV; } -void mtip_block_release(struct gendisk *disk, fmode_t mode) +static void mtip_block_release(struct gendisk *disk, fmode_t mode) { }