Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp7196344imm; Sun, 20 May 2018 21:21:58 -0700 (PDT) X-Google-Smtp-Source: AB8JxZryn7YKM+9ulWXVYtzqZ2OfdGh3RA1otsmOnO6XsgmQm1TNPHLe95iz+yCyKMRlnNO/st99 X-Received: by 2002:a63:8ac4:: with SMTP id y187-v6mr14449614pgd.64.1526876518416; Sun, 20 May 2018 21:21:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526876518; cv=none; d=google.com; s=arc-20160816; b=akkzaedYj99eUmJoUcZb4xDI8d9/+2VBNJqIdA3KoBV4fmgMCXhEnG/sjoq+ioNJsY aI1QbR2L/E81vKXh87/DMD9NQPVw7sa454RUUetKDLSLMmvFpH8EJQ81LAjb+pCZQbt+ yeYxrp/GcMY8IDVUyM6A8qGpHTvlb3a7Y1mVerrmSkGwasWvHb8/939/wFleugyjmLY/ 1vO+L5yHwmYM+3iFoHk/1JD9pO/nC+5oGZ3NN6TmHHi63SOETSqickiu0rMa/x7+s2j3 RoEI6RqqFRjx45QNqZbQQ9RkSXGMiNarcGUz9XCwUgaR3Gt0b2C7QIo+v/kdDlmNNMOO F+RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=eJdZFdjRcglcngspG5LbSgsZFnsagaAnuGFoAhDAaKE=; b=DOl6/v1zrvV5ZwK7u/s+Yla85/bdIrakB9r6cMPFHFQCfCOGIDrETZbpKQ6NR4EVIM oEe02+1p9DN5YKPlJGcJcxeXtosJApgCFMtRMCYoVcY1gV0VgRNJ2bPVN35V2rnE3IiO 55FMtKuI0ksFuuIdHgAFapPNRJw9+VOW305cEzzvljvwluz3ZoIuyYWFzvSlHQq0B+uW mZNzXVofofqGQ5HabB6hUqfyqTe/E3zd6D3T1oEX9fmrm3Awz+5+e0Nat+7fp0CTCZ+c 9bLamacl0dcWn3R31ZG+3c0W2jTnWBVHC0riaQLHbc/td+1DrMhyPVjNhhbq8NmOGErR 4UxA== ARC-Authentication-Results: i=1; mx.google.com; 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w15-v6si10488920pgq.385.2018.05.20.21.21.43; Sun, 20 May 2018 21:21:58 -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; 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750947AbeEUEVW (ORCPT + 99 others); Mon, 21 May 2018 00:21:22 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:39954 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750704AbeEUEVV (ORCPT ); Mon, 21 May 2018 00:21:21 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4L4J52U113858 for ; Mon, 21 May 2018 00:21:20 -0400 Received: from e06smtp13.uk.ibm.com (e06smtp13.uk.ibm.com [195.75.94.109]) by mx0b-001b2d01.pphosted.com with ESMTP id 2j3hvb1k32-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 21 May 2018 00:21:20 -0400 Received: from localhost by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 21 May 2018 05:21:18 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp13.uk.ibm.com (192.168.101.143) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 21 May 2018 05:21:15 +0100 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w4L4LFKV32899156; Mon, 21 May 2018 04:21:15 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EE99DAE055; Mon, 21 May 2018 05:10:30 +0100 (BST) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 54F4AAE053; Mon, 21 May 2018 05:10:28 +0100 (BST) Received: from bangoria.in.ibm.com (unknown [9.109.219.149]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 21 May 2018 05:10:28 +0100 (BST) From: Ravi Bangoria To: mpe@ellerman.id.au, mikey@neuling.org Cc: benh@kernel.crashing.org, paulus@samba.org, naveen.n.rao@linux.vnet.ibm.com, matthew.brown.dev@gmail.com, cyrilbur@gmail.com, anton@samba.org, sandipan@linux.vnet.ibm.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Ravi Bangoria Subject: [PATCH 0/3] powerpc/sstep: Fix kernel crash if VSX is not present Date: Mon, 21 May 2018 09:51:05 +0530 X-Mailer: git-send-email 2.14.3 X-TM-AS-GCONF: 00 x-cbid: 18052104-0012-0000-0000-000005D8BAC8 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18052104-0013-0000-0000-00001955F695 Message-Id: <20180521042108.8318-1-ravi.bangoria@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-21_01:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1805210051 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a next version to RFC patch: https://lkml.org/lkml/2018/5/16/36 kbuild test robot reported the following build failure with RFC. error: unused variable 'type' [-Werror=unused-variable] int type; ^~~~ I've fixed it along with following changes. 1st patch introduces a new macro to simplify code a bit. 2nd patch fixes the kernel crash when VSX is not supported or disabled. 3rd patch fixes emulate_step() tests Ravi Bangoria (3): powerpc/sstep: Introduce GETTYPE macro powerpc/sstep: Fix kernel crash if VSX is not present powerpc/sstep: Fix emulate_step test if VSX not present arch/powerpc/include/asm/sstep.h | 2 ++ arch/powerpc/kernel/align.c | 2 +- arch/powerpc/lib/sstep.c | 15 ++++++++++++--- arch/powerpc/lib/test_emulate_step.c | 21 +++++++++++++++------ 4 files changed, 30 insertions(+), 10 deletions(-) -- 2.16.2