Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2341698imm; Thu, 9 Aug 2018 11:10:32 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxgowrFFX7QhJQtTDiSoR7Z9NEFicusq1GGZ8ZoCannESTMT97LGiB8k8uDrNT3sj+rs78/ X-Received: by 2002:a63:1360:: with SMTP id 32-v6mr3197513pgt.159.1533838232463; Thu, 09 Aug 2018 11:10:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533838232; cv=none; d=google.com; s=arc-20160816; b=kALTk9/Yl0nWZBE55cAfMHAcJEuCocTpPX/V/M3rSG+yhH/0K3VsqOcaMa2nI98VGm QvinCxgesrASuc0AE59FiieLvIAQ1EMUXrzpNDXsg5dRWL1l89rBNBnaBbRQDJJwV6zo tHM2QzYJCJLACe/fJJZMXV+FjIhePBnzWT0rOacej+s7fWQuZNqNM85LbeHIlrWbaSRi PIg4YD3Uj6w4KWxZ+gfM7aLX6XtsyR5IXmkZ+MomYI9gN7nZM7EHbENZtfMSyh8CYSmX LUR20ci28vweppOpbgO1oaDAKRqlE03IFLUkW1SLtOj8ib7GwRXsUFPnbXhwbuYrV1cg KvNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=rg6DKYXg02vgobaohs1/W9AW1/D7CyhDOsKWiZ7cTp8=; b=iPSKbPfcKibNugMn8asSB0wIiOWDE+EgRj3P+bZB43HMIah7ljv033DejsbclnY6kE Z8GvNRErl9NCO+mqp3iQH+mJNg5a9AfvW47cy3e+CebmmPi5qYDB/eD3r9lCSY3jRUxw dfc3aCoV5BDd9cMxFT11udZxa6UFVWelvyOkASX42pVAuzArKpiLtkWCxYcJ206xNwCH 3LDJDM4tTcg8jlyaaCI9rzw3rG4RdXyxe00s8DxYGu0VfKZ2HzD4RPSQuXalJEjN+OKN TJW1f3uzj+fhqe3iuoljOaWPZDHJHLfcH5Lv0z4IJQYTl+0yUbpSJ1f9lOQWeC4oNbZ6 HVpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=L9cIvveq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t18-v6si6991348pga.301.2018.08.09.11.10.17; Thu, 09 Aug 2018 11:10:32 -0700 (PDT) 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=@kernel.org header.s=default header.b=L9cIvveq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727133AbeHIUes (ORCPT + 99 others); Thu, 9 Aug 2018 16:34:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:38436 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726756AbeHIUes (ORCPT ); Thu, 9 Aug 2018 16:34:48 -0400 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 416B622392 for ; Thu, 9 Aug 2018 18:08:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1533838128; bh=RY8h3SEJtJ5V5EmZT2evf9V1gaQuoSgH9/wCmrsVti8=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=L9cIvveqq5o+JLLInNmKPv15p1XnSpG7KfDzzHPjej8swBjceHCgAxABkmUk/AwYk HAyFyPSMls2xPdU2JOylQ+qS5ipUir21PjEBBepLlxMX3pHboBert2XUZAF76EyrYx ZAKmUS8pgxOLBKVpW+UzzVDK28xaU7r4jgfz97d0= Received: by mail-wr1-f42.google.com with SMTP id v14-v6so5923023wro.5 for ; Thu, 09 Aug 2018 11:08:48 -0700 (PDT) X-Gm-Message-State: AOUpUlEeJk865DpjLmEPaaVDjPNo5ybRjuHj2I3Ec1YPFa3FxijFevJp HBpbxkLK8iyuwbkL6EeeO7RmaTkNT55zqFZsT3YVvw== X-Received: by 2002:adf:8325:: with SMTP id 34-v6mr2091676wrd.67.1533838126721; Thu, 09 Aug 2018 11:08:46 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1c:548:0:0:0:0:0 with HTTP; Thu, 9 Aug 2018 11:08:25 -0700 (PDT) In-Reply-To: References: <20180801072246.GA15677@sol.localdomain> From: Andy Lutomirski Date: Thu, 9 Aug 2018 11:08:25 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 2/3] zinc: Introduce minimal cryptography library To: "Jason A. Donenfeld" Cc: Ingo Molnar , Thomas Gleixner , linux-arch , Eric Biggers , Linux Crypto Mailing List , LKML , Netdev , David Miller , Andrew Lutomirski , Greg Kroah-Hartman , Samuel Neves , "Daniel J . Bernstein" , Tanja Lange , Jean-Philippe Aumasson , Karthikeyan Bhargavan Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 7, 2018 at 6:51 PM, Jason A. Donenfeld wrote: > On Tue, Aug 7, 2018 at 6:49 PM Andy Lutomirski wrot= e: >> I really wish we had a way to see that we use asm-generic=E2=80=99s copy= of a header in all cases except where an arch opts out. > > It's really not that hard to do -- symlink asm-generic to a target > called "asm" inside an otherwise empty directory, and add that > otherwise empty directory to the -I paths just after arch/include. > Since it's searched second, it's only used if the first fails. Maybe > I'm missing something though, as this seems a bit too obvious. Perhaps > a project for another day. The problem here (I think) is that it's preferable for stray files in the kernel tree to have no effect and, with this scheme, stray files in arch/*/include/asm could affect the build. So something explicit has an advantage. I just think there should be way to say "this asm-generic file should affect all arches unless they generic-n or override-generic-y it or whatever".