From patchwork Sat Oct 22 09:41:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 78783 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp1703405qge; Sat, 22 Oct 2016 02:44:09 -0700 (PDT) X-Received: by 10.98.11.21 with SMTP id t21mr9709839pfi.131.1477129449862; Sat, 22 Oct 2016 02:44:09 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 134si6229297pgc.317.2016.10.22.02.44.09; Sat, 22 Oct 2016 02:44:09 -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 S964976AbcJVJoE (ORCPT + 27 others); Sat, 22 Oct 2016 05:44:04 -0400 Received: from mail-pf0-f182.google.com ([209.85.192.182]:34034 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936506AbcJVJoA (ORCPT ); Sat, 22 Oct 2016 05:44:00 -0400 Received: by mail-pf0-f182.google.com with SMTP id r16so70650235pfg.1 for ; Sat, 22 Oct 2016 02:43:55 -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=QmFJVLo9Mo79/NVjZ8w9pd7PjLmczY685QxCSNaSjAw=; b=iyxtMq9/1gwmJdajdmakPnPkMhcq4TwaBd7t6anqv0Q1/9BOJFQqBJmJ8/svz2FrsY SAeqUXZyXwU1F3OTN4hRN5IIMEmMZwYNwaeRNLI8767dcuAAIjhV00BMKeDYLMaBiPEp POwqP5tRmswHxNYN7dqxUBnT7ePyM+m9EivD0= 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=QmFJVLo9Mo79/NVjZ8w9pd7PjLmczY685QxCSNaSjAw=; b=ZFE+PAgXOkJjVhBRdv7JWzfj9khVqvcTATKJL/AQfB8JHnjYAAEN04VGisEGfW4JeE LK/fqeyRqxhme8cmTH3FIhcrCGWd0gdds1aUhF/IRTM5r4N69gb1bzlG+eFQL5pSJ1zD LXnfYPWEAe2CfWBv7ii/dH0HvaVzQY5SCrUZyofdAG5iabsLeQ0oZJPg3ibglfsTIXJe Py0oJsd1zSHaOOqTlGaWtUXYKZmksBUx7D/tz1LbB5ReyMj8y7RZ4vXUm2m/mpAQlaSp Dd2jzPuRtuAol8lIBLG4LBXA0MglUgVUHh6eX97DhTwPouqcTML7Eb+3ePw3MjjhpwsM FV7w== X-Gm-Message-State: ABUngve5Of373qLjG+UOHodcCXNjcxoVUvo727zKCYsQq+CSvhcnv+9ITIrVHx9OoTS8EZNm X-Received: by 10.98.129.130 with SMTP id t124mr9713002pfd.5.1477129434759; Sat, 22 Oct 2016 02:43:54 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.92]) by smtp.gmail.com with ESMTPSA id g9sm10923953paw.40.2016.10.22.02.43.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 22 Oct 2016 02:43:54 -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 10/17] drm/nouveau/device: mark symbol static where possible Date: Sat, 22 Oct 2016 17:41:51 +0800 Message-Id: <1477129318-29677-10-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 1 warning when building kernel with W=1: drivers/gpu/drm/nouveau/nvkm/engine/device/user.c:330:1: warning: no previous prototype for 'nvkm_udevice_new' [-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/gpu/drm/nouveau/nvkm/engine/device/user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/device/user.c b/drivers/gpu/drm/nouveau/nvkm/engine/device/user.c index 79a8f71..513ee6b 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/device/user.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/device/user.c @@ -326,7 +326,7 @@ nvkm_udevice = { .sclass = nvkm_udevice_child_get, }; -int +static int nvkm_udevice_new(const struct nvkm_oclass *oclass, void *data, u32 size, struct nvkm_object **pobject) {