From patchwork Sat Sep 24 05:11:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76914 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp194743qgf; Fri, 23 Sep 2016 22:12:13 -0700 (PDT) X-Received: by 10.66.246.13 with SMTP id xs13mr9934199pac.57.1474693933543; Fri, 23 Sep 2016 22:12:13 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q24si11581789pfj.45.2016.09.23.22.12.13; Fri, 23 Sep 2016 22:12:13 -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 S1759532AbcIXFML (ORCPT + 27 others); Sat, 24 Sep 2016 01:12:11 -0400 Received: from mail-pf0-f170.google.com ([209.85.192.170]:33198 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753106AbcIXFMJ (ORCPT ); Sat, 24 Sep 2016 01:12:09 -0400 Received: by mail-pf0-f170.google.com with SMTP id 21so48253128pfy.0 for ; Fri, 23 Sep 2016 22:12:09 -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=0HlUrvtr6g4+aZR9R4/lFKXaMJDQ/JkdeqS7SvCwrZQ=; b=YEj4xi7XDEnF7cb8HXhLY6fYJjZtnFd3s2RyGqXDXgvqUKEudCFR1SEEuj4ptbTN8h 5Go3lousLlwNmjd3dV2SZbz11TfWLThlPrqdy1W1OKMw6bkO3DCfD5sRG6xVgJwEbSZw sL/ZYnTB/xJMVDEGzvIJvrj2QnaJHqyqLyNNo= 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=0HlUrvtr6g4+aZR9R4/lFKXaMJDQ/JkdeqS7SvCwrZQ=; b=Ny7mqrevHM8RaDwWExG4v7CbqnZ6fXXzw8OcS/bOa6VURL+3RWrVerW0wuqU0WWFfn jjLrBhH0lTZIp0Xc2L88BIFbS/zUWKxDNIUob1wpq7DNf8vcjcFcEWvgEPDsVT/eCMOs 77IVa5wqla5XkKIsYitzIWVJ5X5yJ3FJYlJT2xmhD9MXASAT6BdqQ2hR8WaVDm3uApZs HqzV3GlZ3MOsznvj2AkZZ5rvEXNvQb1CbpSUcm0nXvujADLOXMoBPNhkNZqeDKoqvTEP 30yEWC5LFg8hUf/Gko2rZLy0txjt/zzLNojs4K02QDvBmvXjIp6eJVe/k/XSbJuGfn3U EFXw== X-Gm-Message-State: AE9vXwMZk2rskxELZ66tLuuVj2CeJmTimFmGWUUSBf3H+tm+Fh0mR7MGFfcZeyanmB2MNIHA X-Received: by 10.98.147.195 with SMTP id r64mr18591319pfk.32.1474693928861; Fri, 23 Sep 2016 22:12:08 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.27]) by smtp.gmail.com with ESMTPSA id an11sm15033366pac.26.2016.09.23.22.12.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Sep 2016 22:12:08 -0700 (PDT) From: Baoyou Xie To: sre@kernel.org Cc: linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] HSI: omap_ssi_core: move function declaration to header file Date: Sat, 24 Sep 2016 13:11:56 +0800 Message-Id: <1474693916-11789-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/hsi/controllers/omap_ssi_core.c:181:6: warning: no previous prototype for 'ssi_waketest' [-Wmissing-prototypes] In fact, this function is declared in drivers/hsi/clients/ssi_protocol.c, but should be declared in a header file. So this patch moves the function declaration to include/linux/hsi/hsi.h. Signed-off-by: Baoyou Xie --- drivers/hsi/clients/ssi_protocol.c | 2 -- include/linux/hsi/hsi.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/hsi/clients/ssi_protocol.c b/drivers/hsi/clients/ssi_protocol.c index 6031cd1..fe86444 100644 --- a/drivers/hsi/clients/ssi_protocol.c +++ b/drivers/hsi/clients/ssi_protocol.c @@ -45,8 +45,6 @@ #include #include -void ssi_waketest(struct hsi_client *cl, unsigned int enable); - #define SSIP_TXQUEUE_LEN 100 #define SSIP_MAX_MTU 65535 #define SSIP_DEFAULT_MTU 4000 diff --git a/include/linux/hsi/hsi.h b/include/linux/hsi/hsi.h index 5740254..676a656 100644 --- a/include/linux/hsi/hsi.h +++ b/include/linux/hsi/hsi.h @@ -161,6 +161,7 @@ static inline void *hsi_client_drvdata(struct hsi_client *cl) int hsi_register_port_event(struct hsi_client *cl, void (*handler)(struct hsi_client *, unsigned long)); int hsi_unregister_port_event(struct hsi_client *cl); +void ssi_waketest(struct hsi_client *cl, unsigned int enable); /** * struct hsi_client_driver - Driver associated to an HSI client