Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1628806yba; Thu, 25 Apr 2019 03:06:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVdQVHEv4FV48JBIZP5GrkCcR5TTr61W9/j3CyfOCkjbEF94ab9RgFc+zfC3fHGkoXRN9X X-Received: by 2002:a17:902:2b88:: with SMTP id l8mr38016388plb.262.1556186769544; Thu, 25 Apr 2019 03:06:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556186769; cv=none; d=google.com; s=arc-20160816; b=eU471uIn7LPO/9GBE37j8DpTBoZPMo25TULb4OVCRmHL9QudE7NQabH47TQ5qaAglR bliJKTcpPga2ELXm1esNIUA34wkHJA8SRhkTzw3hwpEjml0TpO+r8aWcI+N7XO8RVbi6 Jt7FUi6HsyfGfqchE5ZeBK6cuvxbmbImkeY1/iUyrbsKaKiy89zePtLO0HApAeYQWry9 xY8TUVBcPdli+3MA0N+gt8djV1DzKqs7lb+Nmx6V3ilttCojKXDhcQljciqxcXWJtYok ILVqSccSn4jrjMx4IwIry2+6Q1UX9XMe8jVvagIj0w91GHG7X/2wp+AMNI47WccL6dnJ nXvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr:dkim-signature; bh=CN7iuRcN1w2fLOHj3F/IJK3ynwt9jTJsuN/AivkVsSA=; b=PlLBRPMGWjnLDGAaH19v4MFV6aSq9uniZKtu+oHw3+sJ7IpY3AEF4jhwxmTEJaePpq yOAn3cpfEgLvM3tINYgIyN5CkQBUX37fEV0TdehhESyRSpzZoqSJSSPYZjGrMWdShYJc BKrobnJX1cNTpVw1Ez1/iHLaeBF0qRndmRqwmrQ4pT3dZ7SU4MRz9Iz/fV6tUkCpXxLW XX1BxGF1Hq30UY+bBSqzU9TiOx+TfNxSqebcv0b7PG0ixp3VX6eRTz0ObSKzLJ1qbuzl eqVZtp+RAvClTwS46BVBzENoz8Hx3wJd8Whel7Cz6cgnNZ6eU/u3MYV6jqp7yzMiQMnV rG5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=I3Jwr286; 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=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q4si21546497plr.376.2019.04.25.03.05.53; Thu, 25 Apr 2019 03:06:09 -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=@wdc.com header.s=dkim.wdc.com header.b=I3Jwr286; 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=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732530AbfDXVsU (ORCPT + 99 others); Wed, 24 Apr 2019 17:48:20 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:15282 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732090AbfDXVsR (ORCPT ); Wed, 24 Apr 2019 17:48:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1556142497; x=1587678497; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7eoJvuEAlEQu53EigOZxTNOMHIT8YN9ACuKN9mjmCeQ=; b=I3Jwr2863IwvTyt8rIesT5B4EmUN6ZSp9+nE03iCMcHrjBZdHlSmspNb dH8q+N4S2CI6Dd6uBU7T/cHP7zFQi3T6MPevN0oJkrcPPZDLoIL6LECOd zQlJM699JJ2oahSnsVTTynuCsJua3RVAGNApG+SKPz48UtqOqI/CZfcvc 7o3NtcX00RoLEZ8ya9e4LFTeJDyDRpp7idLhOU+Rwv4YXj7lpWwOlVz8c CtuJcBbJDNe8fhunXKgvcXvqtWEJgZjGRK7/b5iU6Kuo9/72yS3CYUbQ1 7Xg0DPemV/63iMJwFHWfpM3jVP65tZBGd+q8SGSO3h7kAgm38tniEXkno Q==; X-IronPort-AV: E=Sophos;i="5.60,391,1549900800"; d="scan'208";a="106739595" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 25 Apr 2019 05:48:17 +0800 IronPort-SDR: ry2ch8VCCkK0fCjZ054yqirhxrSGDGYgpyx3Nm4NW6Z25Col3uZkSAih3eWP86d+T8nsGJHMMY YBoas/eeDA3iUBXNN6zC4AHlWixbrzVRj7RBGvq7HDemKLdkf8iWPnf+Qeo877OBFAAoSOj5Eo uP2YuLeddOf2lq/vZzPVszgUixERzT45bRF2ASM9vvMdID4MaXoE2MyOVFCYnKgQMc6N0+SEym +nz1WMjrZyQqsCCIG4lXSNqiAg/X61VJ7UXTBrI2ngSwEQ6ZEVerH3YYo5UBVsj74wxvCjvuAi alI6FjU8L39Uc9/zZl4+S2X5 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP; 24 Apr 2019 14:26:56 -0700 IronPort-SDR: cA8Pn8xMaeGPLKD0hC4+vltHoBCtchkGIiqudpnESp8NmKBaTjoiXKS41bTiOiNWrzF7vWkZ7P m8Z0xCcmbaR1LRGGoj68XUI7WmCKUQCNpEKcom1TGicssBlz1FNCC4nSu3sRDZE8ePpKOjrG1p kZAqSRIqoIgjihiiuQjlAyo/+INIAK1vY5MnN6vr4QBnvjRCjM2OON8m/g6eCQnjO0Gx7H3hbQ r0WTx5mjEwHSukDLGK/tUkbMz/RfhbGRlH0QGYAGQWbEiTjr9Tl7el00az5DdhISI86+RvmW7H KrY= Received: from jedi-01.sdcorp.global.sandisk.com (HELO jedi-01.int.fusionio.com) ([10.11.143.218]) by uls-op-cesaip02.wdc.com with ESMTP; 24 Apr 2019 14:48:17 -0700 From: Atish Patra To: linux-kernel@vger.kernel.org Cc: Atish Patra , Albert Ou , Andreas Schwab , Anup Patel , Johan Hovold , linux-riscv@lists.infradead.org, Palmer Dabbelt , Paul Walmsley , Sudeep Holla , Damien Le Moal Subject: [PATCH 4/4] RISC-V: Fix minor checkpatch issues. Date: Wed, 24 Apr 2019 14:48:01 -0700 Message-Id: <20190424214801.18880-5-atish.patra@wdc.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190424214801.18880-1-atish.patra@wdc.com> References: <20190424214801.18880-1-atish.patra@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While working on the patches, I found some minor checkpatch issues. Signed-off-by: Atish Patra --- arch/riscv/kernel/smp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/riscv/kernel/smp.c b/arch/riscv/kernel/smp.c index 89251f8ab754..0115db1368a4 100644 --- a/arch/riscv/kernel/smp.c +++ b/arch/riscv/kernel/smp.c @@ -42,7 +42,7 @@ unsigned long __cpuid_to_hartid_map[NR_CPUS] = { void __init smp_setup_processor_id(void) { - cpuid_to_hartid_map(0) = boot_cpu_hartid; + cpuid_to_hartid_map(0) = boot_cpu_hartid; } /* A collection of single bit ipi messages. */ @@ -53,7 +53,7 @@ static struct { int riscv_hartid_to_cpuid(int hartid) { - int i = -1; + int i; for (i = 0; i < NR_CPUS; i++) if (cpuid_to_hartid_map(i) == hartid) -- 2.21.0