Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp717469pxv; Thu, 8 Jul 2021 12:22:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJnZ1+j1XMgiEpbR0RZ4LxOnyI444yWkPyrKrogA1JKo4KfEiOx9DDT5uJSa73OnWVROrZ X-Received: by 2002:aa7:c0ca:: with SMTP id j10mr37482089edp.203.1625772151327; Thu, 08 Jul 2021 12:22:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625772151; cv=none; d=google.com; s=arc-20160816; b=K0U/KAnfruIES+wTmHEN1I3DDNJmzrknr+xlTBKVc9hy8xMnLu47/+RmB8XeK3uJ27 Op5muthd/GiphQj7rRv+ffdizfJIQ7xwyRyBDCkM5N1Jl1Kxo2bHcuVzN3A4vJj5k0Xv kBpSXI8VWIaDDGnj2rXTMenQU0fXhZvqnE1HNoDpna8ZH7AFRxSH+LZAA2u1jnjJivhR FqKSlD6/Fbm9G4b1nIh+Ztdx9kAlA+pjRBz4pk7oujh9ZcuVbzjEHGXQRQBd/D8ZLmmN 1myNRLN7vNTUW7iAV1/DYbcsgR9YCXS/xzweEKjeloypwZUeKo4EdjmYtX1VovEoAwKK Fa4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=Q8WE1LNr4KQZ18QhTS+NsyD2hF6vFEvIkj9yEEgkbdo=; b=meyPG+spI1yvllEXfaepPN1hDzYCfiLc6tdiRdfbJl7KpqrYYQ9gH4Cu+7vlkaAnJO eIM+NVwWRlQNNme1Ox3pq03EJNmuZLkbH08LK+Leq5f/E/ZlmZfzLthV2j1ORQqEFzgu gyc1VGO4r6zVbeRQWekHoiza0RDzRy5A6YTCXoz1FQ9h22W8jIdnPU1RXp9hm7LbElT2 eUqCrSg/gUuH2LY6M/I7l4UolWTS2IMMu+24+BALcPUXlFTfp2/u3YUW3pyb+Mdnz3QP wiunbpUD7T4Q0IywxjAVj+4RzS81vvd6N8Ee9JPp1fBN5ahIK6HDfqUv2KiZZtyjJ8BU xs3g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cy15si3981510edb.173.2021.07.08.12.22.07; Thu, 08 Jul 2021 12:22:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229795AbhGHTVi convert rfc822-to-8bit (ORCPT + 99 others); Thu, 8 Jul 2021 15:21:38 -0400 Received: from mail-ed1-f42.google.com ([209.85.208.42]:38523 "EHLO mail-ed1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbhGHTVh (ORCPT ); Thu, 8 Jul 2021 15:21:37 -0400 Received: by mail-ed1-f42.google.com with SMTP id x12so10104944eds.5 for ; Thu, 08 Jul 2021 12:18:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=Lcf7pj0lQYGzDh3Xt/SAhA9pFGz1V15H7OOqaDQJa10=; b=uTjM/LKlT83bLSUbTuGN68xO6UEPLSXW+DsYtel9cgqrCDIbLDjwafp7319Sjq//hO 21yqGpTAsApj4ob8F1ciysuA5sHvChipcD/fTc8PsvrIhnXaWN1GXt3c0aUdkSrXBMTy EkFIoymE7WcR1P/mSZPZr2bIR/Us11MeloQeWEkrB1QHoe7dtMlNox+3CoTp/lcNsjxS nZMJ+ee3SIG5zk0k862fzPfGKtjC1KlOSmXdtLrL67uUtUBTWm5qu/hDeZG86mvoyiuJ 0cJENE3vsBFmjKt8P9ktqkNv3vHQScMizQufkseURzZqaCR7avjCVAK45f3c9+GQHGk/ 2t4g== X-Gm-Message-State: AOAM532Cpjks/Uxsx6ufXJv1w/W/wTfEa08PdUZhqPdvkU7s6nJST2rx tjisMdJN+P70MGF54W077Bs= X-Received: by 2002:aa7:db95:: with SMTP id u21mr40422671edt.152.1625771933841; Thu, 08 Jul 2021 12:18:53 -0700 (PDT) Received: from localhost (mob-2-41-76-128.net.vodafone.it. [2.41.76.128]) by smtp.gmail.com with ESMTPSA id b23sm1719733edy.44.2021.07.08.12.18.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jul 2021 12:18:53 -0700 (PDT) Date: Thu, 8 Jul 2021 21:18:44 +0200 From: Matteo Croce To: Mel Gorman Cc: Andrew Morton , Michal Hocko , David Hildenbrand , Vlastimil Babka , Dan Streetman , Yang Shi , Linux-MM , LKML Subject: Re: [PATCH 03/14] mm/page_alloc: Make should_fail_alloc_page a static function should_fail_alloc_page static Message-ID: <20210708211648.13659bb5@linux.microsoft.com> In-Reply-To: <20210520084809.8576-4-mgorman@techsingularity.net> References: <20210520084809.8576-1-mgorman@techsingularity.net> <20210520084809.8576-4-mgorman@techsingularity.net> Organization: Microsoft X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 20 May 2021 09:47:58 +0100 Mel Gorman wrote: > make W=1 generates the following warning for mm/page_alloc.c > > mm/page_alloc.c:3651:15: warning: no previous prototype for > ‘should_fail_alloc_page’ [-Wmissing-prototypes] noinline bool > should_fail_alloc_page(gfp_t gfp_mask, unsigned int order) > ^~~~~~~~~~~~~~~~~~~~~~ > > This function is deliberately split out for BPF to allow errors to be > injected. The function is not used anywhere else so it is local to > the file. Make it static which should still allow error injection > to be used similar to how block/blk-core.c:should_fail_bio() works. > > Signed-off-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 aaa1655cf682..26cc1a4e639b 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -3648,7 +3648,7 @@ static inline bool > __should_fail_alloc_page(gfp_t gfp_mask, unsigned int order) > #endif /* CONFIG_FAIL_PAGE_ALLOC */ > > -noinline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int > order) +static noinline bool should_fail_alloc_page(gfp_t gfp_mask, > unsigned int order) { > return __should_fail_alloc_page(gfp_mask, order); > } Hi Mel, It seems that this breaks builds with CONFIG_DEBUG_INFO_BTF=y. Maybe that warning was a false positive because should_fail_alloc_page() is referenced via a macro? I proposed to revert it, feel free to propose another fix. Regards, -- per aspera ad upstream