Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1659513ioo; Sun, 22 May 2022 23:22:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmvmtxktEww9dPlY8Byzty1krG0ib0lMKHqb+NBcYSsqJ47uRIPiVYtmFyEwaGxo+hpXt7 X-Received: by 2002:a17:902:7c11:b0:162:1122:8a7f with SMTP id x17-20020a1709027c1100b0016211228a7fmr7996479pll.37.1653286948026; Sun, 22 May 2022 23:22:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653286948; cv=none; d=google.com; s=arc-20160816; b=k1yYSPLJ0guAn1e157yQZYklQP3JvNVZKJYI84c2CRGJY79VCRFd7d8BE+QrPH0iRt hC1M8zmxEKwAOyNIl0RwOVBI6zPbFtCs2wgEpiWgym8W4qjx1qAsamuKDr05QglbYEkl md2yLQrjFPjadP1rjdaTyidndEFEUMljitnPlMESovuKlB1Gm7vkkoo4oolOoto+1kOP 5wkTb+iPv+PxwGqMKobm0oIrX3vIDwxNZz35T3JYtp+gHaCRjusnP4dYgvPkltc4E9k6 95N32JRtHVis9LgKYmubvN1YtZKppg3stiuUUBDP8LJjaKM3ttrUd8WRYR+EYX9jetGy p5fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=g7Q4DIyBFdkOfQfLesIacT6b2x85qOReA4ewSFpfUcU=; b=K6pwWy9bB3LadyaAN+jMnZufP3ArhhYneQJHxSYlTXCjJKbzley26EvDrMZvP1LslS QGrcGkZDQdyAWg+An36+NdjJmNsYjeAIWfH79nXo64RXuJuWZgh7iCkYypCI4myPqk5I fvGXLu816OExuvYFRvzkvS2Xq7C/yza9NDJk8byaEpxkWTFIPdkhjU00f5g74PC1usSV y/m8oNwj2RQ8sxTB7wwJHRTq18xW4OQl00xKKKwAPrYiNnNfOTqveZYZzmCEyndJw4J3 bzwv4LgVYqyGLCRGd5xctev9o52q2uOdeAkOAPX2z9FpowjhgFuub9EMYmZRAhjv4rRZ /Ihw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DXSLnl6b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 128-20020a621686000000b005182fda1b23si12740494pfw.236.2022.05.22.23.22.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 23:22:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DXSLnl6b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7E6A61DA47; Sun, 22 May 2022 23:05:01 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354926AbiEUNOs (ORCPT + 99 others); Sat, 21 May 2022 09:14:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351062AbiEUNO1 (ORCPT ); Sat, 21 May 2022 09:14:27 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 523B639B80 for ; Sat, 21 May 2022 06:14:09 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id s14so9413288plk.8 for ; Sat, 21 May 2022 06:14:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=g7Q4DIyBFdkOfQfLesIacT6b2x85qOReA4ewSFpfUcU=; b=DXSLnl6bzRiqQd9B3yCFb3QN0I29DuZvmyvMOt1C5IzPBsMZujmBjjyjiPXn8dM5Mi 1EI6K4reqiBhLCza62OYrJa3ud9LTNNkk1lz32pXboLjnSv9jja0+LzxK8QgXWcXidAL JUi/BgVHD1aLJfk6SrAZans9hpJJaDzzW4PwoCNXGGJxW3Fl7Guwjot7Kfi1ws4O8UB/ TfYKuiNdoCEO6UmA0QqO8qghU9qoscOe0g+tEcxinZ5zkle3SWuNXXlUqaEudsZ+q8mS AckGqF8C890g19t7+O78uuwQig6Pj3bmEq4dmoKbNDK9GfOvCVYN0pn9Jt0kRQPsNTEQ EIYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=g7Q4DIyBFdkOfQfLesIacT6b2x85qOReA4ewSFpfUcU=; b=2ONfr7WJ9qfFmPBBLdzqNsFeZIZ2AtuNr391KXg0hZtIBZjCoPGUFrj+oUgJQE+IsJ c8Km7zXabGpUGZnd8sV0mpHsz0PXSL+vkOE2acvibuXLGy1cTD/FPWOnQyHjLUDQj/4a DlZ9ZqFWDO1TYoz0uZFCphIzlnC5FyAPWlntbZA8ZGpzEm1uhTngH75+d8F8YFVeTXrj KgsRvHZcQIB2yVhv0HmFTUd24jg3OjyMjL7gC8QpeAUovfhxQKg96NeJ3YPY5Yuh90A4 kkUeYl3Qwi++gGItpcOjinI0nmHcwO5/IhOEb7c5QSezpYi2Q0rGC7zSVrRniuvqK+Sc QJ4g== X-Gm-Message-State: AOAM530Gy0/YagirfnwuOqMRsg2nDp8X4hY87o0Cx/8Ub812CMqF3LAB tmKTF8ozvb43KjzYgJoB8vP6NRPyxLoCng== X-Received: by 2002:a17:902:ea53:b0:15b:1bb8:ac9e with SMTP id r19-20020a170902ea5300b0015b1bb8ac9emr14147213plg.45.1653138848062; Sat, 21 May 2022 06:14:08 -0700 (PDT) Received: from localhost ([2409:10:24a0:4700:e8ad:216a:2a9d:6d0c]) by smtp.gmail.com with ESMTPSA id z17-20020a170903019100b00161c3fc7a44sm1581665plg.108.2022.05.21.06.14.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 May 2022 06:14:07 -0700 (PDT) From: Stafford Horne To: LKML Cc: Openrisc , Stafford Horne , Jonas Bonn , Stefan Kristiansson , "Eric W. Biederman" , Kefeng Wang , "Russell King (Oracle)" , Andrew Morton Subject: [PATCH v3 09/13] openrisc/traps: Declare unhandled_exception for asmlinkage Date: Sat, 21 May 2022 22:13:19 +0900 Message-Id: <20220521131323.631209-10-shorne@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220521131323.631209-1-shorne@gmail.com> References: <20220521131323.631209-1-shorne@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Noticed this when workin on warnings. As unhandled_exception is used in entry.S we should attribute it with asmlinkage. Signed-off-by: Stafford Horne --- arch/openrisc/kernel/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/openrisc/kernel/traps.c b/arch/openrisc/kernel/traps.c index 99cd2e6f8873..fd9a0f2b66c4 100644 --- a/arch/openrisc/kernel/traps.c +++ b/arch/openrisc/kernel/traps.c @@ -235,7 +235,7 @@ void __noreturn die(const char *str, struct pt_regs *regs, long err) make_task_dead(SIGSEGV); } -void unhandled_exception(struct pt_regs *regs, int ea, int vector) +asmlinkage void unhandled_exception(struct pt_regs *regs, int ea, int vector) { printk("Unable to handle exception at EA =0x%x, vector 0x%x", ea, vector); -- 2.31.1