Received: by 10.223.185.116 with SMTP id b49csp460272wrg; Fri, 16 Feb 2018 01:48:24 -0800 (PST) X-Google-Smtp-Source: AH8x224zOJs71nNTVJHESDq17Ihn7WmEZJsCbRzU4uMQqam3gfOtKMFJuQWP59k2F17fPAXANJsp X-Received: by 2002:a17:902:8491:: with SMTP id c17-v6mr5362445plo.105.1518774504318; Fri, 16 Feb 2018 01:48:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518774504; cv=none; d=google.com; s=arc-20160816; b=v0ZaYJbIw1s6zalSb/dqmbY67WMoJQL3y0+rFksY8rxQDK5XqmliHDHAeG7yi6NaH+ 6ZnQ69zJyQNfQzpTpuNaQ3NPwVhQLCRe7Q3c+52gKN+a79cU4L7nGKjEXr/t3cto6Vyn bibpTD1pnJcz+RNdL1cwginqo5u/WkXDJTHmZG4ncN1gd4BTWX2rqC8lTATaQrcflkb6 G8Rqy6LlK07rbqWw/uVj9SDGb57OcKIp7bpIWTJZ2VLswBxpDTERyNp1tgOZY1icjDZn Y9/PIqiOiXIvVWZPsZt/wNs+MHCHHSc4vKf8oqF1DWZWN6wa7XG5LLnFZOyuGhwHDArg u3cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=Wittpyt+4K07EFftqZPqzlTc8QShN83b1PuIl6MiCBk=; b=V9jPW9PFc5ew/loeVQutDJ1XwiZwEXijNV79pxc5846Z+NjO3TAHoDmnLepTdhucy0 7uBFwr+5hw8nWvfGPGbYj+Rfy8Yi3mdYo6ITX4DfqQJkPceHWL422uPcr3Z3l82UrZ6N EMKxCQQak++9a2ZrsePleuVq9/5JscCpC0l/9F6txCYSR66L9b1q7NAI+WCFE/s750hA jjr7FhmctEq8m5IO0yOPD/OtrfxRoFzp1n5aMqH9EUrn0dijCK+wnryqXrF1Pfw/zXfq m3XEV0C2Hh7/vUG/UEhfVGI31d/2Spq9Ie+kz+HRoT0PgdqjHR9B9cSLyjskK/kXdXWu 1bQQ== 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 b35-v6si6808254plh.712.2018.02.16.01.48.09; Fri, 16 Feb 2018 01:48:24 -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 S1426977AbeBORG6 (ORCPT + 99 others); Thu, 15 Feb 2018 12:06:58 -0500 Received: from resqmta-ch2-05v.sys.comcast.net ([69.252.207.37]:45876 "EHLO resqmta-ch2-05v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422682AbeBORG4 (ORCPT ); Thu, 15 Feb 2018 12:06:56 -0500 Received: from resomta-ch2-04v.sys.comcast.net ([69.252.207.100]) by resqmta-ch2-05v.sys.comcast.net with ESMTP id mMzTeDBZ5K5JdmMzneg06N; Thu, 15 Feb 2018 17:06:55 +0000 Received: from gentwo.org ([98.222.162.64]) by resomta-ch2-04v.sys.comcast.net with SMTP id mMzmeeAqMju1PmMzmeP9Sj; Thu, 15 Feb 2018 17:06:55 +0000 Received: by gentwo.org (Postfix, from userid 1001) id 2F86F116013A; Thu, 15 Feb 2018 11:06:54 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id 2C638116010D; Thu, 15 Feb 2018 11:06:54 -0600 (CST) Date: Thu, 15 Feb 2018 11:06:54 -0600 (CST) From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Matthew Wilcox cc: Andrew Morton , Matthew Wilcox , linux-mm@kvack.org, Kees Cook , linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com Subject: Re: [PATCH 2/2] mm: Add kvmalloc_ab_c and kvzalloc_struct In-Reply-To: <20180215162303.GC12360@bombadil.infradead.org> Message-ID: References: <20180214182618.14627-1-willy@infradead.org> <20180214182618.14627-3-willy@infradead.org> <20180214201400.GD20627@bombadil.infradead.org> <20180215162303.GC12360@bombadil.infradead.org> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-CMAE-Envelope: MS4wfHKwXpwVxT9nQzk1tEIUVKF6QzG2hE0J4+c9ka0Hp5Jnw0iIPm/tjcIdfsb72lSOmDFH/J1G2/qv5S/rmKQ3fLruDE39XdV5HY6QNub/+605iTqRenRA 3iRDKP8w1qFzaCjsbwromIY0TOlhmrv3kA/Wulc4vwmmuGx1mE8ZeycEAIipYCHfL3qusIpElbdgZpuaiUqItKl01xca6RvZ/fRE3whuI16MZpvkKX4QzoyG iLJtl4KOIVT75/kVh+gfUWLVH17c8AvXl5q7YCauKzRVMYjjdY25/izyorhI0lx+w+Rm00/9tWuf7w62xOsOPMO0/aP949QI3EUekgQG7Ide1ut6DcsBfmOk TGZ8NtUl2qVDjYbmTsbRxviHeUxOFw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 15 Feb 2018, Matthew Wilcox wrote: > I dunno. Yes, there's macro trickery going on here, but it certainly > resembles a function. It doesn't fail any of the rules laid out in that > chapter of coding-style about unacceptable uses of macros. It sure looks like a function but does magic things with the struct parameter. So its not working like a function and the capitalization makes one aware of that.