From patchwork Sat Oct 22 09:41:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 78780 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp1703264qge; Sat, 22 Oct 2016 02:43:30 -0700 (PDT) X-Received: by 10.98.197.134 with SMTP id j128mr9765160pfg.78.1477129410226; Sat, 22 Oct 2016 02:43:30 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d123si6235439pgc.184.2016.10.22.02.43.29; Sat, 22 Oct 2016 02:43:30 -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 S964936AbcJVJn1 (ORCPT + 27 others); Sat, 22 Oct 2016 05:43:27 -0400 Received: from mail-pf0-f175.google.com ([209.85.192.175]:32830 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964894AbcJVJnW (ORCPT ); Sat, 22 Oct 2016 05:43:22 -0400 Received: by mail-pf0-f175.google.com with SMTP id 128so70844389pfz.0 for ; Sat, 22 Oct 2016 02:43:21 -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=xd9sySgHS+nSqHaA9Zl/DR+GUf13YhsZ4lvWDEFQmks=; b=L2UGUsGrL38g0OAuu6VrCHnQyTyc4YskDeVadekDN1Q54/3EovDvxUcWLABUE3Nu+s 2LL27XfDVGgc9ND/ylmgRbUz1HUZZSID6AR2bDtDf48gtH8j0tmB7Yq8JEY/8AP7B9Bg ut+5d2P+Cjt0ZO70H8eBtmfhuuT9oiVTRxthA= 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=xd9sySgHS+nSqHaA9Zl/DR+GUf13YhsZ4lvWDEFQmks=; b=lahFPooJR0/dzfxnvzqE/U2VHayS00iidttiY7wN4ZC//1OIuNIFm5eLuFAGIpfQr5 0hve70uHBhqTTkXXrTaONsXAYyPepJm5cMVkdjNgULINRII1BGXBCIM2VMauv+hmDAol NmKBcj4tzgwq/F6nqkfT2zkV2TUPhheX8a0RJAmk6TUZDeb4plzPOj34oAB9Ohsmga8i ipKPY/vbFlkmx4XmXw6Ka9+xAdocz7kD0Tbq+9x4YYohM5LaXo1OA5Ygu1pKrgvcuJq0 SA0pjsHewyJrO0frU82Vz3N1jsEpjkzZUgA//GLE2Q3dJp3MPoQ32UQrHQMjwkpMYvI9 tHTQ== X-Gm-Message-State: ABUngvc3RfbH0kjyuvaX2arKqEyj8Ri7CV1dkg11zvLSkZDULEYuISMZbSm9X13e/4gQXaQB X-Received: by 10.98.41.3 with SMTP id p3mr9740986pfp.92.1477129401458; Sat, 22 Oct 2016 02:43:21 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.92]) by smtp.gmail.com with ESMTPSA id g9sm10923953paw.40.2016.10.22.02.43.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 22 Oct 2016 02:43:21 -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 07/17] drm/nouveau/secboot: mark symbol static where possible Date: Sat, 22 Oct 2016 17:41:48 +0800 Message-Id: <1477129318-29677-7-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/subdev/secboot/gm200.c:1368:1: warning: no previous prototype for 'gm200_secboot_fini' [-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/subdev/secboot/gm200.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c b/drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c index f1e2dc9..ec48e4a 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c @@ -1364,7 +1364,7 @@ gm200_secboot_init(struct nvkm_secboot *sb) return 0; } -int +static int gm200_secboot_fini(struct nvkm_secboot *sb, bool suspend) { struct gm200_secboot *gsb = gm200_secboot(sb);