Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp1325425rdb; Sat, 23 Dec 2023 02:28:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IH//S2acdJv7bogtMX5MZ14RXrL7oQHFPP/j0oq3IE1MuMFikgZZ5JMTgddYqUFhR9hQmQ5 X-Received: by 2002:a05:6808:38cf:b0:3ba:f08:6d23 with SMTP id el15-20020a05680838cf00b003ba0f086d23mr4595412oib.41.1703327299607; Sat, 23 Dec 2023 02:28:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703327299; cv=none; d=google.com; s=arc-20160816; b=riZjBxjkIcg6MH6wQqHNjNLqRqxpk9lRcPCbM6yiGIeohpwscd3byFQF/0qnyQmjAK FxhgpWxCJWPxfx6xrvBQ6J3FUu1nLFwTRYC0T5QvTa9NUd2BFAQ/LzZgzboOT3su+5mr Np4yFGkgF8hjmAbNC4dc71z4IB8LAa0y7iIximGVURCCPxjUy0ySmT8w9xbPsJhaNnLj S9rZ5E1hIErp2bWmi6LJMURxmZ9KNpft1Dt5z0yboxICL9lQVaYI3CKdQ7bF+y6FPd3K b7Zi+k80du2G7kKByIoVM2ddN4BWp/YqQoJlGJ/3FomYuDcAg2x3GE4JQH82LkBKYFQn c4pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=1ZhWll5IO8Sc2SzmL4txN6TqQ/rSzL1icjFn50sqSgI=; fh=axa5MBz5phG8jIsY3bmxjVFC5Vo4zAoMkmQGz0jDDKA=; b=Nbo/fRUqxwfCUP3avIUF0EW435wYKoEjtuDpDoQdLwPTHzsgxdltWTjHTZ0wUSZrGK /d0J9XXKi5Jxd63nCdQ8QRG8pPGEzBWCL/gC9/DcCyIyACqUQiKEWoV3eKuG51IhGWGt JQcP1U7/JOItPi7waWtngQBdKw702H8pwovUZHL/FlOkG+VhwRDonw5oC8gJvie7XBZW FJn4phUft0YpfLpPtplxjxKEj876gfAy0zX/cxuICQWr10tTfew+N6YatFgVLCV3MhWH pFMit9gc6dP8q3cN4pmTXl1oeSENGobYcspAVCt4jB57lNzKRVdSuz9k5SImg8j5J+HG ppwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QBXvlP9O; spf=pass (google.com: domain of linux-kernel+bounces-10379-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10379-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id i8-20020a17090332c800b001d0ced5789dsi4689383plr.281.2023.12.23.02.28.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Dec 2023 02:28:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10379-linux.lists.archive=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=@kernel.org header.s=k20201202 header.b=QBXvlP9O; spf=pass (google.com: domain of linux-kernel+bounces-10379-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10379-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 40EA1284BBE for ; Sat, 23 Dec 2023 10:28:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 70AC6947D; Sat, 23 Dec 2023 10:28:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QBXvlP9O" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 96465D50C for ; Sat, 23 Dec 2023 10:28:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23DD7C433C7 for ; Sat, 23 Dec 2023 10:28:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703327291; bh=ctHEpimfxLcuXX95GH24/nPgVGOHcffPObfL4O6j4Hk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=QBXvlP9ONJuhdxfj613kDrwQ7eZQSUFPMMfpO4yBZ9dvVqgV0f5Z8jeLMsT+q/dvZ xWbPTQ0gOoEcgO0agDiK8BW28AQiuR1SEM1orIPXdzdgGrIybm06BT1iWB90eUeZoC FPncM3BTMxb8NHOJaJY87v9enzQKqL7JKgl/nQ07xH+Qh3VPL3dOgXkgtzR1uFs6pG sO/jo6QhlGoc9QgZUgyGwuoxuhiL//HaDJYytul0cqd0u23sjsPzSMvGOAPA+CJMji 1IhZtuQHmPjHRxvp5OT+fuBg3b7nUFA3vP9O7BZD5J22C7/tv3Gfe0NiJ3b6beYxKI qYj0d4i4YrMbg== Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-554265b5b1eso2505819a12.3 for ; Sat, 23 Dec 2023 02:28:11 -0800 (PST) X-Gm-Message-State: AOJu0YxpZOZTVn4sujybhopB7fPU6ut5zOzFAQ9V+Pq0D5tgbbtMOmF6 l++lzyum/JSGti5Uqnl51FcDjJ8FBpaTvMd53wQ= X-Received: by 2002:a05:6402:1643:b0:553:53da:b3d8 with SMTP id s3-20020a056402164300b0055353dab3d8mr808932edx.94.1703327289568; Sat, 23 Dec 2023 02:28:09 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231222044554.25656-1-rdunlap@infradead.org> In-Reply-To: From: Huacai Chen Date: Sat, 23 Dec 2023 18:27:59 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] LoongArch: signal.c: add header file to fix build error To: Randy Dunlap Cc: linux-kernel@vger.kernel.org, WANG Xuerui , loongarch@lists.linux.dev, Kent Overstreet Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Dec 22, 2023 at 12:59=E2=80=AFPM Huacai Chen wrote: > > Hi, Randy, > > I cannot reproduce it with the default config file. Oh, I know, this error only occurs in linux-next, but I think this patch should be squashed into "rseq: Split out rseq.h from sched.h". Or as a fix applied to the bcachefs tree rather than the loongarch tree. Huacai > > Huacai > > On Fri, Dec 22, 2023 at 12:46=E2=80=AFPM Randy Dunlap wrote: > > > > 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 o= f function 'rseq_signal_deliver' [-Werror=3Dimplicit-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