Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp242896pxj; Fri, 28 May 2021 02:58:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyElEH7b4jLGue80avXgQZSlanQJ4hvf5cducOCVNLmiq0tQanRLN65cHyTxxa/nqJqk+z X-Received: by 2002:a92:c608:: with SMTP id p8mr6818702ilm.6.1622195936038; Fri, 28 May 2021 02:58:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622195936; cv=none; d=google.com; s=arc-20160816; b=u5xQPkakURiU67s7rVmLL0BxW9D6yTKal+cMLJVuHxYBXq8wwaAv2QeEMAZx52YdIQ KXTylAGze6aK9QUuRA8IOzMpj49XyEB7L2syjjJLrKoAvtqVzx3rGN2iK55SIMgfdzyZ SYY1myP/yaxwkKIjhlMnuo4juUZpxUF9uxOxmFdrykxFI0m93TFaOtzdkpsgoKeWjsoh /H5n0YXCpZPkCT+xnzu/TLohgE2nxFvtVO0/+yd89GU0CYk0fEmR6O8pJKQFkcajgPPv zJyVwJ9Nd4gQBvkGQFnv1xcVmjXC2tByIVr4bYTi9WJDacssYHNdVcaOH4Cmp48natSQ HXRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=dhdQKKFKjVq0AOYJ94M8zTULaqoglwzD51M65ba4TkU=; b=N6+ahCMr9TBioRLF1mMny0uy+fzCcCdw5vdo+UFmjXSihkVZOdxOnyzPdbhTM4N57j PHFPDabINzGYrjBBH1JNvwOnjMBd5dHRXXZvS2st7LBJuK+nkUqaHeNVOIuzvKfUjHtg IkVPSB1BlN2SExdDbC/BizyQAtcVjPxt7lBN2SZVkYbaNHwwAj+Lebcw5YlfyS33vWlV 8iFPLxQ63FN3rgNw9MbqIxmLxjDmEGdBHl7UHt+9aa4jt7FY/8mMzMRb0BknIjw2Ww8i QojbQZ1W/wV364lj0B2MjIL110f95Ox//giD9JsBpycm7Kh02y9WpCxBHbz1iE+JGFY0 UczQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=bcrRKaP1; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=2zyj6nHC; 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 q1si1247004jat.103.2021.05.28.02.58.42; Fri, 28 May 2021 02:58:56 -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=@suse.de header.s=susede2_rsa header.b=bcrRKaP1; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=2zyj6nHC; 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 S236287AbhE1J6Q (ORCPT + 99 others); Fri, 28 May 2021 05:58:16 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:60344 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236229AbhE1J6P (ORCPT ); Fri, 28 May 2021 05:58:15 -0400 Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 5C5EF218B3; Fri, 28 May 2021 09:56:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1622195799; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=dhdQKKFKjVq0AOYJ94M8zTULaqoglwzD51M65ba4TkU=; b=bcrRKaP1GJLre/Zq5cnkwbRfyp/acLxsQqxEV73LpzpcavYCf/E8uconIrVnhvXWjSrGpA IXKbl4+vgZiyCuNaQC4FSOiZUKQOZCq7DX+pYRuwf2bxUKC5fT4SmZZDssutyySovncCL/ yQ4pPvBsRVbg59hkE7UX+cBN/nBeF00= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1622195799; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=dhdQKKFKjVq0AOYJ94M8zTULaqoglwzD51M65ba4TkU=; b=2zyj6nHCR2O/JVjQiRV+RYfa3ndqrFN05rtEekrLqwYZQJ63TvusgWLRpPDQF4leVK7sU7 i8w6V+mes0b0otBw== Received: from director2.suse.de (director2.suse-dmz.suse.de [192.168.254.72]) by imap.suse.de (Postfix) with ESMTPSA id 3542C11A98; Fri, 28 May 2021 09:56:39 +0000 (UTC) Date: Fri, 28 May 2021 11:56:38 +0200 From: Michal =?iso-8859-1?Q?Such=E1nek?= To: David Laight Cc: 'Mel Gorman' , 'Andrii Nakryiko' , Christoph Hellwig , Andrew Morton , Arnaldo Carvalho de Melo , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , open list , 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: <20210528095637.GO8544@kitsune.suse.cz> References: <20210526080741.GW30378@techsingularity.net> <20210527090422.GA30378@techsingularity.net> <8fe547e9e87f40aebce82021d76a2d08@AcuMS.aculab.com> <20210528090421.GK30378@techsingularity.net> <2755b39d723146168e875f3b4a851a0d@AcuMS.aculab.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2755b39d723146168e875f3b4a851a0d@AcuMS.aculab.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 28, 2021 at 09:49:28AM +0000, David Laight wrote: > From: Mel Gorman > > Sent: 28 May 2021 10:04 > > > > On Fri, May 28, 2021 at 08:09:39AM +0000, David Laight wrote: > > > From: Andrii Nakryiko > > > > Sent: 27 May 2021 15:42 > > > ... > > > > I agree that empty structs are useful, but here we are talking about > > > > per-CPU variables only, which is the first use case so far, as far as > > > > I can see. If we had pahole 1.22 released and widely packaged it could > > > > have been a viable option to force it on everyone. > > > ... > > > > > > Would it be feasible to put the sources for pahole into the > > > kernel repository and build it at the same time as objtool? > > > > We don't store other build dependencies like compilers, binutils etc in > > the kernel repository even though minimum versions are mandated. > > Obviously tools/ exists but for the most part, they are tools that do > > not exist in other repositories and are kernel-specific. I don't know if > > pahole would be accepted and it introduces the possibility that upstream > > pahole and the kernel fork of it would diverge. > > The other side of the coin is that is you want reproducible builds > the smaller the number of variables that need to match the better. > > I can see there might be similar issues with the version of libelf-devel > (needed by objtool). > If I compile anything with gcc 10 (I'm doing build-root builds) > I get object files that the hosts 2.30 binutils complain about. > I can easily see that updating gcc and binutils might leave a > broken objtool unless the required updated libelf-devel package > can be found. > Statically linking the required parts of libelf into objtool > would save any such problems. Static libraries are not always available. Especially for core toolchain libraries the developers often have some ideas about which of the static and dynamic libraris is the 'correct' one that they like to enforce. Thanks Michal