From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 610131DE8AE for ; Sun, 7 Jun 2026 07:08:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780816108; cv=none; b=X6OIfYtXehrrQqCr56jnuKajdWaJrdVi/NuJzUWrLQA3KLgmtfZhjSeeNGKln2vxa94XOkLRG8gCzW9eCF8bEJsTmu3TMYKDGJxzeFizDebRMwoUr2tIpkDBF3CcWMtlK5kLDtOWyrx04F2RL9eiE7nBymMpFSKwMpU5k4SfJ8c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780816108; c=relaxed/simple; bh=EKlBM8myPZ7j2L6vE+Yz6ag8y83DgHE/AxwYjwOO970=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=JySP49Qq7/5xtJp89jmgzex8TF9x1g7tEWieS4ilZLZAU5Ivvxk1F+S3z3aZapOotUCmsikhjyDUPfiYmf3rFFAzcpHI0oSG14CT8nPizSywv1joL+e6fkI2EH6/GfuTBXx1tsKrsvLhwirdXAzXnkBfoNXgzoooIFH7hujNkkc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=G71QmPBV; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="G71QmPBV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67D4C1F00893; Sun, 7 Jun 2026 07:08:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780816107; bh=7Lk/BJ+FNHkTV0i1JhIvCK15HQJofq8L46ZVpVscuzU=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=G71QmPBVtxjory1rgGBFynSY3lXDXHNwLYPr6drfxp2qwYkdmreGaEE3sQ4Ow8bZA kIb3FN2OlTZ8R5dtOBhWRuLfAp/oPky7xTlsg2iR6CfcGa5a1ybDCGR7AmoAuYCBPT lPOs/eoBanRXLep8H61ooMHpZRJtRpXxcuYcuv6PUgRfszBYAIZQ3tOaJAu91Z1YWd xChW5y/Kioveq6bFSzpcvq095++AwzsaRpVplc2fT30cc2ey4yFJlHsL1S/vjmORYC BkxEDRxSU+JvpbdszvTTE9MZlAALrqfPaj+1lFPYCSIc9ftPF4b+Jpsnx1KNfvVwfl owI1nypezJhyw== Date: Sun, 7 Jun 2026 01:08:02 -0600 (MDT) From: Paul Walmsley To: Thorsten Blum , Breno Leitao cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Andrew Morton , Pasha Tatashin , Alexander Graf , Baoquan He , Song Shuai , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RESEND] riscv: kexec: use min to simplify riscv_kexec_elf_load In-Reply-To: Message-ID: References: <20260602224725.1088385-3-thorsten.blum@linux.dev> 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 On Wed, 3 Jun 2026, Breno Leitao wrote: > On Wed, Jun 03, 2026 at 12:47:22AM +0200, Thorsten Blum wrote: > > Use min() to replace the open-coded version and assign the result > > directly to kbuf.bufsz. Drop the now-unused local size variable. > > > > Signed-off-by: Thorsten Blum > > Reviewed-by: Breno Leitao Thanks, queued for v7.2. - Paul