Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp852739imu; Tue, 11 Dec 2018 08:32:44 -0800 (PST) X-Google-Smtp-Source: AFSGD/UkJrFJgJ/KYgH87Xu41Z9Pe0iCPDKOZkNAMwqW6WLSDsu1h0UWaarAChxy9zvEFFF9Os6C X-Received: by 2002:a17:902:6b83:: with SMTP id p3mr16512107plk.118.1544545964712; Tue, 11 Dec 2018 08:32:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544545964; cv=none; d=google.com; s=arc-20160816; b=PWYwodNmKSn3FfjDtUWKP4MmHJ1hrsiV97FIbK0jhMyspnIUP2fcfuWX7JwCzDEtsY MzTJOPDr94hxlyCbY/pnQqWg35Vl9Dz4ZWGFMiEhfL4n78ZpdsWeO8G8FbpJ+eROtVZw a1i8Jyhi68rylceBHbpq0JTJoizwxasz5k03RBXzId9A9gJzAkqQbxWvrutTqsTRiLo5 9O3acpVdQ7P4jpDH9e0csg0zCsgcapcKatG6HZKAyyjfvQ/bJmMG8fHlV0ejbcB8lVSS M2wFXxUInR0SC0VGt4mrR1VBubJTSD44ivVA43h17uks97EULLgI+3Lw/Nll2iaeQKYO Smjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:to:from:cc:in-reply-to:subject :date:dkim-signature; bh=gzbxHecU86LFLkoFtvtJbFFqdwZzwuGxgACWUAu+Sow=; b=j8ern0eJ3+/8OQoYKiwLm17Ysfq1YYpaptt0gKho06j3UcfO0+VZy5nLSxx0tdJCTr S7W2m6enCsNEQlXLIXgCB9wjK/gGrC9yK2vsmBfMgcU9Ik4WQmqNI0IZa+E4YKhDorj2 Ab6DEzOn8QCCqfO2GgGzUC1yhhVhrUNqUiCSlAXSvZh5mj1I82mWnjw0QysTOgIZ+am/ BhoigveU6/q4dlv3DBJO74tWbsKdqJaNF+ncLz63W+HyUz14FnwqwNBZ5bMjDwNccI+M VnkNk51UGFqtfjXNt6sWdtbrj0VJ6g1WvnpaQwEDfooLL4+sRkJDAf9iGBb6H2Hj37cs 7k+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=nlcyGlKR; 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 i5si13402947pgn.243.2018.12.11.08.32.29; Tue, 11 Dec 2018 08:32:44 -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=pass header.i=@sifive.com header.s=google header.b=nlcyGlKR; 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 S1727531AbeLKQ34 (ORCPT + 99 others); Tue, 11 Dec 2018 11:29:56 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:43081 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726628AbeLKQ3z (ORCPT ); Tue, 11 Dec 2018 11:29:55 -0500 Received: by mail-pf1-f195.google.com with SMTP id w73so7355083pfk.10 for ; Tue, 11 Dec 2018 08:29:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id; bh=gzbxHecU86LFLkoFtvtJbFFqdwZzwuGxgACWUAu+Sow=; b=nlcyGlKRTqTbq8+IqXBHRqittXZfjRRwenzH80RsKpkqfJtTJNrQgXGnnLbcZUMhYr wvTmkOaaCn434bSQn7aCr/wxuJHQKqxuIbeWcUIJDYE57yOeW1/AB3NLcFPtzL1kP4Ml YPY0npu+udLAC11iErcC+8C7cCojqyC8fEA0bJB9HSrpyIbO4IGRXiDPeGmI7T7B3pTc fV7/bES0gkdi+IYjwD3lfkFnUhYNhJk0SSd1IRGUH8vXf8KQX5HtgHjCFkNWVWzqcX6/ A6roqauT34wp6klDiUXjgRIlt6o+5UCDN++fDfLvXtXxh+nIPu8/8+BUrwW2tUWxvuMo i/zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id; bh=gzbxHecU86LFLkoFtvtJbFFqdwZzwuGxgACWUAu+Sow=; b=sOKQ+Jd1zKH26uWAc0jmbIQ22TgIjdDfYY6nnY4jeYySvNZoyZm42owEVJH8JUqCOC ErUEAERn8ssXQOjhQZknDO+7M/5RWNFZX0NHtqtqxrxaYyyVXzxNF+c1cfPyqwOaXtxT pqXjSeZYf/NTNoiECXUiVb76qs6c2kmbuRUy4VwOo/acgeijk0ZOI6WKS3L/PgXiC3bV iK2x/VK8xpWJMrH3HEeQD53J4rWD0qeL7H+1ln2jhOh+aJY1UGWl6pUXHtKWP/re+en5 +BDme03P0NPgcCHibL46lRdPHFcsL8/5rNTk+kb//3dlsc6MaQt4zc5cwJbDevCAvU4L F8WA== X-Gm-Message-State: AA+aEWa+QAOdOs+vAPGrqGqZdlNpOnQcAv1b+WtH7T5vmKN5aUPptAKI SDYLec6F0skOo7UK2npmLyUFmw== X-Received: by 2002:a63:4745:: with SMTP id w5mr15452249pgk.377.1544545794727; Tue, 11 Dec 2018 08:29:54 -0800 (PST) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id c13sm20690787pfo.121.2018.12.11.08.29.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Dec 2018 08:29:53 -0800 (PST) Date: Tue, 11 Dec 2018 08:29:53 -0800 (PST) X-Google-Original-Date: Tue, 11 Dec 2018 08:22:07 PST (-0800) Subject: Re: [PATCH 2/3] kbuild: generate asm-generic wrappers if mandatory headers are missing In-Reply-To: CC: Christoph Hellwig , linux-kbuild@vger.kernel.org, sam@ravnborg.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, corbet@lwn.net, michal.lkml@markovi.net From: Palmer Dabbelt To: yamada.masahiro@socionext.com Message-ID: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 11 Dec 2018 04:59:26 PST (-0800), yamada.masahiro@socionext.com wrote: > Hi Christoph, > > > On Fri, Dec 7, 2018 at 12:04 AM Christoph Hellwig wrote: >> >> 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? > > > What I can tell is not all architectures > support kvm_para.h, ucontext.h > > I guess they will stay as arch-specific generic-y, > but I am not an expert in this area. > > > kvm_para.h is missing csky, nds32, riscv. It looks like RISC-V missed it and everyone else copied us. I don't see any reason why the generic version wouldn't work on RISC-V, as it just has failures for all the calls. > ucontext.h is missing in alpha, arm, m68k, parisc, sparc, xtensa > > > > bpf_perf_event.h could be promoted to mandatory-y ? > All architectures have it.