I created a package if anyone want to give this a try, it's a board specific and the board files includes the nand partitioning addresses.
https://github.com/dhead666/PKGBUILDs/t ... nux-meson6Here are the warnings during the build process, I probably need to figure out what they're meaning.
$this->bbcode_second_pass_code('', 'arch/arm/mm/dma-mapping.c: In function '__dma_alloc':
arch/arm/mm/dma-mapping.c:238:25: warning: array subscript is above array bounds [-Warray-bounds]
arch/arm/mm/dma-mapping.c: In function 'dma_free_coherent':
arch/arm/mm/dma-mapping.c:284:25: warning: array subscript is above array bounds [-Warray-bounds]
arch/arm/mach-meson6/clock.c: In function 'meson_clock_init':
arch/arm/mach-meson6/clock.c:2402:53: warning: initialization from incompatible pointer type [enabled by default]
arch/arm/mach-meson6/clock.c:2402:53: warning: (near initialization for 'clk_pll_sys.set_rate') [enabled by default]
arch/arm/kernel/return_address.c:62:2: warning: #warning "TODO: return_address should use unwind tables" [-Wcpp]
#warning "TODO: return_address should use unwind tables"
^
arch/arm/mach-meson6/usbclock.c: In function 'set_usb_phy_clk':
arch/arm/mach-meson6/usbclock.c:61:22: warning: unused variable 'uart' [-Wunused-variable]
arch/arm/plat-meson/cpu_freq.c:46:2: warning: missing braces around initializer [-Wmissing-braces]
arch/arm/plat-meson/cpu_freq.c:46:2: warning: (near initialization for 'meson_freq_table[0]') [-Wmissing-braces]
kernel/cpu.c: In function 'cpu_down':
kernel/cpu.c:295:2: warning: function declaration isn't a prototype [-Wstrict-prototypes]
kernel/cpu.c:295:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
kernel/cpu.c: In function '_cpu_up':
kernel/cpu.c:327:2: warning: function declaration isn't a prototype [-Wstrict-prototypes]
kernel/cpu.c:327:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
arch/arm/plat-meson/gic-irq.c: In function 'meson_init_irq':
arch/arm/plat-meson/gic-irq.c:80:1: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
arch/arm/plat-meson/gic-irq.c: At top level:
arch/arm/plat-meson/gic-irq.c:37:17: warning: 'irq_level' defined but not used [-Wunused-variable]
In file included from arch/arm/mach-meson6/board-m6g18.c:71:0:
arch/arm/mach-meson6/include/mach/voltage.h:34:52: warning: 'struct regulator' declared inside parameter list [enabled by default]
arch/arm/mach-meson6/include/mach/voltage.h:34:52: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
arch/arm/mach-meson6/include/mach/voltage.h:36:29: warning: 'struct regulator' declared inside parameter list [enabled by default]
arch/arm/mach-meson6/board-m6g18.c: In function 'usb_wifi_power':
arch/arm/mach-meson6/board-m6g18.c:1263:5: warning: 'return' with a value, in function returning void [enabled by default]
arch/arm/mach-meson6/board-m6g18.c: At top level:
arch/arm/mach-meson6/board-m6g18.c:1267:5: warning: initialization from incompatible pointer type [enabled by default]
arch/arm/mach-meson6/board-m6g18.c:1267:5: warning: (near initialization for 'wifi_plat_data.usb_set_power') [enabled by default]
arch/arm/mach-meson6/board-m6g18.c:1369:8: warning: return type defaults to 'int' [-Wreturn-type]
arch/arm/mach-meson6/board-m6g18.c:1369:8: warning: function declaration isn't a prototype [-Wstrict-prototypes]
arch/arm/mach-meson6/board-m6g18.c:1499:12: warning: function declaration isn't a prototype [-Wstrict-prototypes]
arch/arm/mach-meson6/board-m6g18.c: In function 'set_voltage':
arch/arm/mach-meson6/board-m6g18.c:1516:1: warning: no return statement in function returning non-void [-Wreturn-type]
arch/arm/mach-meson6/board-m6g18.c: At top level:
arch/arm/mach-meson6/board-m6g18.c:1529:13: warning: function declaration isn't a prototype [-Wstrict-prototypes]
arch/arm/mach-meson6/board-m6g18.c:1634:21: warning: function declaration isn't a prototype [-Wstrict-prototypes]
arch/arm/mach-meson6/board-m6g18.c: In function 'vcck_cur_max_freq':
arch/arm/mach-meson6/board-m6g18.c:1636:126: warning: passing argument 1 of 'meson_vcck_cur_max_freq' from incompatible pointer type [enabled by default]
In file included from arch/arm/mach-meson6/board-m6g18.c:71:0:
arch/arm/mach-meson6/include/mach/voltage.h:33:21: note: expected 'struct regulator *' but argument is of type 'struct regulator *'
arch/arm/mach-meson6/board-m6g18.c: In function 'vcck_scale':
arch/arm/mach-meson6/board-m6g18.c:1642:29: warning: passing argument 1 of 'meson_vcck_scale' from incompatible pointer type [enabled by default]
In file included from arch/arm/mach-meson6/board-m6g18.c:71:0:
arch/arm/mach-meson6/include/mach/voltage.h:35:12: note: expected 'struct regulator *' but argument is of type 'struct regulator *'
arch/arm/mach-meson6/board-m6g18.c: In function 'smc_io_setup':
arch/arm/mach-meson6/board-m6g18.c:2358:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
arch/arm/mach-meson6/board-m6g18.c: In function 'meson_init_machine':
arch/arm/mach-meson6/board-m6g18.c:2639:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
arch/arm/mach-meson6/board-m6g18.c: At top level:
arch/arm/mach-meson6/board-m6g18.c:488:122: warning: 'aml_i2c_init' defined but not used [-Wunused-function]
arch/arm/mach-meson6/board-m6g18.c:756:13: warning: 'reg_on_control' defined but not used [-Wunused-function]
arch/arm/mach-meson6/board-m6g18.c:868:12: warning: 'meson_mmc_detect' defined but not used [-Wunused-function]
arch/arm/mach-meson6/board-m6g18.c:1369:8: warning: 'setup_aml_efuse' defined but not used [-Wunused-function]
arch/arm/plat-meson/gic-fiq.c:53:21: warning: function declaration isn't a prototype [-Wstrict-prototypes]
arch/arm/mach-meson6/hotplug.c:84:6: warning: function declaration isn't a prototype [-Wstrict-prototypes]
arch/arm/mach-meson6/hotplug.c:99:6: warning: function declaration isn't a prototype [-Wstrict-prototypes]
arch/arm/mach-meson6/platsmp.c: In function 'platform_secondary_init':
arch/arm/mach-meson6/platsmp.c:46:1: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
arch/arm/mm/alignment.c: In function 'do_alignment':
arch/arm/mm/alignment.c:298:15: warning: 'offset.un' may be used uninitialized in this function [-Wmaybe-uninitialized]
arch/arm/mm/alignment.c:720:21: note: 'offset.un' was declared here
drivers/amlogic/amports/tsdemux.c: In function 'limited_delay_check':
drivers/amlogic/amports/tsdemux.c:644:108: warning: comparison of distinct pointer types lacks a cast [enabled by default]
block/bfq-iosched.c: In function 'bfq_quantum_store':
block/bfq-iosched.c:3079:255: warning: '__data' may be used uninitialized in this function [-Wmaybe-uninitialized]
block/bfq-iosched.c:3079:150: note: '__data' was declared here
block/bfq-iosched.c: In function 'bfq_back_seek_max_store':
block/bfq-iosched.c:3084:261: warning: '__data' may be used uninitialized in this function [-Wmaybe-uninitialized]
block/bfq-iosched.c:3084:156: note: '__data' was declared here
block/bfq-iosched.c: In function 'bfq_back_seek_penalty_store':
block/bfq-iosched.c:3085:265: warning: '__data' may be used uninitialized in this function [-Wmaybe-uninitialized]
block/bfq-iosched.c:3085:160: note: '__data' was declared here
block/bfq-iosched.c: In function 'bfq_max_budget_async_rq_store':
block/bfq-iosched.c:3088:267: warning: '__data' may be used uninitialized in this function [-Wmaybe-uninitialized]
block/bfq-iosched.c:3088:162: note: '__data' was declared here
block/bfq-iosched.c: In function 'bfq_raising_coeff_store':
block/bfq-iosched.c:3092:261: warning: '__data' may be used uninitialized in this function [-Wmaybe-uninitialized]
block/bfq-iosched.c:3092:156: note: '__data' was declared here
block/bfq-iosched.c: In function 'bfq_raising_max_softrt_rate_store':
block/bfq-iosched.c:3102:271: warning: '__data' may be used uninitialized in this function [-Wmaybe-uninitialized]
block/bfq-iosched.c:3102:166: note: '__data' was declared here
block/bfq-iosched.c: In function 'bfq_max_budget_store':
block/bfq-iosched.c:3133:14: warning: '__data' may be used uninitialized in this function [-Wmaybe-uninitialized]
block/bfq-iosched.c: In function 'bfq_low_latency_store':
block/bfq-iosched.c:3166:16: warning: '__data' may be used uninitialized in this function [-Wmaybe-uninitialized]
block/bfq-iosched.c: In function 'bfq_raising_min_inter_arr_async_store':
block/bfq-iosched.c:3100:275: warning: '__data' may be used uninitialized in this function [-Wmaybe-uninitialized]
block/bfq-iosched.c:3100:170: note: '__data' was declared here
block/bfq-iosched.c: In function 'bfq_raising_min_idle_time_store':
block/bfq-iosched.c:3098:269: warning: '__data' may be used uninitialized in this function [-Wmaybe-uninitialized]
block/bfq-iosched.c:3098:164: note: '__data' was declared here
block/bfq-iosched.c: In function 'bfq_raising_rt_max_time_store':
block/bfq-iosched.c:3096:267: warning: '__data' may be used uninitialized in this function [-Wmaybe-uninitialized]
block/bfq-iosched.c:3096:162: note: '__data' was declared here
block/bfq-iosched.c: In function 'bfq_raising_max_time_store':
block/bfq-iosched.c:3094:264: warning: '__data' may be used uninitialized in this function [-Wmaybe-uninitialized]
block/bfq-iosched.c:3094:159: note: '__data' was declared here
block/bfq-iosched.c: In function 'bfq_timeout_async_store':
block/bfq-iosched.c:3090:261: warning: '__data' may be used uninitialized in this function [-Wmaybe-uninitialized]
block/bfq-iosched.c:3090:156: note: '__data' was declared here
block/bfq-iosched.c: In function 'bfq_slice_idle_store':
block/bfq-iosched.c:3087:258: warning: '__data' may be used uninitialized in this function [-Wmaybe-uninitialized]
block/bfq-iosched.c:3087:153: note: '__data' was declared here
block/bfq-iosched.c: In function 'bfq_fifo_expire_async_store':
block/bfq-iosched.c:3082:265: warning: '__data' may be used uninitialized in this function [-Wmaybe-uninitialized]
block/bfq-iosched.c:3082:160: note: '__data' was declared here
block/bfq-iosched.c: In function 'bfq_fifo_expire_sync_store':
block/bfq-iosched.c:3080:264: warning: '__data' may be used uninitialized in this function [-Wmaybe-uninitialized]
block/bfq-iosched.c:3080:159: note: '__data' was declared here
block/bfq-iosched.c: In function 'bfq_timeout_sync_store':
block/bfq-iosched.c:3152:18: warning: '__data' may be used uninitialized in this function [-Wmaybe-uninitialized]
drivers/amlogic/amports/video.c: In function 'video_receiver_event_fun':
drivers/amlogic/amports/video.c:2093:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
drivers/amlogic/amports/video2.c:2449:12: warning: 'tvin_started' defined but not used [-Wunused-variable]
drivers/amlogic/amports/jpegdec.c: In function '_dec_run':
drivers/amlogic/amports/jpegdec.c:376:5: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
drivers/amlogic/amports/jpegdec.c:376:5: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
drivers/amlogic/amports/jpegdec.c:377:5: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
drivers/amlogic/amports/jpegdec.c:377:5: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
drivers/amlogic/deinterlace/deinterlace.c: In function 'dump_vframe':
drivers/amlogic/deinterlace/deinterlace.c:2416:4: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'struct list_head' [-Wformat=]
drivers/amlogic/deinterlace/deinterlace.c: In function 'dump_state':
drivers/amlogic/deinterlace/deinterlace.c:2470:3: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'struct di_buf_t *' [-Wformat=]
drivers/amlogic/deinterlace/deinterlace.c:2475:5: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'struct di_buf_t *' [-Wformat=]
drivers/amlogic/deinterlace/deinterlace.c: At top level:
drivers/amlogic/deinterlace/deinterlace.c:5152:20: warning: 'timer_irq' defined but not used [-Wunused-function]
sound/soc/codecs/rt5631.c:2415:5: warning: initialization from incompatible pointer type [enabled by default]
sound/soc/codecs/rt5631.c:2415:5: warning: (near initialization for 'rt5631_i2c_driver.shutdown') [enabled by default]
sound/soc/codecs/rt5631.c:52:12: warning: 'ref_count' defined but not used [-Wunused-variable]
drivers/amlogic/display/vout/vdac_switch.c: In function 'vdacswitch_mode_store':
drivers/amlogic/display/vout/vdac_switch.c:147:17: warning: unused variable 'mode_in_lower' [-Wunused-variable]
drivers/amlogic/efuse/keys/core.c: In function 'aml_key_decrypt':
drivers/amlogic/efuse/keys/core.c:380:2: warning: passing argument 2 of 'do_aes_internal' discards 'const' qualifier from pointer target type [enabled by default]
drivers/amlogic/efuse/keys/core.c:332:12: note: expected 'unsigned char *' but argument is of type 'const void *'
drivers/amlogic/efuse/keys/core.c: In function 'aml_key_store':
drivers/amlogic/efuse/keys/core.c:739:5: warning: passing argument 2 of 'aml_key_encrypt' from incompatible pointer type [enabled by default]
drivers/amlogic/efuse/keys/core.c:333:12: note: expected 'size_t *' but argument is of type 'uint16_t *'
drivers/amlogic/efuse/keys/core.c: In function 'key_name_store':
drivers/amlogic/efuse/keys/core.c:1098:7: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
drivers/amlogic/efuse/keys/core.c:1145:7: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
drivers/amlogic/efuse/keys/core.c:1161:6: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
drivers/amlogic/efuse/keys/core.c: In function 'get_aml_key_kernel':
drivers/amlogic/efuse/keys/core.c:1575:55: warning: operation on 'i' may be undefined [-Wsequence-point]
drivers/amlogic/efuse/keys/core.c: At top level:
drivers/amlogic/efuse/keys/core.c:504:12: warning: 'aml_key_write_hash' defined but not used [-Wunused-function]
drivers/amlogic/efuse/keys/core.c:1069:16: warning: 'key_list_store' defined but not used [-Wunused-function]
drivers/amlogic/efuse/keys/version3_extend.c: In function 'version3_init':
drivers/amlogic/efuse/keys/version3_extend.c:570:3: warning: passing argument 2 of 'prov->read' from incompatible pointer type [enabled by default]
drivers/amlogic/efuse/keys/version3_extend.c:570:3: note: expected 'uint8_t *' but argument is of type 'struct v3_key_storage_head *'
drivers/amlogic/efuse/keys/version3_extend.c:584:5: warning: passing argument 2 of 'prov->read' from incompatible pointer type [enabled by default]
drivers/amlogic/efuse/keys/version3_extend.c:584:5: note: expected 'uint8_t *' but argument is of type 'struct v3_key_storage_head *'
drivers/amlogic/hdmi/hdmi_tx/hdmi_tx_video.c: In function 'hdmitx_set_display':
drivers/amlogic/hdmi/hdmi_tx/hdmi_tx_video.c:279:62: warning: 'ec' may be used uninitialized in this function [-Wmaybe-uninitialized]
drivers/amlogic/hdmi/hdmi_tx/hdmi_tx_cec.c:886:14: warning: 'rx_status' defined but not used [-Wunused-variable]
drivers/i2c/i2c-core.c: In function 'i2c_new_existing_device':
drivers/i2c/i2c-core.c:607:1: warning: label 'out_err_silent' defined but not used [-Wunused-label]
drivers/i2c/i2c-core.c:604:1: warning: label 'out_err' defined but not used [-Wunused-label]
drivers/input/joystick/analog.c:175:2: warning: #warning Precise timer not defined for this architecture. [-Wcpp]
#warning Precise timer not defined for this architecture.
^
drivers/amlogic/nand/aml_nand.c:48:14: warning: 'aml_nand_bch_string' defined but not used [-Wunused-variable]
drivers/amlogic/nand/aml_nand.c:56:14: warning: 'aml_nand_plane_string' defined but not used [-Wunused-variable]
drivers/amlogic/nand/aml_nand.c:61:14: warning: 'aml_nand_internal_string' defined but not used [-Wunused-variable]
drivers/amlogic/nand/aml_nand.c: In function 'aml_nand_save_env.part.6':
drivers/amlogic/nand/aml_nand.c:4884:8: warning: 'data_buf' may be used uninitialized in this function [-Wmaybe-uninitialized]
drivers/amlogic/nand/aml_nand.c:4820:17: note: 'data_buf' was declared here
drivers/amlogic/nand/m3_nand.c: In function 'm3_nand_boot_read_page_hwecc':
drivers/amlogic/nand/m3_nand.c:744:37: warning: unused variable 'ran_mode' [-Wunused-variable]
drivers/amlogic/nand/m3_nand.c: In function 'm3_nand_boot_write_page':
drivers/amlogic/nand/m3_nand.c:865:60: warning: unused variable 'write_page_tmp' [-Wunused-variable]
drivers/amlogic/nand/m3_nand.c: In function 'show_nand_version_info':
drivers/amlogic/nand/m3_nand.c:1309:27: warning: unused variable 'aml_chip' [-Wunused-variable]
drivers/amlogic/nand/m3_nand.c: In function 'm3_nand_boot_write_page':
drivers/amlogic/nand/m3_nand.c:923:24: warning: 'ran_mode' may be used uninitialized in this function [-Wmaybe-uninitialized]
In file included from drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_block.c:46:0:
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_block.h:33:15: warning: useless storage class specifier in empty declaration [enabled by default]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_block.c: In function 'aml_nftl_flush':
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_block.c:74:26: warning: unused variable 'aml_nftl_part' [-Wunused-variable]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_block.c: In function 'aml_nftl_init_bounce_buf':
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_block.c:163:6: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_block.c:157:13: warning: unused variable 'i' [-Wunused-variable]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_block.c: In function 'do_nftltrans_request':
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_block.c:242:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_block.c:232:26: warning: unused variable 'aml_nftl_part' [-Wunused-variable]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_block.c: In function 'aml_nftl_thread':
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_block.c:360:18: warning: unused variable 'ts_nftl_current' [-Wunused-variable]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_block.c: In function 'aml_nftl_reboot_notifier':
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_block.c:413:26: warning: unused variable 'aml_nftl_part' [-Wunused-variable]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_block.c: In function 'aml_nftl_release':
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_block.c:553:26: warning: unused variable 'aml_nftl_part' [-Wunused-variable]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_block.c: At top level:
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_block.c:335:12: warning: 'flush_time_out' defined but not used [-Wunused-function]
In file included from drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c:12:0:
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_block.h:33:15: warning: useless storage class specifier in empty declaration [enabled by default]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c:50:5: warning: initialization from incompatible pointer type [enabled by default]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c:50:5: warning: (near initialization for 'nftl_class_attrs[1].show') [enabled by default]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c:51:5: warning: initialization from incompatible pointer type [enabled by default]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c:51:5: warning: (near initialization for 'nftl_class_attrs[2].show') [enabled by default]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c:52:5: warning: initialization from incompatible pointer type [enabled by default]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c:52:5: warning: (near initialization for 'nftl_class_attrs[3].show') [enabled by default]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c:53:5: warning: initialization from incompatible pointer type [enabled by default]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c:53:5: warning: (near initialization for 'nftl_class_attrs[4].show') [enabled by default]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c: In function 'aml_nftl_initialize':
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c:117:2: warning: passing argument 8 of 'aml_nftl_start' discards 'const' qualifier from pointer target type [enabled by default]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c:14:12: note: expected 'char *' but argument is of type 'const char *'
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c:122:26: warning: assignment from incompatible pointer type [enabled by default]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c:123:27: warning: assignment from incompatible pointer type [enabled by default]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c:130:6: warning: passing argument 1 of 'strcpy' discards 'const' qualifier from pointer target type [enabled by default]
In file included from include/linux/bitmap.h:8:0,
from include/linux/nodemask.h:93,
from include/linux/mmzone.h:16,
from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from include/linux/mtd/mtd.h:24,
from drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c:9:
include/linux/string.h:24:15: note: expected 'char *' but argument is of type 'const char *'
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c:140:6: warning: passing argument 1 of 'strcpy' discards 'const' qualifier from pointer target type [enabled by default]
In file included from include/linux/bitmap.h:8:0,
from include/linux/nodemask.h:93,
from include/linux/mmzone.h:16,
from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from include/linux/mtd/mtd.h:24,
from drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c:9:
include/linux/string.h:24:15: note: expected 'char *' but argument is of type 'const char *'
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c:100:16: warning: unused variable 'nftl_oob_buf' [-Wunused-variable]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c:98:11: warning: unused variable 'phys_erase_shift' [-Wunused-variable]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c:97:67: warning: unused variable 'i' [-Wunused-variable]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c:97:62: warning: unused variable 'temp' [-Wunused-variable]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c:97:50: warning: unused variable 'total_pages' [-Wunused-variable]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c:97:38: warning: unused variable 'total_block' [-Wunused-variable]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c:97:26: warning: unused variable 'size_in_blk' [-Wunused-variable]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c:97:11: warning: unused variable 'phy_page_addr' [-Wunused-variable]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c:96:30: warning: unused variable 'oob_len' [-Wunused-variable]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c:96:17: warning: unused variable 'phy_blk_num' [-Wunused-variable]
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c: In function 'do_test':
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_init.c:287:2: warning: format '%x' expects argument of type 'unsigned int *', but argument 3 has type 'uint32 *' [-Wformat=]
In file included from drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_hw_interface.c:12:0:
drivers/amlogic/nand/aml_nftl_new/block/aml_nftl_block.h:33:15: warning: useless storage class specifier in empty declaration [enabled by default]
drivers/amlogic/ppmgr/ppmgr_vpp.c: In function 'ppmgr_task':
drivers/amlogic/ppmgr/ppmgr_vpp.c:2263:23: warning: comparison of distinct pointer types lacks a cast [enabled by default]
drivers/amlogic/ppmgr/ppmgr_vpp.c:2263:47: warning: comparison of distinct pointer types lacks a cast [enabled by default]
drivers/amlogic/ppmgr/ppmgr_3d_tv.c:1178:13: warning: 'process_2d_to_3d' defined but not used [-Wunused-function]
drivers/amlogic/smartcard/smartcard.c: In function 'smc_hw_set_param':
drivers/amlogic/smartcard/smartcard.c:245:21: warning: unused variable 'reg5' [-Wunused-variable]
drivers/amlogic/smartcard/smartcard.c:244:23: warning: unused variable 'reg_int' [-Wunused-variable]
drivers/amlogic/smartcard/smartcard.c:243:21: warning: unused variable 'reg2' [-Wunused-variable]
drivers/amlogic/smartcard/smartcard.c:242:23: warning: unused variable 'reg1' [-Wunused-variable]
drivers/amlogic/smartcard/smartcard.c: At top level:
drivers/amlogic/smartcard/smartcard.c:350:13: warning: function declaration isn't a prototype [-Wstrict-prototypes]
drivers/amlogic/smartcard/smartcard.c:360:13: warning: function declaration isn't a prototype [-Wstrict-prototypes]
drivers/amlogic/smartcard/smartcard.c: In function 'smc_read':
drivers/amlogic/smartcard/smartcard.c:927:23: warning: unused variable 'sc_int_reg' [-Wunused-variable]
drivers/amlogic/smartcard/smartcard.c: At top level:
drivers/amlogic/smartcard/smartcard.c:1159:2: warning: initialization from incompatible pointer type [enabled by default]
drivers/amlogic/smartcard/smartcard.c:1159:2: warning: (near initialization for 'smc_fops.unlocked_ioctl') [enabled by default]
drivers/amlogic/smartcard/smartcard.c: In function 'smc_ioctl':
drivers/amlogic/smartcard/smartcard.c:1068:17: warning: ignoring return value of 'copy_to_user', declared with attribute warn_unused_result [-Wunused-result]
drivers/amlogic/smartcard/smartcard.c:1079:17: warning: ignoring return value of 'copy_to_user', declared with attribute warn_unused_result [-Wunused-result]
drivers/amlogic/smartcard/smartcard.c:1108:16: warning: ignoring return value of 'copy_to_user', declared with attribute warn_unused_result [-Wunused-result]
drivers/amlogic/smartcard/smartcard.c:1118:18: warning: ignoring return value of 'copy_from_user', declared with attribute warn_unused_result [-Wunused-result]
drivers/amlogic/smartcard/smartcard.c: In function 'smc_write':
drivers/amlogic/smartcard/smartcard.c:1030:18: warning: ignoring return value of 'copy_from_user', declared with attribute warn_unused_result [-Wunused-result]
drivers/amlogic/smartcard/smartcard.c:1033:18: warning: ignoring return value of 'copy_from_user', declared with attribute warn_unused_result [-Wunused-result]
drivers/amlogic/smartcard/smartcard.c:1034:18: warning: ignoring return value of 'copy_from_user', declared with attribute warn_unused_result [-Wunused-result]
drivers/amlogic/smartcard/smartcard.c: In function 'smc_read':
drivers/amlogic/smartcard/smartcard.c:977:16: warning: ignoring return value of 'copy_to_user', declared with attribute warn_unused_result [-Wunused-result]
drivers/amlogic/smartcard/smartcard.c:980:16: warning: ignoring return value of 'copy_to_user', declared with attribute warn_unused_result [-Wunused-result]
drivers/amlogic/smartcard/smartcard.c:981:16: warning: ignoring return value of 'copy_to_user', declared with attribute warn_unused_result [-Wunused-result]
drivers/amlogic/uart/uart/am_uart.c: In function 'am_uart_restart_port':
drivers/amlogic/uart/uart/am_uart.c:729:21: warning: unused variable 'port' [-Wunused-variable]
drivers/amlogic/uart/uart/am_uart.c: In function 'am_uart_console_write':
drivers/amlogic/uart/uart/am_uart.c:840:16: warning: unused variable 'flags' [-Wunused-variable]
drivers/amlogic/uart/uart/am_uart.c:839:21: warning: unused variable 'wr_lock' [-Wunused-variable]
drivers/amlogic/uart/uart/am_uart.c: In function 'am_uart_resume':
drivers/amlogic/uart/uart/am_uart.c:896:11: warning: unused variable 'ret' [-Wunused-variable]
drivers/media/common/tuners/max2165.c: In function 'max2165_set_params':
drivers/media/common/tuners/max2165.c:203:11: warning: 'fraction' may be used uninitialized in this function [-Wmaybe-uninitialized]
drivers/media/common/tuners/max2165.c:196:16: note: 'fraction' was declared here
drivers/media/common/tuners/max2165.c:205:19: warning: 'quotient' may be used uninitialized in this function [-Wmaybe-uninitialized]
drivers/media/common/tuners/max2165.c:196:6: note: 'quotient' was declared here
drivers/media/common/tuners/tda18218.c: In function 'tda18218_attach':
drivers/media/common/tuners/tda18218.c:302:19: warning: 'val' may be used uninitialized in this function [-Wmaybe-uninitialized]
drivers/media/common/tuners/tda18212.c: In function 'tda18212_attach':
drivers/media/common/tuners/tda18212.c:248:19: warning: 'val' may be used uninitialized in this function [-Wmaybe-uninitialized]
drivers/amlogic/usb/dwc_otg/294/dwc_otg_pcd_intr.c: In function 'ep0_complete_request':
drivers/amlogic/usb/dwc_otg/294/dwc_otg_pcd_intr.c:2013:4: warning: 'desc_sts.b.bytes' may be used uninitialized in this function [-Wmaybe-uninitialized]
drivers/amlogic/usb/dwc_otg/294/dwc_otg_pcd_intr.c:1910:21: note: 'desc_sts.b.bytes' was declared here
drivers/amlogic/usb/dwc_otg/294/dwc_otg_hcd.c: In function 'isoc_complete_tasklet_func':
drivers/amlogic/usb/dwc_otg/294/dwc_otg_hcd.c:719:6: warning: unused variable 'cnt' [-Wunused-variable]
drivers/amlogic/usb/dwc_otg/294/dwc_otg_hcd.c:718:27: warning: unused variable 'urb_list' [-Wunused-variable]
drivers/amlogic/usb/dwc_otg/294/dwc_otg_hcd.c:717:19: warning: unused variable 'iso_comp_urb_entry' [-Wunused-variable]
drivers/amlogic/usb/dwc_otg/294/dwc_otg_hcd.c:716:21: warning: unused variable 'urb' [-Wunused-variable]
drivers/amlogic/usb/dwc_otg/294/dwc_otg_hcd_intr.c: In function 'update_isoc_urb_state':
drivers/amlogic/usb/dwc_otg/294/dwc_otg_hcd_intr.c:679:27: warning: unused variable 'urb_list' [-Wunused-variable]
drivers/amlogic/usb/dwc_otg/294/dwc_otg_hcd_queue.c: In function 'dwc_otg_hcd_qtd_add':
drivers/amlogic/usb/dwc_otg/294/dwc_otg_hcd_queue.c:714:17: warning: unused variable 'flags' [-Wunused-variable]
drivers/amlogic/vfm/vfm.c: In function 'vfm_init':
drivers/amlogic/vfm/vfm.c:303:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
net/sched/sch_generic.c: In function 'dev_graft_qdisc':
net/sched/sch_generic.c:678:66: warning: the comparison will always evaluate as 'true' for the address of 'noop_qdisc' will never be NULL [-Waddress]
fs/yaffs2/yaffs_vfs.c:2398:2: warning: initialization from incompatible pointer type [enabled by default]
fs/yaffs2/yaffs_vfs.c:2398:2: warning: (near initialization for 'yaffs_fs_type.mount') [enabled by default]
fs/yaffs2/yaffs_vfs.c:2422:2: warning: initialization from incompatible pointer type [enabled by default]
fs/yaffs2/yaffs_vfs.c:2422:2: warning: (near initialization for 'yaffs2_fs_type.mount') [enabled by default]
drivers/media/dvb/frontends/s5h1420.c: In function 's5h1420_set_voltage':
drivers/media/dvb/frontends/s5h1420.c:133:2: warning: enumeration value 'SEC_VOLTAGE_ON' not handled in switch [-Wswitch]
drivers/media/dvb/frontends/ds3000.c: In function 'ds3000_set_voltage':
drivers/media/dvb/frontends/ds3000.c:463:2: warning: enumeration value 'SEC_VOLTAGE_ON' not handled in switch [-Wswitch]
drivers/spi/spi.c: In function 'spi_async_locked':
drivers/spi/spi.c:875:21: warning: unused variable 'master' [-Wunused-variable]
drivers/amlogic/wifi/rtl8xxx_EU/os_dep/linux/ioctl_linux.c: In function 'rtw_mp_efuse_get':
drivers/amlogic/wifi/rtl8xxx_EU/os_dep/linux/ioctl_linux.c:8945:65: warning: iteration 16u invokes undefined behavior [-Waggressive-loop-optimizations]
drivers/amlogic/wifi/rtl8xxx_EU/os_dep/linux/ioctl_linux.c:8933:3: note: containing loop
drivers/amlogic/wifi/rtl8xxx_EU/os_dep/linux/ioctl_linux.c:9289:69: warning: iteration 16u invokes undefined behavior [-Waggressive-loop-optimizations]
drivers/amlogic/wifi/rtl8xxx_EU/os_dep/linux/ioctl_linux.c:9283:3: note: containing loop
')