Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4161910imm; Mon, 17 Sep 2018 09:07:57 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZSLY/9233ril5R1D4JROzLVoTxNj1yq+Agl4oSDVCT6IagQxVGkRpvcrSBGcdRPRCb8vO0 X-Received: by 2002:a63:4044:: with SMTP id n65-v6mr23431250pga.90.1537200477599; Mon, 17 Sep 2018 09:07:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537200477; cv=none; d=google.com; s=arc-20160816; b=zEYfUapfSvsyZvp+EBX1c6RCT+rmfT2zMG4fOBQE+NLpVHUpbRG3/y9Z01Xl3sQFqk luYGYM3WN0BfV/rnWbn3Z1VxVDXkBbaCLmZlvDpJu24jKZJFyCKFkLELNC4XNwAgVXxt 6KQhunZa8bk7vZfTyAHRPRsQwh6q4cC6wB+hls2DuiSI5qjSqDAQq/ccktnfpnRqLpRZ QtShSybQnlKuGPsQXj8jc+bUL/1VQ7z/KwZdztQeSW3u7B+do0Wh53qWQVj1LBuyB+rF MxSHdg4b9XMMGtRkGXvzxV4EhFVmt0/bqbq8pYxktz2mLagR+deueNYitK8e6wF8MO8J SA6w== 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=fZagmP0C+wtO/FGZ31dSbnE44vX4wTjO5N5JoQCdHnk=; b=U+pFBLouy+kxfkngggC5Gka+oVRN00iPITzR9gySd8da6Ey5XdBJrvXNT+X5RIByMd e8owVxNOEmtXGe23I78C8WltaKh7W5ydEtXoKC2UFLONbTibjwT1tJeP2WqdiViBkxov 0CC7hlqBCshtUxNn5JiZH6/a0dm0+OcsAXajX4EaylJZhwT5wpLRZmGv0Ac0WpnmyKV0 9nt+XHWAUy2JioHoiOxn3RmNVkWbZzm+K/jZ+1U8hLcWpdkEHYmVkwoGynbPzaYuG3q9 r33zWBy28VJp6aqWDHlXPy/QNIzxUGXJN42ACaTr3FZLgMQTqfCsAuPTp/I0FRA++Jhd 6j1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=GoEte3M9; 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 gn18si16336890plb.500.2018.09.17.09.07.42; Mon, 17 Sep 2018 09:07:57 -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=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=GoEte3M9; 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 S1728423AbeIQVew (ORCPT + 99 others); Mon, 17 Sep 2018 17:34:52 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:35098 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727691AbeIQVev (ORCPT ); Mon, 17 Sep 2018 17:34:51 -0400 Received: by mail-wm1-f65.google.com with SMTP id o18-v6so10332847wmc.0 for ; Mon, 17 Sep 2018 09:06:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fZagmP0C+wtO/FGZ31dSbnE44vX4wTjO5N5JoQCdHnk=; b=GoEte3M99h2OFJ6EWRIASajwDj4lqxA1k/6Ca3laO3pwov/M6IMUPKSYm6GKHXVLuK h8cyDgi+FeBtfirO5sf85At2a30j8PTnyGp52vjz9/l1Pim59HNEng9a//AYCCZ4a0RG XqbYw9SDjnpiyL6KuF4ks85CVqW+tB5KUxfIGRTRHofpqCNfYQCd4tTwl6PrAL0UynbB ZjZfc4jHgSeAU9GdkdV9hh6FsI4jFHrBJiieHDT2UTLzBeerIa/LCtHvIU0VM6jNnhFs LU4lPmPk6JufQ1WsqT4J+Sul0DmAy+OJOIg0C+qyqgKPDILhD2YJ65qRgtIoOF0T3F0E 9Gsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fZagmP0C+wtO/FGZ31dSbnE44vX4wTjO5N5JoQCdHnk=; b=Z5h2GAPQ+rEPYi3U4uMDBrPyHYK/PPP3DnODRtMatBI7PR4saJSivuh65tQIfNs5sN IZRRmQosKKg5NbEcOg27RSAeFYPKD+NRpMuwg9puFvmvPjiCzBj8SpHBdB1ftZA0eB6C 4nnrFVzQixjBkKTW/r0LwSmdvsd7FDh2w7Pw/fPVzF7FvmOZMl3CPUsFz6kYxuL5dWxQ eXtygxXgde8X+FdX/QEZHzsu8xJlS5YAD6eOVqu+pNYoqeYYlaT4xFaK+R8T71hIwofp XVCxSX6YakCE4Iwp4UBemEbwXLBp0jr3S9KqcLllOJ03GVAVe8IIodM4Ct5kuiTtnifr qlBQ== X-Gm-Message-State: APzg51An0GRAVUmo+c0IEFyJq+nmy+3KZSamLSgoQVQv7pVjyJwiKZ+0 YGdCgAv49XQsHsKzwOqHe1WTt9vVPgkcJBPYfqfnJyVx X-Received: by 2002:a1c:cbc1:: with SMTP id b184-v6mr12275207wmg.149.1537200410075; Mon, 17 Sep 2018 09:06:50 -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: From: Andy Lutomirski Date: Mon, 17 Sep 2018 09:06:36 -0700 Message-ID: Subject: Re: [PATCH net-next v3 02/17] zinc: introduce minimal cryptography library To: "Jason A. Donenfeld" Cc: Ard Biesheuvel , Andrew Lutomirski , "David S. Miller" , andrew@lunn.ch, Eric Biggers , Greg KH , LKML , Network Development , 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 Sep 17, 2018, at 8:28 AM, Jason A. Donenfeld wrote: > > 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. Is it really better than: #ifdef CONFIG_X86_64 #include "whatever" #endif It seems a more obfuscated than needed to put the equivalent of that into the Makefile, and I don't think people really like searching through the Makefile to figure out why the code does what it does.