From patchwork Thu Sep 10 05:18:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Shi X-Patchwork-Id: 11766571 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 9E449698 for ; Thu, 10 Sep 2020 05:18:39 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 3961F207EA for ; Thu, 10 Sep 2020 05:18:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3961F207EA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 1C367900003; Thu, 10 Sep 2020 01:18:38 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 17339900002; Thu, 10 Sep 2020 01:18:38 -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 0899C900003; Thu, 10 Sep 2020 01:18:38 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0106.hostedemail.com [216.40.44.106]) by kanga.kvack.org (Postfix) with ESMTP id E3985900002 for ; Thu, 10 Sep 2020 01:18:37 -0400 (EDT) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id A4FCA1EF2 for ; Thu, 10 Sep 2020 05:18:37 +0000 (UTC) X-FDA: 77245996674.18.sea92_0d108e1270e3 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin18.hostedemail.com (Postfix) with ESMTP id 7B21D100EC667 for ; Thu, 10 Sep 2020 05:18:37 +0000 (UTC) X-Spam-Summary: 1,0,0,a21a7900c53baf2a,d41d8cd98f00b204,alex.shi@linux.alibaba.com,,RULES_HIT:41:355:379:387:541:800:960:968:973:988:989:1260:1261:1345:1431:1534:1541:1711:1730:1747:1777:1792:2393:2559:2562:2899:3138:3139:3140:3141:3142:3352:3865:3867:3871:3872:5007:6119:6261:7903:10004:11026:11658:11914:12297:12555:12679:12895:13069:13311:13357:13846:14096:14181:14384:14394:14721:21060:21451:21627:30054,0,RBL:115.124.30.132:@linux.alibaba.com:.lbl8.mailshell.net-64.201.201.201 62.20.2.100;04ygi4pao6bxwi51usg6odpp7ecf5oc6nnefk31p34b4mc5u7rdn75wws43wfmk.y4yz1rnb3x5ezztpyuiuqh3ftijpyjpzppypxsqiwg6yd6oy38bxznudgfgcgh7.c-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:none,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: sea92_0d108e1270e3 X-Filterd-Recvd-Size: 2188 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by imf14.hostedemail.com (Postfix) with ESMTP for ; Thu, 10 Sep 2020 05:18:31 +0000 (UTC) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0U8TC1ti_1599715103; Received: from aliy80.localdomain(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0U8TC1ti_1599715103) by smtp.aliyun-inc.com(127.0.0.1); Thu, 10 Sep 2020 13:18:24 +0800 From: Alex Shi To: Cc: Naoya Horiguchi , Andrew Morton , linux-mm@kvack.org , linux-kernel@vger.kernel.org Subject: [PATCH] mm: remove unused marco writeback Date: Thu, 10 Sep 2020 13:18:16 +0800 Message-Id: <1599715096-20369-1-git-send-email-alex.shi@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 X-Rspamd-Queue-Id: 7B21D100EC667 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam02 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: Unlike others we don't use the marco writeback. so let's remove it to tame gcc warning: mm/memory-failure.c:827: warning: macro "writeback" is not used [-Wunused-macros] Signed-off-by: Alex Shi Cc: Naoya Horiguchi Cc: Andrew Morton Cc: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org --- mm/memory-failure.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mm/memory-failure.c b/mm/memory-failure.c index f1aa6433f404..3a97440cdf8c 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -824,7 +824,6 @@ static int me_huge_page(struct page *p, unsigned long pfn) #define sc ((1UL << PG_swapcache) | (1UL << PG_swapbacked)) #define unevict (1UL << PG_unevictable) #define mlock (1UL << PG_mlocked) -#define writeback (1UL << PG_writeback) #define lru (1UL << PG_lru) #define head (1UL << PG_head) #define slab (1UL << PG_slab) @@ -873,7 +872,6 @@ static int me_huge_page(struct page *p, unsigned long pfn) #undef sc #undef unevict #undef mlock -#undef writeback #undef lru #undef head #undef slab