Permalink
Browse files

slab/gcc5 fixes

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
  • Loading branch information...
RobertCNelson committed Jun 13, 2016
1 parent 26b306a commit a7cae69de974a1080deb885898980684f4842660
Showing with 7 additions and 1 deletion.
  1. +6 −1 arch/arm/Makefile
  2. +1 −0 include/linux/of.h
View
@@ -13,7 +13,12 @@
# Ensure linker flags are correct
LDFLAGS :=
LDFLAGS_vmlinux :=-p --no-undefined -X --pic-veneer
GCCVERSIONISGTE5 := $(shell expr `$(HOSTCC) -dumpversion | cut -f1 -d.` \>= 5)
ifeq "$(GCCVERSIONISGTE5)" "1"
LDFLAGS_vmlinux :=-p --no-undefined -X
else
LDFLAGS_vmlinux :=-p --no-undefined -X --pic-veneer
endif
ifeq ($(CONFIG_CPU_ENDIAN_BE8),y)
LDFLAGS_vmlinux += --be8
LDFLAGS_MODULE += --be8
View
@@ -23,6 +23,7 @@
#include <linux/spinlock.h>
#include <linux/topology.h>
#include <linux/notifier.h>
#include <linux/slab.h>
#include <linux/property.h>
#include <linux/list.h>
#include <linux/rhashtable.h>

0 comments on commit a7cae69

Please sign in to comment.