Message ID | mhng-723be372-8df5-44b9-9e4f-def2eb929f8e@palmerdabbelt-glaptop (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [GIT,PULL] RISC-V Patches for the 5.13 Merge Window, Part 1 | expand |
On Wed, May 5, 2021 at 10:51 PM Palmer Dabbelt <palmer@dabbelt.com> wrote: > > Here are my conflict resolutions, if that helps: I think you've unnecessarily done that "+1" twice: > + /* + 1 as memblock_alloc() might increase memblock.reserved.cnt */ > + num_resources = memblock.memory.cnt + memblock.reserved.cnt + 1; > + res_idx = num_resources - 1; > > - mem_res_sz = num_resources * sizeof(*mem_res); > + /* + 1 as memblock_alloc() might increase memblock.reserved.cnt */ > + mem_res_sz = (memblock.memory.cnt + memblock.reserved.cnt + 1) * sizeof(*mem_res); > mem_res = memblock_alloc(mem_res_sz, SMP_CACHE_BYTES); > if (!mem_res) > panic("%s: Failed to allocate %zu bytes\n", __func__, mem_res_sz); and I kept that as just the first one. Linus
The pull request you sent on Wed, 05 May 2021 22:51:36 -0700 (PDT):
> git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git tags/riscv-for-linus-5.13-mw0
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/939b7cbc00906b02c6eae6a380ad6c24c7a1e043
Thank you!
diff --cc Documentation/admin-guide/kernel-parameters.txt index 20447b531630,a1266f33d6e6..5bcc229d31e2 --- a/Documentation/admin-guide/kernel-parameters.txt diff --cc arch/riscv/Kconfig index 6ddf5a2eb84d,6860c0c21190..a8ad8eb76120 --- a/arch/riscv/Kconfig diff --cc arch/riscv/kernel/Makefile index 56d5cd2a5982,647a47f5484a..d3081e4d9600 --- a/arch/riscv/kernel/Makefile diff --cc arch/riscv/kernel/setup.c index 7b31779101f6,f8f15332caa2..5638f85e82f6 --- a/arch/riscv/kernel/setup.c diff --cc arch/riscv/kernel/time.c index 302ceafe0f81,1b432264f7ef..8217b0f67c6c --- a/arch/riscv/kernel/time.c diff --cc arch/riscv/mm/kasan_init.c index 4fa412a314f9,937d13ce9ab8..c3e3db5177aa --- a/arch/riscv/mm/kasan_init.c