From patchwork Mon Sep 12 10:30:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 75983 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp779513qgf; Mon, 12 Sep 2016 03:32:25 -0700 (PDT) X-Received: by 10.98.159.26 with SMTP id g26mr14416810pfe.137.1473676345539; Mon, 12 Sep 2016 03:32:25 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fx20si21096583pab.220.2016.09.12.03.32.25; Mon, 12 Sep 2016 03:32:25 -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 S932779AbcILKcW (ORCPT + 27 others); Mon, 12 Sep 2016 06:32:22 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:34202 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932275AbcILKcU (ORCPT ); Mon, 12 Sep 2016 06:32:20 -0400 Received: by mail-pa0-f52.google.com with SMTP id to9so49685322pac.1 for ; Mon, 12 Sep 2016 03:32:20 -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=mmrZINoLIaMe5uyUX63kvfygr+hgwkJ+tm/kTq4BnZY=; b=RtgdqvSlhgG9xem0Oh9a4cSvBPp+T+jq46BwL8/x68gI2Luf1/BnrYpwtzVI7xzl7L dQhIOXvORHifc004+sCFiH6JW9jk50SBYGXTwN4pr/w2+md41RUiCS3lF0DNpi22xP5q 87SW5gNi77TZqb0HJcVR1PjUxICaQbr1QQ1j8= 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=mmrZINoLIaMe5uyUX63kvfygr+hgwkJ+tm/kTq4BnZY=; b=IhFvNABeGT/9vshEECLOJ4qeDQobBoYxv6aZZgqcfaBez88mMAnpYZGAs0vzueUXHH Unx7a2aTpYMqvU749XkiMS/0kgSpwrB4p+DNNm9kMeOj0SJeoXu9d5+kv+yLlV+FVtP/ aA+6jxhmcJzYZu4wRpJNhYHIlYq06Gy2A7HG2iZS4hsseymGy+cQRXEHYf41BB1b0PE2 VVclNpOuxQcKm/8zG7c+FoAB3emZtMu+4v/L4lN82hVpHHxjSsAbdpk6ZfqmNFodv6R4 3PIF3kfNvWVr4E4JoChKGySvwFdMXikh0tdZYFy6mREg7/WqdUfGBnoB5AgMFc/Shyes qFsw== X-Gm-Message-State: AE9vXwOMKNIfMQBrwom6eolPOKOtyiiR9ODVFRBs9Kz/B7Y8SqHlFC4HvUn9Ok38Llj2Bbow X-Received: by 10.66.253.101 with SMTP id zz5mr32162761pac.32.1473676339716; Mon, 12 Sep 2016 03:32:19 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.152]) by smtp.gmail.com with ESMTPSA id ps2sm23577520pab.10.2016.09.12.03.31.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Sep 2016 03:32:19 -0700 (PDT) From: Baoyou Xie To: will.deacon@arm.com, suzuki.poulose@arm.com, olof@lixom.net, mark.rutland@arm.com, bigeasy@linutronix.de, a.hajda@samsung.com Cc: linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] arm-cci: add cci_enable_port_for_self() declaration in arm-cci.h Date: Mon, 12 Sep 2016 18:30:53 +0800 Message-Id: <1473676253-10779-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/bus/arm-cci.c:2027:25: warning: no previous prototype for 'cci_enable_port_for_self' [-Wmissing-prototypes] In fact, this function is used in a few files, but should be declared in a header file. So this patch adds the declaration in arm-cci.h. Signed-off-by: Baoyou Xie --- include/linux/arm-cci.h | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.4 diff --git a/include/linux/arm-cci.h b/include/linux/arm-cci.h index 521ec1f..b88f6fb 100644 --- a/include/linux/arm-cci.h +++ b/include/linux/arm-cci.h @@ -30,8 +30,10 @@ struct device_node; #ifdef CONFIG_ARM_CCI extern bool cci_probed(void); +extern asmlinkage void __naked cci_enable_port_for_self(void); #else static inline bool cci_probed(void) { return false; } +static inline void ci_enable_port_for_self(void) { return; } #endif #ifdef CONFIG_ARM_CCI400_PORT_CTRL