From d328de94fd5b251711f0d3b4e23733eb5fe76e88 Mon Sep 17 00:00:00 2001 From: "Justin M. Forbes" Date: Mon, 21 Sep 2020 09:22:48 -0500 Subject: kernel-5.9.0-0.rc6.12 * Mon Sep 21 2020 Fedora Kernel Team [5.9.0-0.rc6.12] - Merge ark-patches Resolves: rhbz# Signed-off-by: Justin M. Forbes --- 0001-Drop-that-for-now.patch | 2 +- 0001-put-RHEL-info-into-generated-headers.patch | 2 +- ...own-the-kernel-when-the-IPL-secure-flag-i.patch | 2 +- Makefile.rhelver | 2 +- kernel.spec | 190 +++++++++++++++++++-- sources | 6 +- update_scripts.sh | 8 +- 7 files changed, 188 insertions(+), 24 deletions(-) diff --git a/0001-Drop-that-for-now.patch b/0001-Drop-that-for-now.patch index dbccc3f1e..5eaf47294 100644 --- a/0001-Drop-that-for-now.patch +++ b/0001-Drop-that-for-now.patch @@ -8,7 +8,7 @@ Subject: [PATCH] Drop that for now 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile -index 553f4e873c8c..bc15e6a86865 100644 +index 743ea5749d53..a0b712380d83 100644 --- a/Makefile +++ b/Makefile @@ -497,7 +497,7 @@ KBUILD_AFLAGS := -D__ASSEMBLY__ -fno-PIE diff --git a/0001-put-RHEL-info-into-generated-headers.patch b/0001-put-RHEL-info-into-generated-headers.patch index 9d4a419f6..bb4a97330 100644 --- a/0001-put-RHEL-info-into-generated-headers.patch +++ b/0001-put-RHEL-info-into-generated-headers.patch @@ -59,7 +59,7 @@ Acked-by: Prarit Bhargava 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile -index 19d012810fbb..553f4e873c8c 100644 +index 2b66d3398878..743ea5749d53 100644 --- a/Makefile +++ b/Makefile @@ -1245,7 +1245,13 @@ endef diff --git a/0001-s390-Lock-down-the-kernel-when-the-IPL-secure-flag-i.patch b/0001-s390-Lock-down-the-kernel-when-the-IPL-secure-flag-i.patch index 6613f6a35..12eadc312 100644 --- a/0001-s390-Lock-down-the-kernel-when-the-IPL-secure-flag-i.patch +++ b/0001-s390-Lock-down-the-kernel-when-the-IPL-secure-flag-i.patch @@ -41,7 +41,7 @@ index 90a2a17239b0..be3b72c53656 100644 + return !!ipl_secure_flag; +} diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c -index e600f6953d7c..4264e01824b3 100644 +index c2c1b4e723ea..1247f80a3bf0 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c @@ -49,6 +49,7 @@ diff --git a/Makefile.rhelver b/Makefile.rhelver index b04cb77d9..18afd0195 100644 --- a/Makefile.rhelver +++ b/Makefile.rhelver @@ -12,7 +12,7 @@ RHEL_MINOR = 99 # # Use this spot to avoid future merge conflicts. # Do not trim this comment. -RHEL_RELEASE = 12 +RHEL_RELEASE = 13 # # Early y+1 numbering diff --git a/kernel.spec b/kernel.spec index 0192c5af7..882bd861b 100644 --- a/kernel.spec +++ b/kernel.spec @@ -30,7 +30,7 @@ Summary: The Linux kernel # For a stable, released kernel, released_kernel should be 1. %global released_kernel 0 -%global distro_build 0.rc5.20200916gitfc4f28bb3daf.12 +%global distro_build 0.rc6.13 %if 0%{?fedora} %define secure_boot_arch x86_64 @@ -69,13 +69,13 @@ Summary: The Linux kernel %endif %define rpmversion 5.9.0 -%define pkgrelease 0.rc5.20200916gitfc4f28bb3daf.12 +%define pkgrelease 0.rc6.13 # This is needed to do merge window version magic %define patchlevel 9 # allow pkg_release to have configurable %%{?dist} tag -%define specrelease 0.rc5.20200916gitfc4f28bb3daf.12%{?buildid}%{?dist} +%define specrelease 0.rc6.13%{?buildid}%{?dist} %define pkg_release %{specrelease} @@ -166,7 +166,7 @@ Summary: The Linux kernel # Set debugbuildsenabled to 1 for production (build separate debug kernels) # and 0 for rawhide (all kernels are debug kernels). # See also 'make debug' and 'make release'. -%define debugbuildsenabled 0 +%define debugbuildsenabled 1 # The kernel tarball/base version %define kversion 5.9 @@ -181,11 +181,11 @@ Summary: The Linux kernel %define with_ipaclones 0 # no whitelist %define with_kernel_abi_whitelists 0 +%endif # Fedora builds these separately %define with_perf 0 %define with_tools 0 %define with_bpftool 0 -%endif %if %{with_verbose} %define make_opts V=1 @@ -566,7 +566,7 @@ BuildRequires: asciidoc # exact git commit you can run # # xzcat -qq ${TARBALL} | git get-tar-commit-id -Source0: linux-20200916gitfc4f28bb3daf.tar.xz +Source0: linux-5.9-rc6.tar.xz Source1: Makefile.rhelver @@ -1284,8 +1284,8 @@ ApplyOptionalPatch() fi } -%setup -q -n kernel-20200916gitfc4f28bb3daf -c -mv linux-20200916gitfc4f28bb3daf linux-%{KVERREL} +%setup -q -n kernel-5.9-rc6 -c +mv linux-5.9-rc6 linux-%{KVERREL} cd linux-%{KVERREL} cp -a %{SOURCE1} . @@ -2071,11 +2071,6 @@ BuildKernel %make_target %kernel_image %{_use_vdso} %global perf_make \ %{__make} -s EXTRA_CFLAGS="${RPM_OPT_FLAGS}" LDFLAGS="%{__global_ldflags}" %{?cross_opts} -C tools/perf V=1 NO_PERF_READ_VDSO32=1 NO_PERF_READ_VDSOX32=1 WERROR=0 NO_LIBUNWIND=1 HAVE_CPLUS_DEMANGLE=1 NO_GTK2=1 NO_STRLCPY=1 NO_BIONIC=1 prefix=%{_prefix} PYTHON=%{__python3} %if %{with_perf} -# The kernel tools build with -ggdb3 which seems to interact badly with LTO -# causing various errors with references to discarded sections and symbol -# type errors from the LTO plugin. Until those issues are addressed -# disable LTO -%global _lto_cflags %{nil} # perf # make sure check-headers.sh is executable chmod +x tools/perf/check-headers.sh @@ -2799,6 +2794,175 @@ fi # # %changelog +* Mon Sep 21 2020 Fedora Kernel Team [5.9.0-0.rc6.12] +- Merge ark-patches + +* Mon Sep 21 2020 Fedora Kernel Team [5.9.0-0.rc6.11.test] +- v5.9-rc6 rebase +- Linux 5.9-rc6 (Linus Torvalds) +- mm: fix wake_page_function() comment typos (Linus Torvalds) +- dax: Fix stack overflow when mounting fsdax pmem device (Adrian Huang) +- dm: Call proper helper to determine dax support (Jan Kara) +- dm/dax: Fix table reference counts (Dan Williams) +- kconfig: qconf: revive help message in the info view (Masahiro Yamada) +- kconfig: qconf: fix incomplete type 'struct gstr' warning (Masahiro Yamada) +- RISC-V: Resurrect the MMIO timer implementation for M-mode systems (Palmer Dabbelt) +- riscv: Fix Kendryte K210 device tree (Damien Le Moal) +- riscv: Add sfence.vma after early page table changes (Greentime Hu) +- kcsan: kconfig: move to menu 'Generic Kernel Debugging Instruments' (Changbin Du) +- fs/fs-writeback.c: adjust dirtytime_interval_handler definition to match prototype (Tobias Klauser) +- stackleak: let stack_erasing_sysctl take a kernel pointer buffer (Tobias Klauser) +- ftrace: let ftrace_enable_sysctl take a kernel pointer buffer (Tobias Klauser) +- mm/memory_hotplug: drain per-cpu pages again during memory offline (Pavel Tatashin) +- selftests/vm: fix display of page size in map_hugetlb (Christophe Leroy) +- mm/thp: fix __split_huge_pmd_locked() for migration PMD (Ralph Campbell) +- kprobes: fix kill kprobe which has been marked as gone (Muchun Song) +- tmpfs: restore functionality of nr_inodes=0 (Byron Stanoszek) +- mlock: fix unevictable_pgs event counts on THP (Hugh Dickins) +- mm: fix check_move_unevictable_pages() on THP (Hugh Dickins) +- mm: migration of hugetlbfs page skip memcg (Hugh Dickins) +- ksm: reinstate memcg charge on copied pages (Hugh Dickins) +- mailmap: add older email addresses for Kees Cook (Kees Cook) +- i2c: mxs: use MXS_DMA_CTRL_WAIT4END instead of DMA_CTRL_ACK (Matthias Schiffer) +- i2c: mediatek: Send i2c master code at more than 1MHz (Qii Wang) +- i2c: mediatek: Fix generic definitions for bus frequency (Qii Wang) +- objtool: Fix noreturn detection for ignored functions (Josh Poimboeuf) +- kconfig: qconf: use delete[] instead of delete to free array (again) (Masahiro Yamada) +- iommu/amd: Restore IRTE.RemapEn bit for amd_iommu_activate_guest_mode (Suravee Suthikulpanit) +- iommu/amd: Fix potential @entry null deref (Joao Martins) +- x86/unwind/fp: Fix FP unwinding in ret_from_fork (Josh Poimboeuf) +- i2c: core: Call i2c_acpi_install_space_handler() before i2c_acpi_register_devices() (Hans de Goede) +- percpu: fix first chunk size calculation for populated bitmap (Sunghyun Jin) +- mm: allow a controlled amount of unfairness in the page lock (Linus Torvalds) +- arm64: paravirt: Initialize steal time when cpu is online (Andrew Jones) +- usblp: fix race between disconnect() and read() (Oliver Neukum) +- arm64: bpf: Fix branch offset in JIT (Ilias Apalodimas) +- ehci-hcd: Move include to keep CRC stable (Quentin Perret) +- drm/amd/display: Don't log hdcp module warnings in dmesg (Bhawanpreet Lakha) +- drm/amdgpu: declare ta firmware for navy_flounder (Jiansong Chen) +- drm/mediatek: Add missing put_device() call in mtk_hdmi_dt_parse_pdata() (Yu Kuai) +- drm/mediatek: Add missing put_device() call in mtk_drm_kms_init() (Yu Kuai) +- drm/mediatek: Add exception handing in mtk_drm_probe() if component init fail (Yu Kuai) +- drm/mediatek: Add missing put_device() call in mtk_ddp_comp_init() (Yu Kuai) +- drm/mediatek: Use CPU when fail to get cmdq event (Chun-Kuang Hu) +- drm/mediatek: Remove duplicated include (Wang Hai) +- MIPS: SNI: Fix spurious interrupts (Thomas Bogendoerfer) +- MAINTAINERS: Fix Max's and Shravan's emails (Leon Romanovsky) +- ACPI: processor: Take over RCU-idle for C3-BM idle (Peter Zijlstra) +- cpuidle: Allow cpuidle drivers to take over RCU-idle (Peter Zijlstra) +- ACPI: processor: Use CPUIDLE_FLAG_TLB_FLUSHED (Peter Zijlstra) +- ACPI: processor: Use CPUIDLE_FLAG_TIMER_STOP (Peter Zijlstra) +- locking/percpu-rwsem: Use this_cpu_{inc,dec}() for read_count (Hou Tao) +- perf stat: Fix the ratio comments of miss-events (Qi Liu) +- fbcon: Fix user font detection test at fbcon_resize(). (Tetsuo Handa) +- powercap: RAPL: Add support for Lakefield (Ricardo Neri) +- serial: 8250_pci: Add Realtek 816a and 816b (Tobias Diedrich) +- serial: core: fix console port-lock regression (Johan Hovold) +- serial: core: fix port-lock initialisation (Johan Hovold) +- usb: typec: intel_pmc_mux: Handle SCU IPC error conditions (Madhusudanarao Amara) +- USB: quirks: Add USB_QUIRK_IGNORE_REMOTE_WAKEUP quirk for BYD zhaoxin notebook (Penghao) +- USB: UAS: fix disconnect by unplugging a hub (Oliver Neukum) +- usb: typec: ucsi: Prevent mode overrun (Heikki Krogerus) +- usb: typec: ucsi: acpi: Increase command completion timeout value (Heikki Krogerus) +- drm/i915: Filter wake_flags passed to default_wake_function (Chris Wilson) +- drm/i915: Be wary of data races when reading the active execlists (Chris Wilson) +- drm/i915/gem: Reduce context termination list iteration guard to RCU (Chris Wilson) +- drm/i915/gem: Delay tracking the GEM context until it is registered (Chris Wilson) +- drm/amdgpu/dc: Require primary plane to be enabled whenever the CRTC is (=?UTF-8?q?Michel=20D=C3=A4nzer?=) +- drm/radeon: revert "Prefer lower feedback dividers" (=?UTF-8?q?Christian=20K=C3=B6nig?=) +- drm/amdgpu: Include sienna_cichlid in USBC PD FW support. (Andrey Grodzovsky) +- drm/amd/display: update nv1x stutter latencies (Jun Lei) +- drm/amd/display: Don't use DRM_ERROR() for DTM add topology (Bhawanpreet Lakha) +- drm/amd/pm: support runtime pptable update for sienna_cichlid etc. (Jiansong Chen) +- drm/amdkfd: fix a memory leak issue (Dennis Li) +- drm/kfd: fix a system crash issue during GPU recovery (Dennis Li) +- efi: efibc: check for efivars write capability (Ard Biesheuvel) +- perf test: Free formats for perf pmu parse test (Namhyung Kim) +- perf metric: Do not free metric when failed to resolve (Namhyung Kim) +- perf metric: Free metric when it failed to resolve (Namhyung Kim) +- perf metric: Release expr_parse_ctx after testing (Namhyung Kim) +- perf test: Fix memory leaks in parse-metric test (Namhyung Kim) +- perf parse-event: Fix memory leak in evsel->unit (Namhyung Kim) +- perf evlist: Fix cpu/thread map leak (Namhyung Kim) +- perf metric: Fix some memory leaks - part 2 (Namhyung Kim) +- perf metric: Fix some memory leaks (Namhyung Kim) +- perf test: Free aliases for PMU event map aliases test (Namhyung Kim) +- perf vendor events amd: Remove trailing commas (Henry Burns) +- MIPS: SNI: Fix MIPS_L1_CACHE_SHIFT (Thomas Bogendoerfer) +- EDAC/ghes: Check whether the driver is on the safe list correctly (Borislav Petkov) +- EDAC/ghes: Clear scanned data on unload (Borislav Petkov) +- Updated changelog for the release based on fc4f28bb3daf (Fedora Kernel Team) +- perf test: Leader sampling shouldn't clear sample period (Ian Rogers) +- perf record: Don't clear event's period if set by a term (Ian Rogers) +- tools headers UAPI: update linux/in.h copy (Arnaldo Carvalho de Melo) +- tools headers UAPI: Sync kvm.h headers with the kernel sources (Arnaldo Carvalho de Melo) +- perf record: Prevent override of attr->sample_period for libpfm4 events (Stephane Eranian) +- perf record: Set PERF_RECORD_PERIOD if attr->freq is set. (David Sharp) +- perf bench: Fix 2 memory sanitizer warnings (Ian Rogers) +- perf test: Fix the "signal" test inline assembly (Jiri Olsa) +- core/entry: Report syscall correctly for trace and audit (Kees Cook) +- Input: trackpoint - add new trackpoint variant IDs (Vincent Huang) +- Revert "mtd: spi-nor: Add capability to disable flash quad mode" (Yicong Yang) +- Revert "mtd: spi-nor: Disable the flash quad mode in spi_nor_restore()" (Yicong Yang) +- Drivers: hv: vmbus: Add timeout to vmbus_wait_for_unload (Michael Kelley) +- x86/boot/compressed: Disable relocation relaxation (Arvind Sankar) +- s390: add 3f program exception handler (Janosch Frank) +- lockdep: fix order in trace_hardirqs_off_caller() (Sven Schnelle) +- s390/pci: fix leak of DMA tables on hard unplug (Niklas Schnelle) +- s390/init: add missing __init annotations (Ilya Leoshkevich) +- s390/zcrypt: fix kmalloc 256k failure (Harald Freudenberger) +- s390/idle: fix suspicious RCU usage (Peter Zijlstra) +- i2c: i801: Simplify the suspend callback (Jean Delvare) +- i2c: i801: Fix resume bug (=?UTF-8?q?Volker=20R=C3=BCmelin?=) +- i2c: aspeed: Mask IRQ status to relevant bits (Eddie James) +- sh: fix syscall tracing (Rich Felker) +- sh: remove spurious circular inclusion from asm/smp.h (Rich Felker) +- arm64: Allow CPUs unffected by ARM erratum 1418040 to come in late (Marc Zyngier) +- RISC-V: Take text_mutex in ftrace_init_nop() (Palmer Dabbelt) +- clk: qcom: lpass: Correct goto target in lpass_core_sc7180_probe() (Jing Xiangfeng) +- clk: versatile: Add of_node_put() before return statement (Sumera Priyadarsini) +- clk: bcm: dvp: Select the reset framework (Maxime Ripard) +- scsi: libsas: Fix error path in sas_notify_lldd_dev_found() (Dan Carpenter) +- Drivers: hv: vmbus: hibernation: do not hang forever in vmbus_bus_resume() (Dexuan Cui) +- thunderbolt: Retry DROM read once if parsing fails (Mika Westerberg) +- ALSA: hda/realtek - The Mic on a RedmiBook doesn't work (Hui Wang) +- x86/defconfigs: Explicitly unset CONFIG_64BIT in i386_defconfig (=?UTF-8?q?Daniel=20D=C3=ADaz?=) +- powerpc/papr_scm: Limit the readability of 'perf_stats' sysfs attribute (Vaibhav Jain) +- Input: i8042 - add Entroware Proteus EL07R4 to nomux and reset lists (Hans de Goede) +- ASoC: tlv320adcx140: Wake up codec before accessing register (Camel Guo) +- cpuidle: pseries: Fix CEDE latency conversion from tb to us ("Gautham R. Shenoy") +- powerpc/dma: Fix dma_map_ops::get_required_mask (Alexey Kardashevskiy) +- ASoC: core: Do not cleanup uninitialized dais on soc_pcm_open failure (Cezary Rojewski) +- ALSA: hda: fixup headset for ASUS GX502 laptop (Luke D Jones) +- locking/lockdep: Fix "USED" <- "IN-NMI" inversions ("peterz@infradead.org") +- Revert "powerpc/build: vdso linker warning for orphan sections" (Michael Ellerman) +- ASoC: Intel: bytcr_rt5640: Add quirk for MPMAN Converter9 2-in-1 (Hans de Goede) +- powerpc/mm: Remove DEBUG_VM_PGTABLE support on powerpc ("Aneesh Kumar K.V") +- ASoC: Intel: haswell: Fix power transition refactor (Cezary Rojewski) +- ASoC: tlv320adcx140: Fix accessing uninitialized adcx140->dev (Camel Guo) +- selftests/powerpc: Skip PROT_SAO test in guests/LPARS (Michael Ellerman) +- ASoC: wm8994: Ensure the device is resumed in wm89xx_mic_detect functions (Sylwester Nawrocki) +- ASoC: wm8994: Skip setting of the WM8994_MICBIAS register for WM1811 (Sylwester Nawrocki) +- ASoC: meson: axg-toddr: fix channel order on g12 platforms (Jerome Brunet) +- ASoC: soc-core: add snd_soc_find_dai_with_mutex() (Kuninori Morimoto) +- powerpc/book3s64/radix: Fix boot failure with large amount of guest memory ("Aneesh Kumar K.V") +- drm/mediatek: dsi: Fix scrolling of panel with small hfp or hbp (Jitao Shi) +- ASoC: qcom: common: Fix refcount imbalance on error (Dinghao Liu) +- ASoC: rt700: Fix return check for devm_regmap_init_sdw() (Vinod Koul) +- ASoC: rt715: Fix return check for devm_regmap_init_sdw() (Vinod Koul) +- ASoC: rt711: Fix return check for devm_regmap_init_sdw() (Vinod Koul) +- ASoC: rt1308-sdw: Fix return check for devm_regmap_init_sdw() (Vinod Koul) +- ASoC: max98373: Fix return check for devm_regmap_init_sdw() (Vinod Koul) +- ASoC: ti: fixup ams_delta_mute() function name (Kuninori Morimoto) +- ASoC: pcm3168a: ignore 0 Hz settings (Kuninori Morimoto) +- ASoC: Intel: tgl_max98373: fix a runtime pm issue in multi-thread case (Rander Wang) +- ASoC: qcom: Set card->owner to avoid warnings (Stephan Gerhold) +- ASoC: intel: atom: Add period size constraint (Brent Lu) +- device_cgroup: Fix RCU list debugging warning (Amol Grover) +- ASoC: Intel: skl_hda_dsp_generic: Fix NULLptr dereference in autosuspend delay (Mateusz Gorski) +- clk: rockchip: Fix initialization of mux_pll_src_4plls_p (Nathan Chancellor) +- clk: davinci: Use the correct size when allocating memory (Christophe JAILLET) + * Tue Sep 15 2020 Fedora Kernel Team [5.9.0-0.rc5.20200915gitfc4f28bb3daf.11] - Merge ark-patches diff --git a/sources b/sources index 5b968bfa6..3d1dede5e 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ -SHA512 (linux-20200916gitfc4f28bb3daf.tar.xz) = 412fbc9f8680caaa640c4c3032bb26a9264b9c48117d123afa0f2f7842344f52aa5a5b06c15714c7d59597596f252187fb911cc6884a1bf65638c146813af0cf -SHA512 (kernel-abi-whitelists-5.9.0-0.rc5.20200916gitfc4f28bb3daf.12.tar.bz2) = b5c51a340626106b65abf1a667a19849f55b44e8acb874be43ee3e8eaa7424a70d69de62601f028ad9e143b7e594867e6e2bb2f060d435f6339202a565546bd4 -SHA512 (kernel-kabi-dw-5.9.0-0.rc5.20200916gitfc4f28bb3daf.12.tar.bz2) = af9d8c47e2332749de58a4693469231a9bc6273dadd5c85688c7a200c3c92ac35b12f1cc793deda39f66f8c5ba5cca1b68a6a24f97ce91eca3248c0d145d52be +SHA512 (linux-5.9-rc6.tar.xz) = 08c48757879e1a7a51d2678f332e7c17b07537363500c2104bc4ed21cf028c2457cc4ddb4574985ed999ceaaaebcad38bec4d8d16a448b4bf8f72e6fac908225 +SHA512 (kernel-abi-whitelists-5.9.0-0.rc6.13.tar.bz2) = dcfaef0d317c318d365a4e79d2e67dfba89e229a704329be7d080076273ede463ee13367a8e528caa75a612b258fb6b1db10a319299dc960459cabcc71679c15 +SHA512 (kernel-kabi-dw-5.9.0-0.rc6.13.tar.bz2) = d3382010281937e2058ad4ba61c3f033cc8e76cb0543bea2501c8f3b23b5ceccfccc1508df967382f4666ad2a0171fcca2d4843f1334dbd7330fdae6ef891d42 diff --git a/update_scripts.sh b/update_scripts.sh index 5c3dbaeb9..9196e795a 100755 --- a/update_scripts.sh +++ b/update_scripts.sh @@ -1,12 +1,12 @@ #!/bin/sh -if [ -z $1 ]; then +if [ -z "$1" ]; then exit 1 fi -TARGET=$1 +TARGET="$1" -for i in $RPM_SOURCE_DIR/*.$TARGET; do +for i in "$RPM_SOURCE_DIR"/*."$TARGET"; do NEW=${i%.$TARGET} - cp $i $NEW + cp "$i" "$NEW" done -- cgit From abdc294d6d5c88f1ea905ee192686261e47a473a Mon Sep 17 00:00:00 2001 From: "Justin M. Forbes" Date: Mon, 21 Sep 2020 10:06:16 -0500 Subject: Compilation fix from upstream Signed-off-by: Justin M. Forbes --- ...-compilation-for-CONFIG_DAX-CONFIG_FS_DAX.patch | 70 ++++++++++++++++++++++ kernel.spec | 2 + 2 files changed, 72 insertions(+) create mode 100644 0001-dax-Fix-compilation-for-CONFIG_DAX-CONFIG_FS_DAX.patch diff --git a/0001-dax-Fix-compilation-for-CONFIG_DAX-CONFIG_FS_DAX.patch b/0001-dax-Fix-compilation-for-CONFIG_DAX-CONFIG_FS_DAX.patch new file mode 100644 index 000000000..c92a2f5c4 --- /dev/null +++ b/0001-dax-Fix-compilation-for-CONFIG_DAX-CONFIG_FS_DAX.patch @@ -0,0 +1,70 @@ +From 8b8c7d6148bc1bab3cf88cac49038a05db7dd938 Mon Sep 17 00:00:00 2001 +From: Jan Kara +Date: Mon, 21 Sep 2020 11:33:23 +0200 +Subject: [PATCH] dax: Fix compilation for CONFIG_DAX && !CONFIG_FS_DAX + +dax_supported() is defined whenever CONFIG_DAX is enabled. So dummy +implementation should be defined only in !CONFIG_DAX case, not in +!CONFIG_FS_DAX case. + +Fixes: e2ec51282545 ("dm: Call proper helper to determine dax support") +Cc: +Reported-by: Geert Uytterhoeven +Reported-by: Naresh Kamboju +Signed-off-by: Jan Kara +--- + include/linux/dax.h | 17 ++++++++--------- + 1 file changed, 8 insertions(+), 9 deletions(-) + +diff --git a/include/linux/dax.h b/include/linux/dax.h +index 497031392e0a..43b39ab9de1a 100644 +--- a/include/linux/dax.h ++++ b/include/linux/dax.h +@@ -58,6 +58,8 @@ static inline void set_dax_synchronous(struct dax_device *dax_dev) + { + __set_dax_synchronous(dax_dev); + } ++bool dax_supported(struct dax_device *dax_dev, struct block_device *bdev, ++ int blocksize, sector_t start, sector_t len); + /* + * Check if given mapping is supported by the file / underlying device. + */ +@@ -104,6 +106,12 @@ static inline bool dax_synchronous(struct dax_device *dax_dev) + static inline void set_dax_synchronous(struct dax_device *dax_dev) + { + } ++static inline bool dax_supported(struct dax_device *dax_dev, ++ struct block_device *bdev, int blocksize, sector_t start, ++ sector_t len) ++{ ++ return false; ++} + static inline bool daxdev_mapping_supported(struct vm_area_struct *vma, + struct dax_device *dax_dev) + { +@@ -130,8 +138,6 @@ static inline bool generic_fsdax_supported(struct dax_device *dax_dev, + return __generic_fsdax_supported(dax_dev, bdev, blocksize, start, + sectors); + } +-bool dax_supported(struct dax_device *dax_dev, struct block_device *bdev, +- int blocksize, sector_t start, sector_t len); + + static inline void fs_put_dax(struct dax_device *dax_dev) + { +@@ -159,13 +165,6 @@ static inline bool generic_fsdax_supported(struct dax_device *dax_dev, + return false; + } + +-static inline bool dax_supported(struct dax_device *dax_dev, +- struct block_device *bdev, int blocksize, sector_t start, +- sector_t len) +-{ +- return false; +-} +- + static inline void fs_put_dax(struct dax_device *dax_dev) + { + } +-- +2.16.4 + diff --git a/kernel.spec b/kernel.spec index 882bd861b..e6a4dfc45 100644 --- a/kernel.spec +++ b/kernel.spec @@ -789,6 +789,7 @@ Patch72: 0001-Fixes-acpi-prefer-booting-with-ACPI-over-DTS-to-be-R.patch Patch73: 0001-Work-around-for-gcc-bug-https-gcc.gnu.org-bugzilla-s.patch Patch74: 0001-Temporarily-remove-cdomain-from-sphinx-documentation.patch Patch75: 0001-Filter-out-LTO-build-options-from-the-perl-ccopts.patch +Patch76: 0001-dax-Fix-compilation-for-CONFIG_DAX-CONFIG_FS_DAX.patch %endif @@ -1366,6 +1367,7 @@ ApplyOptionalPatch 0001-Fixes-acpi-prefer-booting-with-ACPI-over-DTS-to-be-R.pat ApplyOptionalPatch 0001-Work-around-for-gcc-bug-https-gcc.gnu.org-bugzilla-s.patch ApplyOptionalPatch 0001-Temporarily-remove-cdomain-from-sphinx-documentation.patch ApplyOptionalPatch 0001-Filter-out-LTO-build-options-from-the-perl-ccopts.patch +ApplyOptionalPatch 0001-dax-Fix-compilation-for-CONFIG_DAX-CONFIG_FS_DAX.patch %endif -- cgit