Received: by 10.192.165.148 with SMTP id m20csp359838imm; Wed, 25 Apr 2018 00:13:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/YzCq8Zy3iBTQNR4B0AEmZrr/fP2d9aCXLkMcM733ghqFkOuypTz5dG3AjITSEAF/yEs8s X-Received: by 10.99.51.137 with SMTP id z131mr22920252pgz.386.1524640384125; Wed, 25 Apr 2018 00:13:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524640384; cv=none; d=google.com; s=arc-20160816; b=fITAn12J1ma9JlefmbAKpQ2RABZXMDjesRBHxYL2q95yqgmC+Jmov1DJ6/1P/UyFHj YLgupOV1JH/nF6GfpLC/0MOJIDYYPwWPtpQwc8k9F7pFl7uJuy9jfkwmqz8MT7bvbd7u 3UzoGxTJPiY9An3NTyA0oR1bGwyf4E5MffZZe9qVcADZ4AwR6FiqTEDPDiGtq75S9DT0 IA5Px7vw1/PXkymXUAO17WB3DT5Z2AObqL23ZETkzNj2f2s3xBLrpqY/hetjnPfBiN5S cFrsWMAFO67O6j80JSJvKqyKSNjH+Bg9/PiaGr6Rb/HpTIDM/+DQ4TAzQ+x5F7KpXV6x Ol7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=GjANzz2XaaeBl33dLYNIE3f2loLXogjdM85INZ2opWQ=; b=EM1V5JeyBhDyxg7AmK4GE18z+pxUBgyrvG7cIRWxgXJoi8eJP5DD9zi4u+yw5dTOpA aO+Q3Iu4u6Cp4zaroB2ymLS51ABZcurGMEl/nT9+89dyFitwOIyPipEXACfOMSCV3o5g AmQJQM15Byri0lfgu4nbCfejGsxjBaFRg/0bDubyy78yOEUCeswuAb+WTb/BSQZfUeqD kD8C/HVGyh3ci+XIpMkVC8hISUt6qyEbd/8ehJe4GIll844QC959Gxlwy+iaQmdQMojO 3CYdvdPGrupGTPKWeOxyzkNBkt17fRRZDPxKrlyaMumVqLvWN7neQ4/bj+Pkv6uta3zv 3p8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WPhU1WUT; 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 sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x12-v6si16194992plo.28.2018.04.25.00.12.49; Wed, 25 Apr 2018 00:13:04 -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=@gmail.com header.s=20161025 header.b=WPhU1WUT; 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 sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751408AbeDYHLn (ORCPT + 99 others); Wed, 25 Apr 2018 03:11:43 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:38934 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750841AbeDYHLl (ORCPT ); Wed, 25 Apr 2018 03:11:41 -0400 Received: by mail-pg0-f66.google.com with SMTP id b9so12674262pgf.6 for ; Wed, 25 Apr 2018 00:11:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=GjANzz2XaaeBl33dLYNIE3f2loLXogjdM85INZ2opWQ=; b=WPhU1WUTYrueUUKoMzZUNG7RE+k2XVdp3u2NExmjVgMBQVIMTXY3cyqQK55o3futpI kpDa+GfTQEwMJcFWne6isZGC3ZgXR8BBkmQxMU3EoTysZruLFx6v/D8gE9vedA6xM+a4 v0E6VPLnFahlG3bLfTEtklvm9eIrDgQYXANZLQjJ9pqArAGS9JoaqpfZUpBdlrbD1ryw EV+cHGMmo9EsuaKDKBchD47Cr799xl7yhVtRWXPCMbuaX+DyT1fMT8AaOuHxMyI+APAL 0i3LgTKyJYDIiZ2Ojoyi675yvyE/r4RPdxWsbsXxa/zX7pHNhAPhNlx2kJkuFGEA4wql G9UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=GjANzz2XaaeBl33dLYNIE3f2loLXogjdM85INZ2opWQ=; b=Ko4le7KBYNApKfA012wMaQK1/tphxgfIGqiDIgibbnFem9Db2JY5fh/Gzls7Y9cBy8 hO2EbB9OKdS4MsWVislDd/9LxIjwwTUCpkmHyS/MJkJVaCyK989CRAX2WglMVjL1SmXR L41ym2RF/ZThxryL4KeuZ1eWvNpWAJSQ45ASkn/5XNkNm+SvP3y3TCcH1RGbUXFOCfiw 0OLBa/grtp+VsIf6r9DTVm19k9sRqMagoxAkSEU5ZXYUEfLdf77J3mS66Qx6IVc0e9O6 h0Qgvd1hQqFbHLj05cypexEEciy3+AfyU85C6bVkPWBOiaZCljqMRE58tOqaquN7swQb m59w== X-Gm-Message-State: ALQs6tBFPSWbyXHHk5Kw9Qqb+lx0KoemEUzU0R0Ympg1VHMrU+/Bo5c9 Sw1JoJR0O9k7ZQi3wiCAMM2YUGt3BMQ= X-Received: by 10.99.97.16 with SMTP id v16mr22572782pgb.292.1524640300592; Wed, 25 Apr 2018 00:11:40 -0700 (PDT) Received: from localhost.localdomain ([103.252.26.212]) by smtp.gmail.com with ESMTPSA id n7sm28930095pff.149.2018.04.25.00.11.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Apr 2018 00:11:39 -0700 (PDT) From: Vaishali Thakkar To: eric@anholt.net Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Vaishali Thakkar Subject: [PATCH] drm/vc4: make function vc4_allocate_bin_bo static Date: Wed, 25 Apr 2018 12:39:53 +0530 Message-Id: <20180425070953.17933-1-vthakkar1994@gmail.com> X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sparse complains with following warning: drivers/gpu/drm/vc4/vc4_v3d.c:222:1: warning: symbol 'vc4_allocate_bin_bo' was not declared. Should it be static? Make vc4_allocate_bin static as it is not used outside of vc4_v3d.c. Signed-off-by: Vaishali Thakkar --- drivers/gpu/drm/vc4/vc4_v3d.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_v3d.c b/drivers/gpu/drm/vc4/vc4_v3d.c index bfc2fa73d2ae..e47e29426078 100644 --- a/drivers/gpu/drm/vc4/vc4_v3d.c +++ b/drivers/gpu/drm/vc4/vc4_v3d.c @@ -218,8 +218,7 @@ int vc4_v3d_get_bin_slot(struct vc4_dev *vc4) * overall CMA pool before they make scenes complicated enough to run * out of bin space. */ -int -vc4_allocate_bin_bo(struct drm_device *drm) +static int vc4_allocate_bin_bo(struct drm_device *drm) { struct vc4_dev *vc4 = to_vc4_dev(drm); struct vc4_v3d *v3d = vc4->v3d; -- 2.14.1