Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6016113ybc; Wed, 27 Nov 2019 13:27:18 -0800 (PST) X-Google-Smtp-Source: APXvYqyE9lJ3RVYEcDylDHy1AreUyFPbP0uaoaZ/uvtKdGW8jPsJRPaG1N+X1XPwtHKRcOl7BzPQ X-Received: by 2002:a17:906:bce5:: with SMTP id op5mr51835431ejb.325.1574890038297; Wed, 27 Nov 2019 13:27:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574890038; cv=none; d=google.com; s=arc-20160816; b=oUbrx4dvSJtRAxpui997iF1BRiaRXtI3+6J3H5MtOvzjp2rxIfSNKUOJ6LVQlFKgy8 9LU22yl5W3hcuCEm6FaOTF2gOn0Uz74EOOQIxuaOe+ehKyb9Jr2DEp2FpedDbk4BNlNY qjFNggClDIUSg6jNfFQ9HYRf7Mm1v/bvhS6LZAhqqKzCkAzWAFphcYMcmd3tng67Ta6D KpArIxSQkr+FBy8SKa2holIEsxKnrl1tyzNJaEcDJDLud9656yeK19fZvWQikQKVC6ER F8Eo3K1BYHYorq7AwADqm+j9ekegEPSKLbQ3XKlqH5OmJhYistayI69eTdiZpNM07629 pWkQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Ro7gMXYXBuljSb/rwRh8OfR7jS8zVXfQc0fFR8hbBIQ=; b=YAfBm1rTzv0IyiTo+Va8yAerXmGKveN2wdfdaFRvaJXFn9sZOS3kD8p8LOAiHNatsI pZMz151h7tcLnk015REWBbZev1tgpp0lgjaUlnGSoSPS3eWDbijZaA0Owd0ju9m3UAti 5Fwv0HmVT+oBubguaPPbxT3IUPkeexzaUUC0SnogwgcOszzPMQmXsRQmnE2i9CWtrlFO cdNSUUdnmeVquaW5ElrsexdoRxh6PVHP31GKifHL3Ex9FhxQ2C7InRbcnur19Pqa8+Wa qdWivRPW0ZeVcVwByUrmv07TVuO9TTohEV//PJCa+YFBg43onyQamdU+/QvKueSvtT0s zAqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jZuMosX0; 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 w23si2030518edi.339.2019.11.27.13.26.54; Wed, 27 Nov 2019 13:27:18 -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=pass header.i=@kernel.org header.s=default header.b=jZuMosX0; 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 S1730963AbfK0VD4 (ORCPT + 99 others); Wed, 27 Nov 2019 16:03:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:57216 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731766AbfK0VDy (ORCPT ); Wed, 27 Nov 2019 16:03:54 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7DF3B2086A; Wed, 27 Nov 2019 21:03:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888634; bh=xdFKgEX7Pl/f6BxecuW2mYaqqpQDVVagDCzXcf2Qhhw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jZuMosX03f82FCfzURRLVVZcIyg80LJ/40bGcyb4rr8wBoJP65Tqs52/SVu0UF3y1 CzA9HLkPvtekQVZeiWAximJmIi8DI+ozsofus6Ak9fFI0OiNaFYAkP3s5n6Rkvj6pj k9JelaDizUbUtrQhsg30RlYwK8nL4CIvBE2qGaTU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nickhu , Greentime Hu , Sasha Levin Subject: [PATCH 4.19 210/306] nds32: Fix bug in bitfield.h Date: Wed, 27 Nov 2019 21:31:00 +0100 Message-Id: <20191127203130.474147252@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nickhu [ Upstream commit 9aaafac8cffa1c1edb66e19a63841b7c86be07ca ] There two bitfield bug for perfomance counter in bitfield.h: PFM_CTL_offSEL1 21 --> 16 PFM_CTL_offSEL2 27 --> 22 This commit fix it. Signed-off-by: Nickhu Acked-by: Greentime Hu Signed-off-by: Greentime Hu Signed-off-by: Sasha Levin --- arch/nds32/include/asm/bitfield.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/nds32/include/asm/bitfield.h b/arch/nds32/include/asm/bitfield.h index 8e84fc385b946..19b2841219adf 100644 --- a/arch/nds32/include/asm/bitfield.h +++ b/arch/nds32/include/asm/bitfield.h @@ -692,8 +692,8 @@ #define PFM_CTL_offKU1 13 /* Enable user mode event counting for PFMC1 */ #define PFM_CTL_offKU2 14 /* Enable user mode event counting for PFMC2 */ #define PFM_CTL_offSEL0 15 /* The event selection for PFMC0 */ -#define PFM_CTL_offSEL1 21 /* The event selection for PFMC1 */ -#define PFM_CTL_offSEL2 27 /* The event selection for PFMC2 */ +#define PFM_CTL_offSEL1 16 /* The event selection for PFMC1 */ +#define PFM_CTL_offSEL2 22 /* The event selection for PFMC2 */ /* bit 28:31 reserved */ #define PFM_CTL_mskEN0 ( 0x01 << PFM_CTL_offEN0 ) -- 2.20.1