From patchwork Thu Sep 17 11:07:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mateusz Nosek X-Patchwork-Id: 11782265 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5382D59D for ; Thu, 17 Sep 2020 11:08:31 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 128B5208DB for ; Thu, 17 Sep 2020 11:08:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="B64gIrXr" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 128B5208DB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id EE8916B0003; Thu, 17 Sep 2020 07:08:29 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id E730D6B0037; Thu, 17 Sep 2020 07:08:29 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D61436B0055; Thu, 17 Sep 2020 07:08:29 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0061.hostedemail.com [216.40.44.61]) by kanga.kvack.org (Postfix) with ESMTP id BD6676B0003 for ; Thu, 17 Sep 2020 07:08:29 -0400 (EDT) Received: from smtpin06.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 44A003630 for ; Thu, 17 Sep 2020 11:08:29 +0000 (UTC) X-FDA: 77272279938.06.trade75_440395f27122 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin06.hostedemail.com (Postfix) with ESMTP id 1EDB0100D2B74 for ; Thu, 17 Sep 2020 11:08:29 +0000 (UTC) X-Spam-Summary: 1,0,0,f72fc61567310c37,d41d8cd98f00b204,mateusznosek0@gmail.com,,RULES_HIT:41:355:379:541:800:960:968:973:988:989:1260:1311:1314:1345:1437:1515:1534:1540:1711:1714:1730:1747:1777:1792:2198:2199:2393:2559:2562:2898:3138:3139:3140:3141:3142:3351:3865:3867:3871:3872:4321:5007:6261:6653:7514:7576:7875:7901:9413:9592:10004:11026:11232:11473:11658:11914:12296:12297:12438:12517:12519:12555:12679:12895:13069:13161:13229:13311:13357:13894:14096:14181:14384:14394:14721:21080:21444:21451:21627:21666:21990:30012:30054:30070,0,RBL:209.85.208.196:@gmail.com:.lbl8.mailshell.net-62.18.84.100 66.100.201.100;04yr64pc4ugat9gpsm1uzqth6ysc9ycy5wyj8cuqqmw17qi77scsamcrokdsw99.a9fdqme8kbbcmt7ffx5e6bp4tuy3mq4c4p7n1mtj7wjn88eorrnkeifmbcszga4.4-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: trade75_440395f27122 X-Filterd-Recvd-Size: 3634 Received: from mail-lj1-f196.google.com (mail-lj1-f196.google.com [209.85.208.196]) by imf15.hostedemail.com (Postfix) with ESMTP for ; Thu, 17 Sep 2020 11:08:28 +0000 (UTC) Received: by mail-lj1-f196.google.com with SMTP id v23so1679341ljd.1 for ; Thu, 17 Sep 2020 04:08:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fzxb6kNCOD+DqnVPedrk4ksMuODtrVDGEO33gyPazGw=; b=B64gIrXrRDM1onplNYixz/gQEBZY1ILGIczqYFuVbeUT85sUR7x1nBTni0AD2S8U0X Ux0Sm4hyhvgvsP1Vk1IZQgu6cuCHxj23/8yd1pFvkPAvw+KU9sEa3DAFJAh/Cj0b5Vme vjWfRAyoq6KKPkDXhmfdZk00JrJNNfNElPmO8UkOnySs718i9HZTIFRHg5BPJkZaye3w gx5go2pQ5wpbScBofFhfzg7fEsIh8QVJcO6AUxyr81QtaW1r9h11pHYYXPWr7yN6dAM5 j0KKiYNkh/wtmw2rmLfYjrg2069HNaht/lDiri5X+UfEc7TQUBWPSwt+vnxqBvC4fyB0 4UhQ== 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=fzxb6kNCOD+DqnVPedrk4ksMuODtrVDGEO33gyPazGw=; b=RxP8WF/FLmAxYl9Wa0ego3AezJjVStCEatbeq/YSFvBG+FLpV15RgaXQx4V5goUC9F bIdFNIoe5mhPj/2PhZCA7JlgDSTolpuqoG8BjFqiFfALI8mCSpUeSqxPfLmGVScx0EQF RQlUEs/e/Dw6dOZs45NbzdsobtH3hpRzpKb9oTDgPOzD25tzWixRk85F5JDJ9IHjv53W P55XYkua+LBVsqPh9kThzC+00g565bQEDyb7bYNCCpM9mQqxbk3Eut3gEJr6kIG9ZneQ WmcrJf/c4mjHt75aK9BTSwPohgxXIMW10euCiYEXFIM2XnROrgQ/AmEus1Ng0qiqL5LN o1sw== X-Gm-Message-State: AOAM533SGV5Qa2axWwjEfaFRuyAwsF+rIYL+QF+A5tZ5D0liyEoquDI9 2LLPqct+TXzr90nQi4hYEh/Cch+LYPYpbQ== X-Google-Smtp-Source: ABdhPJz47WCCueKSK2oljgVZEVs06Xevc2jCjCDRWBviVru8kGC2LKPhdr0mNzOmQsedW3VMt63RaQ== X-Received: by 2002:a05:651c:1203:: with SMTP id i3mr5625871lja.382.1600340906861; Thu, 17 Sep 2020 04:08:26 -0700 (PDT) Received: from localhost.localdomain (188.147.112.12.nat.umts.dynamic.t-mobile.pl. [188.147.112.12]) by smtp.gmail.com with ESMTPSA id m22sm6001734lji.36.2020.09.17.04.08.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2020 04:08:26 -0700 (PDT) From: mateusznosek0@gmail.com To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Mateusz Nosek , akpm@linux-foundation.org Subject: [PATCH] include/linux/compaction.h: clean code by removing unused enum value Date: Thu, 17 Sep 2020 13:07:50 +0200 Message-Id: <20200917110750.12015-1-mateusznosek0@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Rspamd-Queue-Id: 1EDB0100D2B74 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam03 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Mateusz Nosek The enum value 'COMPACT_INACTIVE' is never used so can be removed. Signed-off-by: Mateusz Nosek --- include/linux/compaction.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/linux/compaction.h b/include/linux/compaction.h index 25a521d299c1..1de5a1151ee7 100644 --- a/include/linux/compaction.h +++ b/include/linux/compaction.h @@ -29,9 +29,6 @@ enum compact_result { /* compaction didn't start as it was deferred due to past failures */ COMPACT_DEFERRED, - /* compaction not active last round */ - COMPACT_INACTIVE = COMPACT_DEFERRED, - /* For more detailed tracepoint output - internal to compaction */ COMPACT_NO_SUITABLE_PAGE, /* compaction should continue to another pageblock */