From patchwork Wed Aug 31 09:13:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 75054 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp227385qga; Wed, 31 Aug 2016 02:13:56 -0700 (PDT) X-Received: by 10.98.5.133 with SMTP id 127mr15015823pff.40.1472634836403; Wed, 31 Aug 2016 02:13:56 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g79si49989316pfb.219.2016.08.31.02.13.55; Wed, 31 Aug 2016 02:13:56 -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 S1759664AbcHaJNv (ORCPT + 27 others); Wed, 31 Aug 2016 05:13:51 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:32795 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757955AbcHaJNt (ORCPT ); Wed, 31 Aug 2016 05:13:49 -0400 Received: by mail-pa0-f44.google.com with SMTP id cy9so16870532pac.0 for ; Wed, 31 Aug 2016 02:13:48 -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=g5/Exky6QuR+FlPrsj9L1h8AJ8Or6TIV/4moU6C6wLA=; b=ajGPU70fmdXtjwfcrmFMy6FzRJ6nX5GTtSnzQYO1j6b8vn2dOY8lZFpAq4Uw7OmqMh lO0hFo/+nrv6vuy+itEp3JdOCGeVR6fzc915L37A9t+7gOvvm4UiDxeD++GBXbaHvMPS be0Y0B1tPM4QfiO3Ug67Ny+KpvHH7eTv4+QNw= 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=g5/Exky6QuR+FlPrsj9L1h8AJ8Or6TIV/4moU6C6wLA=; b=ZVcj7WEUIYTsF8sKI1ua5OR94cS1KFG31/tSwlKyfNuFXzhSXqApw0AMg32GIrhEQE ssE9GOdmXRguZ90hny/El2JBYX4zfOiWHil+TniT4YU7MLMPC1AF8SIi7JjgY/idkAno hVC/Poh2UVqoBNY8adVrNJAMEUKbvH3gNHMEFHad1RwKIXNFQ1p7CCKLL6VvxedXigsF w5KXgRsoLmVi6Eo8lKRyrYfgLU57UaWXoIQi8DehfnCtjsM3rhWzfDMIT/0PxywX4jYu Br6jNosYBvshqWLmK/RiMicnIC9S6h+ItO7RwteI28oM90UKhqdPONtsZDSptyQT9qmq XxVw== X-Gm-Message-State: AE9vXwP90qaCjszKwGk8jOnzA60D4AScSvFl0a5ix43s8eKfc5+jx9Tls0WMyfyFj/7J0Q6x X-Received: by 10.66.189.104 with SMTP id gh8mr14784437pac.125.1472634828311; Wed, 31 Aug 2016 02:13:48 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.37]) by smtp.gmail.com with ESMTPSA id x184sm63240692pfd.70.2016.08.31.02.13.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 Aug 2016 02:13:47 -0700 (PDT) From: Baoyou Xie To: linux-kernel@vger.kernel.org Cc: arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] RAS: debugfs: add missing header dependencies Date: Wed, 31 Aug 2016 17:13:26 +0800 Message-Id: <1472634806-11905-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 3 warnings when building kernel with W=1: drivers/ras/debugfs.c:8:5: warning: no previous prototype for 'ras_userspace_consumers' [-Wmissing-prototypes] drivers/ras/debugfs.c:38:12: warning: no previous prototype for 'ras_add_daemon_trace' [-Wmissing-prototypes] drivers/ras/debugfs.c:54:13: warning: no previous prototype for 'ras_debugfs_init' [-Wmissing-prototypes] In fact, these functions are declared in include/linux/ras.h, so this patch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/ras/debugfs.c | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 Acked-by: Arnd Bergmann diff --git a/drivers/ras/debugfs.c b/drivers/ras/debugfs.c index 0322acf..627f6107 100644 --- a/drivers/ras/debugfs.c +++ b/drivers/ras/debugfs.c @@ -1,4 +1,5 @@ #include +#include static struct dentry *ras_debugfs_dir;