mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
msm-4.14: Revert some unsafe optimizations
Change-Id: I2c268f87ab8d9154758384c7a7639046c3784eb8 Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
This commit is contained in:
parent
091c0e1046
commit
be1ff8e638
@ -8,10 +8,6 @@
|
||||
# published by the Free Software Foundation.
|
||||
#
|
||||
|
||||
ccflags-y += -Ofast
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
|
||||
obj-$(CONFIG_CRYPTO_SHA1_ARM64_CE) += sha1-ce.o
|
||||
sha1-ce-y := sha1-ce-glue.o sha1-ce-core.o
|
||||
|
||||
|
@ -12,9 +12,6 @@ CFLAGS_REMOVE_insn.o = -pg
|
||||
CFLAGS_REMOVE_return_address.o = -pg
|
||||
|
||||
CFLAGS_setup.o = -DUTS_MACHINE='"$(UTS_MACHINE)"'
|
||||
ccflags-y += -Ofast
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
|
||||
# Object file lists.
|
||||
arm64-obj-y := debug-monitors.o entry.o irq.o fpsimd.o \
|
||||
|
@ -20,13 +20,12 @@ ldflags-y := -shared -nostdlib -soname=linux-vdso.so.1 --hash-style=sysv \
|
||||
ccflags-y := -fno-stack-protector
|
||||
ccflags-y += -DDISABLE_BRANCH_PROFILING -ffixed-x18
|
||||
ccflags-y += $(call cc-option, -fno-whole-program)
|
||||
ccflags-y += -Ofast
|
||||
|
||||
# Force -O2 to avoid libgcc dependencies
|
||||
CFLAGS_REMOVE_vgettimeofday.o = -pg -Os
|
||||
CFLAGS_vgettimeofday.o = -fPIC
|
||||
ifeq ($(cc-name),clang)
|
||||
CFLAGS_vgettimeofday.o = -Ofast
|
||||
CFLAGS_vgettimeofday.o = -O3
|
||||
else
|
||||
CFLAGS_vgettimeofday.o = -O2
|
||||
CFLAGS_vgettimeofday.o += -mcmodel=tiny
|
||||
|
@ -73,7 +73,7 @@ VDSO_CFLAGS += -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
|
||||
-Wno-format-security \
|
||||
-std=gnu89
|
||||
ifeq ($(cc-name),clang)
|
||||
VDSO_CFLAGS += -Ofast
|
||||
VDSO_CFLAGS += -O3
|
||||
else
|
||||
VDSO_CFLAGS += -O2
|
||||
endif
|
||||
|
@ -1,9 +1,4 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
ccflags-y += -Ofast
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
|
||||
lib-y := clear_user.o delay.o copy_from_user.o \
|
||||
copy_to_user.o copy_in_user.o copy_page.o \
|
||||
clear_page.o memchr.o memcpy.o memmove.o memset.o \
|
||||
|
@ -1,7 +1,4 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
ccflags-y += -Ofast
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
obj-y := dma-mapping.o extable.o fault.o init.o \
|
||||
cache.o copypage.o flush.o \
|
||||
ioremap.o mmap.o pgd.o mmu.o \
|
||||
|
@ -11,9 +11,6 @@ obj-$(CONFIG_BLOCK) := bio.o elevator.o blk-core.o blk-tag.o blk-sysfs.o \
|
||||
genhd.o partition-generic.o ioprio.o \
|
||||
badblocks.o partitions/
|
||||
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
|
||||
obj-$(CONFIG_BOUNCE) += bounce.o
|
||||
obj-$(CONFIG_BLK_SCSI_REQUEST) += scsi_ioctl.o
|
||||
obj-$(CONFIG_BLK_DEV_BSG) += bsg.o
|
||||
@ -40,4 +37,4 @@ obj-$(CONFIG_BLK_DEBUG_FS) += blk-mq-debugfs.o
|
||||
obj-$(CONFIG_BLK_SED_OPAL) += sed-opal.o
|
||||
obj-$(CONFIG_BLK_INLINE_ENCRYPTION) += keyslot-manager.o bio-crypt-ctx.o \
|
||||
blk-crypto.o
|
||||
obj-$(CONFIG_BLK_INLINE_ENCRYPTION_FALLBACK) += blk-crypto-fallback.o
|
||||
obj-$(CONFIG_BLK_INLINE_ENCRYPTION_FALLBACK) += blk-crypto-fallback.o
|
@ -3,10 +3,6 @@
|
||||
# Cryptographic API
|
||||
#
|
||||
|
||||
ccflags-y += -Ofast
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
|
||||
obj-$(CONFIG_CRYPTO) += crypto.o
|
||||
crypto-y := api.o cipher.o compress.o memneq.o
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
ccflags-y += -I$(src) # needed for trace events
|
||||
|
||||
obj-$(CONFIG_ANDROID_BINDERFS) += binderfs.o
|
||||
|
@ -6,10 +6,6 @@
|
||||
# Rewritten to use lists instead of if-statements.
|
||||
#
|
||||
|
||||
ccflags-y += -Ofast
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
|
||||
obj-$(CONFIG_MAC_FLOPPY) += swim3.o
|
||||
obj-$(CONFIG_BLK_DEV_SWIM) += swim_mod.o
|
||||
obj-$(CONFIG_BLK_DEV_FD) += floppy.o
|
||||
|
@ -1,6 +1,2 @@
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
ccflags-y += -Ofast
|
||||
|
||||
zram-y := zcomp.o zram_drv.o
|
||||
obj-$(CONFIG_ZRAM) += zram.o
|
||||
|
@ -2,8 +2,6 @@
|
||||
#
|
||||
# Makefile for the kernel character device drivers.
|
||||
#
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
|
||||
obj-y += mem.o random.o
|
||||
obj-$(CONFIG_TTY_PRINTK) += ttyprintk.o
|
||||
|
@ -1,9 +1,4 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
ccflags-y += -Ofast
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
|
||||
# CPUfreq core
|
||||
obj-$(CONFIG_CPU_FREQ) += cpufreq.o freq_table.o
|
||||
|
||||
|
@ -1,8 +1,4 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
ccflags-y += -Ofast
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
|
||||
obj-$(CONFIG_PM_DEVFREQ) += devfreq.o
|
||||
obj-$(CONFIG_PM_DEVFREQ_EVENT) += devfreq-event.o
|
||||
obj-$(CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND) += governor_simpleondemand.o
|
||||
|
@ -3,10 +3,6 @@
|
||||
# Makefile for the drm device driver. This driver provides support for the
|
||||
# Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.
|
||||
|
||||
ccflags-y += -Ofast
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
|
||||
drm-y := drm_auth.o drm_bufs.o drm_cache.o \
|
||||
drm_context.o drm_dma.o \
|
||||
drm_file.o drm_gem.o drm_ioctl.o drm_irq.o \
|
||||
|
@ -9,8 +9,6 @@ ccflags-y += -Idrivers/gpu/drm/msm/hdmi
|
||||
ccflags-$(CONFIG_DRM_SDE_SHD) += -Idrivers/gpu/drm/msm/shd
|
||||
ccflags-$(CONFIG_DRM_SDE_SHP) += -Idrivers/gpu/drm/msm/shp
|
||||
|
||||
ccflags-y += -Ofast
|
||||
|
||||
msm_drm-y := \
|
||||
dp/dp_usbpd.o \
|
||||
dp/dp_parser.o \
|
||||
|
@ -1,7 +1,4 @@
|
||||
ccflags-y := -Iinclude/linux
|
||||
ccflags-y += -Ofast
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
|
||||
msm_kgsl_core-y = \
|
||||
kgsl.o \
|
||||
|
@ -1,7 +1,3 @@
|
||||
ccflags-y += -Ofast
|
||||
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
ccflags-y += -I$(src) # needed for trace events
|
||||
|
||||
obj-y += ion/
|
||||
|
@ -1,8 +1,4 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
ccflags-y += -Ofast
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
|
||||
obj-$(CONFIG_ION) += ion.o ion_heap.o \
|
||||
ion_page_pool.o ion_system_heap.o \
|
||||
ion_carveout_heap.o ion_chunk_heap.o \
|
||||
|
@ -1,8 +1,5 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
|
||||
obj-$(CONFIG_EROFS_FS) += erofs.o
|
||||
erofs-objs := super.o inode.o data.o namei.o dir.o utils.o pcpubuf.o
|
||||
erofs-$(CONFIG_EROFS_FS_XATTR) += xattr.o
|
||||
|
@ -1,7 +1,4 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
|
||||
obj-$(CONFIG_F2FS_FS) += f2fs.o
|
||||
|
||||
f2fs-y := dir.o file.o inode.o namei.o hash.o super.o inline.o
|
||||
|
@ -1,8 +1,6 @@
|
||||
#
|
||||
# Makefile for the FUSE filesystem.
|
||||
#
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
|
||||
obj-$(CONFIG_FUSE_FS) += fuse.o
|
||||
obj-$(CONFIG_CUSE) += cuse.o
|
||||
|
@ -3,8 +3,6 @@
|
||||
# Makefile for the Linux proc filesystem routines.
|
||||
#
|
||||
|
||||
ccflags-y += -Ofast
|
||||
|
||||
obj-y += proc.o
|
||||
|
||||
CFLAGS_task_mmu.o += $(call cc-option,-Wno-override-init,)
|
||||
|
@ -4,8 +4,6 @@
|
||||
#
|
||||
|
||||
ccflags-y := -fno-function-sections -fno-data-sections
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
|
||||
obj-y := main.o version.o mounts.o
|
||||
obj-y += noinitramfs.o
|
||||
|
@ -35,10 +35,6 @@ CFLAGS_kcov.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector)
|
||||
# cond_syscall is currently not LTO compatible
|
||||
CFLAGS_sys_ni.o = $(DISABLE_LTO)
|
||||
|
||||
ccflags-y += -Ofast
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
|
||||
# Don't instrument error handlers
|
||||
CFLAGS_cfi.o = $(DISABLE_CFI_CLANG)
|
||||
|
||||
|
@ -2,8 +2,6 @@
|
||||
obj-y := core.o
|
||||
CFLAGS_core.o += $(call cc-disable-warning, override-init)
|
||||
|
||||
ccflags-y += -Ofast
|
||||
|
||||
obj-$(CONFIG_BPF_SYSCALL) += syscall.o verifier.o inode.o helpers.o tnum.o
|
||||
obj-$(CONFIG_BPF_SYSCALL) += hashtab.o arraymap.o percpu_freelist.o bpf_lru_list.o lpm_trie.o map_in_map.o
|
||||
ifeq ($(CONFIG_NET),y)
|
||||
|
@ -1,6 +1,4 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
obj-y := cgroup.o namespace.o cgroup-v1.o freezer.o
|
||||
|
||||
obj-$(CONFIG_CGROUP_FREEZER) += legacy_freezer.o
|
||||
|
@ -1,8 +1,5 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
|
||||
obj-y := irqdesc.o handle.o manage.o spurious.o resend.o chip.o dummychip.o devres.o
|
||||
obj-$(CONFIG_IRQ_TIMINGS) += timings.o
|
||||
obj-$(CONFIG_GENERIC_IRQ_CHIP) += generic-chip.o
|
||||
|
@ -1,5 +1,3 @@
|
||||
ccflags-y += -Ofast
|
||||
|
||||
obj-y = printk.o
|
||||
obj-$(CONFIG_PRINTK) += printk_safe.o
|
||||
obj-$(CONFIG_A11Y_BRAILLE_CONSOLE) += braille.o
|
||||
|
@ -3,10 +3,6 @@
|
||||
# and is generally not a function of system call inputs.
|
||||
KCOV_INSTRUMENT := n
|
||||
|
||||
ccflags-y += -Ofast
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
|
||||
obj-y += update.o sync.o
|
||||
obj-$(CONFIG_TREE_SRCU) += srcutree.o
|
||||
obj-$(CONFIG_TINY_SRCU) += srcutiny.o
|
||||
|
@ -16,10 +16,6 @@ ifneq ($(CONFIG_SCHED_OMIT_FRAME_POINTER),y)
|
||||
CFLAGS_core.o := $(PROFILING) -fno-omit-frame-pointer
|
||||
endif
|
||||
|
||||
ccflags-y += -Ofast
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
|
||||
obj-y += core.o loadavg.o clock.o cputime.o
|
||||
obj-y += idle_task.o fair.o rt.o deadline.o
|
||||
obj-y += wait.o wait_bit.o swait.o completion.o idle.o
|
||||
|
@ -1,7 +1,4 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
ccflags-y += -Ofast
|
||||
|
||||
obj-y += time.o timer.o hrtimer.o
|
||||
obj-y += timekeeping.o ntp.o clocksource.o jiffies.o timer_list.o
|
||||
obj-y += timeconv.o timecounter.o alarmtimer.o
|
||||
|
@ -23,8 +23,6 @@ endif
|
||||
CFLAGS_trace_benchmark.o := -I$(src)
|
||||
CFLAGS_trace_events_filter.o := -I$(src)
|
||||
|
||||
ccflags-y += -Ofast
|
||||
|
||||
obj-$(CONFIG_TRACE_CLOCK) += trace_clock.o
|
||||
|
||||
obj-$(CONFIG_FUNCTION_TRACER) += libftrace.o
|
||||
|
@ -33,10 +33,6 @@ endif
|
||||
CFLAGS_string.o += $(call cc-option, -fno-stack-protector)
|
||||
endif
|
||||
|
||||
ccflags-y += -Ofast
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
|
||||
lib-y := ctype.o string.o vsprintf.o cmdline.o \
|
||||
rbtree.o radix-tree.o dump_stack.o timerqueue.o\
|
||||
idr.o int_sqrt.o extable.o \
|
||||
|
@ -1,6 +1,5 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
ccflags-y += -Ofast
|
||||
obj-y += libblake2s.o
|
||||
libblake2s-y += blake2s.o blake2s-generic.o
|
||||
ifneq ($(CONFIG_CRYPTO_MANAGER_DISABLE_TESTS),y)
|
||||
|
@ -1,8 +1,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
# Font handling
|
||||
|
||||
ccflags-y += -Ofast
|
||||
|
||||
font-objs := fonts.o
|
||||
|
||||
font-objs-$(CONFIG_FONT_SUN8x16) += font_sun8x16.o
|
||||
|
@ -1,6 +1,3 @@
|
||||
ccflags-y += -Ofast
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
ccflags-y += -O3
|
||||
|
||||
obj-$(CONFIG_LZ4_COMPRESS) += lz4_compress.o
|
||||
|
@ -1,5 +1,3 @@
|
||||
ccflags-y += -Ofast
|
||||
|
||||
lzo_compress-objs := lzo1x_compress.o
|
||||
lzo_decompress-objs := lzo1x_decompress_safe.o
|
||||
|
||||
|
@ -12,8 +12,6 @@ obj-$(CONFIG_ZSTD_COMPRESS) += zstd_compress.o
|
||||
obj-$(CONFIG_ZSTD_DECOMPRESS) += zstd_decompress.o
|
||||
obj-$(CONFIG_ZSTD_COMMON) += zstd_common.o
|
||||
|
||||
ccflags-y += -Ofast
|
||||
|
||||
zstd_compress-y := \
|
||||
zstd_compress_module.o \
|
||||
compress/fse_compress.o \
|
||||
|
@ -21,10 +21,6 @@ KCOV_INSTRUMENT_memcontrol.o := n
|
||||
KCOV_INSTRUMENT_mmzone.o := n
|
||||
KCOV_INSTRUMENT_vmstat.o := n
|
||||
|
||||
ccflags-y += -Ofast
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
|
||||
mmu-y := nommu.o
|
||||
mmu-$(CONFIG_MMU) := gup.o highmem.o memory.o mincore.o \
|
||||
mlock.o mmap.o mprotect.o mremap.o msync.o \
|
||||
|
@ -5,8 +5,6 @@
|
||||
# 2 Sep 2000, Christoph Hellwig <hch@infradead.org>
|
||||
# Rewritten to use lists instead of if-statements.
|
||||
#
|
||||
ccflags-y += -mllvm -inline-threshold=15000
|
||||
ccflags-y += -mllvm -inlinehint-threshold=10000
|
||||
|
||||
obj-$(CONFIG_NET) := socket.o core/
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user