Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2192194iob; Sun, 15 May 2022 10:41:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBng3KJN5T8fLJd7p/wFbpXMZVFmBsJEo8B3jXnQPBuqyv5WCXw17bXsBno0hoeFSLr9KL X-Received: by 2002:aa7:cc98:0:b0:42a:6266:3f1e with SMTP id p24-20020aa7cc98000000b0042a62663f1emr9469900edt.427.1652636490058; Sun, 15 May 2022 10:41:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652636490; cv=none; d=google.com; s=arc-20160816; b=kGpxMmx1G9r3rAaj5ErmJxTYf50mAiNWpIG9At1nvUfjSnHK9Su47UiOggfqgGFMKD 0P+Wuwe6HaInLldbafgXdN8aRwMACx+ysRa6HTIo2W4ZTZhL2LJ7eqhw1VjJxlxm+Zly S7Sfk4fnNKHIncFiJPDlEMjV1nK049a89bEsSC2ql/D1QXePao/fltIr61Y5CX5JkJ5y 3TG61i7nrOQLM6ggt3Mw7Nop90fJWw/OaWMGThmmwqBAJ84A8KvEU6PQlbP/WokXBZgh ZKw7PPAvM9TKWlBWZx9mS9pg15TGceuSdnK6O6RPfdbLfJ3JO3Uds/Puz8hYn9hOVOIN I27Q== 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=n457QppSdffnRludzPgZZf3Y61EFJ8lOnUHjYo1tQGhEGqbM95+4ldkoh4uzpJolOl /GLX4N6sW4V6exnmqSpTMaut154USYbkh7jT0/V7QD+tnz7jQ2NwXMfrmIrNBNI9hokG vgo2JSFXyvr9DUzI5vDdGHjKlxuGIT62kdTk8bMuE1zEO8AFhWyTcHwTjomM4hNaD/GV mSyusc0xxMc7bATVvrBu0sUv8zha2Ye2+j0T6wJyv+EHfjoMJfg0xBt/8WXhvkNW4LKD Cwdau33SZYrE2wddujcKuNRrxrOot8JSKQXc3WSdFcs/9RIIkQgm2BeT/duW6GGUVA8I 95JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Lo6scrQ+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr19-20020a170906d55300b006f3b8a62ff1si8329489ejc.123.2022.05.15.10.41.04; Sun, 15 May 2022 10:41:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Lo6scrQ+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236776AbiEOMnP (ORCPT + 99 others); Sun, 15 May 2022 08:43:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236751AbiEOMmk (ORCPT ); Sun, 15 May 2022 08:42:40 -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 4A80413F75 for ; Sun, 15 May 2022 05:42:39 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id q4so12000384plr.11 for ; Sun, 15 May 2022 05:42:39 -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=Lo6scrQ+k9iHe4huyVLvgU/wxxBjA9bU8Ih1wmkpJo0Ev0Rlpkd25v1GKuGMlqkX92 WhVHWnsm2nWCy3gNU+y1xjk2pto+37bnLdMW3kD0/lEbz2M1JP0suKY4CLM1rvk5Z7CH 2xadzZOzkWj/MD3u73lOVz3iUthzEzb2rkQqezefryB2ovt/hkV8mbVLG5h9JNNjnFfA poh54JesuZhk4+fKKyORu0rR0HlP82O00aymUyUQgEH6UwcmkHr6TLdlcK7+Y/ZifE1+ 4EV+dlTkeiLs0q8Sdvbh5mntq3H9ULNfMyNdQb4C8vzJBK2aS0p44umitDyzX+pfs9u0 A9+w== 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=32CvXkMN7blI2lZmTLArjFsg4bXuk7Sfm1WQ2WXORLozkueesm0Bp8/PPV2M3/zIlm kq42q7Lk9i4n3aJIMRJUN/ACUyDZeP8dlVvdTsdaXt+C5dVgq6udGAVX0sGkXUfqEGoZ mCnY6VBUWu4ohkdx/VD0uqOIm40+vsoFlvO/8lJqWYC8qTh1erRcr5Jsnf+Xha0o3JuL FjaBv9rIfINmvmd1/N8G8sAlBG6BunOggTX3NYWLOGaKLVe4kz63aTfXO0/Y1VaqFYxo qlpGah2CQEVKdvzYvtocau7vlBJBmLMIpAqTkZ2SdoU+Dwy0QbNiMMYpSDVdoFCdaeOx eK5A== X-Gm-Message-State: AOAM533Xmw8cjWEyEZR/rtv1AcnOL9wgKdDSZ6qJo9NAJwiA0W9lT3NT 3KH++X/H0QjKNxpuHl5mX7GGFFVlgVMZCg== X-Received: by 2002:a17:902:f78d:b0:14d:522e:deb3 with SMTP id q13-20020a170902f78d00b0014d522edeb3mr13304884pln.173.1652618558263; Sun, 15 May 2022 05:42:38 -0700 (PDT) Received: from localhost ([2409:10:24a0:4700:e8ad:216a:2a9d:6d0c]) by smtp.gmail.com with ESMTPSA id f38-20020a631026000000b003c14af5062csm4751375pgl.68.2022.05.15.05.42.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 May 2022 05:42:37 -0700 (PDT) From: Stafford Horne To: LKML Cc: Openrisc , Stafford Horne , Jonas Bonn , Stefan Kristiansson , "Eric W. Biederman" , Kefeng Wang , Andrew Morton , Michael Ellerman Subject: [PATCH 09/13] openrisc/traps: Declare unhandled_exception for asmlinkage Date: Sun, 15 May 2022 21:41:54 +0900 Message-Id: <20220515124158.3167452-10-shorne@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220515124158.3167452-1-shorne@gmail.com> References: <20220515124158.3167452-1-shorne@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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