# git rev-parse -q --verify 950cf957fe34d40d63dfa3bf3968210430b6491e^{commit} 950cf957fe34d40d63dfa3bf3968210430b6491e already have revision, skipping fetch # git checkout -q -f -B kisskb 950cf957fe34d40d63dfa3bf3968210430b6491e # git clean -qxdf # < git log -1 # commit 950cf957fe34d40d63dfa3bf3968210430b6491e # Author: Hangyu Hua # Date: Mon Apr 18 16:57:58 2022 +0800 # # misc: ocxl: fix possible double free in ocxl_file_register_afu # # info_release() will be called in device_unregister() when info->dev's # reference count is 0. So there is no need to call ocxl_afu_put() and # kfree() again. # # Fix this by adding free_minor() and return to err_unregister error path. # # Fixes: 75ca758adbaf ("ocxl: Create a clear delineation between ocxl backend & frontend") # Signed-off-by: Hangyu Hua # Acked-by: Frederic Barrat # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20220418085758.38145-1-hbh25y@gmail.com # < /opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 950cf957fe34d40d63dfa3bf3968210430b6491e # < make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig+ppc64le_powerpc-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- randconfig WARNING: unmet direct dependencies detected for VIDEO_V4L2_SUBDEV_API Depends on [n]: MEDIA_SUPPORT [=y] && VIDEO_DEV [=n] && MEDIA_CONTROLLER [=y] Selected by [y]: - VIDEO_IMX_MIPI_CSIS [=y] && MEDIA_SUPPORT [=y] && MEDIA_PLATFORM_SUPPORT [=y] && MEDIA_PLATFORM_DRIVERS [=y] && (ARCH_MXC || COMPILE_TEST [=y]) WARNING: unmet direct dependencies detected for VIDEO_V4L2_SUBDEV_API Depends on [n]: MEDIA_SUPPORT [=y] && VIDEO_DEV [=n] && MEDIA_CONTROLLER [=y] Selected by [y]: - VIDEO_IMX_MIPI_CSIS [=y] && MEDIA_SUPPORT [=y] && MEDIA_PLATFORM_SUPPORT [=y] && MEDIA_PLATFORM_DRIVERS [=y] && (ARCH_MXC || COMPILE_TEST [=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=n # Added to kconfig CONFIG_CPU_LITTLE_ENDIAN=y # Added to kconfig CONFIG_PPC64=y # Added to kconfig CONFIG_PPC_BOOK3E_64=n # Added to kconfig CONFIG_PPC_BOOK3S_64=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_LD_HEAD_STUB_CATCH=y # Added to kconfig CONFIG_TRIM_UNUSED_KSYMS=n # Added to kconfig CONFIG_UBSAN=n # < make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig+ppc64le_powerpc-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig+ppc64le_powerpc-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig .config:5228:warning: override: reassigning to symbol PPC64 .config:5231:warning: override: reassigning to symbol PPC_DISABLE_WERROR .config:5232:warning: override: reassigning to symbol SECTION_MISMATCH_WARN_ONLY .config:5233:warning: override: reassigning to symbol PREVENT_FIRMWARE_BUILD .config:5236:warning: override: reassigning to symbol UBSAN WARNING: unmet direct dependencies detected for VIDEO_V4L2_SUBDEV_API Depends on [n]: MEDIA_SUPPORT [=y] && VIDEO_DEV [=n] && MEDIA_CONTROLLER [=y] Selected by [y]: - VIDEO_IMX_MIPI_CSIS [=y] && MEDIA_SUPPORT [=y] && MEDIA_PLATFORM_SUPPORT [=y] && MEDIA_PLATFORM_DRIVERS [=y] && (ARCH_MXC || COMPILE_TEST [=y]) # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig+ppc64le_powerpc-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- WARNING: unmet direct dependencies detected for VIDEO_V4L2_SUBDEV_API Depends on [n]: MEDIA_SUPPORT [=y] && VIDEO_DEV [=n] && MEDIA_CONTROLLER [=y] Selected by [y]: - VIDEO_IMX_MIPI_CSIS [=y] && MEDIA_SUPPORT [=y] && MEDIA_PLATFORM_SUPPORT [=y] && MEDIA_PLATFORM_DRIVERS [=y] && (ARCH_MXC || COMPILE_TEST [=y]) WARNING: unmet direct dependencies detected for VIDEO_V4L2_SUBDEV_API Depends on [n]: MEDIA_SUPPORT [=y] && VIDEO_DEV [=n] && MEDIA_CONTROLLER [=y] Selected by [y]: - VIDEO_IMX_MIPI_CSIS [=y] && MEDIA_SUPPORT [=y] && MEDIA_PLATFORM_SUPPORT [=y] && MEDIA_PLATFORM_DRIVERS [=y] && (ARCH_MXC || COMPILE_TEST [=y]) WARNING: unmet direct dependencies detected for VIDEO_V4L2_SUBDEV_API Depends on [n]: MEDIA_SUPPORT [=y] && VIDEO_DEV [=n] && MEDIA_CONTROLLER [=y] Selected by [y]: - VIDEO_IMX_MIPI_CSIS [=y] && MEDIA_SUPPORT [=y] && MEDIA_PLATFORM_SUPPORT [=y] && MEDIA_PLATFORM_DRIVERS [=y] && (ARCH_MXC || COMPILE_TEST [=y]) /opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld: drivers/media/platform/nxp/imx-mipi-csis.o: in function `mipi_csis_notify_bound': imx-mipi-csis.c:(.text+0x184): undefined reference to `v4l2_create_fwnode_links_to_pad' /opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld: drivers/media/platform/nxp/imx-mipi-csis.o: in function `mipi_csis_remove': imx-mipi-csis.c:(.text+0xa9c): undefined reference to `v4l2_async_nf_unregister' /opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld: imx-mipi-csis.c:(.text+0xaa8): undefined reference to `v4l2_async_nf_cleanup' /opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld: imx-mipi-csis.c:(.text+0xab4): undefined reference to `v4l2_async_unregister_subdev' /opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld: drivers/media/platform/nxp/imx-mipi-csis.o: in function `mipi_csis_s_stream': imx-mipi-csis.c:(.text+0x1990): undefined reference to `v4l2_get_link_freq' /opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld: drivers/media/platform/nxp/imx-mipi-csis.o: in function `mipi_csis_probe': imx-mipi-csis.c:(.text+0x259c): undefined reference to `v4l2_subdev_init' /opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld: imx-mipi-csis.c:(.text+0x2920): undefined reference to `v4l2_async_nf_init' /opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld: imx-mipi-csis.c:(.text+0x2960): undefined reference to `v4l2_fwnode_endpoint_parse' /opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld: imx-mipi-csis.c:(.text+0x2a28): undefined reference to `__v4l2_async_nf_add_fwnode_remote' /opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld: imx-mipi-csis.c:(.text+0x2a74): undefined reference to `v4l2_async_subdev_nf_register' /opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld: imx-mipi-csis.c:(.text+0x2aa8): undefined reference to `v4l2_async_register_subdev' /opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld: imx-mipi-csis.c:(.text+0x2c14): undefined reference to `v4l2_async_nf_unregister' /opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld: imx-mipi-csis.c:(.text+0x2c20): undefined reference to `v4l2_async_nf_cleanup' /opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld: imx-mipi-csis.c:(.text+0x2c2c): undefined reference to `v4l2_async_unregister_subdev' /opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld: drivers/media/platform/nxp/imx-mipi-csis.o: in function `mipi_csis_set_fmt': imx-mipi-csis.c:(.text+0x3264): undefined reference to `v4l_bound_align_image' /opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld: drivers/media/platform/nxp/imx-mipi-csis.o:(.toc+0x0): undefined reference to `v4l2_subdev_call_wrappers' /opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld: drivers/media/platform/nxp/imx-mipi-csis.o:(.data.rel.ro+0x0): undefined reference to `v4l2_subdev_get_fwnode_pad_1_to_1' /opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld: drivers/media/platform/nxp/imx-mipi-csis.o:(.data.rel.ro+0x10): undefined reference to `v4l2_subdev_link_validate' make[1]: *** [/kisskb/src/Makefile:1158: vmlinux] Error 1 make: *** [Makefile:219: __sub-make] Error 2 Command 'make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig+ppc64le_powerpc-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/powerpc-next-rand_powerpc-randconfig+ppc64le_powerpc-gcc11 # Build took: 0:01:10.253735