Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4808522imu; Tue, 15 Jan 2019 06:24:14 -0800 (PST) X-Google-Smtp-Source: ALg8bN5/BfRxFm742+5ztvgjvXxllAku5P0UylPJNjO8neRJm1YMBF/6sxMPMKtnQkLdF5AmqjJM X-Received: by 2002:a63:7c13:: with SMTP id x19mr3903543pgc.336.1547562254319; Tue, 15 Jan 2019 06:24:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547562254; cv=none; d=google.com; s=arc-20160816; b=Yx9d+BfXJ/2Gxr463qT18tkXjV6tQbMxgfXyDtJDF/ioW91Swx0h1EIdZyJnUS6RWs wuyLBPFeBUX65j8Z5oXGctJyFHt6Qm7dyZwk+QzOgI+xtLQWLbGqleD1Qtm3NGxK6oWQ x0QzioytWEctWYQ1GESeWx8kXsvhYoKzx6rqBcoW4QYvd0j4/qgMZdd6FPQHKduKQyIN jj7bNuFyuwlCKP0sllJcd6d9z6njuCzBduh6OMsfA1zvHwBwApod4Vs19EOOgYZyDV9/ 2XzkTV2rW6AU8G6jHCvKXj0W8ul0mCqCJwv0a+mIybU5caIPhufTZc5xCYuEkuivAwTJ FpUQ== 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=zcMRAuiMYv+98ytEt1DsxejZ9FTrmzgcBdjl2i2EjyQ=; b=LTArGLY5kTuKROACC4r6IdaYNptt3uYzvwWGjeY+/KJeVZxdpORBZHxnCYw8nqGJwg McA9vFolv2ePgA3ES6c5Pn5KGSaa1gXm/8qlJMFx8DPPORB8M2UFrbPTI5xKzV92P3eb mf7oxcfMJG4OEH+CwLzhKS1TOAKmlcp3woazDn5cLZHqTVkPmudaCMZ06mAQtvRr8Qcu V3ceo4j0hQq1lMiELoPDx5MaDg+tBN7geVw/pG4kMYlnAkirgXlWxG3b6asrxt6fFkCH XIyruEHUMIQy8DwdE3xFWiWGTgmBpRiEKK8dAcgyhMp1BjwQA3a2jJgrGa+UEktG1M9i KoMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=SE6sE3Jm; 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 k25si3545495pfe.10.2019.01.15.06.23.55; Tue, 15 Jan 2019 06:24:14 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=SE6sE3Jm; 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 S1729151AbfAONwe (ORCPT + 99 others); Tue, 15 Jan 2019 08:52:34 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:33316 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728157AbfAONwe (ORCPT ); Tue, 15 Jan 2019 08:52:34 -0500 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=zcMRAuiMYv+98ytEt1DsxejZ9FTrmzgcBdjl2i2EjyQ=; b=SE6sE3JmQJmxcJy47MAEwbalG 6f4ZR3K7RDxhpBpV+TzFYRceTyqPNpc80GD8Cg98feth/KhQwHr6usbT6k6DNhUiFmm91mUstB5EV Tp3oF86pFPg71EBhYMWJAU4OGXMH1VRMlNmZR6N/J5KlsVLddMAQ8OdEyEZbL7IZBIqM57O/vVDhs jJLk3bxPU31LaoFkEYK5dVguxX97cUemJamNPNj2kNuaCTC+9l7ypykEYI9hLOLIfx2aOxLz0eeb9 x0h9jzmgQ8+n6/JLRPEW6ZmprOaIs1Iag8rEyxxm2LbvM1uLQdGU3xvBeghFVpg3MsS8Sf5JHbDms rXaoT6DzQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gjP8n-00011l-5e; Tue, 15 Jan 2019 13:52:29 +0000 Date: Tue, 15 Jan 2019 05:52:29 -0800 From: Christoph Hellwig To: Atish Patra Cc: linux-riscv@lists.infradead.org, Patrick =?iso-8859-1?Q?St=E4hlin?= , Albert Ou , Jason Cooper , Alan Kao , Dmitriy Cherkasov , Anup Patel , Daniel Lezcano , linux-kernel@vger.kernel.org, Michael Clark , Palmer Dabbelt , Andreas Schwab , Marc Zyngier , Thomas Gleixner , Zong Li Subject: Re: [PATCH v2 2/8] RISC-V: Move cpuid to hartid mapping to SMP. Message-ID: <20190115135229.GB28946@infradead.org> References: <1546940318-9752-1-git-send-email-atish.patra@wdc.com> <1546940318-9752-3-git-send-email-atish.patra@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1546940318-9752-3-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 > + if (hartid == boot_cpu_hartid) > + return 0; > + else > + return -1; No need for an else after a return statement. > +} > +static inline unsigned long cpuid_to_hartid_map(int cpu) > +{ > + > + return boot_cpu_hartid; spurious empty line above.