Received: by 10.223.185.116 with SMTP id b49csp5478576wrg; Tue, 27 Feb 2018 14:10:45 -0800 (PST) X-Google-Smtp-Source: AH8x227qGbSWCi0v8d7EfW8ROF1ubtGkDr+6I5M0GieZCR+pmf6Xq+IybnX77PPwCzAvuaC1eY/E X-Received: by 10.98.67.78 with SMTP id q75mr15206265pfa.98.1519769445186; Tue, 27 Feb 2018 14:10:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519769445; cv=none; d=google.com; s=arc-20160816; b=lwZD1rxf3bRIwi30GAmaDVrXYdfpUSeHgU7zPHprPgXHcO/8i1I9fDZtqFkBIUBnqR 2Tmv0yGYSWbmbYjZmNNclBXDdPEBbPFQ7uCxyJAuYP+Gtc+bI4Hr/CjiqrM+YBpb8OOZ JGbb5TlqFSlPIbmftsI78lOJdVx9jAQhfVlLSHumOPkptKYWZtsaC3iR9ZohKUv8ztll WtYnh1t5oe+JgkyI1tC3hYEO6PPCyQQNYRgPRfzpLTsNxw4g9eL6NKyR90prclBFd1Pq UcuNOQrttfq7uDpiLSOcMqp4ouNiQ/PsnV0QZS+XaZi7unwmQFNaAtc4jF3PxnsMO2Qy aiYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=wn6MMxwpBk8gQQOmbwVdOl+ebJiUsgrJYrCaOpgNMP0=; b=AG2ZEg48ozrmV4PXtemPOQ7cl5usAqT5zKxULn/9x2XvSFHlhyy09YSYcEc42PlWjY AkBdVgjc+RIfSYRcuec0lXg5vaAThGZ+Dy2c7fNDZiPuKjFVKYim6siIPROhSF5Gixs1 F7fOiVu73xPFmGrThpjNX6Sx07g57kb8qpuA+Mz9y+F9i7c/A7er5GjDBbbcE4VqCZTS 8mRVpqLjpyyO1PDcjnA1X/a1qcv3iyj4wsHEWC/6STbB7vlFtHOEgR93LcdAlyrHPZ91 gvdaCkagemH/tcY2iPJPuHi49uT8rTi1skeZXDCFZAmJwC2AqhctNVtMTEfrHd/WNCX1 Xvmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=vGhEvrWn; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b61-v6si117361plc.385.2018.02.27.14.10.30; Tue, 27 Feb 2018 14:10:45 -0800 (PST) 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=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=vGhEvrWn; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751894AbeB0WIN (ORCPT + 99 others); Tue, 27 Feb 2018 17:08:13 -0500 Received: from mail-qk0-f195.google.com ([209.85.220.195]:42359 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751797AbeB0WIK (ORCPT ); Tue, 27 Feb 2018 17:08:10 -0500 Received: by mail-qk0-f195.google.com with SMTP id b130so536077qkg.9 for ; Tue, 27 Feb 2018 14:08:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wn6MMxwpBk8gQQOmbwVdOl+ebJiUsgrJYrCaOpgNMP0=; b=vGhEvrWnBfEFz3kYkR+KeSdW9pwBn9eb1+BYKW+IYYLzJTddp+VHS5jD3iYLwuCfl4 nmI10BuaEKCuxgoh2YPNqo90JNARuZMLR0wnYbl01JTV9R304Qm77GRMXust5eZn4Oeq T3/pC3r3moovfFTPxTx3TSWWoYY1M9+zFRicnuyf69uw2bbDKgD7LaTdIa9Z3lgyDYZD XIzJXu2ZXtq4a08ZEBvfKFDeBz5qf9g0Ml8324a9xU/UFFGmkiMCwKo4a1pw0RtEuSnJ mgxBSIgsWlzyrHV7TocSQfE1Zx6b4gOnJyAQfBCvcF3iHLydw/Ei6tSVSzE9rLSUZlGE tG9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wn6MMxwpBk8gQQOmbwVdOl+ebJiUsgrJYrCaOpgNMP0=; b=T5ctrwzlx9x5U3NVGdXkMIZKNNDaQQPt2K0rTUsT1UJU6WNURGOUg2fnWIbCsiN88x sgk4w+WJPyHwKJn8KUYrYhth5/96C6MhKOEZsHxjSHX/RYDuwpc25i6wwFBTjHlQLXfq RXIBsY37KBt68rM1ARUcScn+l32X66FpCxviERZnbGcoQjycu0Jg/6brC4likvNfQ2dN pYVLKRxcWAdmuVXp3Y+9E4M8TJgVnGKmnSSMnuk+1Wmz/2JvnpQBmAeREane2xjNxW/D 2fTPrZ5kHkGd3ixjFOt3JrJ+W0SCifGHIerAn0odeFm2fFICxupHrCcrTLQBdlaMjQ72 Z07w== X-Gm-Message-State: APf1xPBSpH3duYfDGUyyK/F5/ICLh8usyDAW+fb9laJS6Rxg4F2AYUEK gPj6uyYYYqjFJ+v1uibn/qrCNQ== X-Received: by 10.55.21.212 with SMTP id 81mr24371067qkv.280.1519769290147; Tue, 27 Feb 2018 14:08:10 -0800 (PST) Received: from hlaptop.cpe.express.com.ar ([200.3.222.253]) by smtp.gmail.com with ESMTPSA id l1sm114253qkk.53.2018.02.27.14.08.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Feb 2018 14:08:09 -0800 (PST) From: =?UTF-8?q?Hern=C3=A1n=20Gonzalez?= To: monis@mellanox.com, dledford@redhat.com, jgg@ziepe.ca, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Hern=C3=A1n=20Gonzalez?= Subject: [PATCH] IB/rxe: Remove unused variable (char *rxe_qp_state_name[]) Date: Tue, 27 Feb 2018 19:07:58 -0300 Message-Id: <1519769278-20094-1-git-send-email-hernan@vanguardiasur.com.ar> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Note: This is compile only tested as I have no access to the hw. This variable was not used anywhere in the code. Removing it saves 24 bytes. add/remove: 0/1 grow/shrink: 0/0 up/down: 0/-24 (-24) Function old new delta rxe_qp_state_name 24 - -24 Total: Before=3348732, After=3348708, chg -0.00% Signed-off-by: HernĂ¡n Gonzalez --- drivers/infiniband/sw/rxe/rxe_qp.c | 9 --------- drivers/infiniband/sw/rxe/rxe_verbs.h | 2 -- 2 files changed, 11 deletions(-) diff --git a/drivers/infiniband/sw/rxe/rxe_qp.c b/drivers/infiniband/sw/rxe/rxe_qp.c index 137d6c0..ba4652f 100644 --- a/drivers/infiniband/sw/rxe/rxe_qp.c +++ b/drivers/infiniband/sw/rxe/rxe_qp.c @@ -40,15 +40,6 @@ #include "rxe_queue.h" #include "rxe_task.h" -char *rxe_qp_state_name[] = { - [QP_STATE_RESET] = "RESET", - [QP_STATE_INIT] = "INIT", - [QP_STATE_READY] = "READY", - [QP_STATE_DRAIN] = "DRAIN", - [QP_STATE_DRAINED] = "DRAINED", - [QP_STATE_ERROR] = "ERROR", -}; - static int rxe_qp_chk_cap(struct rxe_dev *rxe, struct ib_qp_cap *cap, int has_srq) { diff --git a/drivers/infiniband/sw/rxe/rxe_verbs.h b/drivers/infiniband/sw/rxe/rxe_verbs.h index 1019f5e..af1470d 100644 --- a/drivers/infiniband/sw/rxe/rxe_verbs.h +++ b/drivers/infiniband/sw/rxe/rxe_verbs.h @@ -139,8 +139,6 @@ enum rxe_qp_state { QP_STATE_ERROR }; -extern char *rxe_qp_state_name[]; - struct rxe_req_info { enum rxe_qp_state state; int wqe_index; -- 2.7.4