Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp624991pxj; Thu, 27 May 2021 08:06:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVMnCFNTYwxkjxpkg7N1ATC2J4ttet/PDb+znTyAl4cyPHo4VhQ2y9SrlAuLCpuCwi4uaa X-Received: by 2002:a92:260b:: with SMTP id n11mr3311519ile.134.1622127992538; Thu, 27 May 2021 08:06:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622127992; cv=none; d=google.com; s=arc-20160816; b=oNhF0nwx6GVPuoKP0YCD71Raihd4cIfuM7QUIJPTNe+mCeug1+sAO7b/oxHlmjVhDD Pl7FMcvpXxcSkimTW3EMGeMP9ZF3c7/tFer76ADdygviklA1MXmqKuH003HRPd9ID/OK Is4xpkAoOxKlKJ8gDUwkIWW0ATkgMNjFFKpuRRc74CknMpUZSgZPsOCm8Z828iseUdhU +ZEyWbOQrLpINX5bfL8q2bFBMHgd/rlSlYDSwe2U4AtQNls0v8Qsqp/bXL7OxZnKjAv3 HkqpRRkGt65Nv7ExSzOH/zd6yqAkHIhJ7rguVoafaNx90q0/i0kKAfr0Ot1letOZrFLV L0EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HZTJtPak0qESqpxtknOeWjbW9dY9rji7MIUgVM4VTb0=; b=jHXUp8vL2J5Re5v8vw9LOSi5n4wwnIkVIARAMRVlUMkEdR01z8H08ky0qH1/1kKzOV sUxEq9uamZHWqBsS56cz3ZzulXhEWfOshINYjkKjE0Mk9nNZqNZSJLm3b4WeHWyiwPen +zXnq90WX7efAqkqjkYYDxcmEEnDrOXtbNFqbX1Tzv3ZEKWImkRoBfawM7bEP5ysflKK Ngbz6RnNIIPCnMy5UyDnbK048sA4GdxCS0oVrJqohxLzon217JEjd0SoP7Cc6+8z/KzJ W/ePuuCsZhCFE1w3578kQ0FXZCWKALDF7Q8GOfjLgNceHkIgX8pkYsONpS4HInFnaJKj 4dQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=mhlRpKNs; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si2439606ilk.127.2021.05.27.08.06.16; Thu, 27 May 2021 08:06:32 -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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=mhlRpKNs; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235103AbhE0IGo (ORCPT + 99 others); Thu, 27 May 2021 04:06:44 -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.