From patchwork Fri Dec 22 04:58:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 182539 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp850380dyi; Thu, 21 Dec 2023 20:58:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IG9C2eVcfaARgNu1MVjrxiwShoCdaoXzxBXLdBg39IMKm+Vyttvr0FitQ7KjN5224qfgGK7 X-Received: by 2002:a17:90b:1253:b0:28b:4ff7:29f0 with SMTP id gx19-20020a17090b125300b0028b4ff729f0mr2190667pjb.19.1703221126034; Thu, 21 Dec 2023 20:58:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703221126; cv=none; d=google.com; s=arc-20160816; b=DfDZa7UpNggi8geaLBpx7lZexYEAjcueD87neRE9x4kYXbQ4WvpU75/dowtSfZSy/B 3frvBXVA+dLWxZGyhu83Gj0xEBLBm/NxrooV93D5zep0sQIHH+93RklcOrHT5lBIYKau ZXymFVk0DJdtV+Rj1ne6OC4rkKTqMMaOJR/uibZsY2Ooj9ao/NeQAqyV88jdgvJO8b50 8lP4zED/hncwYcVIB5KkRCDYrVFgW8He/1Z/AY2FaUQu7U8byng+h27JvHYgI5v18GNq ya3F1iUobbhd3QzSRJzZFJxwrKQr8xi2GCxoBnenwooyZqLM8d/z6lrshlpF4x7lVOce pAdw== 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=fCSM/xbXg41FRfHNUILYTv5XhyXDuX5hUzcGjOUJb1U=; fh=mMTRWd6xAoeVHaeozeBzkzjVLK2T0I8YpH2xzXaLV+w=; b=zNHIwyDUzPt3M3XQPX3krLWJw7Ln7GONPBYGDMFDdjUzrK8eE/o/1zVZ1tc9J37Bk+ adNHo1FcoXFYvLXJA+NGINBhKtEYUxVskz2L9szqTgMfc0+/jINTUKe5N9hXmiqGSRP2 Cy1RZZisMQK7G9LVtgz7DaMd/ph/8yJL/2zNv1UcvjUFWeUwyTUhrI7qa+VRwrDSk7RE xftf6B9Iy6uzOO0e8QZrOuq10gvobh8oVRaNV2mtirNsYsFDjwTIFKEcToMxdkNg/r5b ERseR0KNIp8gFqO0K3CxUTvLrxSjzUT0fRIqlfDZ2gfY92t7lWk3TJd9WSNeQmOAXyFZ iVvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=JW29o6h7; spf=pass (google.com: domain of linux-kernel+bounces-9354-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9354-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id w4-20020a17090a6b8400b0028ada6a6038si2798276pjj.153.2023.12.21.20.58.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 20:58:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9354-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=JW29o6h7; spf=pass (google.com: domain of linux-kernel+bounces-9354-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9354-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 D040B283748 for ; Fri, 22 Dec 2023 04:58:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 800AA63B5; Fri, 22 Dec 2023 04:58:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="JW29o6h7" 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 C605523D8; Fri, 22 Dec 2023 04:58:27 +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=fCSM/xbXg41FRfHNUILYTv5XhyXDuX5hUzcGjOUJb1U=; b=JW29o6h7DCzdPnq/UvZWGf0APD 7lTkLiEDSM+kLsJF1vt0E7A6omO1ElVQlKKk/jUNJ3KNCcBg0zP7RWX1sGbdGoKMrhjkfCRON6Re+ 3y42dysYyFgtMTCOGiJm/3lquOuEFAOCNtQ/MhOKzJ4qdmek1YobmnmVtvvFXcQ3q9wc9cOYcEu9L 9Bi+ow6sXX/eab0wistbLEA0QsJxLrQu9kn2AniycGslicVCcXxz4d5cYma6hRTeuZjGbui+wTO2Z SgtZPyJMn2yb9vsMX6rj4ip4G0IDXXyOPHmYAwZhO+7gTL+lv/a5mVe/c9Xo10EBdIDhHo6cDjt82 Jd7QqvKQ==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rGXcA-004v1T-1a; Fri, 22 Dec 2023 04:58:26 +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 v3] LoongArch: signal.c: add header file to fix build error Date: Thu, 21 Dec 2023 20:58:25 -0800 Message-ID: <20231222045825.14732-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: 1785956795155988253 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 v3: use Kent's @linux.dev email address 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