From: Ivan Priest Date: Tue, 7 May 2019 10:39:53 +0000 (+0100) Subject: [RAMEN9610-14973] wlbt: add droplevel handler for lerna X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1028ff6e0a48b544d951851675bfdbdb90a2fbf6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [RAMEN9610-14973] wlbt: add droplevel handler for lerna Missing droplevel entry for lerna caused a prevent warning. Add the handler and comments indicating which tables to keep in line. Change-Id: I0fd9064dd62d9081305113c7bc121161c49f7b3e SCSC-Bug-Id: SSB-52396 Signed-off-by: Ivan Priest --- diff --git a/drivers/misc/samsung/scsc/scsc_logring_main.c b/drivers/misc/samsung/scsc/scsc_logring_main.c index 79767480fa4e..f9e966d1a8f2 100644 --- a/drivers/misc/samsung/scsc/scsc_logring_main.c +++ b/drivers/misc/samsung/scsc/scsc_logring_main.c @@ -220,6 +220,7 @@ ADD_DEBUG_MODULE_PARAM(plat_mif, SCSC_DBG1, PLAT_MIF); ADD_DEBUG_MODULE_PARAM(kic_common, SCSC_FULL_DEBUG, KIC_COMMON); ADD_DEBUG_MODULE_PARAM(wlbtd, SCSC_FULL_DEBUG, WLBTD); ADD_DEBUG_MODULE_PARAM(wlog, SCSC_DEBUG, WLOG); +ADD_DEBUG_MODULE_PARAM(lerna, SCSC_FULL_DEBUG, LERNA); #ifdef CONFIG_SCSC_DEBUG_COMPATIBILITY ADD_DEBUG_MODULE_PARAM(init_deinit, SCSC_FULL_DEBUG, SLSI_INIT_DEINIT); ADD_DEBUG_MODULE_PARAM(netdev, SCSC_DBG4, SLSI_NETDEV); @@ -252,6 +253,9 @@ ADD_DEBUG_MODULE_PARAM(flowc, SCSC_FULL_DEBUG, SLSI_FLOWC); #endif ADD_DEBUG_MODULE_PARAM(test_me, SCSC_FULL_DEBUG, TEST_ME); +/* Extend this list when you add ADD_DEBUG_MODULE_PARAM, above. + * You must also extend "enum scsc_logring_tags" + */ int *scsc_droplevels[] = { &scsc_droplevel_binary, &scsc_droplevel_bin_wifi_ctrl_rx, @@ -290,6 +294,7 @@ int *scsc_droplevels[] = { &scsc_droplevel_kic_common, &scsc_droplevel_wlbtd, &scsc_droplevel_wlog, + &scsc_droplevel_lerna, #ifdef CONFIG_SCSC_DEBUG_COMPATIBILITY &scsc_droplevel_init_deinit, &scsc_droplevel_netdev, @@ -320,7 +325,7 @@ int *scsc_droplevels[] = { &scsc_droplevel_flowc, &scsc_droplevel_smapper, #endif - &scsc_droplevel_test_me, + &scsc_droplevel_test_me, /* Must be last */ }; #ifdef CONFIG_SCSC_LOG_COLLECTION diff --git a/include/scsc/scsc_logring.h b/include/scsc/scsc_logring.h index 0eddc9ec8d5d..0f3274e63df7 100644 --- a/include/scsc/scsc_logring.h +++ b/include/scsc/scsc_logring.h @@ -16,6 +16,8 @@ /* NOTE_CREATING_TAGS: when adding a tag here REMEMBER to add it also * where required, taking care to maintain the same ordering. * (Search 4 NOTE_CREATING_TAGS) + * + * You must update "int *scsc_droplevels[]" to match. */ enum scsc_logring_tags { FIRST_TAG, @@ -59,6 +61,7 @@ enum scsc_logring_tags { KIC_COMMON, WLBTD, WLOG, + LERNA, #ifdef CONFIG_SCSC_DEBUG_COMPATIBILITY SLSI_INIT_DEINIT, SLSI_NETDEV, @@ -89,7 +92,6 @@ enum scsc_logring_tags { SLSI_FLOWC, SLSI_SMAPPER, #endif - LERNA, TEST_ME, MAX_TAG = TEST_ME /* keep it last */ };