Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10805924imu; Thu, 6 Dec 2018 07:06:04 -0800 (PST) X-Google-Smtp-Source: AFSGD/WgRdt//JdUdvZBynX2KeysJFcNfZbhC2UIExnmVFeEq9KkBa/FsXMOv3vWq5iUHB6db7l2 X-Received: by 2002:a62:4587:: with SMTP id n7mr28516148pfi.118.1544108764325; Thu, 06 Dec 2018 07:06:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544108764; cv=none; d=google.com; s=arc-20160816; b=V0gdn6sQ4ya51Nkbvwglo+kHQg9u0knZDfKA3093LeB8awWMEEmwkIV0W4mw5lkts+ YlXyyW4nE+EyfvrsjiCu3RAy+mQjTg8mWQeD3MvU8s/uJXozxAmu+7BkiJVs4hw/5NsN oEO+nxbAdN2xh/FRTNPmVHIBNjoe0nYfOtholXAxPrjfoIz3t0Sc+3Xw0NDO89y4qP5a s7rdFHPjiWLzioadPpIpFgpaCWcucw3FDQkBV98MpdduMs7KVTAKOO0xHFlMteM0VBQd 0O0kjpRSkQfRd4IDhbRMPi8T4KpJDztX/1qyGYCv1H5393UJACP2GDGl7rMW0vMECDNi tS3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1Ww/RtAgrRIH6lz2Y8vYaAIvbz9EYN+kMxq+fYs0Tlw=; b=kGJ1530GTciXJ28V+GXzyDCKmTihhqIaSftUsLO3rhL5PvGmje6Oe0NPJlCxnt+UAT vVRh/K0olywy+thCe7lcJ6Wmv+r6056YiQhYufFMKjZNuuHvmQmqsIBsmY91xHTM0HGd o6pFmTcBarsJX6/vsmpKY/V6ds9L1WYszEOnmhTKbKtoQx+h7r37wydR82qQWZA9oj0E yuXzneUoJOZ6Ce+ccIElIVQKNDR9Pw7NFMZ8kUpi3IRqiAnhOkBflLr7eTMlOS3JAAcE qQvhsWK6wuvdGEKBrOfgm9kH9Qglh99l96uJCdRXXIYqCvu1MAw63wNnacrWbmdcQbMp neKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=DnMjz38Y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c10si405086pll.271.2018.12.06.07.05.35; Thu, 06 Dec 2018 07:06:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=DnMjz38Y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726258AbeLFPD2 (ORCPT + 99 others); Thu, 6 Dec 2018 10:03:28 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:32938 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726150AbeLFPD1 (ORCPT ); Thu, 6 Dec 2018 10:03:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=1Ww/RtAgrRIH6lz2Y8vYaAIvbz9EYN+kMxq+fYs0Tlw=; b=DnMjz38YhyM7PLXhdeLObvURP JFeTpmgs2ZwbDa7eNFJHD14PdgsM9CV2tPU8RqzROvL9wlqmr6bK3dLhEXfTvlzVFYfQZmrrdpTFW LVdAKSFw5vTPAKbxgA5D+uufgT92OWm6YMexiRoiYu5ItAJM838GjbUizzO4t/yDVAo0CKriW9Ms8 jJ14gvvvDivnMnro4WTt1hAkCOhd2zwjAsElYLNpvACeeO2It+uMNjmTebBYMnW5fIw0rwdiN2Bjg 3JV45NvYx9xhfc7a8sMs3lcr2Kxo2Fxm+Xl1lBW1YiYCEQ+nvebKobsgJHhXc20IIKAgafwuRXudN kiv695RrQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gUvBV-0000uP-EY; Thu, 06 Dec 2018 15:03:25 +0000 Date: Thu, 6 Dec 2018 07:03:25 -0800 From: Christoph Hellwig To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, Sam Ravnborg , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Corbet , Michal Marek Subject: Re: [PATCH 2/3] kbuild: generate asm-generic wrappers if mandatory headers are missing Message-ID: <20181206150325.GA2726@infradead.org> References: <1544009286-15705-1-git-send-email-yamada.masahiro@socionext.com> <1544009286-15705-2-git-send-email-yamada.masahiro@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1544009286-15705-2-git-send-email-yamada.masahiro@socionext.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 05, 2018 at 08:28:05PM +0900, Masahiro Yamada wrote: > Some time ago, Sam pointed out a certain degree of overwrap between > generic-y and mandatory-y. (https://lkml.org/lkml/2017/7/10/121) > > I a bit tweaked the meaning of mandatory-y; now it defines the minimum > set of ASM headers that all architectures must have. > > If arch does not have specific implementation of a mandatory header, > Kbuild will let it fallback to the asm-generic one by automatically > generating a wrapper. This will allow to drop lots of redundant > generic-y defines. > > Previously, "mandatory" was used in the context of UAPI, but I guess > this can be extended to kernel space ASM headers. How useful is it to keep the generic-y behavior around at all vs making everything useful mandatory?