Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp258869lql; Mon, 11 Mar 2024 01:30:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWJFq2050QziM3BoNQyZZjDppIf2tXD5J6zple8lEMnMtnCURjWQk8hZ4gJZ9ONPY/ih2IpnSa1UJb/boSvekSlb086A4bD/nQs+QK64Q== X-Google-Smtp-Source: AGHT+IGepIqPpUqCtVarOV1YmOVyXKg73cFuq2wOzo+Tz45ZPNbiBjAse+WwMBDARGGZ4NF8Pu5K X-Received: by 2002:a17:902:cccf:b0:1dd:7d23:db54 with SMTP id z15-20020a170902cccf00b001dd7d23db54mr6228636ple.19.1710145840938; Mon, 11 Mar 2024 01:30:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710145840; cv=pass; d=google.com; s=arc-20160816; b=v2P7+1rDZkJn2X42Jd+xbQqq4HmCFJE2qqpCUL4CM3yWAiAJnhaT8trJMkBclP7m7o dGnBAApH3ijvkLmnSanHXyS74oG44DFefKcY4FMB8qq/lJ6TzualtnDVagifZ5tLf21c v9Oh8PWbrF8KV4wRnWF4czXs3foLtOhmEFbMMaQNqNEAt6Lsozu7sA7rRcqX/8KsKuEW dG47U1rbHlkZXVuC6xRhLWumbgvVrYPOGQReuD1wUO68QOC9a0dGpBw29z5vRYoZ2lZR GLzP3qD5eDPorMLlsHPoRIO0JeICXJYTvAwPz9t4X/1N3T+ROAjD5kcGPTQ5gRFSTPmn SOJA== ARC-Message-Signature: i=2; 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=gTgcW0/zWbfdECK6ge4oUnr/ouqIeUfNGYo1TCQ0fcQ=; fh=KohH2W/H2afAFyj3swpiahQFAd0exvOfBAvr/kFONZI=; b=kFG5ZE5szEGKv0EcQAWla9qmjXy9V4GM41+gSpNm+ouqc3+iFLyEMRTnNxfQEGDeNd 2e8iS9KW/PC2DWm/0k0r+MWcnqkQ42FWoExNX9TFq/M/ElXyf1825QjWtEQabOn7KNby ltlbvFR1oLRtBXVBVvOjL8Q3UV8OL23w8k/nl7Y+/tWc0RmkbW0DK8TV+GE2bM4CEVDE b26Hx3pydY8VPaS2QratePeo3mBTit1pHumZ9nOwM+DV0yXA18jZ+aiMqaN5YtcM/u4A SXC0+eXVdhEJVtR5xv/exsWNOuVDg+rKtLQZnd02daE1apiX2fTZYgnDSDcw7EZTgGfY yRRw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DKrG7jAR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-98539-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98539-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j7-20020a170903024700b001db9c2b41a5si4501074plh.373.2024.03.11.01.30.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 01:30:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98539-linux.lists.archive=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=@kernel.org header.s=k20201202 header.b=DKrG7jAR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-98539-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98539-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 9C114281D8A for ; Mon, 11 Mar 2024 08:30:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 07D4111CBE; Mon, 11 Mar 2024 08:30:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DKrG7jAR" 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 25F34846F for ; Mon, 11 Mar 2024 08:30:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710145834; cv=none; b=hnb5z7/PbW9aHPWlgTtuXUhyhm+h3ACJDM91V2t53shf6t/+zWHW5iTEr2jg7IRDPefGQjZ3I96xjdUKyfWkrVvMTIb32KjHaT1IlSlq/i7AM0Lqo1PGGmDRFL3Y2m0s8EsSPCiIffranVpzAqCDSmDimUf11xrRKQ67IyDTRwQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710145834; c=relaxed/simple; bh=Er7u94lEpOjZccaFLo8IEx4UWBeOB3xvtiaJHH5y0kc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=hdvxTg4FaZsLm9XCvq9dtnLZv4uxyGm5fxWQ+mkqEIdkUI1D61N2eoA+nVl4yIiZwmkt74L6OzUYgaZ1kxM+mD5gcRQYX2k203Fk5x1RiT22f3QpUTanIVz6dDi3POJPQRSLkvO8ryxg0ZW/eM9BlfAhxiznxcg6GihpbGZS5O4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DKrG7jAR; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA651C433B1 for ; Mon, 11 Mar 2024 08:30:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710145833; bh=Er7u94lEpOjZccaFLo8IEx4UWBeOB3xvtiaJHH5y0kc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=DKrG7jAR3P55e9l6jgt9O54meqHayrCq+IQ2eoU62+DiT30w6Z/x99POp8UBCjRpz nAu+ps5ITd5TDtKIzs/7L/iFSphhMAr02ROTmGahTbZKArBPPOUW9GG3onsQIYU7o7 MGrun8GNK1vE5IpQP0txVCPVKt3bCBJPTp8OYV/qlRLhlah/waApNSR6tvbK09wnlF yCSFPHS8kV8CTWQbyVG5dkuBW0fUCDhgCLXhMvkmRTM9GITv7e/VPQx7dk/TjEd9+D T6g/kH/pGkh/ondcOpWYSR0pspTcD9ZxhL+PRKUeSoV8iO/Znpw6Mn8GTGhxq3YyjT L+3wRQYWP5ePg== Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-566e869f631so4660905a12.0 for ; Mon, 11 Mar 2024 01:30:33 -0700 (PDT) X-Gm-Message-State: AOJu0YzLXvq1z6v4WIi+AWzrXJMMjfUSIOLA8c9FPJy10P24peXaRoq/ Z4wWlvJr0a/G/dD23zBwABC9W+DMyifY8YH8ax+dl8deUAcAxIKv7NwAvaYuF19NjtDhS+4Ucqk EJAGjajpy5Z9Yf55y4XVPFYjx9HA= X-Received: by 2002:a50:c90d:0:b0:567:e0eb:c9d1 with SMTP id o13-20020a50c90d000000b00567e0ebc9d1mr3892576edh.36.1710145832109; Mon, 11 Mar 2024 01:30:32 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240310112129.376134-1-shorne@gmail.com> In-Reply-To: <20240310112129.376134-1-shorne@gmail.com> From: Guo Ren Date: Mon, 11 Mar 2024 16:30:20 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] riscv: Remove unused asm/signal.h file To: Stafford Horne Cc: LKML , Paul Walmsley , Palmer Dabbelt , Albert Ou , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , linux-riscv@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Mar 10, 2024 at 7:21=E2=80=AFPM Stafford Horne w= rote: > > When riscv moved to common entry the definition and usage of > do_work_pending was removed. This unused header file remains. > > Remove the header file as it is not used. > > I have tested compiling the kernel with this patch applied and saw no > issues. Noticed when auditing how different ports handle signals > related to saving FPU state. > > Fixes: f0bddf50586d ("riscv: entry: Convert to generic entry") > Signed-off-by: Stafford Horne > --- > arch/riscv/include/asm/signal.h | 12 ------------ > 1 file changed, 12 deletions(-) > delete mode 100644 arch/riscv/include/asm/signal.h > > diff --git a/arch/riscv/include/asm/signal.h b/arch/riscv/include/asm/sig= nal.h > deleted file mode 100644 > index 956ae0a01bad..000000000000 > --- a/arch/riscv/include/asm/signal.h > +++ /dev/null > @@ -1,12 +0,0 @@ > -/* SPDX-License-Identifier: GPL-2.0-only */ > - > -#ifndef __ASM_SIGNAL_H > -#define __ASM_SIGNAL_H > - > -#include > -#include > - > -asmlinkage __visible > -void do_work_pending(struct pt_regs *regs, unsigned long thread_info_fla= gs); No more calling in arch/riscv for do_work_pending. > - > -#endif > -- > 2.41.0 > LGTM, Thx. Reviewed-by: Guo Ren --=20 Best Regards Guo Ren