From patchwork Sun Jan 11 18:12:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5616991 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A72079FB15 for ; Tue, 13 Jan 2015 01:26:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C8F79204DF for ; Tue, 13 Jan 2015 01:26:02 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id AECD6204DE for ; Tue, 13 Jan 2015 01:26:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B92FB6E3F9; Mon, 12 Jan 2015 17:25:57 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-we0-f173.google.com (mail-we0-f173.google.com [74.125.82.173]) by gabe.freedesktop.org (Postfix) with ESMTP id 051CD6E1E4 for ; Sun, 11 Jan 2015 10:09:40 -0800 (PST) Received: by mail-we0-f173.google.com with SMTP id q58so15647477wes.4 for ; Sun, 11 Jan 2015 10:09:39 -0800 (PST) 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; bh=b/i95lrd1ihZM+pVM1dl4dosnhhKLfqHdUlDFIhPYwg=; b=Sb2LuNbXtk1VmvFU2+6H8ktI7TFZxzcW3Ef8yVYPAIa0s4koKg8ZP3zpmfK43VGtVm hqaHZfSp3JyHSEg+SS6LPCRD/H7jCP2AVXS/cARfF82fbPtUvHpgcu1lV8pQWBRgYsdJ PKwOXp2CFOOF0yJuJ+C1UDNYnSnbZp2wmR/sfdLg6t9c4hwCxSXk6nA9K4XOVNYvatnQ G6oRBNTLzsYAqAw8zY7hNVDj1//nNIgDdhE1x+3t1BRltaLd/ioV03R/V8nU0O/yPwki XzFB7A+AtGbOGZY9gTwyaejFhyjZAdUwCpYl1TwtZi4edYQT/GcEIkmjqLmKbmq2vQ7V vLag== X-Gm-Message-State: ALoCoQk2B7qUiqi7iygpNkDCDkeIz/svWAw5pcLhPJbxGji4EqBgUQ0+NsPPqwmlE6LxUWcQwJzx X-Received: by 10.194.81.1 with SMTP id v1mr21962109wjx.50.1420999779653; Sun, 11 Jan 2015 10:09:39 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id wz5sm18416585wjc.29.2015.01.11.10.09.38 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Jan 2015 10:09:39 -0800 (PST) From: Rickard Strandqvist To: David Airlie , Ben Skeggs Subject: [PATCH] drm: nouveau: core: engine: perfmon: base: Remove unused function Date: Sun, 11 Jan 2015 19:12:45 +0100 Message-Id: <1420999965-22216-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 X-Mailman-Approved-At: Mon, 12 Jan 2015 17:25:56 -0800 Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Samuel Pitoiset , Rickard Strandqvist 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: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove the function nouveau_perfsig_wrap() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- drivers/gpu/drm/nouveau/core/engine/perfmon/base.c | 20 -------------------- drivers/gpu/drm/nouveau/core/engine/perfmon/priv.h | 5 ----- 2 files changed, 25 deletions(-) diff --git a/drivers/gpu/drm/nouveau/core/engine/perfmon/base.c b/drivers/gpu/drm/nouveau/core/engine/perfmon/base.c index 6301381..d0c5255 100644 --- a/drivers/gpu/drm/nouveau/core/engine/perfmon/base.c +++ b/drivers/gpu/drm/nouveau/core/engine/perfmon/base.c @@ -80,26 +80,6 @@ nouveau_perfsig_find(struct nouveau_perfmon *ppm, const char *name, u32 size, return nouveau_perfsig_find_(dom, name, size); } -struct nouveau_perfctr * -nouveau_perfsig_wrap(struct nouveau_perfmon *ppm, const char *name, - struct nouveau_perfdom **pdom) -{ - struct nouveau_perfsig *sig; - struct nouveau_perfctr *ctr; - - sig = nouveau_perfsig_find(ppm, name, strlen(name), pdom); - if (!sig) - return NULL; - - ctr = kzalloc(sizeof(*ctr), GFP_KERNEL); - if (ctr) { - ctr->signal[0] = sig; - ctr->logic_op = 0xaaaa; - } - - return ctr; -} - /******************************************************************************* * Perfmon object classes ******************************************************************************/ diff --git a/drivers/gpu/drm/nouveau/core/engine/perfmon/priv.h b/drivers/gpu/drm/nouveau/core/engine/perfmon/priv.h index 0ac8714..1a0989e 100644 --- a/drivers/gpu/drm/nouveau/core/engine/perfmon/priv.h +++ b/drivers/gpu/drm/nouveau/core/engine/perfmon/priv.h @@ -30,11 +30,6 @@ struct nouveau_perfsig { const char *name; }; -struct nouveau_perfdom; -struct nouveau_perfctr * -nouveau_perfsig_wrap(struct nouveau_perfmon *, const char *, - struct nouveau_perfdom **); - struct nouveau_specdom { u16 signal_nr; const struct nouveau_specsig *signal;