From patchwork Tue Dec 17 11:08:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Rashika Kheria X-Patchwork-Id: 302089 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 321792C0085 for ; Tue, 17 Dec 2013 22:08:27 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751369Ab3LQLIZ (ORCPT ); Tue, 17 Dec 2013 06:08:25 -0500 Received: from mail-pb0-f53.google.com ([209.85.160.53]:47893 "EHLO mail-pb0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750929Ab3LQLIY (ORCPT ); Tue, 17 Dec 2013 06:08:24 -0500 Received: by mail-pb0-f53.google.com with SMTP id ma3so6800832pbc.40 for ; Tue, 17 Dec 2013 03:08:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:content-transfer-encoding:user-agent; bh=0FA5nAg9hHCXYoWvVC0Nm10PbEpwhwj9cN8patCmCDM=; b=dYLsdWmwulrNqIJpMLqQHK8oihyTNaMcypz3tf0VoF8KCthUfolUmmUG6QxfLTDufe j+cKQhMGgTuZgyar2HaXuUnZVefJrAQjBP7SBiQ09nEyPtOYMPDUpQ2AziL9CC3uDfjn UBN+Ps0lh76/JDrmLFpomIWnItpE0MSYRLG+6tk4jkEBpt3Bwl9pZa//tlDqB9ahXFse iMbuZxDwZ4pOmwhYK2BqWTFwM3Xg9FyGp2ENyYC/YXhHh4517pcg6c8Xlg3UnSgh0gmy RsrBhH/aRhldkDKv6LsO10Mtzo9V4qVSpwj7yiNdq3CE/NZuxAVLAy8tWQQs4jlu0zYO HZ5Q== X-Received: by 10.66.144.102 with SMTP id sl6mr26055315pab.96.1387278504329; Tue, 17 Dec 2013 03:08:24 -0800 (PST) Received: from rashika ([14.98.34.241]) by mx.google.com with ESMTPSA id vn10sm33068541pbc.21.2013.12.17.03.08.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Dec 2013 03:08:23 -0800 (PST) Date: Tue, 17 Dec 2013 16:38:16 +0530 From: Rashika Kheria To: linux-kernel@vger.kernel.org Cc: Borislav Petkov , "David S. Miller" , linux-ide@vger.kernel.org, josh@joshtriplett.org Subject: [PATCH 1/2] drivers: ide: Include appropriate header file in ide-cd_verbose.c Message-ID: MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org Include appropriate header file ide-cd.h in ide-cd_verbose.c because function ide_cd_log_error() has its prototype declaration in ide-cd.h. Also, include linux/ide.h because it contains certain declarations necessary for including ide-cd.h. This eliminates the following warnings in ide-cd_verbose.c: drivers/ide/ide-cd_verbose.c:251:6: warning: no previous prototype for ‘ide_cd_log_error’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria Reviewed-by: Josh Triplett --- drivers/ide/ide-cd_verbose.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/ide/ide-cd_verbose.c b/drivers/ide/ide-cd_verbose.c index 6490a2d..f079ca2 100644 --- a/drivers/ide/ide-cd_verbose.c +++ b/drivers/ide/ide-cd_verbose.c @@ -9,7 +9,9 @@ #include #include #include +#include #include +#include "ide-cd.h" #ifndef CONFIG_BLK_DEV_IDECD_VERBOSE_ERRORS void ide_cd_log_error(const char *name, struct request *failed_command,