Discussion:
[Bug 103909] anv_allocator.c:113:1: error: static declaration of ‘memfd_create’ follows non-static declaration
Add Reply
b***@freedesktop.org
2017-11-26 08:27:07 UTC
Reply
Permalink
Raw Message
https://bugs.freedesktop.org/show_bug.cgi?id=103909

Bug ID: 103909
Summary: anv_allocator.c:113:1: error: static declaration of
‘memfd_create’ follows non-static declaration
Product: Mesa
Version: git
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Mesa core
Assignee: mesa-***@lists.freedesktop.org
Reporter: ***@freedesktop.org
QA Contact: mesa-***@lists.freedesktop.org
CC: ***@bitplanet.net

mesa: 0bd83d04612520ff97e21d41bcc3ad2e68e160df (master 17.4.0-devel)

CC vulkan/vulkan_libvulkan_common_la-anv_allocator.lo
vulkan/anv_allocator.c:113:1: error: static declaration of ‘memfd_create’
follows non-static declaration
memfd_create(const char *name, unsigned int flags)
^~~~~~~~~~~~
In file included from /usr/include/bits/mman.h:45:0,
from /usr/include/sys/mman.h:41,
from vulkan/anv_allocator.c:29:
/usr/include/bits/mman-linux.h:125:5: note: previous declaration of
‘memfd_create’ was here
int memfd_create (const char *__name, unsigned int __flags) __THROW;
^~~~~~~~~~~~
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
b***@freedesktop.org
2017-12-06 08:35:20 UTC
Reply
Permalink
Raw Message
https://bugs.freedesktop.org/show_bug.cgi?id=103909

Vinson Lee <***@freedesktop.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED

--- Comment #1 from Vinson Lee <***@freedesktop.org> ---
commit 8c1e4b1afc8d396ccf99c725c59b29a9aa305557
Author: Vinson Lee <***@freedesktop.org>
Date: Tue Nov 28 23:16:58 2017 -0800

anv: Check if memfd_create is already defined.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103909
Signed-off-by: Vinson Lee <***@freedesktop.org>
Reviewed-by: Eric Engestrom <***@imgtec.com>
--
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
Loading...