From patchwork Thu Jul 8 19:11:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matteo Croce X-Patchwork-Id: 12366109 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1636BC07E99 for ; Thu, 8 Jul 2021 19:11:48 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9A61D61622 for ; Thu, 8 Jul 2021 19:11:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9A61D61622 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 52F016B0036; Thu, 8 Jul 2021 15:11:47 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4DF216B005D; Thu, 8 Jul 2021 15:11:47 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 380616B006C; Thu, 8 Jul 2021 15:11:47 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 0AD936B0036 for ; Thu, 8 Jul 2021 15:11:47 -0400 (EDT) Received: from smtpin14.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 3A49C2775A for ; Thu, 8 Jul 2021 19:11:46 +0000 (UTC) X-FDA: 78340365012.14.1669DE1 Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.182]) by imf12.hostedemail.com (Postfix) with ESMTP id 9DD9910000BD for ; Thu, 8 Jul 2021 19:11:43 +0000 (UTC) Received: by mail-qt1-f182.google.com with SMTP id f12so4682478qtf.5 for ; Thu, 08 Jul 2021 12:11:43 -0700 (PDT) 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=y37sxqdyEEFFUgy5VlTHVFB6NCIJDJ+Q1MpiuJu7Kuc=; b=TmwN/PKfP6d4IFi+uS5PkSrGI1AYho57BhOCTecrYiKGOpyiNwURUn7WFbpQm3wel5 4Qvw6CTcBM2SjC0I7CyxLwSK0re34M5aq6RZNnr6YI9Kz9f/3gHIHq2LfI4kt1k79Ttp xR250cXxF8Cxdv3B5/5sniHqF7Ypry7LpHsY2AeY9xlplaA2nhiQpHUAtRkh6RSFMy3o Q5IakaUcDm9Rinu7pvTXa36ORzEkPWS8IU0U+CihreRLc6OBqCsOr+83FLkju2lNOiYe E2fe/MHMIMYyDpH83YXFdXxdGkchifYxcGsFTpKreZOG89ZDdnJ0UhMfxlAJS0Rjm1vT 5oZw== X-Gm-Message-State: AOAM533+a4YZmDBiX9FrURldtieBa+djN8XDI9MmE+oNkrBCL7QYIAg5 epW53WgBbpmPEGLW5kl4EpM= X-Google-Smtp-Source: ABdhPJxKOGf0wyKILouQA7dYUfZOfHDAgSb3Z5+ZQgEPFEzSYKD/7E0N9Y3cN9BswWyxBFjZb5fuCw== X-Received: by 2002:a05:622a:209:: with SMTP id b9mr9039217qtx.375.1625771502621; Thu, 08 Jul 2021 12:11:42 -0700 (PDT) Received: from msft-t490s.. ([45.74.48.12]) by smtp.gmail.com with ESMTPSA id p9sm1283880qtw.88.2021.07.08.12.11.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jul 2021 12:11:42 -0700 (PDT) From: Matteo Croce To: Mel Gorman , Linux-MM Cc: Andrew Morton , Michal Hocko , David Hildenbrand , Vlastimil Babka , Dan Streetman , Yang Shi , LKML Subject: [PATCH] Revert "mm/page_alloc: make should_fail_alloc_page() static" Date: Thu, 8 Jul 2021 21:11:28 +0200 Message-Id: <20210708191128.153796-1-mcroce@linux.microsoft.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Authentication-Results: imf12.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=linux.microsoft.com (policy=none); spf=pass (imf12.hostedemail.com: domain of technoboy85@gmail.com designates 209.85.160.182 as permitted sender) smtp.mailfrom=technoboy85@gmail.com X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 9DD9910000BD X-Stat-Signature: pbmptaa99aq4jkejswj67hxh7ifst567 X-HE-Tag: 1625771503-529343 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: Matteo Croce This reverts commit f7173090033c70886d925995e9dfdfb76dbb2441. Fix an unresolved symbol error when CONFIG_DEBUG_INFO_BTF=y: LD vmlinux BTFIDS vmlinux FAILED unresolved symbol should_fail_alloc_page make: *** [Makefile:1199: vmlinux] Error 255 make: *** Deleting file 'vmlinux' Fixes: f7173090033c ("mm/page_alloc: make should_fail_alloc_page() static") Signed-off-by: Matteo Croce Acked-by: Mel Gorman --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index d6e94cc8066c..7b6405f8ff48 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -3831,7 +3831,7 @@ static inline bool __should_fail_alloc_page(gfp_t gfp_mask, unsigned int order) #endif /* CONFIG_FAIL_PAGE_ALLOC */ -static noinline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order) +noinline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order) { return __should_fail_alloc_page(gfp_mask, order); }