Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp352458rdh; Thu, 23 Nov 2023 05:52:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IEh2Z6nluziWDkGbVJQQqm0lWAeLrchIRbLzQO3KO4ZTJTFSf1u41Y9o8JmZtBO4NBvqjOI X-Received: by 2002:a17:902:dac8:b0:1ce:89a7:443d with SMTP id q8-20020a170902dac800b001ce89a7443dmr6791252plx.5.1700747572488; Thu, 23 Nov 2023 05:52:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700747572; cv=none; d=google.com; s=arc-20160816; b=mKnzDj9W1BA1aFO079G9a9atkjwgoO1avbTlt0c5s0lkwtyaBMV9GAQ+JthG5THCW9 4sRuaKKYyfypGe2e4XbPiVAsqUA8FUT/o0YSmcvFBCG4PMEuapi0L0Jd0d+/iY8iuMZ1 Djm5wlUN6fXDIAe1sTQIBksjNMbwL05Nq1cnT0hNRUhmxsM18OYJaiQctzGHHJ5QiZT1 VDYR/CkGjhEon95A+hZ/q5UwgC+Fw7UMa7EmdDDfObVfJ9pBv6nV8a5cEK5VMQ8TMkLo YxeR6AiMyqKw4Cn7IELQkc0BvlPiBQJ8FmqXsJAUwkK30sjl4GlvRV4YeKjmfKsf2myR ZjmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=uPjKNwQjLbiypQlQhN7hUlr4V9cg72/yo9xQEUEU1ig=; fh=P2Tn7LtgFOn5YGC/0tR6ke0P8QoTOn9XsQaTJTzIbDY=; b=VgXOpHo03xLNuYT9h8JPfZ3WJUQ7ZTEQj3HJBMlNkzD/KWTjMnCxf3FidzoqFCsFYj Vu+NHKg5w4pqOXAcpCFre7KHtSOsj/tdbwe8awIRhRpZE5IZuxHxs2ifogz2w9UdBPX7 YpD2VlmIoDY6ORWA6rYTOXnmfwmj6Zo12d9WCSDsfQFUmXE3n5hrACTcXYcFSeUCakfV ydpAv5wSw2KLHn3FOYkJ4NKB4TfdrD7DkbDN0H5+EW+z6xde1ws+OsUYSyKCG5Viy/W1 RXqSa2ZPKZIq3e4LjqAJjBngm6ypbbgEesOw8NhE3YIHMMffGsBierkWz4ri7/qM9gNy AWkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=iuOe1W5K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id d6-20020a170902cec600b001c7388413besi1190281plg.529.2023.11.23.05.52.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 05:52:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=iuOe1W5K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id DFD83808857C; Thu, 23 Nov 2023 05:52:49 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345628AbjKWNwc (ORCPT + 99 others); Thu, 23 Nov 2023 08:52:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345594AbjKWNwb (ORCPT ); Thu, 23 Nov 2023 08:52:31 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3522AB9 for ; Thu, 23 Nov 2023 05:52:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1700747558; x=1732283558; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=aznKgEjxL0gDCvdqXB2iOl1LmY4FPyCsLGk1PVbiKws=; b=iuOe1W5K7eGBBmeh+tzI9X8Gm+YIzreWauc4WaCQ00+nIAidqewWPEH3 Nkov4VTb/yKeHAkkdgZ0umqpLSSCcOod9BzDo7H9E66XStfRXcxfDwkz4 horKor8V9BFLlfYA2fffB6sP1ytRl1FnhIXRaYCxt2MWDDK4CzMgUE7zu 0MWlPkjM+u9tKCNaZVJyTzswImbm7hyZVcuDbMsWnakeDOGI5ESDulZm5 wpAgQNu6IaIgwA518RnowR0ow+hXfjwYDeMkVfZsYrfYqLDeLM8lwAOQ+ czCUVpronmptVhz9v3H1o+32thjosg2B2ZuozPduawxLFCSwJl/zCOabx g==; X-CSE-ConnectionGUID: h2V/iXBSSfiFReBxuDFLQA== X-CSE-MsgGUID: QZh0mXVNQLGVqC67cNRwjw== X-ThreatScanner-Verdict: Negative X-IronPort-AV: E=Sophos;i="6.04,221,1695711600"; d="asc'?scan'208";a="12193466" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 23 Nov 2023 06:52:37 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 23 Nov 2023 06:52:17 -0700 Received: from wendy (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Thu, 23 Nov 2023 06:52:15 -0700 Date: Thu, 23 Nov 2023 13:51:47 +0000 From: Conor Dooley To: Ben Dooks CC: , , , , Subject: Re: [PATCH] riscv: declare overflow_stack as exported from traps.c Message-ID: <20231123-blooper-very-cefbf92c0f05@wendy> References: <20231123134214.81481-1-ben.dooks@codethink.co.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="AAkSMNNL38JK6UIZ" Content-Disposition: inline In-Reply-To: <20231123134214.81481-1-ben.dooks@codethink.co.uk> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 23 Nov 2023 05:52:50 -0800 (PST) --AAkSMNNL38JK6UIZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 23, 2023 at 01:42:14PM +0000, Ben Dooks wrote: > The percpu area overflow_stacks is exported from arch/riscv/kernel/traps.c > for use in the entry code, but is not declared anywhere. Add the relevant > declaration to arch/riscv/include/asm/stacktrace.h to silence the followi= ng > sparse warning: >=20 > arch/riscv/kernel/traps.c:395:1: warning: symbol '__pcpu_scope_overflow_s= tack' was not declared. Should it be static? >=20 > We don't add the stackinfo_get_overflow() call as for some of the other > architectures as this doesn't seem to be used yet, so just silence the > warning. >=20 > Signed-off-by: Ben Dooks Reviewed-by: Conor Dooley I suppose this should also be Fixes: be97d0db5f44 ("riscv: VMAP_STACK overflow detection thread-safe") Cheers, Conor. > --- > arch/riscv/include/asm/stacktrace.h | 5 +++++ > 1 file changed, 5 insertions(+) >=20 > diff --git a/arch/riscv/include/asm/stacktrace.h b/arch/riscv/include/asm= /stacktrace.h > index f7e8ef2418b9..b1495a7e06ce 100644 > --- a/arch/riscv/include/asm/stacktrace.h > +++ b/arch/riscv/include/asm/stacktrace.h > @@ -21,4 +21,9 @@ static inline bool on_thread_stack(void) > return !(((unsigned long)(current->stack) ^ current_stack_pointer) & ~(= THREAD_SIZE - 1)); > } > =20 > + > +#ifdef CONFIG_VMAP_STACK > +DECLARE_PER_CPU(unsigned long [OVERFLOW_STACK_SIZE/sizeof(long)], overfl= ow_stack); > +#endif /* CONFIG_VMAP_STACK */ > + > #endif /* _ASM_RISCV_STACKTRACE_H */ > --=20 > 2.37.2.352.g3c44437643 >=20 --AAkSMNNL38JK6UIZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZV9Y8wAKCRB4tDGHoIJi 0h0SAQDcTTkoh0A97aUVYnh6fGQAyoM9vAAQlKvpypv3AJuD+gEAoEsaf1PuO36l tNylF+mvaA8289yMcGPGOgABUq/p1As= =qrsB -----END PGP SIGNATURE----- --AAkSMNNL38JK6UIZ--