# git rev-parse -q --verify 55ad7956ff2cfe2c733cea7cf87e9964c56d8c6e^{commit} 55ad7956ff2cfe2c733cea7cf87e9964c56d8c6e already have revision, skipping fetch # git checkout -q -f -B kisskb 55ad7956ff2cfe2c733cea7cf87e9964c56d8c6e # git clean -qxdf # < git log -1 # commit 55ad7956ff2cfe2c733cea7cf87e9964c56d8c6e # Author: Oliver O'Halloran # Date: Thu Feb 6 17:26:22 2020 +1100 # # cpufreq:powernv: Fix unsafe notifiers # # The PowerNV cpufreq driver registers two notifiers: one to catch # throttle messages from the OCC and one to bump the CPU frequency back # to normal before a reboot. Both require the cpufreq driver to be # registered in order to function since the notifier callbacks use # various cpufreq_*() functions. # # Right now we register both notifiers before we've initialised the # driver. This seems to work, but we should head off any protential # problems by registering the notifiers after the driver is initialised. # # Signed-off-by: Oliver O'Halloran # Reviewed-by: Gautham R. Shenoy # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20200206062622.28235-2-oohall@gmail.com # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-ld --version # < git log --format=%s --max-count=1 55ad7956ff2cfe2c733cea7cf87e9964c56d8c6e # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- randconfig KCONFIG_SEED=0x79E07FDA WARNING: unmet direct dependencies detected for HOTPLUG_CPU Depends on [n]: SMP [=y] && (PPC_PSERIES [=n] || PPC_PMAC [=n] || PPC_POWERNV [=n] || FSL_SOC_BOOKE [=n]) Selected by [y]: - PM_SLEEP_SMP [=y] && SMP [=y] && (ARCH_SUSPEND_POSSIBLE [=y] || ARCH_HIBERNATION_POSSIBLE [=y]) && PM_SLEEP [=y] # Added to kconfig CONFIG_STANDALONE=y # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # Added to kconfig CONFIG_CPU_BIG_ENDIAN=y # Added to kconfig CONFIG_PPC64=y # Added to kconfig CONFIG_PPC_DISABLE_WERROR=y # Added to kconfig CONFIG_SECTION_MISMATCH_WARN_ONLY=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_LD_HEAD_STUB_CATCH=y # Added to kconfig CONFIG_TRIM_UNUSED_KSYMS=n # Added to kconfig CONFIG_UBSAN=n # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- help # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- olddefconfig .config:5020:warning: override: reassigning to symbol PPC64 .config:5021:warning: override: reassigning to symbol PPC_DISABLE_WERROR .config:5022:warning: override: reassigning to symbol SECTION_MISMATCH_WARN_ONLY .config:5023:warning: override: reassigning to symbol PREVENT_FIRMWARE_BUILD .config:5027:warning: override: reassigning to symbol TRIM_UNUSED_KSYMS WARNING: unmet direct dependencies detected for HOTPLUG_PCI_POWERNV Depends on [n]: PCI [=y] && HOTPLUG_PCI [=n] && PPC_POWERNV [=y] && EEH [=y] Selected by [m]: - OCXL [=m] && PPC_POWERNV [=y] && PCI [=y] && EEH [=y] # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- WARNING: unmet direct dependencies detected for HOTPLUG_PCI_POWERNV Depends on [n]: PCI [=y] && HOTPLUG_PCI [=n] && PPC_POWERNV [=y] && EEH [=y] Selected by [m]: - OCXL [=m] && PPC_POWERNV [=y] && PCI [=y] && EEH [=y] WARNING: unmet direct dependencies detected for HOTPLUG_PCI_POWERNV Depends on [n]: PCI [=y] && HOTPLUG_PCI [=n] && PPC_POWERNV [=y] && EEH [=y] Selected by [m]: - OCXL [=m] && PPC_POWERNV [=y] && PCI [=y] && EEH [=y] WARNING: unmet direct dependencies detected for HOTPLUG_PCI_POWERNV Depends on [n]: PCI [=y] && HOTPLUG_PCI [=n] && PPC_POWERNV [=y] && EEH [=y] Selected by [m]: - OCXL [=m] && PPC_POWERNV [=y] && PCI [=y] && EEH [=y] /kisskb/src/arch/powerpc/sysdev/xive/spapr.c: In function 'xive_spapr_esb_rw': /kisskb/src/arch/powerpc/sysdev/xive/spapr.c:354:16: warning: 'read_data' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/sched/core.c: In function 'try_to_wake_up': /kisskb/src/kernel/sched/core.c:2644:12: warning: 'cpu' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:204:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c: In function 'proc_reg_open': /kisskb/src/fs/proc/inode.c:370:15: warning: 'pdeo' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/block/blk-sysfs.c: In function 'queue_wb_lat_store': /kisskb/src/block/blk-sysfs.c:471:7: warning: 'val' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/ext4/extents.c: In function 'ext4_convert_unwritten_io_end_vec': /kisskb/src/fs/ext4/extents.c:5009:23: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/gfs2/bmap.c: In function 'gfs2_iomap_get': /kisskb/src/fs/gfs2/bmap.c:956:3: warning: 'height' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/gfs2/bmap.c:957:8: warning: 'len' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/gfs2/bmap.c:957:8: warning: 'lblock' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/trace/trace_events.c: In function 'event_create_dir': /kisskb/src/kernel/trace/trace_events.c:2040:3: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/trace/bpf_trace.c: In function 'bpf_trace_printk': /kisskb/src/kernel/trace/bpf_trace.c:393:24: warning: 'unsafe_addr' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/trace/bpf_trace.c:336:6: note: 'unsafe_addr' was declared here /kisskb/src/block/bfq-wf2q.c: In function '__bfq_entity_update_weight_prio': /kisskb/src/block/bfq-wf2q.c:810:24: warning: 'root' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/f2fs/file.c: In function 'f2fs_precache_extents': /kisskb/src/fs/f2fs/file.c:3257:6: warning: 'err' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/soc/qcom/qcom-geni-se.c: In function 'geni_se_config_packing': /kisskb/src/drivers/soc/qcom/qcom-geni-se.c:409:16: warning: array subscript is below array bounds [-Warray-bounds] /kisskb/src/kernel/padata.c: In function 'padata_replace': /kisskb/src/kernel/padata.c:539:2: warning: 'err' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/f2fs/node.c: In function '__set_nat_cache_dirty': /kisskb/src/include/linux/list.h:70:13: warning: 'head' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/f2fs/node.c:236:24: note: 'head' was declared here /kisskb/src/drivers/tty/serial/serial_core.c: In function 'uart_put_char': /kisskb/src/include/linux/spinlock.h:393:2: warning: 'flags' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/serial_core.c:550:16: note: 'flags' was declared here /kisskb/src/drivers/tty/serial/serial_core.c: In function 'uart_write': /kisskb/src/include/linux/spinlock.h:393:2: warning: 'flags' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/serial_core.c:580:16: note: 'flags' was declared here /kisskb/src/fs/btrfs/ioctl.c: In function 'btrfs_extent_same': /kisskb/src/fs/btrfs/ioctl.c:3265:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/btrfs/zlib.c: In function 'zlib_compress_pages': /kisskb/src/fs/btrfs/zlib.c:227:8: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c: In function 'sharp_panel_probe': /kisskb/src/drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c:385:19: warning: 'sharp' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/gpu/drm/drm_dp_mst_topology.c: In function 'drm_dp_mst_dsc_aux_for_port': /kisskb/src/drivers/gpu/drm/drm_dp_mst_topology.c:5400:9: warning: missing braces around initializer [-Wmissing-braces] /kisskb/src/drivers/gpu/drm/drm_dp_mst_topology.c:5400:9: warning: (near initialization for 'desc.ident') [-Wmissing-braces] /kisskb/src/drivers/base/regmap/regmap.c: In function 'regmap_raw_read': /kisskb/src/drivers/base/regmap/regmap.c:2598:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regcache-rbtree.c: In function 'regcache_rbtree_write': /kisskb/src/drivers/base/regmap/regcache-rbtree.c:440:8: warning: 'new_top_reg' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regcache-rbtree.c:440:8: warning: 'new_base_reg' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function '_regmap_raw_write': /kisskb/src/drivers/base/regmap/regmap.c:1859:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/gpu/drm/drm_atomic.c: In function 'drm_atomic_connector_check': /kisskb/src/drivers/gpu/drm/drm_atomic.c:426:2: warning: 'crtc_state' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/lib/test_objagg.c: In function 'test_hints_case.constprop.7': /kisskb/src/lib/test_objagg.c:994:1: warning: the frame size of 1056 bytes is larger than 1024 bytes [-Wframe-larger-than=] /kisskb/src/drivers/mtd/ubi/eba.c: In function 'try_write_vid_and_data': /kisskb/src/drivers/mtd/ubi/eba.c:988:7: warning: 'opnum' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/cpufreq/powernv-cpufreq.c: In function 'powernv_cpufreq_reboot_notifier': /kisskb/src/drivers/cpufreq/powernv-cpufreq.c:896:1: warning: the frame size of 1264 bytes is larger than 1024 bytes [-Wframe-larger-than=] /kisskb/src/drivers/cpufreq/powernv-cpufreq.c: In function 'powernv_cpufreq_work_fn': /kisskb/src/drivers/cpufreq/powernv-cpufreq.c:928:1: warning: the frame size of 1280 bytes is larger than 1024 bytes [-Wframe-larger-than=] /kisskb/src/drivers/watchdog/ziirave_wdt.c: In function 'ziirave_wdt_sysfs_store_firm': /kisskb/src/drivers/watchdog/ziirave_wdt.c:552:18: warning: 'fw' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/crypto/hisilicon/sec/sec_algs.c: In function 'sec_skcipher_alg_callback': /kisskb/src/drivers/crypto/hisilicon/sec/sec_algs.c:494:23: warning: 'nextrequest' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/i2c/busses/i2c-sh_mobile.c: In function 'sh_mobile_i2c_isr_rx': /kisskb/src/drivers/i2c/busses/i2c-sh_mobile.c:399:26: warning: 'data' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/hwmon/drivetemp.c: In function 'drivetemp_get_smarttemp': /kisskb/src/drivers/hwmon/drivetemp.c:250:20: warning: 'temp_raw' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/leds/leds-el15203000.c: In function 'el15203000_probe_dt': /kisskb/src/drivers/leds/leds-el15203000.c:246:8: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/crypto/inside-secure/safexcel_cipher.c: In function 'safexcel_aead_setkey': /kisskb/src/drivers/crypto/inside-secure/safexcel_cipher.c:521:1: warning: the frame size of 1088 bytes is larger than 1024 bytes [-Wframe-larger-than=] WARNING: vmlinux.o(.text.unlikely+0x1cf4): Section mismatch in reference from the function .smp_setup_pacas() to the function .init.text:.allocate_paca() The function .smp_setup_pacas() references the function __init .allocate_paca(). This is often because .smp_setup_pacas lacks a __init annotation or the annotation of .allocate_paca is wrong. /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-ld: drivers/misc/lkdtm/lkdtm.o: .opd is not a regular array of opd entries Completed OK # rm -rf /kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc4.6 # Build took: 0:03:29.556586