From: Christoph Hellwig <hch@infradead.org>
To: "Clément Léger" <cleger@rivosinc.com>
Cc: Paul Walmsley <paul.walmsley@sifive.com>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org,
Christoph Hellwig <hch@infradead.org>,
Ben Dooks <ben.dooks@codethink.co.uk>,
kernel test robot <lkp@intel.com>
Subject: Re: [PATCH v2] riscv: fix incorrect use of __user pointer
Date: Fri, 24 Nov 2023 22:22:59 -0800 [thread overview]
Message-ID: <ZWGSw6/6OxUnsSVW@infradead.org> (raw)
In-Reply-To: <20231124113803.165431-1-cleger@rivosinc.com>
On Fri, Nov 24, 2023 at 12:38:03PM +0100, Clément Léger wrote:
>
> #ifdef CONFIG_RISCV_M_MODE
> -static inline int load_u8(struct pt_regs *regs, const u8 *addr, u8 *r_val)
> +static inline int load_u8(struct pt_regs *regs, const unsigned long addr, u8 *r_val)
Please avoid the overly long line here. Or just drop the const as that
is rather pointless for a scalaer (unlike the pointer).
Otherwise looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2023-11-25 6:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-24 11:38 [PATCH v2] riscv: fix incorrect use of __user pointer Clément Léger
2023-11-25 6:22 ` Christoph Hellwig [this message]
2023-11-25 15:37 ` David Laight
2023-11-27 10:24 ` Clément Léger
2023-11-27 10:35 ` David Laight
2023-11-27 10:37 ` Clément Léger
2023-11-27 10:51 ` David Laight
2023-11-27 12:02 ` Ben Dooks
2023-11-27 12:46 ` Clément Léger
2023-11-27 12:57 ` Clément Léger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZWGSw6/6OxUnsSVW@infradead.org \
--to=hch@infradead.org \
--cc=aou@eecs.berkeley.edu \
--cc=ben.dooks@codethink.co.uk \
--cc=cleger@rivosinc.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=lkp@intel.com \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox