From patchwork Thu Sep 8 08:46:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 75731 Delivered-To: patch@linaro.org Received: by 10.140.106.11 with SMTP id d11csp729043qgf; Thu, 8 Sep 2016 01:46:42 -0700 (PDT) X-Received: by 10.66.233.166 with SMTP id tx6mr89526487pac.120.1473324401040; Thu, 08 Sep 2016 01:46:41 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gp10si13523599pac.186.2016.09.08.01.46.40; Thu, 08 Sep 2016 01:46:41 -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 S1758625AbcIHIqi (ORCPT + 27 others); Thu, 8 Sep 2016 04:46:38 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:36137 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758596AbcIHIqg (ORCPT ); Thu, 8 Sep 2016 04:46:36 -0400 Received: by mail-pa0-f44.google.com with SMTP id id6so15353803pad.3 for ; Thu, 08 Sep 2016 01:46:36 -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=qveX/DfZKwXjkkkAhn6jBipnS89VNxECxoJfr8T5mF0=; b=H6J6Adal5nWG2lf0NTsY/1VkPK5uXOngDWC6RJ2kgmJsPfHPC4kX1PK0+sgwWbe+Uh gJASEWqq86SUMa34RapLgF9X0eIRnf8jH1TKtXoNhIVwM0+r2ZhFJrKFHr5QMDd7T/Kv 4hcFz4bEDzgC/lsL16UH+ye2dmuZqGshh99V8= 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=qveX/DfZKwXjkkkAhn6jBipnS89VNxECxoJfr8T5mF0=; b=KfSabUz8VU6a3UjQqRbOQq23jHQ/eu4xeoDIP7NYtWJWm3aBx2uP6J4YsTwrQwXfwZ 6oyI7QViwfGoXH2iDCrgiV0BoKbfCsvUSN1uItAzMPkCl/GzyIgMEuouGo0aTxIv6+RQ 5DcvadI9dkhw0/iwjVaHGyKDXMe8oXqX+9OX+MdpszDs6vIl0Q+ANFToRT1H0ElgRxZk xGljzGcvgQwBM+lVqaroSW9+tm+4YCIJpARihboln6J0YJdsRZ/OQHt6LtuGoGxGKCL0 fWVPIhMIBY9vGNTK6gk7fEd4BZW9hYV7pJFDf/oolxZ62JTNGAAL1VDSHl2BYP4jQaA3 x5SA== X-Gm-Message-State: AE9vXwMZYSGSHO3F8mGy7B8QlGL7w8cL3Z6wlQh9ylQMOoL5HRVAPzDLSe1NhHfmcC3I8Ypt X-Received: by 10.66.165.67 with SMTP id yw3mr90894089pab.8.1473324393866; Thu, 08 Sep 2016 01:46:33 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.33]) by smtp.gmail.com with ESMTPSA id i8sm30817277paw.25.2016.09.08.01.46.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Sep 2016 01:46:33 -0700 (PDT) From: Baoyou Xie To: oleg.drokin@intel.com, andreas.dilger@intel.com, gregkh@linuxfoundation.org, mhocko@suse.com, james.a.nunez@intel.com, uja.ornl@yahoo.com, arnd@arndb.de, kirill.shutemov@linux.intel.com Cc: lustre-devel@lists.lustre.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] staging/lustre/obdclass: add missing header dependencies Date: Thu, 8 Sep 2016 16:46:07 +0800 Message-Id: <1473324367-9172-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/staging/lustre/lustre/obdclass/linux/linux-sysctl.c:157:5: warning: no previous prototype for 'obd_sysctl_init' [-Wmissing-prototypes] In fact, this function is declared in ../../include/obd_class.h, so this patch add missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/staging/lustre/lustre/obdclass/linux/linux-sysctl.c | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 diff --git a/drivers/staging/lustre/lustre/obdclass/linux/linux-sysctl.c b/drivers/staging/lustre/lustre/obdclass/linux/linux-sysctl.c index 8f70dd2..2daa834 100644 --- a/drivers/staging/lustre/lustre/obdclass/linux/linux-sysctl.c +++ b/drivers/staging/lustre/lustre/obdclass/linux/linux-sysctl.c @@ -45,6 +45,7 @@ #include "../../include/obd_support.h" #include "../../include/lprocfs_status.h" +#include "../../include/obd_class.h" struct static_lustre_uintvalue_attr { struct {