From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: arch: use rest_of_page() macro where appropriate
Date: Thu, 05 Mar 2026 13:59:12 +1000 [thread overview]
Message-ID: <review-patch8-20260304012717.201797-9-ynorov@nvidia.com> (raw)
In-Reply-To: <20260304012717.201797-9-ynorov@nvidia.com>
Patch Review
- `arch/arm64/kernel/patching.c`: Correct replacement. **Minor nit:** a blank line between the `size = ...` assignment and `waddr = patch_map(...)` was removed. This is an unrelated whitespace change.
```c
- size = min_t(size_t, PAGE_SIZE - offset_in_page(ptr),
- len - patched);
-
+ size = min_t(size_t, rest_of_page(ptr), len - patched);
waddr = patch_map(ptr, FIX_TEXT_POKE0);
```
The original had a visual separator; removing it is a style change that should be separate or at least mentioned.
- `arch/powerpc/lib/code-patching.c`: Two comment updates and one code change. The comment updates replacing `(PAGE_SIZE - offset_in_page(addr))` with `rest_of_page(addr)` in the function documentation are a nice touch. Code change is correct.
- `arch/riscv/kernel/sbi.c`: Two replacements in `sbi_debug_console_write()` and `sbi_debug_console_read()`. Correct — the guard condition `PAGE_SIZE < (offset_in_page(bytes) + num_bytes)` ensures we only reach the assignment when `rest_of_page(bytes) < num_bytes`.
---
Generated by Claude Code Patch Reviewer
next prev parent reply other threads:[~2026-03-05 3:59 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-04 1:27 [PATCH 0/8] mm: globalize rest_of_page() macro Yury Norov
2026-03-04 1:27 ` [PATCH 1/8] mm: add " Yury Norov
2026-03-05 3:59 ` Claude review: " Claude Code Review Bot
2026-03-04 1:27 ` [PATCH 2/8] fs: use rest_of_page() macro where appropriate Yury Norov
2026-03-05 3:59 ` Claude review: " Claude Code Review Bot
2026-03-04 1:27 ` [PATCH 3/8] net: " Yury Norov
2026-03-05 3:59 ` Claude review: " Claude Code Review Bot
2026-03-04 1:27 ` [PATCH 4/8] core: " Yury Norov
2026-03-05 3:59 ` Claude review: " Claude Code Review Bot
2026-03-04 1:27 ` [PATCH 5/8] spi: " Yury Norov
2026-03-04 11:10 ` Mark Brown
2026-03-05 3:59 ` Claude review: " Claude Code Review Bot
2026-03-04 1:27 ` [PATCH 6/8] KVM: " Yury Norov
2026-03-05 3:59 ` Claude review: " Claude Code Review Bot
2026-03-04 1:27 ` [PATCH 7/8] drivers: ALSA: " Yury Norov
2026-03-05 3:59 ` Claude review: " Claude Code Review Bot
2026-03-04 1:27 ` [PATCH 8/8] arch: " Yury Norov
2026-03-05 3:59 ` Claude Code Review Bot [this message]
2026-03-04 2:28 ` [PATCH 0/8] mm: globalize rest_of_page() macro Jakub Kicinski
2026-03-04 2:42 ` Jens Axboe
2026-03-04 2:49 ` Sean Christopherson
2026-03-04 3:32 ` Yury Norov
2026-03-04 3:35 ` Jens Axboe
2026-03-04 12:48 ` Peter Zijlstra
2026-03-05 3:59 ` Claude review: " Claude Code Review Bot
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=review-patch8-20260304012717.201797-9-ynorov@nvidia.com \
--to=claude-review@example.com \
--cc=dri-devel-reviews@example.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