Received: by 10.223.185.111 with SMTP id b44csp111443wrg; Fri, 9 Mar 2018 01:58:40 -0800 (PST) X-Google-Smtp-Source: AG47ELsX0TuwJjE38l9D2cL0MZuzz3OyHGPMAy92sMSRZCamq4L0u5LGKLorxsCd3onYTJlDZWJr X-Received: by 10.101.86.1 with SMTP id l1mr23942671pgs.140.1520589520217; Fri, 09 Mar 2018 01:58:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520589520; cv=none; d=google.com; s=arc-20160816; b=LAmd3r6X9q1hhw8LApv71J9CEBFMZKkCVEJt4+2VueHm1PV8a3pSZS5HeNlTGP6OvU zfJDWdrxvHolYipS9f2lb+z/3dMASdqYcoaZ4wL8vk+yPoR3BsplHojge8oSmJE/enM4 rlZ08KBkli4T5uU1Oa9/Xd+Iokyjq9uF8siKYTJMBGEQ16I2VEg3EtDVChHyTrtGrSIA vYSZRaG8T1kR9YG4EjMOym7UuZizxgDoS1E9kVq4xOsUuNTsF7F/Z0fJy/KL70/jCVPw 5KpQ7dz+598Yn2WTf9+r7Ysv0+5I0Ol1MfV71qTqhzxnPcDwdaAOv5HxQeXlIzTC78Uk r6MA== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=XuP6SN8bVe1SYkTSd6jbRHx+9QNuPJHq2UcsfKW2zpU=; b=DqjQQ6HdKkGNSYtGrNNzdNT0RgXA6q87uGxs4Veh48Lt3Wx+kYpSzbKQ71NJKlFwyF ShktyKAyT3zkDUz9WHXydC44vnCHhyzOqeinFWX/GV4A7pQpE1Mq2J7VOvUb+lvl4jzO p+8nolubpR1QajbVpQ1zNWKlDWCzR2fW5VG7DEMHsaf3f1O653p18d1KAq+2JofZRjvF aQW0tz4Y/F5qg897hZG+jVwkEs1+eH9gPbpzIoYDIdffvidtBQJHh05ntw41rbtG5iQ7 7184nuG6R0TXsj90gg7YLkOx5kwCmCcjP5sXZ8TVTakNpeL3wgsJjD5qqaMAf77h0sBS 3UUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jlHa6eCl; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b2si499831pgq.240.2018.03.09.01.58.25; Fri, 09 Mar 2018 01:58:40 -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=@linaro.org header.s=google header.b=jlHa6eCl; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751085AbeCIJ4I (ORCPT + 99 others); Fri, 9 Mar 2018 04:56:08 -0500 Received: from mail-io0-f195.google.com ([209.85.223.195]:33737 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750912AbeCIJ4G (ORCPT ); Fri, 9 Mar 2018 04:56:06 -0500 Received: by mail-io0-f195.google.com with SMTP id f1so2980551iob.0 for ; Fri, 09 Mar 2018 01:56:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=XuP6SN8bVe1SYkTSd6jbRHx+9QNuPJHq2UcsfKW2zpU=; b=jlHa6eCl76sobpkscGhTv2wJOa/zA+ZG+q9Xra+AXtDYrZKZw0T7vp3VmOu/ploYK4 TuLrcceCggBGEQ0lYZ/UEed6QddJfTUgRe9RtW9J/g8uqAm6V9O7OwdVphN3khJEYm42 9rr/wLrTvxQPC1z7utp3qt8FoIs6CbxBE5058= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=XuP6SN8bVe1SYkTSd6jbRHx+9QNuPJHq2UcsfKW2zpU=; b=ON1UYzAbyC5vnvKmIklDGurjKwI9+nhuWQKgll3XEGnyvU8kFYUTe7B1Ul+bcHLnWx GWHTVqDq0QjpF6EJW6VIouQDx0BqOJ3YcYUOarnEALojNu6PGnASOz5Non03dGnu90XO p72XCwtTxIuNrRG2GKxO85hk2RU8bGdPmo7UduUEfe+3TpzI7MEaPDXorBEoOiKnDUuL RFmXQZ68UxcSmpt+lJptbB5gqNFH0dHK0EKIOXB41ImDTDgMeX0rHWE5QRaO5/qypz55 2DNH6mIDDwchfv+Hk94um+NguiSxb/uW+eze/q8rvMRPkT7FUfoZjSKQxffw7hCdjogh eodQ== X-Gm-Message-State: AElRT7Hh84e0km7XIBRcU91sUJ3whQ16cY6xH+gxQwO6oApgnN93W9hv OujKuMLxlPPrqREQ9x+K5Mi4U+iYakMtW0M0ncxRIg== X-Received: by 10.107.151.74 with SMTP id z71mr32880095iod.277.1520589366145; Fri, 09 Mar 2018 01:56:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.138.209 with HTTP; Fri, 9 Mar 2018 01:56:05 -0800 (PST) In-Reply-To: References: <20180308080020.22828-1-ard.biesheuvel@linaro.org> <20180308080020.22828-8-ard.biesheuvel@linaro.org> <20180309074034.put3ko6zxmaoizzr@gmail.com> From: Ard Biesheuvel Date: Fri, 9 Mar 2018 09:56:05 +0000 Message-ID: Subject: Re: [PATCH 07/12] efi: Use efi_mm in x86 as well as ARM To: "Prakhya, Sai Praneeth" Cc: Ingo Molnar , "linux-efi@vger.kernel.org" , Thomas Gleixner , "linux-kernel@vger.kernel.org" , "Lee, Chun-Yi" , Borislav Petkov , "Luck, Tony" , Andy Lutomirski , "Michael S . Tsirkin" , "Neri, Ricardo" , "Shankar, Ravi V" 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 9 March 2018 at 08:37, Prakhya, Sai Praneeth wrote: >> > diff --git a/include/linux/efi.h b/include/linux/efi.h index >> > f5083aa72eae..f1b7d68ac460 100644 >> > --- a/include/linux/efi.h >> > +++ b/include/linux/efi.h >> > @@ -966,6 +966,8 @@ extern struct efi { >> > unsigned long flags; >> > } efi; >> > >> > +extern struct mm_struct efi_mm; >> > + >> > static inline int >> > efi_guidcmp (efi_guid_t left, efi_guid_t right) { >> >> Ugh, I can see three problems with this patch: >> >> 1) >> >> Why is the low level asm/efi.h header polluted with two of the biggest header >> files in existence, to add a type to _another_ header (efi.h)? >> >> 2) >> >> Why is included if what is being relied on is mm_struct? >> >> 3) >> >> But even looks unnecessary in efi.h, a simple forward >> declaration of mm_struct would do ... >> >> The high level MM and sched headers should be added to the actual .c files that >> make use of them. > > Ok, makes sense. > Sorry! for that. I will fix the issues. > I have some other fixups to do, so if this is as easy as it seems (remove the #includes and add the forward declaration), I can fix it up and resend it for you.