Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp11014941imu; Thu, 6 Dec 2018 10:07:52 -0800 (PST) X-Google-Smtp-Source: AFSGD/X48OhGExkovB42S8gYWgMlI3dq7wdkuidP07qMZ12WqCpKVI25lxZ5LZ2RtqPMDCLbK/qZ X-Received: by 2002:a65:5bc4:: with SMTP id o4mr25458923pgr.426.1544119672858; Thu, 06 Dec 2018 10:07:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544119672; cv=none; d=google.com; s=arc-20160816; b=gXDhPCWmnpUePGZOrf4Cflc17HdguBSdSRV/QuUGjs+EAWiUEwmLoLPY/NVubHTHk8 nHn73Zd8vLI2rAGW8NCie8hByfo8ArWJSKDFFweco7R2l3kgLhLd+20I7h3zG7qO1fDX 1H/M35JBeYSCY/o+YPnOuU4MG3E2oyN5LBx0R7Vckh5YeKoU2UDsH+c5ikRDyLbDf8uU DDKazVM25AFiHIvHUQRcL/23x2yay5ObI3eug7TD2uVme7uCk2gMHa51MBWPyWukJDwc uJCsTsq7X1WTV9lHToqg756TMO3Ykr/6PgQHOSBzXJcO+i0HgMX1MJ6wCPU0hx7784Le fHVA== 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; bh=tVj05nHXiyh/ZXEMXG5BrFMrAG75/mRCx/B++wwLJLM=; b=vLfDj8s6qxjEa0PItWFYtNsoigGJs7Vxh+ol83QHy3uHsyXaM10Bor8qOLZgEEtO7k RT7/Z3wOZk9zwO9BqKXHeJ47R7ffW3IgV+g4ucXpmmjsw3jfSfmJCUyYBvBr0gzCbGQI 6nH3RKyNLmtMOet8W87OTz4DqFKSTH5Fe3UW3fMvDgDZOX2RV8GSzKC0jjonD89cpood 42xYfT+13sTFwRpf5Qs/GMtb1DN+HhuNt/qwjGp869rbnZ1tfFi5kQTuJDHEmK+pWrpz 7CRgscm/dF29IGhDHw3rg8pKBD3/JBuBazWiq8MtYatHnLedRulzbDga/AeB8PH4Hwyl Yjmg== ARC-Authentication-Results: i=1; mx.google.com; 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 w11si721085pgf.452.2018.12.06.10.07.35; Thu, 06 Dec 2018 10:07:52 -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; 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 S1726076AbeLFSFL (ORCPT + 99 others); Thu, 6 Dec 2018 13:05:11 -0500 Received: from asavdk3.altibox.net ([109.247.116.14]:35961 "EHLO asavdk3.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726019AbeLFSFK (ORCPT ); Thu, 6 Dec 2018 13:05:10 -0500 Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by asavdk3.altibox.net (Postfix) with ESMTPS id 483402007D; Thu, 6 Dec 2018 19:05:00 +0100 (CET) Date: Thu, 6 Dec 2018 19:04:59 +0100 From: Sam Ravnborg To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, 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: <20181206180459.GA19166@ravnborg.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.5.21 (2010-09-15) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=dqr19Wo4 c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=kj9zAlcOel0A:10 a=D19gQVrFAAAA:8 a=7gkXJVJtAAAA:8 a=c-n4J4-pAAAA:8 a=X64D9lSbaCuUP_jgSmEA:9 a=CjuIK1q_8ugA:10 a=W4TVW4IDbPiebHqcZpNg:22 a=E9Po1WZjFZOl8hwRPBS3:22 a=L0NDqeB7ZLmQzAogN4cw:22 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. > > Suggested-by: Sam Ravnborg > Signed-off-by: Masahiro Yamada Nice work! For the full series: Acked-by: Sam Ravnborg Have you considered to warn if generic-y contains a header listed in mandatory-y - to prevent that they sneak back in. And to catch when we lift a header from available to mandatory. Sam