From mboxrd@z Thu Jan 1 00:00:00 1970 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=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no 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 6E64FC47089 for ; Thu, 27 May 2021 08:05:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 49A5A613AC for ; Thu, 27 May 2021 08:05:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235178AbhE0IGp (ORCPT ); Thu, 27 May 2021 04:06:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233657AbhE0IGn (ORCPT ); Thu, 27 May 2021 04:06:43 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65B55C061574; Thu, 27 May 2021 01:05:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=HZTJtPak0qESqpxtknOeWjbW9dY9rji7MIUgVM4VTb0=; b=mhlRpKNsUp7fwJVYOWwOqzxNZe wX3ay94qV385dgr6it9qVXZErZFu+PTxCzihyL9Y0RsXOt7W+TwzeC+XHMxGZswJjheaTlCxf1pfB ofWnnBj1FsjpHp99A2GTRg6t+f1POAMoUMqhYJrNkYGSgcTHJTwgrWP/ClzVQX1H5FsETL2NZWeZq yJZd1xRRMJyWLSLpY+2q2x+i+3J28B/8PxX+7TMrItNzB9Uvm1d1dz7PukjGMqCppxZ4u021764xH NKtgUbU1RwcIrwbBQUJM+6vZhDryX/edNK342WMHb5OV9lG7R5II65p7XXBl5pVCCeVw7hKBXSaN2 /MtDG6Og==; Received: from hch by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lmB0C-005JUT-22; Thu, 27 May 2021 08:04:28 +0000 Date: Thu, 27 May 2021 09:04:24 +0100 From: Christoph Hellwig To: Mel Gorman Cc: Andrew Morton , Andrii Nakryiko , Michal Suchanek , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , open list , Arnaldo Carvalho de Melo , Jiri Olsa , Hritik Vijay , bpf , Linux-Net , Linux-MM Subject: Re: [PATCH] mm/page_alloc: Work around a pahole limitation with zero-sized struct pagesets Message-ID: References: <20210526080741.GW30378@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210526080741.GW30378@techsingularity.net> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 26, 2021 at 09:07:41AM +0100, Mel Gorman wrote: > + !defined(CONFIG_DEBUG_LOCK_ALLOC) && \ > + !defined(CONFIG_PAHOLE_HAS_ZEROSIZE_PERCPU_SUPPORT) > + /* > + * pahole 1.21 and earlier gets confused by zero-sized per-CPU > + * variables and produces invalid BTF. Ensure that > + * sizeof(struct pagesets) != 0 for older versions of pahole. > + */ > + char __pahole_hack; > + #warning "pahole too old to support zero-sized struct pagesets" > +#endif Err, hell no. We should not mess up the kernel for broken tools that are not relevant to the kernel build itself ever.