From patchwork Sat Sep 24 04:33:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76909 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp184465qgf; Fri, 23 Sep 2016 21:34:08 -0700 (PDT) X-Received: by 10.98.82.200 with SMTP id g191mr18414041pfb.84.1474691648091; Fri, 23 Sep 2016 21:34:08 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hk2si11400882pac.93.2016.09.23.21.34.07; Fri, 23 Sep 2016 21:34:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754294AbcIXEeF (ORCPT + 4 others); Sat, 24 Sep 2016 00:34:05 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:34341 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753235AbcIXEeD (ORCPT ); Sat, 24 Sep 2016 00:34:03 -0400 Received: by mail-pf0-f174.google.com with SMTP id p64so48184135pfb.1 for ; Fri, 23 Sep 2016 21:34: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=YlvrNUaSiB50VjGFvn+mv+YLbjWK/TqKIOxfgh0Slsw=; b=AtgD/HHa7G5UIsITIX0TiHVLoVv+b2fUmQ09ldDfzFAgiwlekhWouf4iuIiKiOsx9v yBN46BQnted1O+/n28COYAe9YR57j+NDOkOeBUhl1edaUCt8JN+qn+fmEMgRnGHZxbJO bTzK363YiE/OrajS7xiFGL9sqyE5arx22JePE= 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=DXWwV07rVVLL+KvFRUJHTQqlsGFFzuBFOuPw1BDQF+bDuNpl6Yn5F1XIvTCLIPoONT jooznGbhoCEqcBV7fbrgKosACdCkVJHQnKJzaUveZUjb7yA0bx5cpLOVajou4E4MPvhP 15JNYzi+W2vVocj6fO5xUT6A+E7UAMJ5ikl1BE3WZX+kHS4G/IJVNy7yTJ+dBfNmo+FF rkUshDWozyzZe56kILjpbgexrWdYjx95bTScJ3z1E21B25XtP1tIipH312SJ+J5hAtNj PBtcrjA1EGMyzqM4AodedPpNCIzinH15u2YHhKotbuzH5IZ0+RWJbteS3TqVg62KOB/J UeHg== X-Gm-Message-State: AE9vXwOVqYBHJLqvQl/O8xCAA+jwdeKPF0wP5AiAzuH1SrR77PGoYgkyfeTpkZkzQyvKwYPj X-Received: by 10.98.71.5 with SMTP id u5mr18207454pfa.98.1474691643186; Fri, 23 Sep 2016 21:34:03 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.27]) by smtp.gmail.com with ESMTPSA id m5sm14748157paw.40.2016.09.23.21.33.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Sep 2016 21:34:02 -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: Sat, 24 Sep 2016 12:33:46 +0800 Message-Id: <1474691626-7037-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@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 -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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;