From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f49.google.com (mail-io1-f49.google.com [209.85.166.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 134231E487 for ; Wed, 17 Jul 2024 13:15:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721222144; cv=none; b=sf/8+G6Xj9jCE/Ie0N3FWCNjk8CAI0cTtL3NVMEOodJjWHvV2w3hT/5FKwA5ptVv6Z194SZys/p5olc/ecbqW7yE0jBwttfwz346/QEgORW8lxyH3J7Ts7+3WqA7y4zIcFIlxsjIgy1pnlZ3qf7iOJQ/uoKA5rogaGzd3dl7z+M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721222144; c=relaxed/simple; bh=w3lM3QxgiIO2XloHLHUAuPqr2I7Bak5yf/pxxvSHH54=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=harkq3t/ALhADOpQanxVsTs7ZkJEaFkKl8APugJYozvTzqHHMyLsWnRgrEKEDL+XKsXxgBfwIpF1ZBdl/Zhl47vfV6uZs3EN3EfWkIA11oFU1lxcahrfJkIdgUyj+IDh+iGwJj94hlaJvduX1VMvx2BGz+vh/dQoCxFimaH+XWs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com; spf=pass smtp.mailfrom=ventanamicro.com; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b=pCn679AA; arc=none smtp.client-ip=209.85.166.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="pCn679AA" Received: by mail-io1-f49.google.com with SMTP id ca18e2360f4ac-7f70a708f54so50416939f.3 for ; Wed, 17 Jul 2024 06:15:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1721222141; x=1721826941; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=nfyN59SqKKWvXLU3CmJIUvS3Qc0ugEMt32zK3kDXEnU=; b=pCn679AAqbmQ8aEZ0gMkxczOAnX6RI3DGskk2a67QuSwJJmQ/LVcSQDD4BQ+7G758U Zazq2hfQl/h0iYjfJOutzc9mHP9KeXIGb0X3+XCkoDkZd1yBDghfwBBwtVPjhENR0RQY c/I3z29/8ElRq6es6qhON0x/X6AKbPeqMvItG2ModEdzAhnX65nom1gGKvjsH4fqJeC8 lfayo+Xbxm4+cfVxIpqxpB1XsgPnprQGPRASbCAm7dlFuWLr9CcSAoShnJAorkFRtg04 aXcOMQfex2KWDt+Ru2+tgeNYg/YMTVb0r+h/BZjWr/p2/53jYW1OqByr/h1tWXkz+glU jqDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721222141; x=1721826941; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=nfyN59SqKKWvXLU3CmJIUvS3Qc0ugEMt32zK3kDXEnU=; b=gFVGBHNCB928RbcxIge8x78fm0GgrmpYLavVlV2yO0ac3WDRqgf8vMBmK83RM5RwJ4 WNAnKSO1PgyaxQvj8hFMbiAsKLmk6NKs+CqEZ4logsicvTgZH7Tdw7UiRQln15bQ5oLd 7j4OfCmJOZItzVIh8PD9LuosWw50MCLoVLznw4EwN7qChUzn/wNsex7sXJ8w8geecDLZ lfQ/IKJArhG0CzIPoHFiFQjRmsgjZtQtnFICTuOEylgxP7iqwbb2cRRpzj/OlBhEi9fW ZNt5e+OJvrpoMEFDR8712eOfj62cPzbNWrdu7x2WefobIoadXyJ3HdGPQlrQMFq2zXiT 2XqA== X-Forwarded-Encrypted: i=1; AJvYcCUPuimcVGZqJz7/7gZLEKglPLDhe+fLDZUIih/IhB39l0Zg3Wq2v7HQbdoOepqg5u8GzNplT7+IhBxOgJZYy/YVbF0L5+ZWyZo3CGsV X-Gm-Message-State: AOJu0Yw1dOk4IlIHTWMC3URchp6qRhlaeVQmNdpqdeDqr/VSDNkQjaV8 W03rl4mefswmDYH3E1VxIeKgX+B6DZTRZmM8QzMtqbCumdPSJF+p9BRvqujfSD4= X-Google-Smtp-Source: AGHT+IGqABt+N2by4fsdmIqsdoYWgZufcwOnrxKz5lnVlQ+PsNG/iBjeIJbo82SPl4wG/8emOYWz6A== X-Received: by 2002:a05:6602:1406:b0:7f9:1b3b:8465 with SMTP id ca18e2360f4ac-817109e76cbmr216963839f.11.1721222141068; Wed, 17 Jul 2024 06:15:41 -0700 (PDT) Received: from localhost ([140.82.166.162]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4c210f21be4sm658490173.91.2024.07.17.06.15.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jul 2024 06:15:40 -0700 (PDT) Date: Wed, 17 Jul 2024 08:15:40 -0500 From: Andrew Jones To: Alexandre Ghiti Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Samuel Holland , Peter Zijlstra , Josh Poimboeuf , Jason Baron , Steven Rostedt , Ard Biesheuvel , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= , Pu Lehui , Puranjay Mohan , Luke Nelson , Xi Wang , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Geert Uytterhoeven Subject: Re: [PATCH] riscv: patch: Remove redundant functions Message-ID: <20240717-515ffec38da9b1f5df03e42c@orel> References: <20240717084102.150914-1-alexghiti@rivosinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240717084102.150914-1-alexghiti@rivosinc.com> On Wed, Jul 17, 2024 at 10:41:02AM GMT, Alexandre Ghiti wrote: > Commit edf2d546bfd6f5c4 ("riscv: patch: Flush the icache right after > patching to avoid illegal insns") removed the last differences between > patch_text_set_nosync() and patch_insn_set(), and between > patch_text_nosync() and patch_insn_write(). > > So remove the redundant *_nosync() functions. > > Reported-by: Geert Uytterhoeven > Closes: https://lore.kernel.org/linux-riscv/CAMuHMdUwx=rU2MWhFTE6KhYHm64phxx2Y6u05-aBLGfeG5696A@mail.gmail.com/ > Signed-off-by: Alexandre Ghiti > --- > arch/riscv/errata/sifive/errata.c | 4 ++-- > arch/riscv/errata/thead/errata.c | 2 +- > arch/riscv/include/asm/patch.h | 3 +-- > arch/riscv/kernel/alternative.c | 4 ++-- > arch/riscv/kernel/cpufeature.c | 2 +- > arch/riscv/kernel/jump_label.c | 2 +- > arch/riscv/kernel/patch.c | 24 +----------------------- > arch/riscv/net/bpf_jit_core.c | 4 ++-- > 8 files changed, 11 insertions(+), 34 deletions(-) > Reviewed-by: Andrew Jones