On Mon, Sep 1, 2025 at 3:58 PM David Hildenbrand <david@xxxxxxxxxx> wrote: > > index 2201da0afecc..0232d983b715 100644 > > --- a/include/linux/sched/mm.h > > +++ b/include/linux/sched/mm.h > > @@ -178,7 +178,7 @@ static inline void mm_update_next_owner(struct mm_struct *mm) > > #endif > > > > extern void arch_pick_mmap_layout(struct mm_struct *mm, > > - struct rlimit *rlim_stack); > > + const struct rlimit *rlim_stack); > > > > unsigned long > > arch_get_unmapped_area(struct file *filp, unsigned long addr, > > @@ -211,7 +211,7 @@ generic_get_unmapped_area_topdown(struct file *filp, unsigned long addr, > > unsigned long flags, vm_flags_t vm_flags); > > #else > > static inline void arch_pick_mmap_layout(struct mm_struct *mm, > > - struct rlimit *rlim_stack) {} > > + const struct rlimit *rlim_stack) {} > > #endif > > Should both these cases also use *const? > > (for the latter we probably don't care either, but maybe just to be > consistent) Actually, it would *only* make sense on the latter, because the former is a prototype...