Thread (60 messages) 60 messages, 8 authors, 2024-03-15

Re: [PATCH v5 24/37] rust: Add a rust helper for krealloc()

From: Miguel Ojeda <hidden>
Date: 2024-03-08 15:23:44
Also in: cgroups, linux-arch, linux-doc, linux-fsdevel, linux-iommu, linux-mm, lkml, rust-for-linux

On Wed, Mar 6, 2024 at 7:26 PM Suren Baghdasaryan [off-list ref] wrote:
+void * __must_check rust_helper_krealloc(const void *objp, size_t new_size,
+                                        gfp_t flags) __realloc_size(2)
The `__realloc_size(2)` should be placed earlier, i.e. this triggers:

rust/helpers.c:162:20: error: GCC does not allow '__alloc_size__'
attribute in this position on a function definition [-Wgcc-compat]

With that fixed:

Acked-by: Miguel Ojeda <ojeda@kernel.org>

Cheers,
Miguel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help