Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7151301ybi; Mon, 8 Jul 2019 15:40:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7caUEewMAfqw8O79gdACv3dXxasFazQSiv27GSX00V0KCWRPOE74m3+tro+IgvXVQOLB2 X-Received: by 2002:a17:90a:dac3:: with SMTP id g3mr28569761pjx.45.1562625646565; Mon, 08 Jul 2019 15:40:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562625646; cv=none; d=google.com; s=arc-20160816; b=Q8GkrG/iwZSubJRuB+mwEb25dyS3vutt2N8wqSXVmZlXOr81dyYI4sQhO1GPFX7U/h VaM05hgKEhiUYmMyRCm0TJ6cZedyh+a3O5WSz+spf8RZMvhIXHpsIC3L7RlwCEKZ6fm7 naV8oQJex/mgVP/vHr9rCJR4WPrevqP4C7O5GcFHzTO45VAJItqckp2wnCVTgYjLECcV VJsPt/JTAgD5hsxAQkpmf+wj2nsCFji4j5fncGTbVrlUSM9Foue0Ws3CKk7XBfD/w7fZ w95IynsTIJRa90zYeoGiZ3JJHNP428zGRAKhHC2rd7JdeepRc99SK8CvguJaQF4mX0/C n5dg== 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=MIWJmsRRu8R4IlwnYnQP1QXfEUbhoQ4Dr66OPslxcKw=; b=pagUOJWDC998lvBB1/f6UpJOVR1abqveVrdZdilF4yhN5dCFX4MhyImEhVha4qgyv0 ptycA/C1/Zv3yJ4eBcoN/Zt+oJYQmQOSohgpLLWMWAT2gZz7iwDQ5lIXqnlKEC/CBjMg nfVfhx1NXDUehtwbEG6PSGrT/r0Pq7YnsS1nKUayNrTSTwGdoS/kZkqW9RNEUPPdNcc3 +vY4HmEXFRsSl7RDkYBsLt9rvX4TquGKlKCiuFizg2IuaXXgzH6YRsm90U5KF8wG4+d6 D/U638EdTpeHPe7GfLZe45wmahY3TVkFY/q6fpfIR0mw9AkuQmjPOTHkyvm8m5b76Kzd uAOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZG3mRIfJ; 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 p22si15903342pli.255.2019.07.08.15.40.31; Mon, 08 Jul 2019 15:40:46 -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=pass header.i=@kernel.org header.s=default header.b=ZG3mRIfJ; 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 S2403780AbfGHPmF (ORCPT + 99 others); Mon, 8 Jul 2019 11:42:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:53220 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388660AbfGHPZo (ORCPT ); Mon, 8 Jul 2019 11:25:44 -0400 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 218D420665; Mon, 8 Jul 2019 15:25:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562599543; bh=gl/oNOjwK39gihV+wxOnVsA+ocDBYadNV3JNY+DxmXk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZG3mRIfJ+hsj9qINCXzwP2gH5TPwfhZQYAhFU2x78OF46va1C/n169EUKms47ysci MOkahGrqNKeO7PCrVoAlva813QxJ/qdfUZj/IRWE/eeJD+sRADmsJZgIrcfIVNcVSR fOwjlo4VXglp1AsE+p6MtjQ8QT05gi6U4GXVZXKo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Vineet Gupta Subject: [PATCH 4.14 49/56] ARC: handle gcc generated __builtin_trap for older compiler Date: Mon, 8 Jul 2019 17:13:41 +0200 Message-Id: <20190708150523.993723125@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190708150514.376317156@linuxfoundation.org> References: <20190708150514.376317156@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: Vineet Gupta commit af1be2e21203867cb958aaceed5366e2e24b88e8 upstream. ARC gcc prior to GNU 2018.03 release didn't have a target specific __builtin_trap() implementation, generating default abort() call. Implement the abort() call - emulating what newer gcc does for the same, as suggested by Arnd. Acked-by: Arnd Bergmann Signed-off-by: Vineet Gupta Signed-off-by: Greg Kroah-Hartman --- arch/arc/kernel/traps.c | 8 ++++++++ 1 file changed, 8 insertions(+) --- a/arch/arc/kernel/traps.c +++ b/arch/arc/kernel/traps.c @@ -155,3 +155,11 @@ void do_insterror_or_kprobe(unsigned lon insterror_is_error(address, regs); } + +/* + * abort() call generated by older gcc for __builtin_trap() + */ +void abort(void) +{ + __asm__ __volatile__("trap_s 5\n"); +}