From patchwork Sun Sep 18 12:49:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76465 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp513436qgf; Sun, 18 Sep 2016 05:49:54 -0700 (PDT) X-Received: by 10.98.34.66 with SMTP id i63mr38638329pfi.130.1474202994205; Sun, 18 Sep 2016 05:49:54 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 142si745300pfy.166.2016.09.18.05.49.53; Sun, 18 Sep 2016 05:49:54 -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 S933523AbcIRMtv (ORCPT + 27 others); Sun, 18 Sep 2016 08:49:51 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:34568 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932700AbcIRMtn (ORCPT ); Sun, 18 Sep 2016 08:49:43 -0400 Received: by mail-pa0-f42.google.com with SMTP id wk8so39777443pab.1 for ; Sun, 18 Sep 2016 05:49:43 -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=YlvrNUaSiB50VjGFvn+mv+YLbjWK/TqKIOxfgh0Slsw=; b=JQSd5wfYUTRlKGKlKKEh340VNbNUiqcdrzqwlOrtaKHtKnwI37UVIkALSmdkPYMP+m CX1x5kAYDtDuE6fvYOF4tTUJdYcFvesTvzCck4brS4/mRf5LYQqoMlugsj/oCGhvEezd aDx3pEQmLqIKjPF5BwGvBiHlVC5zQyT6/X3yk= 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=YlvrNUaSiB50VjGFvn+mv+YLbjWK/TqKIOxfgh0Slsw=; b=Ty8UwBYr9a6vlnkldVvt99agIrW+IBPHk2PxbvJu3xn1aA1s3ubrE1ahYO3erX4YMg 5iL4D+ZVw4nWVHdpr4djvhqtirAiJefD9soG5e58ddzHfXbR32h2uZD6Yn8DFA+nH93V dQqNCir4G/DtOMGNT6ujr167A7FR1ARoAf30NhTY4lYr1RfrQIcMisEXdKp7dCwU0Pfq cusz3saiZ6fQbxn4o0WWHS3IStv+eMjPBFzrpSmu7456VYC/M6xHoX7B17nG8TBMspUI NCQj66orwuvUXjzuK55JoZQyAzMlfHIYxZuq84EMcD1yHi6nRGWzIAhKqv2FZe+MVIxX ZNyA== X-Gm-Message-State: AE9vXwMsN81W/Ia3AqOSGuowROITNz+BDVQgxQNnNQ6xyDDyopdwGEbPrBbSS1bb8eImPEZ2 X-Received: by 10.66.155.129 with SMTP id vw1mr38748290pab.148.1474202982262; Sun, 18 Sep 2016 05:49:42 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.27]) by smtp.gmail.com with ESMTPSA id h123sm64438666pfe.69.2016.09.18.05.49.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 18 Sep 2016 05:49:41 -0700 (PDT) From: Baoyou Xie To: sumit.semwal@linaro.org Cc: linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] dma-buf/sw_sync: mark sync_timeline_create() static Date: Sun, 18 Sep 2016 20:49:21 +0800 Message-Id: <1474202961-10099-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/dma-buf/sw_sync.c:87:23: warning: no previous prototype for 'sync_timeline_create' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. So this patch marks it 'static'. Signed-off-by: Baoyou Xie --- drivers/dma-buf/sw_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/dma-buf/sw_sync.c b/drivers/dma-buf/sw_sync.c index 62e8e6d..6f16c85 100644 --- a/drivers/dma-buf/sw_sync.c +++ b/drivers/dma-buf/sw_sync.c @@ -84,7 +84,7 @@ static inline struct sync_pt *fence_to_sync_pt(struct fence *fence) * Creates a new sync_timeline. Returns the sync_timeline object or NULL in * case of error. */ -struct sync_timeline *sync_timeline_create(const char *name) +static struct sync_timeline *sync_timeline_create(const char *name) { struct sync_timeline *obj;