Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3785127imu; Fri, 18 Jan 2019 17:48:53 -0800 (PST) X-Google-Smtp-Source: ALg8bN6pVZhS72Vv0rP7sClAQulM2Ui17CIzBnC2chfkoL8butyUkFX1glAXaUhYK+fM05dhlYme X-Received: by 2002:a17:902:e002:: with SMTP id ca2mr21578626plb.103.1547862533217; Fri, 18 Jan 2019 17:48:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547862533; cv=none; d=google.com; s=arc-20160816; b=IZgagsgarO3AAs6kT5jAp5B3i6Q907IZSKuZdtqx9joVkXYtcZFP6wQW/opLlY13Of zNaTODdVFNOApgTlzo4Y1Hi1h4qaGxcUbm+VNo0h7X/n21CTEgFRsYrBCMFShyWyx4im 7q5OVfa7ulQzC7zmrTrEJ1hsii43Fgov29Rb+Zzt3xlwFIrANUwvowZ3+djXlj7Q/jVl UTAdO0JnfV5yYWxqids6fxLOUKZ8D569fqckmv18+OEJqMklXqpJcEWQg0eM0qA+Fb2r F0VuhDHGX048t8PTeppYjE6a7p3fiaDsPEXM/cseQymxt0GFz4Q6wI5Xhw/4PzNjQL/5 jKuw== 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; bh=Cjq5gEeoTDzklEXe9z1CWXGotjG+6Ugzb18BJKGJQmE=; b=jmGSTLbO4gcK93+oWcWZiUi/iIyslqHz27jxT15jkABRMvcOmRaOpH8zjJlLqQQRML B4NYJZki/hWryM/G0t8coR9qepymKFNzbpmtqZuQCmqJ/35Ba7dEK86Kwvou8/mv8XEg zGySbNxuQadlN6Eq/zvoXVsVAQq4/K9l25qZVNgrIAaerSHsXbYd0q6/9QnDWrt/AJZh BvSxDrFZzhzI+P7m3WVktYssLtGZBwXbl4pLFTIR6ShvYgDGMHsbizN/SdZlB2x3Q/vR BzeDpsc19iKsMDbC9YCqN5KdVvvk7aSjYzduJQuBQtdmnFCW0+gNSwcCHxizxf/0cgNi KP5Q== 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 85si5983775pfc.145.2019.01.18.17.48.37; Fri, 18 Jan 2019 17:48:53 -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 S1730341AbfASBq4 (ORCPT + 99 others); Fri, 18 Jan 2019 20:46:56 -0500 Received: from utopia.booyaka.com ([74.50.51.50]:33982 "EHLO utopia.booyaka.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727422AbfASBq4 (ORCPT ); Fri, 18 Jan 2019 20:46:56 -0500 Received: (qmail 9106 invoked by uid 1019); 19 Jan 2019 01:40:14 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 19 Jan 2019 01:40:14 -0000 Date: Sat, 19 Jan 2019 01:40:14 +0000 (UTC) From: Paul Walmsley To: Johan Hovold cc: Palmer Dabbelt , Albert Ou , Andreas Schwab , linux-kernel@vger.kernel.org, Atish Patra , Anup Patel , linux-riscv@lists.infradead.org Subject: Re: [PATCH 3/5] riscv: fix riscv_of_processor_hartid() comment In-Reply-To: <20190118140308.9599-4-johan@kernel.org> Message-ID: References: <20190118140308.9599-1-johan@kernel.org> <20190118140308.9599-4-johan@kernel.org> User-Agent: Alpine 2.21.999 (DEB 260 2018-02-26) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 18 Jan 2019, Johan Hovold wrote: > The riscv_of_processor_hartid() helper returns -ENODEV when the > specified node isn't an enabled and valid RISC-V hart node. > > Also drop the unnecessary parenthesis around errno defines. > > Signed-off-by: Johan Hovold Reviewed-by: Paul Walmsley - Paul