From patchwork Tue Oct 16 01:17:59 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Vorontsov X-Patchwork-Id: 12255 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 196DD23E29 for ; Tue, 16 Oct 2012 01:21:16 +0000 (UTC) Received: from mail-ia0-f180.google.com (mail-ia0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id D710DA180BA for ; Tue, 16 Oct 2012 01:21:15 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id f6so4084969iag.11 for ; Mon, 15 Oct 2012 18:21:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=gr8OEshX8UzaJJE8Rt1yjTSgbjPMLBgoOYuhdlbSF50=; b=byPKyUJPTYMfDjEKb6a3fJlkEqC35O+marS8z7u83JzjQxFUOgz3BXz22zKTdKrFfF ytgS2npK2uRplk8NhoLDdYyYdmNGu/Fu1PF1UynGler/JaA3D7xGwO0NvdXkYyUeSDw2 dq7bP/5zx2rp2MUOxArqbe/FRBXypol4JyfOtIRL10XwpxeHVShZeY52jo0C7sMRdPMP U3y/5RAAaVvPuyhUT9uajAPNAFghRv6W8QOh7J2lssoiHGZgAQ0MXX0knURnXvY/OorI y0WNom8PBoXDhHDdcEdILWu+Es7hiRZ337MruUtN+z4WON4ktkDwB7AAxjb6EbHIUzU0 LGyA== Received: by 10.50.87.134 with SMTP id ay6mr10416779igb.70.1350350475267; Mon, 15 Oct 2012 18:21:15 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp659649igt; Mon, 15 Oct 2012 18:21:14 -0700 (PDT) Received: by 10.68.248.70 with SMTP id yk6mr24109431pbc.160.1350350474202; Mon, 15 Oct 2012 18:21:14 -0700 (PDT) Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by mx.google.com with ESMTPS id bo5si24221630pab.189.2012.10.15.18.21.14 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 15 Oct 2012 18:21:14 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.50 is neither permitted nor denied by best guess record for domain of anton.vorontsov@linaro.org) client-ip=209.85.220.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.50 is neither permitted nor denied by best guess record for domain of anton.vorontsov@linaro.org) smtp.mail=anton.vorontsov@linaro.org Received: by mail-pa0-f50.google.com with SMTP id hz11so5970977pad.37 for ; Mon, 15 Oct 2012 18:21:14 -0700 (PDT) Received: by 10.68.129.233 with SMTP id nz9mr42232363pbb.136.1350350473976; Mon, 15 Oct 2012 18:21:13 -0700 (PDT) Received: from localhost (ip-64-134-230-8.public.wayport.net. [64.134.230.8]) by mx.google.com with ESMTPS id ni3sm4237259pbc.2.2012.10.15.18.21.11 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 15 Oct 2012 18:21:13 -0700 (PDT) From: Anton Vorontsov To: Jason Wessel Cc: Colin Cross , Alan Cox , John Stultz , linux-kernel@vger.kernel.org, linaro-kernel@lists.linaro.org, patches@linaro.org, kernel-team@android.com, kgdb-bugreport@lists.sourceforge.net Subject: [PATCH 1/7] kdb: Remove currently unused kdbtab_t->cmd_flags Date: Mon, 15 Oct 2012 18:17:59 -0700 Message-Id: <1350350285-3095-1-git-send-email-anton.vorontsov@linaro.org> X-Mailer: git-send-email 1.7.12.3 In-Reply-To: <20121016011724.GB23146@lizard> References: <20121016011724.GB23146@lizard> X-Gm-Message-State: ALoCoQmBhlwnitKzQmhFX0dLCOzxpXasxl8Ew5ooXMDTiIux6X6e+qpIVHIaz/4m6kRufHeFIhEO 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 --- 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 4d5f8d5..cdaaa52 100644 --- a/kernel/debug/kdb/kdb_main.c +++ b/kernel/debug/kdb/kdb_main.c @@ -2748,7 +2748,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 392ec6a..f8245b3 100644 --- a/kernel/debug/kdb/kdb_private.h +++ b/kernel/debug/kdb/kdb_private.h @@ -175,7 +175,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? */