From patchwork Sat Oct 22 09:41:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 78788 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp1703623qge; Sat, 22 Oct 2016 02:45:11 -0700 (PDT) X-Received: by 10.99.39.130 with SMTP id n124mr7937595pgn.85.1477129511181; Sat, 22 Oct 2016 02:45:11 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l18si6239489pfi.186.2016.10.22.02.45.10; Sat, 22 Oct 2016 02:45:11 -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 S965020AbcJVJo6 (ORCPT + 27 others); Sat, 22 Oct 2016 05:44:58 -0400 Received: from mail-pf0-f175.google.com ([209.85.192.175]:34156 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S938588AbcJVJon (ORCPT ); Sat, 22 Oct 2016 05:44:43 -0400 Received: by mail-pf0-f175.google.com with SMTP id r16so70657329pfg.1 for ; Sat, 22 Oct 2016 02:44: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:in-reply-to:references; bh=obr7z6Rc5PDc1BRLTEnh0x9AgZRS8aZIO/V6DuZQVMY=; b=iUe1AGIQRRrVzXbE2rsN55PfDJvZeZ8yhqjPl16vTZbMVEEKysLiP/4Pfv+6JajUwo 9eBVQlPcnRj8AEZ93vrMgnGS8lXE7tu8e9576Jpbfdq+PBQFxD5A1iGaxLI1XZWy3xAE NTPGGWq4mGgN6cfuyTx60iWJW+3EiM1uFNzaU= 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:in-reply-to :references; bh=obr7z6Rc5PDc1BRLTEnh0x9AgZRS8aZIO/V6DuZQVMY=; b=kJdNrn9tqHkYOZI/uJvhRBY0Ll0h9Yb4f5cjKrupk6rl3L6fH24erLBYJIAacfsEMJ 1VNQhbDEb+REHRdYV6TccsXcWx9Js+y0XU6SVZh/MgSPvvw/tCtyR0rpxG2CMHr9FpDt VjlzKnmxe65KpyP2PVN/BhVhLOFKYq3V4JzoJ3vy++8R3uODypJhCWjVumDIZHiky4EP /zMIfSy6HmJIkEsUGlizuLW5Eo10kBlNFdSQlCJrMQkQ+QpysbafKQm136LqTG+YzMZO 6zAIh76zBeuJT7KLrZjxX0FZsoWqRUKyn7cVMJ7Jr4a0YniXLKpmY+y6w6d1+dsrQrmu AK9Q== X-Gm-Message-State: ABUngvexITI7oViHTMBV8pJoN5BVVqcrxYzWLDW5yxLgGHO3qd6QZqmFFn72r7XThKmEztU1 X-Received: by 10.98.208.3 with SMTP id p3mr9691188pfg.125.1477129482977; Sat, 22 Oct 2016 02:44:42 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.92]) by smtp.gmail.com with ESMTPSA id g9sm10923953paw.40.2016.10.22.02.44.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 22 Oct 2016 02:44:42 -0700 (PDT) From: Baoyou Xie To: bskeggs@redhat.com, airlied@linux.ie, acourbot@nvidia.com, imirkin@alum.mit.edu, Julia.Lawall@lip6.fr, martin.peres@free.fr, rspliet@eclipso.eu, nouveau@karolherbst.de Cc: dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn, han.fei@zte.com.cn, tang.qiang007@zte.com.cn Subject: [PATCH 15/17] drm/nouveau/pm: mark symbols static where possible Date: Sat, 22 Oct 2016 17:41:56 +0800 Message-Id: <1477129318-29677-15-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477129318-29677-1-git-send-email-baoyou.xie@linaro.org> References: <1477129318-29677-1-git-send-email-baoyou.xie@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 2 warnings when building kernel with W=1: drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c:75:1: warning: no previous prototype for 'nvkm_perfsig_find' [-Wmissing-prototypes] drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c:703:1: warning: no previous prototype for 'nvkm_perfsrc_new' [-Wmissing-prototypes] In fact, both functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c b/drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c index 8616636..dde89a4 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c @@ -71,7 +71,7 @@ nvkm_perfdom_find(struct nvkm_pm *pm, int di) return NULL; } -struct nvkm_perfsig * +static struct nvkm_perfsig * nvkm_perfsig_find(struct nvkm_pm *pm, u8 di, u8 si, struct nvkm_perfdom **pdom) { struct nvkm_perfdom *dom = *pdom; @@ -699,7 +699,7 @@ nvkm_pm_oclass_get(struct nvkm_oclass *oclass, int index, return 1; } -int +static int nvkm_perfsrc_new(struct nvkm_pm *pm, struct nvkm_perfsig *sig, const struct nvkm_specsrc *spec) {