Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp320879ybl; Thu, 9 Jan 2020 22:40:24 -0800 (PST) X-Google-Smtp-Source: APXvYqzlEEUW0OpmuCiDmzUkg+O/IwJGPCe45k3X8c6LAVjCJeSglZgmaUtgv23lRrCyxs12G2tt X-Received: by 2002:a05:6830:3006:: with SMTP id a6mr1424599otn.264.1578638424385; Thu, 09 Jan 2020 22:40:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578638424; cv=none; d=google.com; s=arc-20160816; b=H2i9rJ+6/K1hJdQiC3fbVgTxp5gl4KesFoy5rKxJ+P8VKVCAbPPZISSx0+MypJgOyu BYwpK+iRijH8rrARC8fGefP28JWu2ikRGHDZ7om95nSOGB68DIELDI3Y8+mhF06wHciN 4AqAuE1GaRCCzeDZlyWH7crOKH6Q6ToN/x4xE5SsZgLIwhmxzPYRXjrhlpgPGkEGn9++ boMUs7Qzv72zl/9RNpF3N0upF+DAyAWQwTMpDLOLMaxXL/VZUzx9QtpEB6hCK6WfSrqc rbv6BFmnhGHtbEYGy9tHmaPXIe1j+i6Hk5ByO/4rFL2vB7rwsNlMYW8BWBi9xOJbB4B9 eCvg== 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=jJLJHTUES5IjRBTc4xVBz1voCqcu532N0f/7D6D8Y7I=; b=Y9e9oF/gEXAQWwBVhDbSTBXDKtTnrj2TAgU4R4xIIZZTvM/FNHOP1i822HxoWqtdSs 7o4fo7R+NgyeIhUPB+RZtaTxaPAEix3WR//bV95ksJtmT6Eooj4XBXhkCmC4VuJNcNtu thwHqaVhsCskYtr9aLSP8eC3uq7wffNEIjzBzYNDsood3teUeuze3x2zq7od/RzIiuGr oPkZyDvv3aeVbb+IrX8b86Ha/A7WQlYMEKbrr20htcVTyqudkjkXbU0yXOsqk4SzQLsu nU7ekVYpCL3foI5CelYYN0Ffyl+e8tPHGhYpeh8WfDX7f6o2PBlp2WGAEwF2TaissWQ8 EnLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ky2J0zDZ; 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 k10si737273otf.237.2020.01.09.22.40.11; Thu, 09 Jan 2020 22:40: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; dkim=pass header.i=@linaro.org header.s=google header.b=ky2J0zDZ; 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 S1731620AbgAJGjH (ORCPT + 99 others); Fri, 10 Jan 2020 01:39:07 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:44817 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731455AbgAJGjG (ORCPT ); Fri, 10 Jan 2020 01:39:06 -0500 Received: by mail-wr1-f66.google.com with SMTP id q10so640690wrm.11 for ; Thu, 09 Jan 2020 22:39:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jJLJHTUES5IjRBTc4xVBz1voCqcu532N0f/7D6D8Y7I=; b=ky2J0zDZHNXmqgWESU1Pp3b9SsOdOCW7HFDfO70Qz2N2wHr19GBPSensIxSKJySwmD QRVYr7j4WgIsX2bHjRsnTljXU4lsWS8nymXGl18Ed/KOzJteY1DDwRLLgePqFrkE68As ZrNZj4/IebkQEp6v7DJ3i5sRBUUpuh4keRtpx9GKEpz3rIdxfupopoa2ftM24WdolwP5 2IoNa5Bd8kE+kb9sXQuh9PAIcxUndIr8P+mctWXNIGycJ/fe12JkWV4pM8UNZXkCg+Mb hrrUkIzzta16kijgT1dEGHFxAHhB6t6Fj2+0jLPMeQun7Qu81luziV5La6JTbMwwCwRT eabg== 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=jJLJHTUES5IjRBTc4xVBz1voCqcu532N0f/7D6D8Y7I=; b=rOc7tI95xZ5oVPB/rrTlDC9sFeQVaNLlrY8xGfRInuBsTiFzPYJ6LHyuFow45uj9HF rx4chth7DqjynLhqZV4wMVCmMYMPOVbLmjXi0jp5Ubdyt9m+49BtX5Uk1baM8fxYYidO OZTml0ORmaHmnT0+9ibvBuwxoMBp2YxgiVKkYcpbaTI/7b5EcCihyLej66mTZXdaf2qy OsBbG3bDUeOiSdc1KuczWyCPWqHpRsHI0rE7TpQhSxi+o3bnzwufDmgWjmTsYktnC+0M 0xH8g0WrbBteOga5v+xvFIRW91lbmX4PS4nWPOLtE81aZWkiJqVnnEI+RhwLS/MA2KKO tN6Q== X-Gm-Message-State: APjAAAVcKDZfPFLJYwjzw/OiIICVOXFdmfLPEbZrut5XqHMF3dSqk+10 snUfAbgylUMYn0FfIn2b58+KWlyNfE0Cra0wsMK70Q== X-Received: by 2002:a5d:43c7:: with SMTP id v7mr1522692wrr.32.1578638344524; Thu, 09 Jan 2020 22:39:04 -0800 (PST) MIME-Version: 1.0 References: <1573449229-13918-1-git-send-email-anshuman.khandual@arm.com> <238c9810-dcec-7f4b-7bcb-a339f1f8aaad@arm.com> In-Reply-To: <238c9810-dcec-7f4b-7bcb-a339f1f8aaad@arm.com> From: Ard Biesheuvel Date: Fri, 10 Jan 2020 07:38:53 +0100 Message-ID: Subject: Re: [PATCH] efi: Fix comment for efi_mem_type() wrt absent physical addresses To: Anshuman Khandual Cc: Linux Kernel Mailing List , linux-efi 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 Fri, 10 Jan 2020 at 07:11, Anshuman Khandual wrote: > > > > On 11/11/2019 10:43 AM, Anshuman Khandual wrote: > > A previous commit f99afd08a45f ("efi: Update efi_mem_type() to return an > > error rather than 0") changed the return type from EFI_RESERVED_TYPE to > > -EINVAL when the searched physical address is not present in any memory > > descriptor. But the comment preceding the function never changed. Lets > > change the comment now to reflect the new return type -EINVAL. > > > > Cc: Ard Biesheuvel > > Cc: linux-efi@vger.kernel.org > > Cc: linux-kernel@vger.kernel.org > > Signed-off-by: Anshuman Khandual > > Hello Ard, > > Just wondering if this patch is getting pulled. Dont see it either > on linux-next or the following EFI tree. > > git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi (efi-next) > Hi Anshuman, Thanks for the reminder. It is queued now -- Ard. > > > --- > > Changes in V2: > > > > - Changed comment for efi_mem_type() instead of the return type per Ard > > > > V1: (https://lore.kernel.org/patchwork/patch/1149002/) > > > > drivers/firmware/efi/efi.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c > > index 77ca52d86e30..47b0bf7a2b7f 100644 > > --- a/drivers/firmware/efi/efi.c > > +++ b/drivers/firmware/efi/efi.c > > @@ -899,7 +899,7 @@ u64 efi_mem_attributes(unsigned long phys_addr) > > * > > * Search in the EFI memory map for the region covering @phys_addr. > > * Returns the EFI memory type if the region was found in the memory > > - * map, EFI_RESERVED_TYPE (zero) otherwise. > > + * map, -EINVAL otherwise. > > */ > > int efi_mem_type(unsigned long phys_addr) > > { > >