From patchwork Sat Aug 27 17:31:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 74864 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp907549qga; Sat, 27 Aug 2016 10:32:43 -0700 (PDT) X-Received: by 10.98.103.70 with SMTP id b67mr17063992pfc.30.1472319163337; Sat, 27 Aug 2016 10:32:43 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si28396015paq.222.2016.08.27.10.32.42; Sat, 27 Aug 2016 10:32:43 -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 S1754753AbcH0Rcg (ORCPT + 27 others); Sat, 27 Aug 2016 13:32:36 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:33866 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754032AbcH0Rcf (ORCPT ); Sat, 27 Aug 2016 13:32:35 -0400 Received: by mail-pa0-f53.google.com with SMTP id fi15so36478635pac.1 for ; Sat, 27 Aug 2016 10:32:03 -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=ektVEMvmtrBp+tPkYUSvSyeNwss+o6nVnhFhyrkrpik=; b=UixbiOQTMRZVZ2Y+7J7b1yKEF9ivUrdcXr0QiJa/EnLl+xpysL2UgOVTwT11Wv1/jQ tlk6RLL9exrVySMvfkwSXJKOdifjKaeu0NOiQR/hh2BSAO/q8TjRV4gmyPTPLLWYtCQs yiIhfJbhviDzlWFYMgqG9bJ1ZnZY1l3WFkGh4= 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=ektVEMvmtrBp+tPkYUSvSyeNwss+o6nVnhFhyrkrpik=; b=RW8ZtOFPQcM/mDM62xmajd+fIG24RMICAnAoZzIMAGyjwCO87fYs2NSoXv9TIPq2wa acrM6rlhvIszMwtjgcSVE8AjhIBZq+kwoE2iJYbKV2Jd7HCHPEMxWTdORkQAe3Z13vV3 lXluARtZZFhKl0fjL4MO+zk6+QaSIwJ3rCJg2Sn1CrVU8/wB3MMLxowksZzG9suiZZ1s 7m2ZdZGGiW1lAVrgfolBlT0rxatVA+0QezsKUtYpZ7ioDF6ocNw9Fa+4s5UlODcATj8W 8yoO5tPpEyyU3esncWspxBIqVbloVCLYKqmEc/t77qOg8hkD+kdWg5FEpeCkae2++WlG vW7Q== X-Gm-Message-State: AE9vXwMXNVOvzv00jDSMMZqyq3O+E7eGOhYklBOydwEMOgEhQDf9i9S2AJBZ4HK2wDIeDPR8 X-Received: by 10.66.229.9 with SMTP id sm9mr16845006pac.138.1472319122587; Sat, 27 Aug 2016 10:32:02 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.142]) by smtp.gmail.com with ESMTPSA id o5sm37515229pfb.9.2016.08.27.10.31.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 27 Aug 2016 10:32:02 -0700 (PDT) From: Baoyou Xie To: gregkh@linuxfoundation.org, dan.carpenter@oracle.com Cc: linux-kernel@vger.kernel.org, arnd@linaro.org, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] fix:memory:of_memory:add missing header dependencies Date: Sun, 28 Aug 2016 01:31:28 +0800 Message-Id: <1472319088-18701-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 2 warnings when biuld kernel with W=1: drivers/memory/of_memory.c:30:30: warning: no previous prototype for 'of_get_min_tck' [-Wmissing-prototypes] drivers/memory/of_memory.c:106:30: warning: no previous prototype for 'of_get_ddr_timings' [-Wmissing-prototypes] In fact, these functions are declared in drivers/memory/of_memory.h so this patch add missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/memory/of_memory.c | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 diff --git a/drivers/memory/of_memory.c b/drivers/memory/of_memory.c index 9daf94b..568f05e 100644 --- a/drivers/memory/of_memory.c +++ b/drivers/memory/of_memory.c @@ -16,6 +16,7 @@ #include #include #include +#include "of_memory.h" /** * of_get_min_tck() - extract min timing values for ddr