Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3049222rwe; Mon, 29 Aug 2022 05:08:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR55gYjhQLHoS9GIX+NXo3XmwtSbgwFseKukr+yd2URaT+Hy0rAZsF7wn3ptQcv088pXDKnl X-Received: by 2002:a17:90a:9b04:b0:1fb:fcb:1de1 with SMTP id f4-20020a17090a9b0400b001fb0fcb1de1mr18033283pjp.235.1661774912086; Mon, 29 Aug 2022 05:08:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661774912; cv=none; d=google.com; s=arc-20160816; b=WWJfiEjdfpetTHsdHl2BOktidbQ3SvSWi5w1ROT1YKs4hgeIeVqNiyUiFFvWCdwsGI MDv66hbaNj3qCWwx6FkXEDxEQIUh2o7zlIN32qmPMl7+K7LMVKJhiYri9VwfHCwOTEf0 EJPJ/epj124d9r3ucVP6SxjHuC9Lvr/S29a7YPryOMCFWAAOsCPpsPr895CAEGBEYAIV UDXawnanybOuTaDaIZGWs+UU3SamepqnquroJ8DZ9AVTp2sacCl2P5Av0GWJkMwzRIBr tL5oLweGAfmNFXkruNLAGZruCWZmqpbCGnI5tYQyV7EbnhVTIBys8muQWhaDdniR2JO/ j6nQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=plfC12a9tHK4JZIHbBeHyQ2YSHBYODH3+Uu96Nyk/V0=; b=Yul+tjAlL0GoYQt1ik2G0Hz+CcBwCZC5BAHFoZhTbEivRhP2N1kD2Bgiy+P1kGQeb0 ImU/gm0Gva+gw9sR2JlOnglkcG73NB/eZoD7QD5sm3iY99XMYmWV0Xec5g5KpYAd4HjP a3IHSjuADqJOr0qDiw+xcXivhQ2hRXkzfgjyUlTzjecZBHdyobsJztNjZHw8048vMvgl wKyDNBdbsWhS2HMa9OvZSROMJ6HF9Z4/Rw7CKBejAoi9LxCtKvBxwhnoxuGH7qpVkE2d YvVMo6h3j+p4JQxBphGUCMZZ0mn48/6uT70FkeMNHEb/BGDInlHHMQK1zXs7aioUlJ3L tfDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="D/e6J7wH"; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e123-20020a621e81000000b0052adcf5e6dasi545426pfe.186.2022.08.29.05.08.20; Mon, 29 Aug 2022 05:08:32 -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=@linuxfoundation.org header.s=korg header.b="D/e6J7wH"; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232572AbiH2Lcd (ORCPT + 99 others); Mon, 29 Aug 2022 07:32:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232711AbiH2L3o (ORCPT ); Mon, 29 Aug 2022 07:29:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 179AC785B8; Mon, 29 Aug 2022 04:18:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 343FE611EC; Mon, 29 Aug 2022 11:18:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F265C433C1; Mon, 29 Aug 2022 11:18:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661771884; bh=YJt4NxBD+NcoXprsbu4ayUDQDeGzuAoSY2VYAF4I89c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D/e6J7wH02DoWPylSrWqpOd9wavDcBmZx+knXw82ae/eLBjhocjDJ0uJogPeQAMYT PBgAixO2uf47aws75K2BL+ZsXnrVQjuUm6beSNLY9fjGBYAG1KSGAqOChngAngYRpq JJdI32JCXgB8ZepViMN1BLF2cOWHazRyxZaz01Mo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Conor Dooley , Palmer Dabbelt Subject: [PATCH 5.19 130/158] riscv: traps: add missing prototype Date: Mon, 29 Aug 2022 12:59:40 +0200 Message-Id: <20220829105814.545548868@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220829105808.828227973@linuxfoundation.org> References: <20220829105808.828227973@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Conor Dooley commit d951b20b9def73dcc39a5379831525d0d2a537e9 upstream. Sparse complains: arch/riscv/kernel/traps.c:213:6: warning: symbol 'shadow_stack' was not declared. Should it be static? The variable is used in entry.S, so declare shadow_stack there alongside SHADOW_OVERFLOW_STACK_SIZE. Fixes: 31da94c25aea ("riscv: add VMAP_STACK overflow detection") Signed-off-by: Conor Dooley Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20220814141237.493457-5-mail@conchuod.ie Signed-off-by: Palmer Dabbelt Signed-off-by: Greg Kroah-Hartman --- arch/riscv/include/asm/thread_info.h | 2 ++ arch/riscv/kernel/traps.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) --- a/arch/riscv/include/asm/thread_info.h +++ b/arch/riscv/include/asm/thread_info.h @@ -42,6 +42,8 @@ #ifndef __ASSEMBLY__ +extern long shadow_stack[SHADOW_OVERFLOW_STACK_SIZE / sizeof(long)]; + #include #include --- a/arch/riscv/kernel/traps.c +++ b/arch/riscv/kernel/traps.c @@ -20,9 +20,10 @@ #include #include +#include #include #include -#include +#include int show_unhandled_signals = 1;