From patchwork Sat Dec 20 12:34:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5522421 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4BE71BEEA8 for ; Sat, 20 Dec 2014 12:32:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6BD6A2014A for ; Sat, 20 Dec 2014 12:32:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 960862013D for ; Sat, 20 Dec 2014 12:32:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753039AbaLTMcI (ORCPT ); Sat, 20 Dec 2014 07:32:08 -0500 Received: from mail-wg0-f46.google.com ([74.125.82.46]:55522 "EHLO mail-wg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752765AbaLTMcH (ORCPT ); Sat, 20 Dec 2014 07:32:07 -0500 Received: by mail-wg0-f46.google.com with SMTP id x13so3368031wgg.5 for ; Sat, 20 Dec 2014 04:32:06 -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=RZx4c3lgKdNEH7dvOIP7sl7laBRJB0DJd+posNkpVFI=; b=Rd8Z1+EISxoZU7Lu6vl+2ldvrCoXUD3urWEHltyAf+cVndGa2XP0VJqo2y8427mym3 SSqCrHHIOzcMNi1ABbJqaXx11nK2XRHbzwO5akv9I1ag4rvgbrW/AH6q/py/nG2OvlFh ZsstAw8exRbP0ajooesfIugkHL1D8Ab7Dxzb3W6Y2eAGfqaZQk2hX9hUIdLrwTroOjCL 8AAg6/+hhzDeOI2ZMPqrNER3XHeDPLBZ3sHEJleFRnKUXr1nt3QKi/2nOcjDNlQKsQNJ pUDf7U4GggdcQlE2RVMldX9Malfb3XmxozBBthCIdq9/EDDyxxKL/mtB0Nrcp0yCL4w2 R+VA== X-Gm-Message-State: ALoCoQknBTLL2xDducqbxFsu6DtWlGMhWUo+6R3wTMeifw088HV0URVu/wlXkwPGdpy8XvB83BxR X-Received: by 10.180.78.73 with SMTP id z9mr14259291wiw.52.1419078726268; Sat, 20 Dec 2014 04:32:06 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id jr4sm16212135wjc.20.2014.12.20.04.32.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 Dec 2014 04:32:05 -0800 (PST) From: Rickard Strandqvist To: Sage Weil , "David S. Miller" Cc: Rickard Strandqvist , ceph-devel@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: ceph: ceph_strings.c: Remove unused function Date: Sat, 20 Dec 2014 13:34:53 +0100 Message-Id: <1419078894-31656-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 ceph_pool_op_name() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- include/linux/ceph/ceph_fs.h | 2 -- net/ceph/ceph_strings.c | 14 -------------- 2 files changed, 16 deletions(-) diff --git a/include/linux/ceph/ceph_fs.h b/include/linux/ceph/ceph_fs.h index 3c97d5e..0684f9e 100644 --- a/include/linux/ceph/ceph_fs.h +++ b/include/linux/ceph/ceph_fs.h @@ -191,8 +191,6 @@ struct ceph_mon_statfs_reply { struct ceph_statfs st; } __attribute__ ((packed)); -const char *ceph_pool_op_name(int op); - struct ceph_mon_poolop { struct ceph_mon_request_header monhdr; struct ceph_fsid fsid; diff --git a/net/ceph/ceph_strings.c b/net/ceph/ceph_strings.c index 3056020..139a9cb 100644 --- a/net/ceph/ceph_strings.c +++ b/net/ceph/ceph_strings.c @@ -42,17 +42,3 @@ const char *ceph_osd_state_name(int s) return "???"; } } - -const char *ceph_pool_op_name(int op) -{ - switch (op) { - case POOL_OP_CREATE: return "create"; - case POOL_OP_DELETE: return "delete"; - case POOL_OP_AUID_CHANGE: return "auid change"; - case POOL_OP_CREATE_SNAP: return "create snap"; - case POOL_OP_DELETE_SNAP: return "delete snap"; - case POOL_OP_CREATE_UNMANAGED_SNAP: return "create unmanaged snap"; - case POOL_OP_DELETE_UNMANAGED_SNAP: return "delete unmanaged snap"; - } - return "???"; -}