From patchwork Sat Oct 29 16:29:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9404871 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5F02160588 for ; Mon, 31 Oct 2016 00:50:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 498BE28E3C for ; Mon, 31 Oct 2016 00:50:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3B66F28E41; Mon, 31 Oct 2016 00:50:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DD67128E3C for ; Mon, 31 Oct 2016 00:50:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6993B6E165; Mon, 31 Oct 2016 00:49:27 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf0-x242.google.com (mail-pf0-x242.google.com [IPv6:2607:f8b0:400e:c00::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id E5FA06E05D for ; Sat, 29 Oct 2016 16:30:04 +0000 (UTC) Received: by mail-pf0-x242.google.com with SMTP id u84so4261890pfj.1 for ; Sat, 29 Oct 2016 09:30:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5vPlmPMvKXrLaT7q2QwVqsiz047GtL7QR/zEtkPdU/o=; b=qdefMHZmNBfJD6OxHWv27l8Cqj5yosPEHJ3wvsxEsidLXCvk4UA+kmUAUbTIZJO3Hp rHmgt6V+6EAnOkGOY8OetZ00GCxCrkXnle+dkGmGSERY5/YoB2ATe4IPjGhxXZDOuegE 4kPPlV3Di/DKonzfL1VrwgpnrFIBewA3A8HMx6sjJz4sGANSTIH829OteN5RXcGo3kVJ n0DAixpO88iTuIGkx7rrJFKsO7BixAV57DcWD5VrjTHFPBsnlxCg4ejFReeSePcjL9Ts Of/VRolSgEVMAcFXRmjFoCxYx14bRMwGo8hk7HQvnxWZxkStaNFuA9wFR/pmU/xZs4Kg 88Fg== 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:mime-version :content-transfer-encoding; bh=5vPlmPMvKXrLaT7q2QwVqsiz047GtL7QR/zEtkPdU/o=; b=EUxNzDk0k563bhuqbWzsr9+7K0XTjQQNxJWkBhVEOTUl1qEH2zkQ1PSubTzbm+RdQG WMJDOl2RZr34052GiAybdyPBw5H/KwhJO0qyIYcFRi1Q2zWJzGhitkcsVH5nrZlt6P21 68J2YVLnrwR74qctIuLbJlVopup89q1M6b5/DkpYVUAQVOkj3X/Ln/tS/LMqJ0wi95PU G31oIR/t2UpDP203PwfRV5Rhebr6Md6WuR7AfN+0Y2Y+yHaKJCdy7N7HlmlwmivsTjnt 91fQelXZ5IauJwJyHOojp/Qy6b66Uj8RB2KjeRQh3/UBGmJFzNZtLVf2Xr9CqRj5a1S/ uIEw== X-Gm-Message-State: ABUngvewXIhIMBtJ5GuGbnxX2BZSip+CNp8wNJBOAb/Vdmnf2iDBGJURK0RiXBGEjatLBw== X-Received: by 10.99.169.25 with SMTP id u25mr28507509pge.6.1477758604527; Sat, 29 Oct 2016 09:30:04 -0700 (PDT) Received: from 192.168.0.37 (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id r1sm21953729pfg.56.2016.10.29.09.30.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Oct 2016 09:30:04 -0700 (PDT) From: Wei Yongjun To: Sumit Semwal Subject: [PATCH -next] dma-buf/sw_sync: fix non static symbol warning Date: Sat, 29 Oct 2016 16:29:58 +0000 Message-Id: <1477758598-6054-1-git-send-email-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 31 Oct 2016 00:48:38 +0000 Cc: linaro-mm-sig@lists.linaro.org, Wei Yongjun , dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun Fixes the following sparse warning: drivers/dma-buf/sw_sync.c:87:22: warning: symbol 'sync_timeline_create' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- drivers/dma-buf/sw_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma-buf/sw_sync.c b/drivers/dma-buf/sw_sync.c index 82e0ca4..7aa4d7b 100644 --- a/drivers/dma-buf/sw_sync.c +++ b/drivers/dma-buf/sw_sync.c @@ -84,7 +84,7 @@ static inline struct sync_pt *dma_fence_to_sync_pt(struct dma_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;