From patchwork Tue Dec 19 23:23:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 181337 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp2298176dyi; Tue, 19 Dec 2023 15:24:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IF3EG9XFw2ElWnlWVHmIYUmu748CnZXkhRO0r5q25yIRpmQD6xiImP5Pi0DcVd+ojDPb+tb X-Received: by 2002:a05:622a:60c:b0:425:4043:50df with SMTP id z12-20020a05622a060c00b00425404350dfmr27437188qta.110.1703028252984; Tue, 19 Dec 2023 15:24:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703028252; cv=none; d=google.com; s=arc-20160816; b=qhpBRe5aFyX7ztgxyXrdn27hHxqAeCb8x/uQ6GwvTrTQtb/b2QBUXJR+g/hneX8gxp AK+AxCcuW+IaFWvZg1rfj0KSLOpkPom1Iv+qO9uBXQlvY8Dx4AH9xZcBHwE8Z7Ujtbtm OqVWgydjDuIhdyHr+3hCr59Jo/y21AIz9USf3ojyqFX7FW79g4/nnaJilfu4fFuxfHb0 7gLZNmuFcePuAZ3cng9+DXSLEycDm2c4gCF91TXaOi/4rw/YR2DmGZ2cw/VmI58081PD jUXd2Umtf019CMx9I37YQKyb+wwSFLB7d5XCm24Ya/WA/JICkG+UqG9L4pE17L0tpMdF FhNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=MDH/v7RIAoJOaCo5XP5ceyIizo5rb419HqEyQWHity4=; fh=rnkg7JR7klRRAHbgTVyOyZSyhCXynYK8U2bBOQfmU8Q=; b=GibXsE7MlUbTOQw2X1HxeoDsCb11hgt3eGyg+Zoy/vaNL2k2IHA8+B1LShBkrvzaqP tPVMMdN6ymXtNO1dJkzbrNrscWmFqc6FFYI2MGLsGIeexvqKyjC+WnhfbdpsgtpBHo7+ DkuU1pk+dvlz8j+Z/1buYaWZmOmjMNpGsVZ5btB91RbGEjdO3v9n5BwTqPtUCz0krKdU s2NdP5WTBi7BT1HkzwiExTLNTHi1ZOFy/Lcovbvyg4tMK3g2aV5fm4428WugW0L7tPBh 9Qx8NgYk904zeuEr3oc9AslTIAAfhiNai2Xv6KaiHnqGA93pOhITQI9aj+U53Z2vP6rn AH0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=TUOCQhZa; spf=pass (google.com: domain of linux-kernel+bounces-6091-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6091-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bz6-20020a05622a1e8600b003f4ecb4085bsi29579660qtb.289.2023.12.19.15.24.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 15:24:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6091-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=TUOCQhZa; spf=pass (google.com: domain of linux-kernel+bounces-6091-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6091-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B81821C24943 for ; Tue, 19 Dec 2023 23:24:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4A20D40BF4; Tue, 19 Dec 2023 23:23:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="TUOCQhZa" X-Original-To: linux-kernel@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BE452405D0 for ; Tue, 19 Dec 2023 23:23:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=MDH/v7RIAoJOaCo5XP5ceyIizo5rb419HqEyQWHity4=; b=TUOCQhZabfkqc+H17CMAeuXpYW Ts3oLJl7Uopu3BV26uxD7iRUl1vtqg4I+2QuAEDVybDwdaWo+95q2OAdHjn1su6rKSHwidmXeB3gn QIJLPEKS37vCn2TSB3bL9gYDxJuSr8i+0uI4bkJsxHWlZhxIa9fvhJbuZwOPMLUYXVLy8ZcyFG4Ds uVjrArG9DGp9aoS/bdL7tw8rJTrkkTwrw9nWyK5HzWZbI1bQyibixxhaJD9t1d/p506RWjv5ht/Yk fUkcAvEeFvxqIoyQ/apwJjc7lojQR2lhmfxglUmF+8DaXWVnSW4lE9bqJp+dKD/Q8uMNjOa9jp1/D 7D10efww==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rFjRE-00FfoS-0b; Tue, 19 Dec 2023 23:23:48 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap Subject: [PATCH] LoongArch: signal.c: add header file to fix build error Date: Tue, 19 Dec 2023 15:23:47 -0800 Message-ID: <20231219232347.19479-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785754553557258189 X-GMAIL-MSGID: 1785754553557258189 loongarch's signal.c uses rseq_signal_deliver() so it should pull in the appropriate header to prevent a build error: ../arch/loongarch/kernel/signal.c: In function 'handle_signal': ../arch/loongarch/kernel/signal.c:1034:9: error: implicit declaration of function 'rseq_signal_deliver' [-Werror=implicit-function-declaration] 1034 | rseq_signal_deliver(ksig, regs); | ^~~~~~~~~~~~~~~~~~~ Fixes: b74baf4ad05b ("LoongArch: Add signal handling support") Signed-off-by: Randy Dunlap M: Huacai Chen R: WANG Xuerui L: loongarch@lists.linux.dev --- arch/loongarch/kernel/signal.c | 1 + 1 file changed, 1 insertion(+) diff -- a/arch/loongarch/kernel/signal.c b/arch/loongarch/kernel/signal.c --- a/arch/loongarch/kernel/signal.c +++ b/arch/loongarch/kernel/signal.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include