kernel: Set CONFIG_FRAME_WARN depending on target
This set the CONFIG_FRAME_WARN option depending on some target settings.
It will use the default from the upstream kernel and not the hard coded
value of 1024 now.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 16a20512d8)
			
			
This commit is contained in:
		| @@ -387,6 +387,17 @@ config KERNEL_DEBUG_INFO_REDUCED | ||||
| 	  DEBUG_INFO build and compile times are reduced too. | ||||
| 	  Only works with newer gcc versions. | ||||
|  | ||||
| config KERNEL_FRAME_WARN | ||||
| 	int | ||||
| 	range 0 8192 | ||||
| 	default 1280 if KERNEL_KASAN && !ARCH_64BIT | ||||
| 	default 1024 if !ARCH_64BIT | ||||
| 	default 2048 if ARCH_64BIT | ||||
| 	help | ||||
| 	  Tell the compiler to warn at build time for stack frames larger than this. | ||||
| 	  Setting this too low will cause a lot of warnings. | ||||
| 	  Setting it to 0 disables the warning. | ||||
|  | ||||
| # KERNEL_DEBUG_LL symbols must have the default value set as otherwise | ||||
| # KConfig wont evaluate them unless KERNEL_EARLY_PRINTK is selected | ||||
| # which means that buildroot wont override the DEBUG_LL symbols in target | ||||
|   | ||||
| @@ -2077,7 +2077,6 @@ CONFIG_FORTIFY_SOURCE=y | ||||
| # CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER is not set | ||||
| # CONFIG_FRAMEBUFFER_CONSOLE_LEGACY_ACCELERATION is not set | ||||
| # CONFIG_FRAME_POINTER is not set | ||||
| CONFIG_FRAME_WARN=1024 | ||||
| # CONFIG_FREEZER is not set | ||||
| # CONFIG_FRONTSWAP is not set | ||||
| # CONFIG_FSCACHE is not set | ||||
|   | ||||
| @@ -269,7 +269,6 @@ CONFIG_FRAMEBUFFER_CONSOLE=y | ||||
| CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y | ||||
| # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set | ||||
| CONFIG_FRAME_POINTER=y | ||||
| CONFIG_FRAME_WARN=2048 | ||||
| CONFIG_FREEZER=y | ||||
| # CONFIG_FSL_BMAN_TEST is not set | ||||
| CONFIG_FSL_DPAA=y | ||||
|   | ||||
| @@ -70,7 +70,6 @@ CONFIG_EXT4_FS=y | ||||
| CONFIG_F2FS_FS=y | ||||
| CONFIG_FAT_FS=y | ||||
| CONFIG_FIXED_PHY=y | ||||
| CONFIG_FRAME_WARN=2048 | ||||
| CONFIG_FS_IOMAP=y | ||||
| CONFIG_FS_MBCACHE=y | ||||
| CONFIG_FWNODE_MDIO=y | ||||
|   | ||||
| @@ -201,7 +201,6 @@ CONFIG_FIXED_PHY=y | ||||
| CONFIG_FIX_EARLYCON_MEM=y | ||||
| # CONFIG_FORTIFY_SOURCE is not set | ||||
| CONFIG_FRAME_POINTER=y | ||||
| CONFIG_FRAME_WARN=2048 | ||||
| CONFIG_FS_IOMAP=y | ||||
| CONFIG_FS_MBCACHE=y | ||||
| CONFIG_FS_POSIX_ACL=y | ||||
|   | ||||
| @@ -161,7 +161,6 @@ CONFIG_FONT_SUPPORT=y | ||||
| CONFIG_FRAMEBUFFER_CONSOLE=y | ||||
| CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y | ||||
| CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y | ||||
| CONFIG_FRAME_WARN=2048 | ||||
| CONFIG_FREEZER=y | ||||
| CONFIG_FS_IOMAP=y | ||||
| CONFIG_FS_MBCACHE=y | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Hauke Mehrtens
					Hauke Mehrtens