From patchwork Fri Dec 22 04:45:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 182527 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp847479dyi; Thu, 21 Dec 2023 20:46:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IH/elVIkg7PZU/QbN7JkNYJc1/Lh9MkPKS10vA0Zv4AhCXmYejpBwpgg5Ujp8BYTQFLDIHV X-Received: by 2002:a17:903:60f:b0:1d0:92b5:3f95 with SMTP id kg15-20020a170903060f00b001d092b53f95mr417853plb.85.1703220374376; Thu, 21 Dec 2023 20:46:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703220374; cv=none; d=google.com; s=arc-20160816; b=iIvvl9rfCCOxdpp7dAFX9hqOkEW0PaLjMjxfO4+onigaVOYaFLKDjry+8p73isMIGk fCjNALZgkn0oZdzuEMJDQIF2nSbshOLWhAjHbmwyfYQB/sSJmFvoPm2vZWO58q6jJOTF xsjrboihnU4aCRAx28cGTwRb4M9NxkmK5oUiUiemBa5hQKDX+4Ck20M7aT0W1wttEUux wkr+kPJpe7fRMbVwNVSS9MyA7NRNtCL57jvQN8htz6IrpQ3YD+GJkgJFY7xHxOiY+YnT qaGgZ2t9BaQOvG9QSBxr1hKx44p1zYMN3Ea/d15cSEaiue84Xbeadg3aHZZiAN6jwLxp YsIw== 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=vToPUnmN/oarZ/hFlZN6gbMr1MxOMg0QMOvO7BUHMxM=; fh=FiGGIiPh1x1tU9NxjAbZn5TuTsh+vtGboNdKj98aXVU=; b=akiKdKSyLBcb4TnwGqaKEVfQ1+mJmsohdZOrFrIZpxVWiaYJOk7g2HIwMdXciQ63Eh AhwQ5NJ0Zdxrwuux7JZCwZyvqmUKBvP6xSXTTY3/hRggEV6+qn5vV4VNWIwjK/gzDgZ9 ZqiCW5jatV083rScvvwuD3bpLo1eD9Ma4DTDA14T8u0KBtN9HIfVlAnBMBQFTfnUeJHY EtaPpuHWp8cLuqJlccy8Sj8raq7E3oVz20lh87gQZen+VQusJ+z3k0EMgqY8a526kkN/ 1jMkxeq7sx5JTfDFB1iUzvld8nqL6ZzG0gf3yfwiB9BefYWOZl7qQp5tSmsfC/yERPnt Gxew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="aLvB0/0X"; spf=pass (google.com: domain of linux-kernel+bounces-9338-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9338-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k9-20020a170902c40900b001d3e36edfe1si2687137plk.466.2023.12.21.20.46.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 20:46:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9338-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="aLvB0/0X"; spf=pass (google.com: domain of linux-kernel+bounces-9338-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9338-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CCD5E287524 for ; Fri, 22 Dec 2023 04:46:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EEBDE63A7; Fri, 22 Dec 2023 04:46:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="aLvB0/0X" 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 DB5324680; Fri, 22 Dec 2023 04:45:58 +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=vToPUnmN/oarZ/hFlZN6gbMr1MxOMg0QMOvO7BUHMxM=; b=aLvB0/0XIIBheIueWG+PGbXLD4 ND/RT/jNr+W2ma814MPZt8oqaIi/mNkPNTqx/XrreansEPhPwFfjaGk6ws5LlHN1CZIIxRPC/Koy8 iUToKssdMQcdY4fvvT4zX0PRtUBX/PQQMY0K6jvTeqe4vC65Iq12a7us+DtfI8yfVUkCLCjyBr4Zg r/ywM+AEkfDPoeZs2zsoQEPtJGSHrXf0MbuH7OTPq4AEEdiV0uUFAtpOAYhPeKfoR4T9C9kzu+1NJ OO4GCRw0rWBf3Jw6l3YIAPxb/91bsZmBVxSuUi8abbLgSvgcm1AcQXBdzFO8xYbwgSEeADeVHKm60 qe9/jqhQ==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rGXQ3-004sg6-1u; Fri, 22 Dec 2023 04:45:56 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Huacai Chen , WANG Xuerui , loongarch@lists.linux.dev, Kent Overstreet Subject: [PATCH v2] LoongArch: signal.c: add header file to fix build error Date: Thu, 21 Dec 2023 20:45:54 -0800 Message-ID: <20231222044554.25656-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: 1785956007361633359 X-GMAIL-MSGID: 1785956007361633359 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 Cc: Huacai Chen Cc: WANG Xuerui Cc: loongarch@lists.linux.dev Cc: Kent Overstreet --- v2: repair Cc: list 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