From patchwork Fri Jun 26 20:15:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 11628611 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 7203C913 for ; Fri, 26 Jun 2020 20:15:44 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 3F2F82070A for ; Fri, 26 Jun 2020 20:15:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="EULyogCZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3F2F82070A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 4371B6B0005; Fri, 26 Jun 2020 16:15:43 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 3E7AC6B0006; Fri, 26 Jun 2020 16:15:43 -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 2FC636B0007; Fri, 26 Jun 2020 16:15:43 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0018.hostedemail.com [216.40.44.18]) by kanga.kvack.org (Postfix) with ESMTP id 166266B0005 for ; Fri, 26 Jun 2020 16:15:43 -0400 (EDT) Received: from smtpin17.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id BDA0F8248068 for ; Fri, 26 Jun 2020 20:15:42 +0000 (UTC) X-FDA: 76972468524.17.club22_010cc2726e58 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin17.hostedemail.com (Postfix) with ESMTP id 910C0180D0184 for ; Fri, 26 Jun 2020 20:15:42 +0000 (UTC) X-Spam-Summary: 1,0,0,fbb305c55fbaba6f,d41d8cd98f00b204,rdunlap@infradead.org,,RULES_HIT:41:152:355:379:800:854:960:966:973:988:989:1260:1277:1311:1313:1314:1345:1381:1437:1515:1516:1518:1534:1540:1593:1594:1711:1714:1730:1747:1777:1792:2196:2199:2393:2559:2562:2899:3138:3139:3140:3141:3142:3350:3866:3870:3873:4250:4321:4385:5007:6261:6653:7576:7875:10004:10400:11026:11473:11658:11914:12043:12048:12114:12297:12438:12517:12519:12679:13069:13311:13357:13894:14181:14394:14721:21080:21451:21627:21987:21990:30054,0,RBL:90.155.50.34:@infradead.org:.lbl8.mailshell.net-62.8.15.100 64.201.201.201;04yrignkyejumy61fs7co5y3wctj9ycgihhu1btrysbkdjtm8ejo3b3dhd1uj6s.3owmaftfe3hqea83fwhwyuugwix86snwwxuhd7pua6me8kgwgz3c4wjkhncuimb.w-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: club22_010cc2726e58 X-Filterd-Recvd-Size: 2610 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf31.hostedemail.com (Postfix) with ESMTP for ; Fri, 26 Jun 2020 20:15:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Date:Message-ID:Subject:From:To:Sender:Reply-To:Cc:Content-ID: Content-Description:In-Reply-To:References; bh=lzG6AjqURuPpzOdjQIJr5ziJhpZEP90OSuws6+uc9do=; b=EULyogCZ+vLnQ4vDdeO645I49c JCAzn9PSGanMWl3T93Kz8kXyJ7uKVwdhM4UZsYD5GHb1UXcPqsPXegzFnQvYxhiERvpQtQjv6tPxc a2HA6+xE/ZKKyk3hX3tA/rJ/zhCxMjNTEyMahbn6cmJhk2nMEBYBNnXZoCHpBf+DyVkuMizbm1k7M XdBNDQjUHhWYTns2tUByMF/Sjt/X2UZra229XVHSrXmFaszMcIvGK4cId92eLFduTgxzal7ZhLpoE 1JWXw9/jquv7jykijTV1/gl2o+a0BW3BKjA3m4lyTZ3nTReMy72U7zaoi9TdeC0MgdshRslLbGiz8 FoB3Xbmw==; Received: from [2601:1c0:6280:3f0::19c2] by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1joukt-0000NC-S3; Fri, 26 Jun 2020 20:15:25 +0000 To: LKML , Linux MM , Andrew Morton , Oscar Salvador From: Randy Dunlap Subject: [PATCH -mmotm] mm: memory-failure: add stub for page_handle_poison() Message-ID: <5bc95fd0-4c21-59c3-4629-7b6848b6a399@infradead.org> Date: Fri, 26 Jun 2020 13:15:19 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 Content-Language: en-US X-Rspamd-Queue-Id: 910C0180D0184 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam04 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: Randy Dunlap Fix a build error when no HWPOISON kconfig symbols are set/enabled by providing a stub function for 'page_handle_poison()'. ../mm/memory-failure.c: In function ‘__soft_offline_page’: ../mm/memory-failure.c:1827:3: error: implicit declaration of function ‘page_handle_poison’; did you mean ‘page_init_poison’? [-Werror=implicit-function-declaration] page_handle_poison(page, false, true); Signed-off-by: Randy Dunlap Cc: Oscar Salvador --- mm/memory-failure.c | 5 +++++ 1 file changed, 5 insertions(+) --- mmotm-2020-0625-2036.orig/mm/memory-failure.c +++ mmotm-2020-0625-2036/mm/memory-failure.c @@ -200,6 +200,11 @@ int hwpoison_filter(struct page *p) { return 0; } + +static bool page_handle_poison(struct page *page, bool hugepage_or_freepage, bool release) +{ + return true; +} #endif EXPORT_SYMBOL_GPL(hwpoison_filter);