From patchwork Fri Aug 26 06:08:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 74774 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp146422qga; Thu, 25 Aug 2016 23:10:10 -0700 (PDT) X-Received: by 10.66.10.234 with SMTP id l10mr2795008pab.69.1472191810597; Thu, 25 Aug 2016 23:10:10 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s25si19498521pfj.297.2016.08.25.23.10.09; Thu, 25 Aug 2016 23:10:10 -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 S1755789AbcHZGKF (ORCPT + 27 others); Fri, 26 Aug 2016 02:10:05 -0400 Received: from mail-pf0-f177.google.com ([209.85.192.177]:33533 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750884AbcHZGKD (ORCPT ); Fri, 26 Aug 2016 02:10:03 -0400 Received: by mail-pf0-f177.google.com with SMTP id y134so25272704pfg.0 for ; Thu, 25 Aug 2016 23:09:28 -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=EiBIU2VySWK3EFAbe0WnTnK/3AZkjvH0LxinUJ/8ysM=; b=WyFIP2DGWpqf7ROy2kV5ypLzhvrS+UJfNVtdipYIS6n36M48mxX75hiwe1QOJr7WyS 2oeiO7yBlQZYcEaz7/rS/DgSdqk9nh1ftpkU6DPRa6PP3GAWXPUIlja3/K1606cHETMA tr0M8gelP4rf8JGReL6lfB8Y0RN9OZHw63MfQ= 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=EiBIU2VySWK3EFAbe0WnTnK/3AZkjvH0LxinUJ/8ysM=; b=a5vX8BDWq0OKNcl/z5lkuvMa63d5rwDrvjqzOk5ihgBgtI6SZW6XbNwo8e9ATAGApJ ifc3oix9jRQEoo0pNs8K++HZmMDPjdKohdkutN3jzizlm06RvGWJSdNy7L8nLTzrwoGJ q6vTFwz/rR9YKCby3oNn1UggWaPc5kH8ahUL54MsdYHrwzlnzy6FU5PhsREKSKyDG4Sf f5IGTG6+EJaR4bD5C9uNsBlhd8K+dsAwwdhZhmRcbzJ+OxkM6UTcBsgrkJ0Ri56DuXYJ N+cplWwy7VL700jroVVNgJC7kz3j8BeTG9b8qXy0+sCoYQbekV/s6vFyZ1SHRIZ5WrUu gNUg== X-Gm-Message-State: AE9vXwMbxG5V9Q8BY6+6Sxln6Nw87aEM/RaqCOHcDdYp1JuwqhIWaa3vLrQABR1j6qwtwT36 X-Received: by 10.98.78.138 with SMTP id c132mr2852337pfb.67.1472191767644; Thu, 25 Aug 2016 23:09:27 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.33]) by smtp.gmail.com with ESMTPSA id x66sm25109145pfb.86.2016.08.25.23.09.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Aug 2016 23:09:26 -0700 (PDT) From: Baoyou Xie To: axboe@fb.com, asamymuthupa@micron.com, smani@micron.com, rsambandam@micron.com, vgunasekaran@micron.com, viro@zeniv.linux.org.uk Cc: linux-kernel@vger.kernel.org, arnd@arndb.de, xie.baoyou@zte.com.cn, baoyou.xie@linaro.org Subject: [PATCH] fix:mtip32xx: mark symbols static where possible Date: Fri, 26 Aug 2016 14:08:53 +0800 Message-Id: <1472191733-1259-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 biuld 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) { }