From patchwork Tue May 6 13:03:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Thompson X-Patchwork-Id: 29699 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f197.google.com (mail-ig0-f197.google.com [209.85.213.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D661720534 for ; Tue, 6 May 2014 13:04:42 +0000 (UTC) Received: by mail-ig0-f197.google.com with SMTP id hn18sf18193274igb.4 for ; Tue, 06 May 2014 06:04:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=cfMsBUzW9LRVg2ROIAl7SQlCSgBvJf3mxF8MDWwofmQ=; b=lZ6G4Tb/HnHnCo3AnO/OXJUWuv7JJnGWROiaMZkfoUH/4dOBdp6GUh9TwAvTWONWNM Imur8pxcXnW2iWJ0JHHIRzvrZvulGY+UjbxUbtYwKKmyBDQ/tYfvd/erZcnVz1G2QRru vVuudrgf+Phjlc+5d7IbIctBUHEBVXhij6gH0/5HuW7GXQZCVxdzG+lMqrni4gw9FCYX 8kwjWTwWQoSAqjydOLtW80sFyUyWPWKjFS8HGYl1gcvZwe6zISp3waOMThBicnVOMBmA KWEFo1jVki8lyCrJ2yxXviEJ5L36zxx6P+5Q2/BXC2FKP6wuyqXEUr4kc2akdyPuhelB vUVA== X-Gm-Message-State: ALoCoQlNaYEeg5x2aB/ko8y0InIQ9QV/oV1r69W9U+XNUdq/btFQOl+D7SGMScGgwBnUHe5/4HeY X-Received: by 10.182.106.229 with SMTP id gx5mr1046803obb.31.1399381482114; Tue, 06 May 2014 06:04:42 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.102.87 with SMTP id v81ls3170000qge.0.gmail; Tue, 06 May 2014 06:04:42 -0700 (PDT) X-Received: by 10.58.31.136 with SMTP id a8mr33963360vei.20.1399381482008; Tue, 06 May 2014 06:04:42 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id gq7si1147023vdc.68.2014.05.06.06.04.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 06 May 2014 06:04:42 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id la4so910033vcb.27 for ; Tue, 06 May 2014 06:04:41 -0700 (PDT) X-Received: by 10.52.181.132 with SMTP id dw4mr71887vdc.86.1399381481925; Tue, 06 May 2014 06:04:41 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp221737vcb; Tue, 6 May 2014 06:04:41 -0700 (PDT) X-Received: by 10.194.19.161 with SMTP id g1mr32616200wje.20.1399381480658; Tue, 06 May 2014 06:04:40 -0700 (PDT) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx.google.com with ESMTPS id dr6si4496777wib.14.2014.05.06.06.04.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 06 May 2014 06:04:40 -0700 (PDT) Received-SPF: none (google.com: daniel.thompson@linaro.org does not designate permitted sender hosts) client-ip=74.125.82.50; Received: by mail-wg0-f50.google.com with SMTP id x12so2869470wgg.9 for ; Tue, 06 May 2014 06:04:40 -0700 (PDT) X-Received: by 10.180.207.47 with SMTP id lt15mr2456063wic.46.1399381480051; Tue, 06 May 2014 06:04:40 -0700 (PDT) Received: from sundance.lan (cpc4-aztw19-0-0-cust157.18-1.cable.virginm.net. [82.33.25.158]) by mx.google.com with ESMTPSA id by1sm21966350wjc.26.2014.05.06.06.04.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 May 2014 06:04:39 -0700 (PDT) From: Daniel Thompson To: kgdb-bugreport@lists.sourceforge.net, Jason Wessel Cc: patches@linaro.org, linaro-kernel@lists.linaro.org, Anton Vorontsov , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Jiri Slaby , Steven Rostedt , Frederic Weisbecker , Ingo Molnar , John Stultz , Colin Cross , kernel-team@android.com Subject: [PATCH v4 2/9] kdb: Remove currently unused kdbtab_t->cmd_flags Date: Tue, 6 May 2014 14:03:42 +0100 Message-Id: <1399381429-16194-3-git-send-email-daniel.thompson@linaro.org> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1399381429-16194-1-git-send-email-daniel.thompson@linaro.org> References: <1398443370-12668-1-git-send-email-daniel.thompson@linaro.org> <1399381429-16194-1-git-send-email-daniel.thompson@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: daniel.thompson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Anton Vorontsov The struct member is never used in the code, so we can remove it. We will introduce real flags soon by renaming cmd_repeat to cmd_flags. Signed-off-by: Anton Vorontsov Signed-off-by: John Stultz --- kernel/debug/kdb/kdb_main.c | 1 - kernel/debug/kdb/kdb_private.h | 1 - 2 files changed, 2 deletions(-) diff --git a/kernel/debug/kdb/kdb_main.c b/kernel/debug/kdb/kdb_main.c index de439bb..f0a4e69 100644 --- a/kernel/debug/kdb/kdb_main.c +++ b/kernel/debug/kdb/kdb_main.c @@ -2701,7 +2701,6 @@ int kdb_register_repeat(char *cmd, kp->cmd_func = func; kp->cmd_usage = usage; kp->cmd_help = help; - kp->cmd_flags = 0; kp->cmd_minlen = minlen; kp->cmd_repeat = repeat; diff --git a/kernel/debug/kdb/kdb_private.h b/kernel/debug/kdb/kdb_private.h index 7afd3c8..c4c46c7 100644 --- a/kernel/debug/kdb/kdb_private.h +++ b/kernel/debug/kdb/kdb_private.h @@ -172,7 +172,6 @@ typedef struct _kdbtab { kdb_func_t cmd_func; /* Function to execute command */ char *cmd_usage; /* Usage String for this command */ char *cmd_help; /* Help message for this command */ - short cmd_flags; /* Parsing flags */ short cmd_minlen; /* Minimum legal # command * chars required */ kdb_repeat_t cmd_repeat; /* Does command auto repeat on enter? */