Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp33002imm; Thu, 30 Aug 2018 07:42:04 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZVO5OPnvbMgpRAqTorEbDQrShr08awPM7A39oRc7h14C/8uNSKYZ0ZL2mjAR1cIucIUK4U X-Received: by 2002:a62:d544:: with SMTP id d65-v6mr10801218pfg.107.1535640124489; Thu, 30 Aug 2018 07:42:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535640124; cv=none; d=google.com; s=arc-20160816; b=vYKUU2DALO+hA7AXd4SY4zD/9pt/FXNELQTykjYaI/wpoDdbb/L06pNFgnZ3BfX4dC R6r5QCGGcgbqKkYhOWK6leUcsKk5fuMBn3g3Wzj6+zrRz3ALf5FSDT5fl/L5mNBtP+1b 4I7eNLXPqZ8TF7IFTFLL1AV7wleMvqMxN2HkxVLWf2oIJgbThF+kuzGhkCxsRF4Iwxlz 1cjIUH7qSBX6JFLLXh2JdWGScyxJPXnlbI41EvxhPiDF8J9DzTFHXkCNcaCdCdGD6hRu BXTbTCouc0VEjU+lPMFLued/5kkHQQrbsrMVh8wEIJAePuAWClEPz6SWtHmtk5FaViSI u9vA== 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:arc-authentication-results; bh=N2WT06nTLXjUgrrQPL0epRfYYIxFtUIvOdsGAW7vPUE=; b=gPNpIzb8dGa31QEKeevw2HTL+uCtpeFlQs+RFNQhK1W9fPTHQu1RNZN9L+EyGKthex sQFo2CzcLpJ2fISzexkSjTa4R4IKsf1239b7hDr65GEROuLl/rdVbS8Wr8/ueDHpEobX KfoqwG7vCjpVK5sl6g6rBNtwAaz7iU5Zc68laQyK5x49NSFT8EWGYqCWqyqlgePeyPc7 fG1df5AJji9fuIPlZ2bFd/F4OcvWUNVMA0moDfMc2HYQMyBRLu8GctaA7Bs3baU9s+Do EKUWyZK7iWpB2kXpfB5pjQuOnj1qxZ1gH5QGCQhjvVuB5x8cZnEmKdd69oQm+wUUPTqL OeSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=M1qlHok9; 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 f13-v6si7658842pln.512.2018.08.30.07.41.41; Thu, 30 Aug 2018 07:42:04 -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=M1qlHok9; 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 S1729214AbeH3Smo (ORCPT + 99 others); Thu, 30 Aug 2018 14:42:44 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:39426 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728972AbeH3Smn (ORCPT ); Thu, 30 Aug 2018 14:42:43 -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=N2WT06nTLXjUgrrQPL0epRfYYIxFtUIvOdsGAW7vPUE=; b=M1qlHok9sG7GcLgaj1KIy8Dpx Xt+EruCd8MmRz+Ml6jKYsb8wwm/bsk4kwDqsxuFlDvvCKubXCDTSQEpE9xGeokMKInopU4Z3BX8QD wG54mYtRtyu4i5RVCiRLwhilNq1RAZFG2fjb4QaEabKJxBtpFmTgbzdMNQuM6C3q/N+5ZKdPPkts5 97AXpdFN9XOV3zkbFdQsBOb96FZNfoxRn3t5zlx7n2qdhKJvibACzy8wFUPJ2fOSFW9plCeBIGq7S UCogrw/UwnrQguIVwnjiLW0honBWXJ/U+aTL8EBCAfa0PzPGyiRFgFjXogw+cSU1E4Htb1RACkGqx ByhgiYRtQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fvO7H-0006B2-4k; Thu, 30 Aug 2018 14:40:11 +0000 Date: Thu, 30 Aug 2018 07:40:10 -0700 From: Christoph Hellwig To: Palmer Dabbelt Cc: linux-riscv@lists.infradead.org, daniel.lezcano@linaro.org, jason@lakedaemon.net, ard.biesheuvel@linaro.org, marc.zyngier@arm.com, catalin.marinas@arm.com, dmitriy@oss-tech.org, jeremy.linton@arm.com, linux-kernel@vger.kernel.org, atish.patra@wdc.com, aou@eecs.berkeley.edu, Greg KH , tglx@linutronix.de Subject: Re: [PATCH 3/8] RISC-V: Rename riscv_of_processor_hart to riscv_of_processor_hartid Message-ID: <20180830144010.GE11544@infradead.org> References: <20180827184243.25344-1-palmer@sifive.com> <20180827184243.25344-4-palmer@sifive.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180827184243.25344-4-palmer@sifive.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 > +/* Returns the hart ID of the given device tree node, or -1 if the device tree > + * node isn't a RISC-V hart. */ In addition to the comment formatting: we usually keep the description near the implementation, not the header. It could also become a kerneldoc comment for added clarity. > +extern int riscv_of_processor_hartid(struct device_node *node); No need to declare function prototypes in headers with the extern attribute, btw.