From patchwork Sat Sep 3 06:34:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 75340 Delivered-To: patch@linaro.org Received: by 10.140.29.8 with SMTP id a8csp1250340qga; Fri, 2 Sep 2016 23:34:43 -0700 (PDT) X-Received: by 10.66.191.2 with SMTP id gu2mr7074470pac.149.1472884483697; Fri, 02 Sep 2016 23:34:43 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fn10si15774905pab.94.2016.09.02.23.34.43; Fri, 02 Sep 2016 23:34: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 S1753217AbcICGel (ORCPT + 27 others); Sat, 3 Sep 2016 02:34:41 -0400 Received: from mail-pf0-f170.google.com ([209.85.192.170]:34880 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751057AbcICGek (ORCPT ); Sat, 3 Sep 2016 02:34:40 -0400 Received: by mail-pf0-f170.google.com with SMTP id x72so48915363pfd.2 for ; Fri, 02 Sep 2016 23:34:32 -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=7pUe/eRrs8/hjYcxHFt9u4zifHBfFER8v/YRFKnAQtw=; b=ZImMQIq9vaWGWQGoYAlejIEfQkd8BLvBp4DU9DKXb3iJVObiJu6uwH7Cl5YfWpzZNJ 4phQFZ6kRptl4lHHfyoVDgFZWLkAx4brFtqmzuavxEyOr1FC/Ok/YLcDGPrz4S4WwWe0 b6ArfGmOK4YMFjhgX3Mh6ldVRoIIZM/PXajzA= 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=7pUe/eRrs8/hjYcxHFt9u4zifHBfFER8v/YRFKnAQtw=; b=cs3zLjO13ZYClayjfj7Wmumi7SKuExyC5AePJWqBYe4nhrDC0h/ye41iiyzTlkyRDp 3AkShTLg1jWZ7t5fhJFhS+jZM3xfSoVQRU/7QmqTMvUKUmDXujEEpXafCONZWV88Uzyt pDZu1Im9leKpm8OLzk02KqtPjQEO8C7Gi+Efmpud1VknQsA8K1roZxn6/RnKrh/Q8EJc 08QhNWwP8RvrNFjloGxF78PlsIfWqe6LCbs8H2JfM/bubQFSC+ju7hrMnRDtLvnrG7oP +61XctEF/RuyjkCq2ouN3o6zoudDuhnTnqx1QKH3giF103wSK+aLuyBOr6mCzNci/t8v Efxw== X-Gm-Message-State: AE9vXwOYke1iceucx9r1LJfihfC990BUxKXIZ2SGtz/BJIerjpG1eh8QogWr8UXIvIXVND/Y X-Received: by 10.98.147.14 with SMTP id b14mr42933530pfe.103.1472884472297; Fri, 02 Sep 2016 23:34:32 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.184]) by smtp.gmail.com with ESMTPSA id 75sm18890598pfw.92.2016.09.02.23.34.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 02 Sep 2016 23:34:31 -0700 (PDT) From: Baoyou Xie To: gregkh@linuxfoundation.org, arve@android.com, riandrews@android.com Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] staging/android: mark sync_timeline_create() static Date: Sat, 3 Sep 2016 14:34:13 +0800 Message-Id: <1472884453-19941-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/staging/android/sw_sync.c:56: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 this function with 'static'. Signed-off-by: Baoyou Xie --- drivers/staging/android/sw_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/staging/android/sw_sync.c b/drivers/staging/android/sw_sync.c index 115c917..99a197c 100644 --- a/drivers/staging/android/sw_sync.c +++ b/drivers/staging/android/sw_sync.c @@ -53,7 +53,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;