Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2641848imm; Mon, 10 Sep 2018 04:27:56 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbvwTKNVHgFxVBqdJ1S1935NRUgNSwYvuNDY/M+qmQOrYw6vA7TRywsEMUNU0aFCIwIn+DJ X-Received: by 2002:a62:808c:: with SMTP id j134-v6mr23141977pfd.120.1536578876540; Mon, 10 Sep 2018 04:27:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536578876; cv=none; d=google.com; s=arc-20160816; b=00vGV971CxshJbiaN/+6qVHiHt98lxIdG6rgT6frfaXKX3Q8RLas+vGT0IHMjzDVBt tihEJfADCT9SvjQVwytOOzVRxMEZqntCbp33NkoV0shVfIZyFbbA7dSC581EYZwzURDc WMnI2QidMwW3C2FS5emC822Sjz3lSAbtz/vyfis06gd2JYN1UOydZR03cyLinhzugxJ3 vObIx9y6fA5X1l5uOLAy0ZVt+yEoW/c3l46rFcAMWXCOFAsDt+g1Q05Qou7HLnj/bxHa dOq/h1Ln6nUQTBwBCGTUSkLpfgwkQvTXL/wOK9mF+IJbZj0wE/ftFlERwCVWmGrSYRJo InoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gaaxpSo21p2ivkJ6nDCm5NzBF46EFNIfHwc7zjQ0irA=; b=XhUgfgku3O5kKNKvGorNwWLhoEgbSud8Y9sY/dqIbvft70nX8hHfXWakRGa2t+tP9T +0FpcYD4YTVOKjtsoL0qI91iC9iLtdZW0YoAUfpw2SWQxgZdiZWyb194tQ1t/vBgSjy+ O+KxI7Udfu7QWW2ALAOz1jfp0dzNHSx6kvh33ALpr+cA/S75AjFTxYOXmJMNEm/j1bSo KhWgxF4LVFp8HpDuAKXGPwUUYkrh3TY6JkggBcbub6E9n8Ind+5GlAWnav3MfCWgsFcn XJMeWQ+AIg/tkbznXByyMd1M/h2EdYiLdM21C5rjSU0UYu8LOY9mZ7D1Wh4NM77xcxsE 7qIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=QbQL5KBs; 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 u7-v6si17881451pfi.96.2018.09.10.04.27.41; Mon, 10 Sep 2018 04:27:56 -0700 (PDT) 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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=QbQL5KBs; 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 S1728379AbeIJQT1 (ORCPT + 99 others); Mon, 10 Sep 2018 12:19:27 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:53930 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727269AbeIJQT0 (ORCPT ); Mon, 10 Sep 2018 12:19:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=gaaxpSo21p2ivkJ6nDCm5NzBF46EFNIfHwc7zjQ0irA=; b=QbQL5KBsrn6nc/C/Z1r/+QTME ajNyuC5tcD+X5+FYU8uDXKv0eG2oO+PN7T2hY676tBsHaU6CA4QfN9nnqX+B0HqqDvIiOSAZ42RmI BYzpVL8B8y+Pz5h4zK45NHLUWX6SfU4CQ9n0vVdSNK6YCWaypJwk8jJLYKfnyq+zd/iw0Yy52j8/X V5LmwA+VcB2YbO0bhmQRG0w5b5yNJ5UNSXc0V4++6Jlv0sbYHZE80xim80gL4iS5Fl/TviTNHjrW4 sJxqSXEqPD89XgwiBnvlO4AVUrgZo1EWF+CYgGtZoLRo5EfqnVtKuFTvUgWP8gIAArqTncLYieGc8 l+MtP0wnA==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fzKKC-0006y5-AC; Mon, 10 Sep 2018 11:25:48 +0000 Date: Mon, 10 Sep 2018 04:25:48 -0700 From: Christoph Hellwig To: Atish Patra Cc: palmer@sifive.com, linux-riscv@lists.infradead.org, hch@infradead.org, anup@brainfault.org, mark.rutland@arm.com, Damien.LeMoal@wdc.com, jason@lakedaemon.net, ard.biesheuvel@linaro.org, marc.zyngier@arm.com, gregkh@linuxfoundation.org, dmitriy@oss-tech.org, linux-kernel@vger.kernel.org, jeremy.linton@arm.com, catalin.marinas@arm.com, tglx@linutronix.de Subject: Re: [PATCH v3 06/12] RISC-V: Rename riscv_of_processor_hart to riscv_of_processor_hartid Message-ID: <20180910112548.GF12979@infradead.org> References: <1536221135-182613-1-git-send-email-atish.patra@wdc.com> <1536221135-182613-7-git-send-email-atish.patra@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1536221135-182613-7-git-send-email-atish.patra@wdc.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 06, 2018 at 01:05:29AM -0700, Atish Patra wrote: > From: Palmer Dabbelt > > It's a bit confusing exactly what this function does: it actually > returns the hartid of an OF processor node, failing with -1 on invalid > nodes. I've changed the name to _hartid() in order to make that a bit > more clear, as well as adding a comment. > > Signed-off-by: Palmer Dabbelt Looks generally good, but it is going to conflict with the dt iterators series from Rob. Given that this is just a little cleanup it might be worth deferring until the next merge window. Otherwise looks good: Reviewed-by: Christoph Hellwig