Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4122393imm; Mon, 17 Sep 2018 08:31:12 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbySBnqZDvHoLrzNdofkD3YPKuIM2Pp9dNv/1j5CV+EkU+BkgvUkXb0SHZpLCqZvhj5pfAN X-Received: by 2002:a63:8241:: with SMTP id w62-v6mr22757021pgd.230.1537198272706; Mon, 17 Sep 2018 08:31:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537198272; cv=none; d=google.com; s=arc-20160816; b=wGXwTR1AAmapBKZWiGAtlLbJ5NWZN5HkEhxrzFV6zZHVFQp1Sn4ROzywl3cBoprNlH c+5HWxMoRJSZxmvHoB2stm7YmDNdDqSZelDrRv6H0IYLp6A3f4vz7T/UH968Gn0TMleC BOcKIwFjPNfP/QXyDuN1X6MiiCUOW8TvqqikAIkXQpfsJDI+Is8KBbB8/tjnhSrVJhmg Oka0IrftSBg2efO3/Z4Hmli4ZUZByRpDez5m65+eXNxU8rplxvC3Fk3hFyJI05Uncz6b e8CIrvf42SoWGxmLI9r3NBSFlrRl7ftgR3MnHcZSyVSehIvmmxdUhWoZPg4GAe5aazos XIPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=+EtmQ+1IEacSnIpee8rwjA4HpACFJqt/kRpSYhp8cpI=; b=ddl+1Ui3Xs3KZrbG2PRivgJrjl8vilUJgFUkhNF9ABzfaLO3nFiktG7i4cLIamPgQ/ HW2GalvNIDomPv/bbj2WtJjKiu9qUDRGobSjn+eVmiJX+TwN4xJU40hUME7dH0mVrZer DJlq2EyRz8M7xZAHynXoMq1YUlTzJFqKw0MnP6quaAPjXSXacxfawRrHM2XXk7oSwnI9 ahK/BxTRj5vkSPjZ3gG6tJ+f60tw+tr4ezaJSarOV8jtmUL3LrZU1/BY8LiZHARBSxub yocZtcgs1WBmxzsjwOy1sk6N2SEKIZLtWNZeg/sKVXLmiNF6dnSTNi/w2y3gH/Zjex+h Xc1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=LoqQBG31; 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=zx2c4.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 29-v6si16062022pfn.205.2018.09.17.08.30.45; Mon, 17 Sep 2018 08:31:12 -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=@zx2c4.com header.s=mail header.b=LoqQBG31; 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=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729132AbeIQU47 (ORCPT + 99 others); Mon, 17 Sep 2018 16:56:59 -0400 Received: from frisell.zx2c4.com ([192.95.5.64]:54193 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728361AbeIQU46 (ORCPT ); Mon, 17 Sep 2018 16:56:58 -0400 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 7b4f43f5; Mon, 17 Sep 2018 15:11:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=mime-version :references:in-reply-to:from:date:message-id:subject:to:cc :content-type; s=mail; bh=djsXRQdagi35JBCKpgAwu94ywlY=; b=LoqQBG 31kQs+MoT9LP3TF57gSNooOKlhrGe0PMcYv7O/pDa3pRXJkfKs0VOrzGGS41X0d4 c/oudCaFlpQK67FMlMhWbArAQnKXY+WxBXDQm80ku00k0V1slAcc+jP2MqMva3c8 cYT5+V/5+k5i6rMdXkB0l20NXH/UmHU5OZTcp31XA7ZeSZFpH/vUXLtCq85S0sID o0K7lk/nbkiMTi2Tl19Y3YE1EbYRKZCsMB+iQdb+EUediwz+/42e5TdjxEVIo90S kwVUtKlrEP0+9qiyPnBqE+PFJDh4YcNZmh8lp2JE+yFAbyNkuFU6vooqQLn1zSYY pfb3eRW8eTRDAyKQ== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id e616a778 (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO); Mon, 17 Sep 2018 15:11:39 +0000 (UTC) Received: by mail-ot1-f45.google.com with SMTP id j9-v6so11714354otl.2; Mon, 17 Sep 2018 08:29:06 -0700 (PDT) X-Gm-Message-State: APzg51DETvevBrdbNzH7xiwP1OiZCiUzMXzPjHn8HmY2ymPFDplwVvqu 49ErVh1mbjmMw7IvDNGU+gJNK1HmeAaANIRv3DE= X-Received: by 2002:a9d:4a8f:: with SMTP id i15-v6mr13455698otf.138.1537198145166; Mon, 17 Sep 2018 08:29:05 -0700 (PDT) MIME-Version: 1.0 References: <20180911214737.GA81235@gmail.com> <20180911233015.GD11474@lunn.ch> <20180911.165739.2032677219588723041.davem@davemloft.net> <35BC21D7-01F4-4F91-A7E9-8D15DE5B95D6@amacapital.net> In-Reply-To: <35BC21D7-01F4-4F91-A7E9-8D15DE5B95D6@amacapital.net> From: "Jason A. Donenfeld" Date: Mon, 17 Sep 2018 17:28:52 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH net-next v3 02/17] zinc: introduce minimal cryptography library To: Andy Lutomirski Cc: Ard Biesheuvel , Andrew Lutomirski , David Miller , Andrew Lunn , Eric Biggers , Greg Kroah-Hartman , LKML , Netdev , Samuel Neves , Jean-Philippe Aumasson , Linux Crypto Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 17, 2018 at 4:52 PM Andy Lutomirski wrote: > > * (Nit) The GCC command line -include'd .h files contain variable and > > function definitions so they are actually .c files. > > Hmm. I would suggest just getting rid of the -include magic entirely. The resulting ifdef will be more comprehensible. I really don't think so, actually. The way the -include stuff works now is that the glue code is inlined in the same place that the assembly object file is added to the build object list, so it gels together cleanly, as the thing is defined and set in one single place. I could go back to the ifdefs - and even make them as clean as possible - but I think that puts more things in more places and is therefore more confusing. The -include system now works extremely well.