Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 9b3965f7 authored by David Woodhouse's avatar David Woodhouse Committed by H. Peter Anvin
Browse files

x86, boot: Use __attribute__((used)) to ensure videocard structs are emitted



It looks like GCC will always emit an object that is marked with an
explicit section, although the documentation doesn't say that and we
possibly shouldn't be relying on it.

Clang does *not* do so, so add __attribute__((used)) to make sure.

Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
Link: http://lkml.kernel.org/r/1389180083-23249-2-git-send-email-David.Woodhouse@intel.com


Signed-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
parent 1c678da3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment