# git rev-parse -q --verify 3c8ba0d61d04ced9f8d9ff93977995a9e4e96e91^{commit} 3c8ba0d61d04ced9f8d9ff93977995a9e4e96e91 already have revision, skipping fetch # git checkout -q -f -B kisskb 3c8ba0d61d04ced9f8d9ff93977995a9e4e96e91 # git clean -qxdf # < git log -1 # commit 3c8ba0d61d04ced9f8d9ff93977995a9e4e96e91 # Author: Kees Cook # Date: Fri Mar 30 18:52:36 2018 -0700 # # kernel.h: Retain constant expression output for max()/min() # # In the effort to remove all VLAs from the kernel[1], it is desirable to # build with -Wvla. However, this warning is overly pessimistic, in that # it is only happy with stack array sizes that are declared as constant # expressions, and not constant values. One case of this is the # evaluation of the max() macro which, due to its construction, ends up # converting constant expression arguments into a constant value result. # # All attempts to rewrite this macro with __builtin_constant_p() failed # with older compilers (e.g. gcc 4.4)[2]. However, Martin Uecker, # constructed[3] a mind-shattering solution that works everywhere. # Cthulhu fhtagn! # # This patch updates the min()/max() macros to evaluate to a constant # expression when called on constant expression arguments. This removes # several false-positive stack VLA warnings from an x86 allmodconfig build # when -Wvla is added: # # $ diff -u before.txt after.txt | grep ^- # -drivers/input/touchscreen/cyttsp4_core.c:871:2: warning: ISO C90 forbids variable length array ‘ids’ [-Wvla] # -fs/btrfs/tree-checker.c:344:4: warning: ISO C90 forbids variable length array ‘namebuf’ [-Wvla] # -lib/vsprintf.c:747:2: warning: ISO C90 forbids variable length array ‘sym’ [-Wvla] # -net/ipv4/proc.c:403:2: warning: ISO C90 forbids variable length array ‘buff’ [-Wvla] # -net/ipv6/proc.c:198:2: warning: ISO C90 forbids variable length array ‘buff’ [-Wvla] # -net/ipv6/proc.c:218:2: warning: ISO C90 forbids variable length array ‘buff64’ [-Wvla] # # This also updates two cases where different enums were being compared # and explicitly casts them to int (which matches the old side-effect of # the single-evaluation code): one in tpm/tpm_tis_core.h, and one in # drm/drm_color_mgmt.c. # # [1] https://lkml.org/lkml/2018/3/7/621 # [2] https://lkml.org/lkml/2018/3/10/170 # [3] https://lkml.org/lkml/2018/3/20/845 # # Co-Developed-by: Linus Torvalds # Co-Developed-by: Martin Uecker # Signed-off-by: Kees Cook # Acked-by: Ingo Molnar # Acked-by: Miguel Ojeda # Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/gcc-4.6.3-nolibc/x86_64-linux/bin/x86_64-linux-gcc --version # < git log --format=%s --max-count=1 3c8ba0d61d04ced9f8d9ff93977995a9e4e96e91 # < make -s -j 10 ARCH=x86_64 O=/kisskb/build/linus_x86_64-randconfig_x86_64 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/x86_64-linux/bin/x86_64-linux- randconfig KCONFIG_SEED=0xA23A0C9B # Added to kconfig CONFIG_STANDALONE=y # Added to kconfig CONFIG_PREVENT_FIRMWARE_BUILD=y # Added to kconfig CONFIG_CC_STACKPROTECTOR_STRONG=n # Added to kconfig CONFIG_GCC_PLUGINS=n # Added to kconfig CONFIG_GCC_PLUGIN_CYC_COMPLEXITY=n # Added to kconfig CONFIG_GCC_PLUGIN_SANCOV=n # Added to kconfig CONFIG_GCC_PLUGIN_LATENT_ENTROPY=n # yes \n | make -s -j 10 ARCH=x86_64 O=/kisskb/build/linus_x86_64-randconfig_x86_64 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/x86_64-linux/bin/x86_64-linux- oldconfig yes: standard output: Broken pipe yes: write error # make -s -j 10 ARCH=x86_64 O=/kisskb/build/linus_x86_64-randconfig_x86_64 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/x86_64-linux/bin/x86_64-linux- arch/x86/mm/init_64.o: warning: objtool: __init_extra_mapping()+0xa0: unreachable instruction arch/x86/kernel/traps.o: warning: objtool: ist_begin_non_atomic()+0x2a: unreachable instruction kernel/cpu.o: warning: objtool: takedown_cpu()+0xa9: unreachable instruction kernel/exit.o: warning: objtool: release_task()+0x63: unreachable instruction fs/exec.o: warning: objtool: de_thread()+0x1db: unreachable instruction kernel/softirq.o: warning: objtool: tasklet_kill_immediate()+0x3e: unreachable instruction kernel/resource.o: warning: objtool: find_next_iomem_res()+0x3a: unreachable instruction arch/x86/kernel/nmi.o: warning: objtool: do_nmi()+0xbc: unreachable instruction arch/x86/kernel/setup.o: warning: objtool: extend_brk()+0x35: unreachable instruction fs/namei.o: warning: objtool: unlazy_walk()+0x35: unreachable instruction mm/vmscan.o: warning: objtool: __remove_mapping()+0x49: unreachable instruction security/keys/keyring.o: warning: objtool: search_nested_keyrings()+0x51: unreachable instruction /kisskb/src/mm/vmstat.c: In function 'sysctl_vm_numa_stat_handler': /kisskb/src/mm/vmstat.c:89:5: warning: 'oldval' may be used uninitialized in this function [-Wuninitialized] fs/inode.o: warning: objtool: clear_inode()+0x3d: unreachable instruction fs/dcache.o: warning: objtool: dentry_update_name_case()+0x42: unreachable instruction arch/x86/kernel/quirks.o: warning: objtool: ich_force_hpet_resume()+0x35: unreachable instruction /kisskb/src/arch/x86/kernel/e820.c: In function 'e820__setup_pci_gap': /kisskb/src/arch/x86/kernel/e820.c:652:2: warning: 'gapstart' may be used uninitialized in this function [-Wuninitialized] arch/x86/kernel/e820.o: warning: objtool: e820__reallocate_tables()+0x4d: unreachable instruction kernel/signal.o: warning: objtool: task_set_jobctl_pending()+0x37: unreachable instruction fs/file.o: warning: objtool: __fd_install()+0x75: unreachable instruction arch/x86/kernel/alternative.o: warning: objtool: text_poke()+0x12b: unreachable instruction /kisskb/src/arch/x86/kernel/hw_breakpoint.c: In function 'arch_validate_hwbkpt_settings': /kisskb/src/arch/x86/kernel/hw_breakpoint.c:361:20: warning: 'align' may be used uninitialized in this function [-Wuninitialized] kernel/workqueue.o: warning: objtool: wq_numa_init()+0x7d: unreachable instruction mm/percpu.o: warning: objtool: pcpu_setup_first_chunk()+0x88: unreachable instruction mm/list_lru.o: warning: objtool: __list_lru_walk_one.isra.14()+0xae: unreachable instruction kernel/params.o: warning: objtool: kernel_add_sysfs_param()+0x68: unreachable instruction mm/gup.o: warning: objtool: get_gate_page()+0xd3: unreachable instruction block/bio.o: warning: objtool: bio_split()+0x3b: unreachable instruction block/elevator.o: warning: objtool: __elv_add_request()+0x180: unreachable instruction kernel/cred.o: warning: objtool: __put_cred()+0x2e: unreachable instruction mm/memory.o: warning: objtool: vm_insert_pfn_prot()+0x46: unreachable instruction crypto/algapi.o: warning: objtool: crypto_unregister_template()+0x4b: unreachable instruction drivers/ata/libata-core.o: warning: objtool: ata_sg_setup()+0x70: unreachable instruction block/blk-core.o: warning: objtool: blk_dequeue_request()+0x3e: unreachable instruction kernel/smpboot.o: warning: objtool: smpboot_thread_fn()+0xd0: unreachable instruction kernel/ucount.o: warning: objtool: user_namespace_sysctl_init()+0x40: unreachable instruction mm/mmap.o: warning: objtool: mm_drop_all_locks()+0x35: unreachable instruction arch/x86/kernel/apic/vector.o: warning: objtool: arch_early_irq_init()+0x42: unreachable instruction block/blk-flush.o: warning: objtool: blk_flush_complete_seq()+0x54: unreachable instruction /kisskb/src/arch/x86/kernel/apic/io_apic.c: In function 'mp_map_pin_to_irq': /kisskb/src/arch/x86/kernel/apic/io_apic.c:1033:6: warning: 'irq' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/bpf/syscall.c:1229:12: warning: 'bpf_prog_attach_check_attach_type' defined but not used [-Wunused-function] fs/buffer.o: warning: objtool: cont_expand_zero()+0x11d: unreachable instruction fs/block_dev.o: warning: objtool: blkdev_get()+0x10b: unreachable instruction mm/rmap.o: warning: objtool: hugepage_add_anon_rmap()+0x47: unreachable instruction fs/direct-io.o: warning: objtool: do_direct_IO()+0x1f5: unreachable instruction fs/mpage.o: warning: objtool: __mpage_writepage()+0xb5: unreachable instruction mm/vmalloc.o: warning: objtool: alloc_vmap_area()+0x4d: unreachable instruction mm/hugetlb.o: warning: objtool: huge_pte_alloc()+0xde: unreachable instruction drivers/base/devres.o: warning: objtool: remove_nodes.isra.4()+0xe8: unreachable instruction fs/configfs/dir.o: warning: objtool: configfs_rmdir()+0x57: unreachable instruction fs/btrfs/ctree.o: warning: objtool: __tree_mod_log_search()+0x76: unreachable instruction kernel/irq/matrix.o: warning: objtool: irq_matrix_assign_system()+0x44: unreachable instruction fs/btrfs/extent-tree.o: warning: objtool: convert_extent_item_v0()+0x5f: unreachable instruction mm/slab.o: warning: objtool: ____cache_alloc_node()+0x45: unreachable instruction fs/btrfs/print-tree.o: warning: objtool: btrfs_print_tree()+0x1d9: unreachable instruction /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:183:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] mm/migrate.o: warning: objtool: buffer_migrate_page()+0x5f: unreachable instruction kernel/rcu/sync.o: warning: objtool: rcu_sync_func()+0x2e: unreachable instruction kernel/power/suspend.o: warning: objtool: suspend_enter()+0x12b: unreachable instruction fs/btrfs/file-item.o: warning: objtool: btrfs_csum_one_bio()+0x12d: unreachable instruction mm/huge_memory.o: warning: objtool: vmf_insert_pfn_pmd()+0x54: unreachable instruction mm/khugepaged.o: warning: objtool: collapse_huge_page()+0x228: unreachable instruction mm/page_isolation.o: warning: objtool: start_isolate_page_range()+0x3f: unreachable instruction /kisskb/src/block/bfq-iosched.c: In function 'bfq_exit_icq_bfqq': /kisskb/src/block/bfq-iosched.c:4064:11: warning: 'bfqd' may be used uninitialized in this function [-Wuninitialized] kernel/time/timer.o: warning: objtool: timers_dead_cpu()+0x41: unreachable instruction mm/zsmalloc.o: warning: objtool: zs_page_migrate()+0x11f: unreachable instruction kernel/sched/core.o: warning: objtool: sched_cpu_dying()+0x75: unreachable instruction fs/btrfs/transaction.o: warning: objtool: create_pending_snapshot()+0x256: unreachable instruction fs/btrfs/inode.o: warning: objtool: dio_read_error()+0x53: unreachable instruction fs/btrfs/file.o: warning: objtool: __btrfs_drop_extents()+0x1ea: unreachable instruction drivers/base/regmap/regmap-irq.o: warning: objtool: regmap_irq_thread()+0xc5: unreachable instruction kernel/sched/rt.o: warning: objtool: pick_next_pushable_task()+0x53: unreachable instruction kernel/trace/ring_buffer_benchmark.o: warning: objtool: read_page()+0x7f: unreachable instruction kernel/sched/deadline.o: warning: objtool: pick_next_pushable_dl_task()+0x4c: unreachable instruction /kisskb/src/kernel/time/tick-sched.c: In function 'tick_nohz_idle_exit': /kisskb/src/kernel/time/tick-sched.c:1059:31: warning: 'now' may be used uninitialized in this function [-Wuninitialized] fs/btrfs/ordered-data.o: warning: objtool: __btrfs_add_ordered_extent()+0x2ba: unreachable instruction kernel/trace/trace.o: warning: objtool: tracing_start()+0x30: unreachable instruction fs/btrfs/extent_io.o: warning: objtool: __set_extent_bit()+0xf4: unreachable instruction crypto/drbg.o: warning: objtool: drbg_async_seed()+0x74: unreachable instruction fs/btrfs/volumes.o: warning: objtool: __btrfs_alloc_chunk()+0x58: unreachable instruction fs/btrfs/locking.o: warning: objtool: btrfs_clear_lock_blocking_rw()+0x57: unreachable instruction fs/btrfs/ioctl.o: warning: objtool: create_subvol()+0x811: unreachable instruction drivers/dma-buf/dma-buf.o: warning: objtool: dma_buf_release.part.15()+0x36: unreachable instruction drivers/dma-buf/dma-fence.o: warning: objtool: dma_fence_init()+0x44: unreachable instruction fs/btrfs/compression.o: warning: objtool: btrfs_submit_compressed_write()+0x1ee: unreachable instruction /kisskb/src/drivers/dma-buf/reservation.c: In function 'reservation_object_add_shared_replace': /kisskb/src/drivers/dma-buf/reservation.c:210:7: warning: 'i' may be used uninitialized in this function [-Wuninitialized] fs/ext4/bitmap.o: warning: objtool: ext4_chksum.isra.1()+0x3c: unreachable instruction /kisskb/src/lib/rhashtable.c: In function 'rhashtable_rehash_one': /kisskb/src/lib/rhashtable.c:269:2: warning: 'next' may be used uninitialized in this function [-Wuninitialized] kernel/seccomp.o: warning: objtool: seccomp_set_mode_strict()+0x51: unreachable instruction fs/btrfs/relocation.o: warning: objtool: create_reloc_root()+0x60: unreachable instruction fs/btrfs/delayed-inode.o: warning: objtool: __btrfs_remove_delayed_item()+0x46: unreachable instruction fs/f2fs/inode.o: warning: objtool: f2fs_chksum()+0x40: unreachable instruction fs/f2fs/file.o: warning: objtool: dec_valid_block_count()+0x42: unreachable instruction fs/btrfs/scrub.o: warning: objtool: scrub_repair_page_from_good_copy()+0x55: unreachable instruction fs/ext4/extents_status.o: warning: objtool: ext4_es_find_delayed_extent_range()+0x41: unreachable instruction fs/f2fs/inline.o: warning: objtool: recover_inline_data()+0xcb: unreachable instruction fs/ext4/extents.o: warning: objtool: ext4_extent_block_csum()+0x55: unreachable instruction fs/f2fs/checkpoint.o: warning: objtool: f2fs_crc32()+0x3b: unreachable instruction fs/btrfs/backref.o: warning: objtool: add_missing_keys()+0x52: unreachable instruction fs/ext4/fsync.o: warning: objtool: ext4_sync_file()+0x9d: unreachable instruction fs/f2fs/super.o: warning: objtool: f2fs_fill_super()+0x19a: unreachable instruction fs/btrfs/qgroup.o: warning: objtool: btrfs_qgroup_trace_subtree()+0x4b: unreachable instruction lib/assoc_array.o: warning: objtool: assoc_array_destroy_subtree()+0x6e: unreachable instruction fs/f2fs/data.o: warning: objtool: __submit_bio()+0xc7: unreachable instruction fs/btrfs/raid56.o: warning: objtool: finish_rmw()+0x84: unreachable instruction fs/btrfs/send.o: warning: objtool: read_symlink()+0xe7: unreachable instruction fs/ext4/ialloc.o: warning: objtool: ext4_chksum.isra.19.constprop.21()+0x37: unreachable instruction fs/ext4/indirect.o: warning: objtool: ext4_ind_map_blocks()+0xc9: unreachable instruction fs/f2fs/node.o: warning: objtool: __move_free_nid()+0x3f: unreachable instruction fs/ext4/inline.o: warning: objtool: ext4_write_inline_data()+0x80: unreachable instruction fs/fuse/dir.o: warning: objtool: fuse_set_nowrite()+0x43: unreachable instruction fs/fat/inode.o: warning: objtool: fat_get_block()+0x172: unreachable instruction fs/fuse/dev.o: warning: objtool: fuse_copy_fill.part.21()+0x68: unreachable instruction lib/genalloc.o: warning: objtool: gen_pool_free()+0x5e: unreachable instruction fs/f2fs/segment.o: warning: objtool: get_new_segment()+0x10b: unreachable instruction fs/gfs2/bmap.o: warning: objtool: gfs2_indirect_init()+0x62: unreachable instruction fs/ext4/inode.o: warning: objtool: mpage_prepare_extent_to_map()+0x198: unreachable instruction fs/ext4/mmp.o: warning: objtool: ext4_mmp_csum()+0x48: unreachable instruction fs/f2fs/recovery.o: warning: objtool: do_recover_data()+0x152: unreachable instruction fs/fuse/file.o: warning: objtool: fuse_writepage_in_flight()+0x50: unreachable instruction fs/ext4/mballoc.o: warning: objtool: mb_find_order_for_block()+0x42: unreachable instruction fs/fuse/inode.o: warning: objtool: fuse_destroy_inode()+0x3a: unreachable instruction fs/ext4/move_extent.o: warning: objtool: mext_page_mkuptodate()+0x4e: unreachable instruction fs/gfs2/lops.o: warning: objtool: gfs2_unpin()+0x3f: unreachable instruction fs/gfs2/glock.o: warning: objtool: __gfs2_glock_put()+0x74: unreachable instruction fs/ext4/page-io.o: warning: objtool: ext4_release_io_end()+0x30: unreachable instruction fs/ext4/namei.o: warning: objtool: dx_insert_block()+0x4e: unreachable instruction fs/ext4/resize.o: warning: objtool: ext4_alloc_group_tables()+0x5b: unreachable instruction fs/gfs2/meta_io.o: warning: objtool: gfs2_aspace_writepage()+0x67: unreachable instruction fs/gfs2/aops.o: warning: objtool: gfs2_invalidatepage()+0x5b: unreachable instruction fs/gfs2/ops_fstype.o: warning: objtool: gfs2_read_sb()+0x197: unreachable instruction fs/ext4/xattr.o: warning: objtool: ext4_chksum.isra.12()+0x3c: unreachable instruction /kisskb/src/lib/mpi/mpicoder.c: In function 'mpi_read_raw_from_sgl': /kisskb/src/lib/mpi/mpicoder.c:352:8: warning: 'buff' may be used uninitialized in this function [-Wuninitialized] fs/gfs2/quota.o: warning: objtool: gfs2_write_buf_to_page()+0x98: unreachable instruction lib/mpi/mpi-pow.o: warning: objtool: mpi_powm()+0x25e: unreachable instruction fs/jbd2/transaction.o: warning: objtool: __jbd2_journal_temp_unlink_buffer()+0x39: unreachable instruction fs/gfs2/rgrp.o: warning: objtool: gfs2_free_extlen()+0x98: unreachable instruction drivers/ide/ide-io.o: warning: objtool: start_request()+0x38: unreachable instruction fs/ext4/super.o: warning: objtool: ext4_chksum.isra.113()+0x3c: unreachable instruction fs/gfs2/trans.o: warning: objtool: gfs2_trans_begin()+0x49: unreachable instruction fs/jbd2/commit.o: warning: objtool: jbd2_chksum.isra.11()+0x3c: unreachable instruction fs/jbd2/revoke.o: warning: objtool: jbd2_journal_init_revoke()+0x37: unreachable instruction fs/jbd2/recovery.o: warning: objtool: jbd2_chksum.isra.3()+0x3c: unreachable instruction fs/jbd2/checkpoint.o: warning: objtool: __jbd2_journal_insert_checkpoint()+0x46: unreachable instruction drivers/ide/ide-probe.o: warning: objtool: ide_unregister()+0x35: unreachable instruction /kisskb/src/lib/raid6/recov_avx512.c:387:2: warning: #warning "your version of binutils lacks AVX512 support" [-Wcpp] fs/jbd2/journal.o: warning: objtool: get_slab()+0x32: unreachable instruction drivers/input/gameport/gameport.o: warning: objtool: gameport_start_polling()+0x51: unreachable instruction fs/jfs/jfs_xtree.o: warning: objtool: xtTruncate()+0x7f: unreachable instruction fs/jfs/jfs_imap.o: warning: objtool: diFree()+0x51c: unreachable instruction fs/ntfs/aops.o: warning: objtool: ntfs_bmap()+0xae: unreachable instruction fs/ntfs/attrib.o: warning: objtool: ntfs_attr_find_in_attrdef()+0x37: unreachable instruction fs/ntfs/collate.o: warning: objtool: ntfs_collate()+0x54: can't find jump dest instruction at .text+0x1d7 fs/jfs/jfs_metapage.o: warning: objtool: metapage_invalidatepage()+0x39: unreachable instruction fs/ntfs/compress.o: warning: objtool: ntfs_read_compressed_block()+0xb1: unreachable instruction fs/jfs/jfs_logmgr.o: warning: objtool: lbmIODone()+0x146: unreachable instruction fs/ntfs/dir.o: warning: objtool: ntfs_lookup_inode_by_name()+0x5f: unreachable instruction fs/ntfs/index.o: warning: objtool: ntfs_index_lookup()+0x65: unreachable instruction fs/jfs/jfs_txnmgr.o: warning: objtool: LogSyncRelease()+0x33: unreachable instruction fs/overlayfs/namei.o: warning: objtool: ovl_path_next()+0x3a: unreachable instruction fs/ntfs/file.o: warning: objtool: ntfs_attr_extend_initialized()+0x58: unreachable instruction fs/ntfs/inode.o: warning: objtool: ntfs_destroy_extent_inode()+0x32: unreachable instruction fs/ntfs/mft.o: warning: objtool: unmap_mft_record()+0x31: unreachable instruction fs/ntfs/runlist.o: warning: objtool: ntfs_are_rl_mergeable()+0x2e: unreachable instruction fs/ntfs/super.o: warning: objtool: check_mft_mirror()+0x4c: unreachable instruction fs/proc/array.o: warning: objtool: proc_pid_status()+0x89: unreachable instruction fs/proc/base.o: warning: objtool: proc_pid_cmdline_read()+0x42: unreachable instruction fs/ntfs/bitmap.o: warning: objtool: __ntfs_bitmap_set_bits_in_run()+0x47: unreachable instruction fs/ntfs/lcnalloc.o: warning: objtool: ntfs_cluster_alloc()+0x58: unreachable instruction drivers/mailbox/bcm-pdc-mailbox.o: warning: objtool: dma_map_sg_attrs.constprop.14()+0x53: unreachable instruction fs/ntfs/logfile.o: warning: objtool: ntfs_check_and_load_restart_page()+0xa6: unreachable instruction fs/quota/dquot.o: warning: objtool: dqput()+0x55: unreachable instruction lib/swiotlb.o: warning: objtool: swiotlb_tbl_sync_single()+0xa6: unreachable instruction drivers/misc/ad525x_dpot.o: warning: objtool: dpot_write_spi()+0x81: unreachable instruction lib/dynamic_debug.o: warning: objtool: __dynamic_pr_debug()+0x65: unreachable instruction drivers/mfd/cros_ec_i2c.o: warning: objtool: cros_ec_pkt_xfer_i2c()+0x6b: unreachable instruction drivers/mfd/cros_ec_spi.o: warning: objtool: cros_ec_spi_receive_packet()+0x3b: unreachable instruction drivers/mtd/mtdconcat.o: warning: objtool: concat_erase()+0x14f: unreachable instruction /kisskb/src/drivers/mfd/arizona-core.c: In function 'arizona_dev_init': /kisskb/src/drivers/mfd/arizona-core.c:1387:6: warning: 'n_subdevs' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/input/rmi4/rmi_f11.c: In function 'rmi_f11_finger_handler': /kisskb/src/drivers/input/rmi4/rmi_f11.c:631:3: warning: 'abs_fingers' may be used uninitialized in this function [-Wuninitialized] drivers/mtd/chips/cfi_util.o: warning: objtool: cfi_build_cmd()+0x26: unreachable instruction fs/udf/truncate.o: warning: objtool: udf_truncate_extents()+0x3d: unreachable instruction lib/idr.o: warning: objtool: ida_simple_get()+0x3a: unreachable instruction drivers/mmc/host/sdhci.o: warning: objtool: sdhci_prepare_data()+0xcb: unreachable instruction /kisskb/src/fs/udf/unicode.c: In function 'udf_name_conv_char': /kisskb/src/fs/udf/unicode.c:157:15: warning: 'c' may be used uninitialized in this function [-Wuninitialized] lib/kobject.o: warning: objtool: create_dir()+0xb3: unreachable instruction drivers/mmc/host/omap_hsmmc.o: warning: objtool: omap_hsmmc_request()+0x3b: unreachable instruction lib/plist.o: warning: objtool: plist_requeue()+0x31: unreachable instruction lib/radix-tree.o: warning: objtool: __radix_tree_insert()+0x42: unreachable instruction /kisskb/src/drivers/input/touchscreen/hideep.c: In function 'hideep_update_firmware': /kisskb/src/drivers/input/touchscreen/hideep.c:633:10: warning: 'error' may be used uninitialized in this function [-Wuninitialized] fs/aio.o: warning: objtool: aio_migratepage()+0xa1: unreachable instruction fs/locks.o: warning: objtool: locks_free_lock()+0x34: unreachable instruction drivers/platform/chrome/cros_ec_proto.o: warning: objtool: prepare_packet()+0x35: unreachable instruction /kisskb/src/drivers/slimbus/messaging.c: In function 'slim_do_transfer': /kisskb/src/drivers/slimbus/messaging.c:126:14: warning: 'tid' may be used uninitialized in this function [-Wuninitialized] drivers/spi/spi.o: warning: objtool: spi_map_buf.isra.43()+0x166: unreachable instruction drivers/scsi/scsi_lib_dma.o: warning: objtool: scsi_dma_map()+0x7a: unreachable instruction /kisskb/src/drivers/staging/fbtft/fbtft-core.c: In function 'fbtft_update_display': /kisskb/src/drivers/staging/fbtft/fbtft-core.c:402:7: warning: 'ts_start' may be used uninitialized in this function [-Wuninitialized] drivers/scsi/scsi_lib.o: warning: objtool: scsi_init_io()+0x1a8: unreachable instruction /kisskb/src/drivers/staging/comedi/drivers/pcl818.c: In function 'pcl818_ai_cmd': /kisskb/src/drivers/staging/comedi/drivers/pcl818.c:337:6: warning: 'last_chan' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/staging/comedi/drivers/pcl818.c:347:15: note: 'last_chan' was declared here drivers/spi/spi-ep93xx.o: warning: objtool: ep93xx_spi_dma_prepare()+0x33e: unreachable instruction drivers/scsi/device_handler/scsi_dh_alua.o: warning: objtool: alua_rtpg()+0x427: unreachable instruction drivers/scsi/hisi_sas/hisi_sas_main.o: warning: objtool: hisi_sas_task_prep()+0x16f: unreachable instruction drivers/scsi/hisi_sas/hisi_sas_v1_hw.o: warning: objtool: dma_map_sg_attrs.constprop.18()+0x4c: unreachable instruction /kisskb/src/drivers/staging/comedi/drivers/dt282x.c: In function 'dt282x_ns_to_timer': /kisskb/src/drivers/staging/comedi/drivers/dt282x.c:389:5: warning: 'divider' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/staging/comedi/drivers/dt282x.c:394:16: warning: 'base' may be used uninitialized in this function [-Wuninitialized] drivers/scsi/hisi_sas/hisi_sas_v2_hw.o: warning: objtool: dma_map_sg_attrs.constprop.23()+0x4c: unreachable instruction /kisskb/src/drivers/tty/serial/serial_core.c: In function 'uart_write': /kisskb/src/include/linux/spinlock.h:365:2: warning: 'flags' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/serial_core.c:560:16: note: 'flags' was declared here drivers/scsi/libsas/sas_expander.o: warning: objtool: sas_add_parent_port()+0x52: unreachable instruction /kisskb/src/drivers/tty/serial/8250/8250_core.c: In function 'serial_unlink_irq_chain': /kisskb/src/drivers/tty/serial/8250/8250_core.c:251:18: warning: 'i' may be used uninitialized in this function [-Wuninitialized] drivers/tty/serial/8250/8250_core.o: warning: objtool: serial_unlink_irq_chain()+0x62: unreachable instruction drivers/tty/serial/imx.o: warning: objtool: dma_map_sg_attrs.constprop.37()+0x43: unreachable instruction drivers/staging/most/dim2/dim2.o: warning: objtool: service_done_flag()+0x4a: unreachable instruction drivers/staging/most/i2c/i2c.o: warning: objtool: poison_channel()+0x36: unreachable instruction drivers/tty/serial/atmel_serial.o: warning: objtool: dma_map_sg_attrs.constprop.63()+0x3c: unreachable instruction drivers/uwb/est.o: warning: objtool: uwb_est_get_size()+0xa1: unreachable instruction drivers/uwb/lc-dev.o: warning: objtool: uwb_dev_add()+0x39: unreachable instruction /kisskb/src/drivers/video/backlight/adp8860_bl.c: In function 'adp8860_bl_ambient_light_level_show': /kisskb/src/drivers/video/backlight/adp8860_bl.c:579:10: warning: 'ret_val' may be used uninitialized in this function [-Wuninitialized] drivers/usb/host/isp116x-hcd.o: warning: objtool: preproc_atl_queue()+0x50: unreachable instruction /kisskb/src/drivers/usb/gadget/function/f_fs.c: In function 'ffs_do_os_descs': /kisskb/src/drivers/usb/gadget/function/f_fs.c:2236:7: warning: 'type' may be used uninitialized in this function [-Wuninitialized] drivers/video/fbdev/smscufx.o: warning: objtool: ufx_raw_rect()+0x4d: unreachable instruction drivers/usb/wusbcore/devconnect.o: warning: objtool: wusb_dev_add_ncb()+0x90: unreachable instruction drivers/usb/wusbcore/dev-sysfs.o: warning: objtool: wusbhc_get_by_usb_dev()+0x5f: unreachable instruction drivers/regulator/core.o: In function `regulator_dev_lookup': core.c:(.text+0x9b3): undefined reference to `of_find_regulator_by_node' /kisskb/src/Makefile:1038: recipe for target 'vmlinux' failed make[1]: *** [vmlinux] Error 1 Makefile:146: recipe for target 'sub-make' failed make: *** [sub-make] Error 2 Command 'make -s -j 10 ARCH=x86_64 O=/kisskb/build/linus_x86_64-randconfig_x86_64 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/x86_64-linux/bin/x86_64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/linus_x86_64-randconfig_x86_64 # Build took: 0:01:44.270576