From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751351AbdBXJ53 (ORCPT ); Fri, 24 Feb 2017 04:57:29 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:34970 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751214AbdBXJ5S (ORCPT ); Fri, 24 Feb 2017 04:57:18 -0500 Date: Fri, 24 Feb 2017 09:57:15 +0000 From: Matt Fleming To: Tom Lendacky Cc: linux-arch@vger.kernel.org, linux-efi@vger.kernel.org, kvm@vger.kernel.org, linux-doc@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org, iommu@lists.linux-foundation.org, Rik van Riel , Radim =?utf-8?B?S3LEjW3DocWZ?= , Toshimitsu Kani , Arnd Bergmann , Jonathan Corbet , "Michael S. Tsirkin" , Joerg Roedel , Konrad Rzeszutek Wilk , Paolo Bonzini , Brijesh Singh , Ingo Molnar , Alexander Potapenko , Andy Lutomirski , "H. Peter Anvin" , Borislav Petkov , Andrey Ryabinin , Thomas Gleixner , Larry Woodman , Dmitry Vyukov Subject: Re: [RFC PATCH v4 13/28] efi: Update efi_mem_type() to return defined EFI mem types Message-ID: <20170224095715.GW28416@codeblueprint.co.uk> References: <20170216154158.19244.66630.stgit@tlendack-t1.amdoffice.net> <20170216154457.19244.5369.stgit@tlendack-t1.amdoffice.net> <20170221120505.GQ28416@codeblueprint.co.uk> <41d5df05-14be-ff33-a7e2-6b2f51e2605a@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41d5df05-14be-ff33-a7e2-6b2f51e2605a@amd.com> User-Agent: Mutt/1.5.24+41 (02bc14ed1569) (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 23 Feb, at 11:27:55AM, Tom Lendacky wrote: > > I can do that, I'll change the return type to an int. For the > !efi_enabled I can return -ENOTSUPP and for when an entry isn't > found I can return -EINVAL. Sound good? Sounds good to me!