From patchwork Thu Oct 4 10:21:16 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Vorontsov X-Patchwork-Id: 11980 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 BE40A24146 for ; Thu, 4 Oct 2012 10:24:15 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 5F6BDA18621 for ; Thu, 4 Oct 2012 10:24:15 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so567866iej.11 for ; Thu, 04 Oct 2012 03:24:14 -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=YMbS+SCQV5i5+wpdibxDvCB5AZPaJiWz6Et/m0DtrIE=; b=nZQ/ZOODAGRW65KGuaOoVakRf61eZGL3jj9f2E9UEx5pFiOQ+xJZHRIpYlkDKerukV 8PQaUmrcz3QUPgM2dskloLnRMj5RF9jQ7Z/qcofKGbRUe2sVJzIcJb7dEBY7kbtdkaKR Faw69dXoT0/hSO2xubPjKVaSigJKivpkGAGo2wkETlktNkE6uitBDOhlgN/TO1MHYKIr INE54toS+J6G98mmaFWXeCXvjc2UZWqsU3nWlGQJPs/s7T7I7T5uzy4XfzkC7xPi4L/V faDxbiG+TzyFCs8HqCzRTSz3knnbcEIJlXLdLthLYkIzRocjmvcNXY4QzoOWjR+/eaGU DvwQ== Received: by 10.50.184.129 with SMTP id eu1mr4782790igc.0.1349346254701; Thu, 04 Oct 2012 03:24:14 -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.184.232 with SMTP id ex8csp58549igc; Thu, 4 Oct 2012 03:24:14 -0700 (PDT) Received: by 10.68.116.232 with SMTP id jz8mr20643080pbb.77.1349346254038; Thu, 04 Oct 2012 03:24: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 rr1si13304918pbc.128.2012.10.04.03.24.13 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 04 Oct 2012 03:24: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 hz11so427391pad.37 for ; Thu, 04 Oct 2012 03:24:13 -0700 (PDT) Received: by 10.68.224.133 with SMTP id rc5mr20316403pbc.130.1349346253726; Thu, 04 Oct 2012 03:24:13 -0700 (PDT) Received: from localhost (c-71-204-165-222.hsd1.ca.comcast.net. [71.204.165.222]) by mx.google.com with ESMTPS id uh7sm4142905pbc.35.2012.10.04.03.24.12 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 04 Oct 2012 03:24:13 -0700 (PDT) From: Anton Vorontsov To: Pekka Enberg Cc: John Stultz , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linaro-kernel@lists.linaro.org, patches@linaro.org Subject: [PATCH 1/3] vmevent: Remove unused code Date: Thu, 4 Oct 2012 03:21:16 -0700 Message-Id: <1349346078-24874-1-git-send-email-anton.vorontsov@linaro.org> X-Mailer: git-send-email 1.7.12.1 In-Reply-To: <20121004102013.GA23284@lizard> References: <20121004102013.GA23284@lizard> X-Gm-Message-State: ALoCoQmRGSNMQQlOG/BSwQjhNmQaKdg1r+1wk9/AZrXnJ+Nx29hUDq5F3zux5b4xx3q+4rkt0TUY struct vmevent_watch_event and a few definitions are not used anywhere, so let's remove them. Signed-off-by: Anton Vorontsov --- mm/vmevent.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/mm/vmevent.c b/mm/vmevent.c index a7f1042..39ef786 100644 --- a/mm/vmevent.c +++ b/mm/vmevent.c @@ -11,16 +11,6 @@ #include #undef nr_swap_pages /* This is defined to a constant for SWAP=n case */ -#define VMEVENT_MAX_FREE_THRESHOD 100 - -#define VMEVENT_MAX_EATTR_ATTRS 64 - -struct vmevent_watch_event { - u64 nr_avail_pages; - u64 nr_free_pages; - u64 nr_swap_pages; -}; - struct vmevent_watch { struct vmevent_config config;