File tree Expand file tree Collapse file tree 3 files changed +5
-14
lines changed Expand file tree Collapse file tree 3 files changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ MALI_ENABLE_CPU_CYCLES ?= 0
25
25
# For customer releases the Linux Device Drivers will be provided as ARM proprietary and GPL releases:
26
26
# The ARM proprietary product will only include the license/proprietary directory
27
27
# The GPL product will only include the license/gpl directory
28
- ifeq ($(wildcard $(src ) /linux/license/gpl/* ) ,)
28
+ ifeq ($(wildcard $(srctree ) / $( src ) /linux/license/gpl/* ) ,)
29
29
ccflags-y += -I$(src ) /linux/license/proprietary
30
30
ifeq ($(CONFIG_MALI400_PROFILING),y)
31
31
$(error Profiling is incompatible with non-GPL license)
@@ -57,7 +57,7 @@ ifeq ($(MALI_PLATFORM_FILES),)
57
57
ifeq ($(CONFIG_ARCH_EXYNOS4 ) ,y)
58
58
EXTRA_DEFINES += -DMALI_FAKE_PLATFORM_DEVICE=1
59
59
export MALI_PLATFORM =exynos4
60
- export MALI_PLATFORM_FILES_BUILDIN = $(notdir $(wildcard $(src ) /platform/$(MALI_PLATFORM ) /* .c) )
60
+ export MALI_PLATFORM_FILES_BUILDIN = $(notdir $(wildcard $(srctree ) / $( src ) /platform/$(MALI_PLATFORM ) /* .c) )
61
61
export MALI_PLATFORM_FILES_ADD_PREFIX = $(addprefix platform/$(MALI_PLATFORM ) /,$(MALI_PLATFORM_FILES_BUILDIN ) )
62
62
endif
63
63
endif
Original file line number Diff line number Diff line change 13
13
CONFIG ?= default
14
14
15
15
# Validate selected config
16
- ifneq ($(shell [ -d $(src ) /arch-$(CONFIG ) ] && [ -f $(src ) /arch-$(CONFIG ) /config.h ] && echo "OK") , OK)
16
+ ifneq ($(shell [ -d $(srctree ) / $( src ) /arch-$(CONFIG ) ] && [ -f $( srctree ) / $(src ) /arch-$(CONFIG ) /config.h ] && echo "OK") , OK)
17
17
$(warning Current directory is $(src))
18
18
$(error No configuration found for config $(CONFIG). Check that arch-$(CONFIG)/config.h exists)
19
19
else
Original file line number Diff line number Diff line change 15
15
#include <linux/types.h>
16
16
#include <linux/bitops.h>
17
17
18
- /*
19
- * deal with unrepresentable constant logarithms
20
- */
21
- extern __attribute__((const , noreturn ))
22
- int ____ilog2_NaN (void );
23
-
24
18
/*
25
19
* non-constant log of base 2 calculators
26
20
* - the arch may override these in asm/bitops.h if they can be implemented
@@ -85,7 +79,7 @@ unsigned long __rounddown_pow_of_two(unsigned long n)
85
79
#define ilog2 (n ) \
86
80
( \
87
81
__builtin_constant_p(n) ? ( \
88
- (n) < 1 ? ____ilog2_NaN() : \
82
+ (n) < 2 ? 0 : \
89
83
(n) & (1ULL << 63) ? 63 : \
90
84
(n) & (1ULL << 62) ? 62 : \
91
85
(n) & (1ULL << 61) ? 61 : \
@@ -148,10 +142,7 @@ unsigned long __rounddown_pow_of_two(unsigned long n)
148
142
(n) & (1ULL << 4) ? 4 : \
149
143
(n) & (1ULL << 3) ? 3 : \
150
144
(n) & (1ULL << 2) ? 2 : \
151
- (n) & (1ULL << 1) ? 1 : \
152
- (n) & (1ULL << 0) ? 0 : \
153
- ____ilog2_NaN() \
154
- ) : \
145
+ 1 ) : \
155
146
(sizeof(n) <= 4) ? \
156
147
__ilog2_u32(n) : \
157
148
__ilog2_u64(n) \
You can’t perform that action at this time.
0 commit comments