From patchwork Mon Nov 19 11:00:40 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 12922 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id C9F0623DFE for ; Mon, 19 Nov 2012 11:06:48 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 712A8A18EC4 for ; Mon, 19 Nov 2012 11:06:48 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so6236940iej.11 for ; Mon, 19 Nov 2012 03:06:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=BRzOiAgkxm/wIbvC1pgtARx1vSji64+fieENTPBSeK4=; b=TNV8kcjzPOXjHWrtT0H09foXVoGcoTkkFUb0jVoihAL28t23LGhfTXd75/osA9C0fx o3cA5bGirmvUh4O/jfo4gP9Y7pN20uTI7SOkWpkhYOVuufBSblH+5OEJpYY2//yqzgF5 6xub8jggqKU8z766f5/EtcWgSjpMrhTdedBSg3GgjWgGiEEZ2WD3O7/uSHaIsi04W089 zd/ZOTyzY8rqjf4RVCjxicQ8GZ7zEjbUvhhl9l+tJ8IW7hABQnjySdXZ9eKjmbFX+ncX pn48Wn32V7DA/x/uxrAbL8q2agLsaKqnOJOiIdDMQ+6FOSRAVt2U4a/K4APpHVRNTzmX udUg== Received: by 10.50.173.34 with SMTP id bh2mr6104908igc.70.1353323207925; Mon, 19 Nov 2012 03:06:47 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp142642igt; Mon, 19 Nov 2012 03:06:47 -0800 (PST) Received: by 10.66.84.132 with SMTP id z4mr34614956pay.63.1353323207076; Mon, 19 Nov 2012 03:06:47 -0800 (PST) Received: from mail-pa0-f45.google.com (mail-pa0-f45.google.com [209.85.220.45]) by mx.google.com with ESMTPS id k9si13029286pay.33.2012.11.19.03.06.46 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Nov 2012 03:06:47 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.45 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.220.45; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.45 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) smtp.mail=tushar.behera@linaro.org Received: by mail-pa0-f45.google.com with SMTP id bg2so882550pad.32 for ; Mon, 19 Nov 2012 03:06:46 -0800 (PST) Received: by 10.66.85.10 with SMTP id d10mr34608245paz.52.1353323206608; Mon, 19 Nov 2012 03:06:46 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id ni3sm6068218pbc.2.2012.11.19.03.06.43 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Nov 2012 03:06:45 -0800 (PST) From: Tushar Behera To: linux-kernel@vger.kernel.org Cc: axboe@kernel.dk, patches@linaro.org Subject: [PATCH] block: Fix sparse warning Date: Mon, 19 Nov 2012 16:30:40 +0530 Message-Id: <1353322840-2881-1-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQkm2+pprU9w+TY2/jRO4Y80rQWEmj4LQbXbFgoytTFu6j9Td7AfmJCBfHZzHodjREhrbIa9 blk_drain_queue is only used in this file, so should be marked static. Fixes following sparse warning. block/blk-core.c:361:6: warning: symbol 'blk_drain_queue' was not declared. Should it be static? Signed-off-by: Tushar Behera --- block/blk-core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/block/blk-core.c b/block/blk-core.c index a8b1527..5db63eb 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -358,7 +358,7 @@ EXPORT_SYMBOL(blk_put_queue); * If not, only ELVPRIV requests are drained. The caller is responsible * for ensuring that no new requests which need to be drained are queued. */ -void blk_drain_queue(struct request_queue *q, bool drain_all) +static void blk_drain_queue(struct request_queue *q, bool drain_all) { int i;