Skip to content

Instantly share code, notes, and snippets.

@javashin
Created March 15, 2023 12:19
Show Gist options
  • Save javashin/fda83763de17a384804d4f1813568765 to your computer and use it in GitHub Desktop.
Save javashin/fda83763de17a384804d4f1813568765 to your computer and use it in GitHub Desktop.
sudo su
cd /usr/src
wget https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.2.6.tar.xz
tar xvpfJ linux-6.2.6.tar.xz
ln -s linux-6.2.6 linux
cd linux
igloo-l380 /usr/src/linux # wget https://mirrors.edge.kernel.org/pub/linux/kernel/projects/rt/6.2/patch-6.2-rt3.patch.xz
--2023-03-15 07:17:43-- https://mirrors.edge.kernel.org/pub/linux/kernel/projects/rt/6.2/patch-6.2-rt3.patch.xz
Resolving mirrors.edge.kernel.org... 147.75.199.223, 2604:1380:45d1:ec00::1
Connecting to mirrors.edge.kernel.org|147.75.199.223|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 35996 (35K) [application/x-xz]
Saving to: ‘patch-6.2-rt3.patch.xz’
patch-6.2-rt3.patch.xz 100%[=============================================================>] 35.15K --.-KB/s in 0.001s
2023-03-15 07:17:46 (37.4 MB/s) - ‘patch-6.2-rt3.patch.xz’ saved [35996/35996]
igloo-l380 /usr/src/linux # xz -d patch-6.2-rt3.patch.xz
igloo-l380 /usr/src/linux # patch -p1 -i patch-6.2-rt3.patch
patching file arch/arm/Kconfig
patching file arch/arm/include/asm/thread_info.h
patching file arch/arm/kernel/asm-offsets.c
patching file arch/arm/kernel/entry-armv.S
patching file arch/arm/kernel/signal.c
patching file arch/arm/mm/fault.c
patching file arch/arm64/Kconfig
Hunk #2 succeeded at 203 (offset -1 lines).
patching file arch/arm64/include/asm/preempt.h
patching file arch/arm64/include/asm/thread_info.h
patching file arch/arm64/kernel/asm-offsets.c
patching file arch/arm64/kernel/signal.c
patching file arch/powerpc/Kconfig
patching file arch/powerpc/include/asm/stackprotector.h
patching file arch/powerpc/include/asm/thread_info.h
patching file arch/powerpc/kernel/interrupt.c
patching file arch/powerpc/kernel/traps.c
patching file arch/powerpc/kvm/Kconfig
patching file arch/powerpc/platforms/pseries/iommu.c
patching file arch/x86/Kconfig
patching file arch/x86/include/asm/preempt.h
patching file arch/x86/include/asm/thread_info.h
patching file drivers/block/zram/zram_drv.c
patching file drivers/block/zram/zram_drv.h
patching file drivers/char/tpm/tpm_tis.c
patching file drivers/gpu/drm/i915/Kconfig
patching file drivers/gpu/drm/i915/display/intel_crtc.c
patching file drivers/gpu/drm/i915/gt/intel_breadcrumbs.c
patching file drivers/gpu/drm/i915/gt/intel_execlists_submission.c
patching file drivers/gpu/drm/i915/i915_irq.c
patching file drivers/gpu/drm/i915/i915_request.c
patching file drivers/gpu/drm/i915/i915_trace.h
patching file drivers/gpu/drm/i915/i915_utils.h
patching file drivers/tty/serial/8250/8250.h
patching file drivers/tty/serial/8250/8250_aspeed_vuart.c
patching file drivers/tty/serial/8250/8250_bcm7271.c
patching file drivers/tty/serial/8250/8250_core.c
patching file drivers/tty/serial/8250/8250_exar.c
patching file drivers/tty/serial/8250/8250_fsl.c
patching file drivers/tty/serial/8250/8250_ingenic.c
patching file drivers/tty/serial/8250/8250_mtk.c
patching file drivers/tty/serial/8250/8250_omap.c
patching file drivers/tty/serial/8250/8250_port.c
patching file drivers/tty/serial/8250/Kconfig
patching file drivers/tty/serial/amba-pl011.c
patching file drivers/tty/serial/omap-serial.c
patching file drivers/tty/sysrq.c
patching file drivers/vdpa/vdpa_user/iova_domain.h
patching file include/linux/console.h
patching file include/linux/entry-common.h
patching file include/linux/interrupt.h
patching file include/linux/lockdep.h
patching file include/linux/netdevice.h
patching file include/linux/preempt.h
patching file include/linux/printk.h
patching file include/linux/sched.h
patching file include/linux/serial_8250.h
patching file include/linux/thread_info.h
patching file include/linux/trace_events.h
patching file include/linux/u64_stats_sync.h
patching file init/Kconfig
patching file kernel/Kconfig.preempt
patching file kernel/entry/common.c
patching file kernel/hung_task.c
patching file kernel/ksysfs.c
patching file kernel/panic.c
Hunk #1 succeeded at 323 (offset 22 lines).
Hunk #2 succeeded at 339 (offset 22 lines).
Hunk #3 FAILED at 345.
Hunk #4 FAILED at 352.
Hunk #5 succeeded at 658 (offset 9 lines).
Hunk #6 succeeded at 688 (offset 9 lines).
2 out of 6 hunks FAILED -- saving rejects to file kernel/panic.c.rej
patching file kernel/printk/internal.h
patching file kernel/printk/printk.c
patching file kernel/printk/printk_safe.c
patching file kernel/rcu/rcutorture.c
patching file kernel/rcu/tree_stall.h
patching file kernel/reboot.c
patching file kernel/sched/core.c
patching file kernel/sched/fair.c
patching file kernel/sched/features.h
patching file kernel/sched/sched.h
patching file kernel/signal.c
patching file kernel/softirq.c
patching file kernel/time/hrtimer.c
patching file kernel/time/tick-sched.c
patching file kernel/time/timer.c
patching file kernel/trace/trace.c
patching file kernel/trace/trace_events.c
patching file kernel/trace/trace_output.c
patching file kernel/watchdog.c
patching file kernel/watchdog_hld.c
patching file localversion-rt
patching file net/core/dev.c
Hunk #1 succeeded at 4569 (offset 2 lines).
Hunk #2 succeeded at 6620 (offset 2 lines).
Hunk #3 succeeded at 11413 (offset 2 lines).
patching file net/core/skbuff.c
igloo-l380 /usr/src/linux # cat kernel/panic.c.rej
--- kernel/panic.c
+++ kernel/panic.c
@@ -345,6 +349,7 @@ void panic(const char *fmt, ...)
* unfortunately means it may not be hardened to work in a
* panic situation.
*/
+ try_block_console_kthreads(10000);
smp_send_stop();
} else {
/*
@@ -352,6 +357,7 @@ void panic(const char *fmt, ...)
* kmsg_dump, we will need architecture dependent extra
* works in addition to stopping other CPUs.
*/
+ try_block_console_kthreads(10000);
crash_smp_send_stop();
}
igloo-l380 /usr/src/linux # pluma kernel/panic.c
igloo-l380 /usr/src/linux # wget --recursive --no-parent https://dev.gentoo.org/~mpagano/genpatches/trunk/6.2/
igloo-l380 /usr/src/linux # ls dev.gentoo.org/~mpagano/genpatches/trunk/6.2/
0000_README 3000_Support-printing-firmware-info.patch
1000_linux-6.2.1.patch 4567_distro-Gentoo-Kconfig.patch
1001_linux-6.2.2.patch 5010_enable-cpu-optimizations-universal.patch
1002_linux-6.2.3.patch 5020_BMQ-and-PDS-io-scheduler-v6.2-r0.patch
1003_linux-6.2.4.patch 5021_BMQ-and-PDS-gentoo-defaults.patch
1004_linux-6.2.5.patch index.html
1005_linux-6.2.6.patch 'index.html?C=D;O=A'
1500_XATTR_USER_PREFIX.patch 'index.html?C=D;O=D'
1510_fs-enable-link-security-restrictions-by-default.patch 'index.html?C=M;O=A'
1700_sparc-address-warray-bound-warnings.patch 'index.html?C=M;O=D'
2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch 'index.html?C=N;O=A'
2900_tmp513-Fix-build-issue-by-selecting-CONFIG_REG.patch 'index.html?C=N;O=D'
2910_bfp-mark-get-entry-ip-as--maybe-unused.patch 'index.html?C=S;O=A'
2920_sign-file-patch-for-libressl.patch 'index.html?C=S;O=D'
igloo-l380 /usr/src/linux # patch -p1 -i dev.gentoo.org/~mpagano/genpatches/trunk/6.2/1500_XATTR_USER_PREFIX.patch
patching file include/uapi/linux/xattr.h
patching file mm/shmem.c
Hunk #1 succeeded at 3309 (offset 12 lines).
Hunk #2 succeeded at 3332 (offset 12 lines).
Hunk #3 succeeded at 3351 (offset 12 lines).
igloo-l380 /usr/src/linux # patch -p1 -i dev.gentoo.org/~mpagano/genpatches/trunk/6.2/1510_fs-enable-link-security-restrictions-by-default.patch
patching file fs/namei.c
Hunk #1 succeeded at 1022 (offset 2 lines).
igloo-l380 /usr/src/linux # patch -p1 -i dev.gentoo.org/~mpagano/genpatches/trunk/6.2/1700_sparc-address-warray-bound-warnings.patch
patching file arch/sparc/mm/init_64.c
Hunk #1 succeeded at 3054 (offset 2 lines).
igloo-l380 /usr/src/linux # patch -p1 -i dev.gentoo.org/~mpagano/genpatches/trunk/6.2/2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch
patching file net/bluetooth/hci_conn.c
Hunk #1 succeeded at 2218 with fuzz 1 (offset 946 lines).
igloo-l380 /usr/src/linux # patch -p1 -i dev.gentoo.org/~mpagano/genpatches/trunk/6.2/2900_tmp513-Fix-build-issue-by-selecting-CONFIG_REG.patch
patching file drivers/hwmon/Kconfig
Hunk #1 succeeded at 2120 (offset 351 lines).
igloo-l380 /usr/src/linux # patch -p1 -i dev.gentoo.org/~mpagano/genpatches/trunk/6.2/2910_bfp-mark-get-entry-ip-as--maybe-unused.patch
patching file kernel/trace/bpf_trace.c
Hunk #1 succeeded at 1036 (offset 9 lines).
igloo-l380 /usr/src/linux # patch -p1 -i dev.gentoo.org/~mpagano/genpatches/trunk/6.2/2920_sign-file-patch-for-libressl.patch
patching file scripts/sign-file.c
Hunk #1 succeeded at 48 (offset 7 lines).
igloo-l380 /usr/src/linux # patch -p1 -i dev.gentoo.org/~mpagano/genpatches/trunk/6.2/3000_Support-printing-firmware-info.patch
patching file drivers/base/firmware_loader/main.c
Hunk #1 succeeded at 813 (offset 4 lines).
igloo-l380 /usr/src/linux # patch -p1 -i dev.gentoo.org/~mpagano/genpatches/trunk/6.2/4567_distro-Gentoo-Kconfig.patch
patching file Kconfig
patching file distro/Kconfig
patching file security/selinux/Kconfig
patching file mm/Kconfig
Hunk #1 succeeded at 688 (offset 367 lines).
igloo-l380 /usr/src/linux # patch -p1 -i dev.gentoo.org/~mpagano/genpatches/trunk/6.2/5010_enable-cpu-optimizations-universal.patch
patching file arch/x86/Kconfig.cpu
patching file arch/x86/Makefile
patching file arch/x86/include/asm/vermagic.h
igloo-l380 /usr/src/linux # cp /home/javashin/Desktop/CachyOS\ kernel-patches\ master\ 6.2-6.zip .
igloo-l380 /usr/src/linux # unzip CachyOS\ kernel-patches\ master\ 6.2-6.zip
Archive: CachyOS kernel-patches master 6.2-6.zip
creating: misc/
extracting: misc/0001-Add-latency-priority-for-CFS-class.patch
extracting: 0012-objtool.patch
extracting: 0002-bfq.patch
extracting: 0008-Implement-amd-pstate-epp-and-amd-pstate-guided-drive.patch
extracting: 0013-sched.patch
extracting: misc/0001-Introduce-per-VMA-lock.patch
extracting: 0016-v4l2-core-add-v4l2loopback.patch
extracting: 0011-mm-kvm-lockless-accessed-bit-harvest.patch
extracting: 0009-ksm.patch
extracting: 0014-zram.patch
extracting: misc/0001-amd_pstate-Add-guided-autonomous-mode-support.patch
extracting: 0003-bitmap.patch
extracting: 0010-maple-lru.patch
extracting: misc/0001-bore-tuning-sysctl.patch
extracting: misc/0001-sched-fair-Avoid-unnecessary-migrations-within-SMT-d.patch
extracting: 0005-clr.patch
creating: misc/gcc-lto/
extracting: misc/gcc-lto/0002-gcc-lto-no-pie.patch
extracting: misc/0002-sched-Introduce-classes-of-tasks-for-load-balance.patch
creating: sched/
extracting: sched/0001-bore-cachy.patch
extracting: sched/0001-EEVDF.patch
extracting: sched/0001-bore-eevdf.patch
extracting: misc/0001-Per-VMA-locks.patch
extracting: sched/0001-bore.patch
extracting: 0004-cachy.patch
extracting: misc/gcc-lto/0001-gcc-LTO-support-for-the-kernel.patch
extracting: 0001-bbr2.patch
extracting: misc/0001-rt.patch
extracting: 0006-fixes.patch
extracting: 0007-fs-patches.patch
extracting: sched/0001-tt-cachy.patch
extracting: sched/0001-tt.patch
extracting: misc/0001-lrng.patch
extracting: 0015-zstd-import-v1.5.4.patch
extracting: sched/0001-prjc.patch
extracting: sched/0001-prjc-cachy.patch
extracting: misc/0001-aufs-6.2-merge-v20230227.patch
creating: all/
extracting: all/0001-cachyos-base-all.patch
extracting: misc/0001-bcachefs.patch
igloo-l380 /usr/src/linux # ls
0001-bbr2.patch Documentation ipc
0002-bfq.patch Kbuild kernel
0003-bitmap.patch Kconfig lib
0004-cachy.patch LICENSES localversion-rt
0005-clr.patch MAINTAINERS misc
0006-fixes.patch Makefile mm
0007-fs-patches.patch README net
0008-Implement-amd-pstate-epp-and-amd-pstate-guided-drive.patch all patch-6.2-rt3.patch
0009-ksm.patch arch rust
0010-maple-lru.patch block samples
0011-mm-kvm-lockless-accessed-bit-harvest.patch certs sched
0012-objtool.patch crypto scripts
0013-sched.patch dev.gentoo.org security
0014-zram.patch distro sound
0015-zstd-import-v1.5.4.patch drivers tools
0016-v4l2-core-add-v4l2loopback.patch fs usr
COPYING include virt
CREDITS init
'CachyOS kernel-patches master 6.2-6.zip' io_uring
igloo-l380 /usr/src/linux # patch -p1 -i 0001-bbr2.patch
patching file include/linux/tcp.h
patching file include/net/inet_connection_sock.h
patching file include/net/tcp.h
patching file include/uapi/linux/inet_diag.h
patching file net/ipv4/Kconfig
patching file net/ipv4/Makefile
patching file net/ipv4/tcp.c
patching file net/ipv4/tcp_bbr.c
patching file net/ipv4/tcp_bbr2.c
patching file net/ipv4/tcp_cong.c
patching file net/ipv4/tcp_input.c
patching file net/ipv4/tcp_output.c
patching file net/ipv4/tcp_rate.c
patching file net/ipv4/tcp_timer.c
igloo-l380 /usr/src/linux # patch -p1 -i 0002-bfq.patch
patching file block/bfq-cgroup.c
patching file block/bfq-iosched.c
patching file block/bfq-iosched.h
patching file block/bfq-wf2q.c
patching file block/blk-cgroup.c
patching file block/blk-cgroup.h
patching file block/blk-iocost.c
patching file block/blk-iolatency.c
patching file block/blk-rq-qos.h
patching file block/blk-throttle.c
patching file block/blk.h
igloo-l380 /usr/src/linux # patch -p1 -i 0005-clr.patch
patching file arch/x86/kernel/tsc.c
patching file arch/x86/mm/fault.c
patching file drivers/cpufreq/intel_pstate.c
patching file drivers/idle/intel_idle.c
patching file drivers/input/serio/i8042.c
patching file drivers/net/dummy.c
patching file drivers/pci/pci.c
patching file drivers/powercap/intel_rapl_common.c
patching file drivers/thermal/intel/intel_powerclamp.c
patching file fs/xattr.c
patching file include/linux/jbd2.h
patching file include/linux/rcuref.h
patching file include/linux/types.h
patching file include/linux/wait.h
patching file include/net/dst.h
patching file include/net/sock.h
patching file include/uapi/linux/if_bonding.h
patching file init/do_mounts.c
patching file kernel/locking/rwsem.c
patching file kernel/sched/wait.c
patching file kernel/watchdog.c
patching file lib/Makefile
patching file lib/raid6/algos.c
patching file lib/rcuref.c
patching file mm/ksm.c
patching file net/bridge/br_nf_core.c
patching file net/core/dst.c
patching file net/core/rtnetlink.c
patching file net/ipv4/inet_connection_sock.c
patching file net/ipv4/tcp.c
patching file net/ipv6/route.c
patching file net/netfilter/ipvs/ip_vs_xmit.c
igloo-l380 /usr/src/linux # patch -p1 -i 0009-ksm.patch
patching file arch/alpha/kernel/syscalls/syscall.tbl
patching file arch/arm/tools/syscall.tbl
patching file arch/arm64/include/asm/unistd.h
patching file arch/arm64/include/asm/unistd32.h
patching file arch/ia64/kernel/syscalls/syscall.tbl
patching file arch/m68k/kernel/syscalls/syscall.tbl
patching file arch/microblaze/kernel/syscalls/syscall.tbl
patching file arch/mips/kernel/syscalls/syscall_n32.tbl
patching file arch/mips/kernel/syscalls/syscall_n64.tbl
patching file arch/mips/kernel/syscalls/syscall_o32.tbl
patching file arch/parisc/kernel/syscalls/syscall.tbl
patching file arch/powerpc/kernel/syscalls/syscall.tbl
patching file arch/s390/kernel/syscalls/syscall.tbl
patching file arch/sh/kernel/syscalls/syscall.tbl
patching file arch/sparc/kernel/syscalls/syscall.tbl
patching file arch/x86/entry/syscalls/syscall_32.tbl
patching file arch/x86/entry/syscalls/syscall_64.tbl
patching file arch/xtensa/kernel/syscalls/syscall.tbl
patching file include/linux/ksm.h
patching file include/linux/syscalls.h
patching file include/uapi/asm-generic/unistd.h
patching file kernel/sys_ni.c
patching file mm/ksm.c
Hunk #1 succeeded at 2470 (offset -112 lines).
patching file mm/madvise.c
igloo-l380 /usr/src/linux # patch -p1 -i 0014-zram.patch
patching file Documentation/admin-guide/blockdev/zram.rst
patching file drivers/block/zram/zram_drv.c
Hunk #2 FAILED at 60.
Hunk #3 succeeded at 1178 (offset 35 lines).
Hunk #4 succeeded at 1222 (offset 35 lines).
Hunk #5 succeeded at 1285 (offset 35 lines).
Hunk #6 succeeded at 1294 (offset 35 lines).
Hunk #7 succeeded at 1346 (offset 35 lines).
Hunk #8 succeeded at 1630 (offset 36 lines).
Hunk #9 succeeded at 1668 (offset 36 lines).
Hunk #10 succeeded at 2152 (offset 36 lines).
Hunk #11 succeeded at 2237 (offset 36 lines).
Hunk #12 succeeded at 2624 (offset 36 lines).
Hunk #13 succeeded at 2665 (offset 36 lines).
Hunk #14 succeeded at 2752 (offset 36 lines).
1 out of 14 hunks FAILED -- saving rejects to file drivers/block/zram/zram_drv.c.rej
patching file drivers/block/zram/zram_drv.h
Hunk #2 succeeded at 91 (offset 3 lines).
Hunk #3 succeeded at 145 (offset 3 lines).
igloo-l380 /usr/src/linux # cat drivers/block/zram/zram_drv.c.rej
--- drivers/block/zram/zram_drv.c
+++ drivers/block/zram/zram_drv.c
@@ -60,6 +63,16 @@ static void zram_free_page(struct zram *zram, size_t index);
static int zram_bvec_read(struct zram *zram, struct bio_vec *bvec,
u32 index, int offset, struct bio *bio);
+struct zram_rbtree_node {
+ struct rb_node node;
+ unsigned long key;
+ unsigned long cnt;
+};
+
+struct zram_hash_node {
+ unsigned long index;
+ struct hlist_node next;
+};
static int zram_slot_trylock(struct zram *zram, u32 index)
{
igloo-l380 /usr/src/linux # pluma drivers/block/zram/zram_drv.c
igloo-l380 /usr/src/linux # patch -p1 -i 0015-zstd-import-v1.5.4.patch
patching file include/linux/zstd.h
patching file include/linux/zstd_errors.h
patching file include/linux/zstd_lib.h
patching file lib/zstd/Makefile
patching file lib/zstd/common/bits.h
patching file lib/zstd/common/bitstream.h
patching file lib/zstd/common/compiler.h
patching file lib/zstd/common/cpu.h
patching file lib/zstd/common/debug.c
patching file lib/zstd/common/debug.h
patching file lib/zstd/common/entropy_common.c
patching file lib/zstd/common/error_private.c
patching file lib/zstd/common/error_private.h
patching file lib/zstd/common/fse.h
patching file lib/zstd/common/fse_decompress.c
patching file lib/zstd/common/huf.h
patching file lib/zstd/common/mem.h
patching file lib/zstd/common/portability_macros.h
patching file lib/zstd/common/zstd_common.c
patching file lib/zstd/common/zstd_deps.h
patching file lib/zstd/common/zstd_internal.h
patching file lib/zstd/compress/clevels.h
patching file lib/zstd/compress/fse_compress.c
patching file lib/zstd/compress/hist.c
patching file lib/zstd/compress/hist.h
patching file lib/zstd/compress/huf_compress.c
patching file lib/zstd/compress/zstd_compress.c
patching file lib/zstd/compress/zstd_compress_internal.h
patching file lib/zstd/compress/zstd_compress_literals.c
patching file lib/zstd/compress/zstd_compress_literals.h
patching file lib/zstd/compress/zstd_compress_sequences.c
patching file lib/zstd/compress/zstd_compress_sequences.h
patching file lib/zstd/compress/zstd_compress_superblock.c
patching file lib/zstd/compress/zstd_compress_superblock.h
patching file lib/zstd/compress/zstd_cwksp.h
patching file lib/zstd/compress/zstd_double_fast.c
patching file lib/zstd/compress/zstd_double_fast.h
patching file lib/zstd/compress/zstd_fast.c
patching file lib/zstd/compress/zstd_fast.h
patching file lib/zstd/compress/zstd_lazy.c
patching file lib/zstd/compress/zstd_lazy.h
patching file lib/zstd/compress/zstd_ldm.c
patching file lib/zstd/compress/zstd_ldm.h
patching file lib/zstd/compress/zstd_ldm_geartab.h
patching file lib/zstd/compress/zstd_opt.c
patching file lib/zstd/compress/zstd_opt.h
patching file lib/zstd/decompress/huf_decompress.c
Hunk #27 FAILED at 1069.
1 out of 37 hunks FAILED -- saving rejects to file lib/zstd/decompress/huf_decompress.c.rej
patching file lib/zstd/decompress/zstd_ddict.c
patching file lib/zstd/decompress/zstd_ddict.h
patching file lib/zstd/decompress/zstd_decompress.c
patching file lib/zstd/decompress/zstd_decompress_block.c
patching file lib/zstd/decompress/zstd_decompress_block.h
patching file lib/zstd/decompress/zstd_decompress_internal.h
patching file lib/zstd/decompress_sources.h
patching file lib/zstd/zstd_common_module.c
patching file lib/zstd/zstd_compress_module.c
patching file lib/zstd/zstd_decompress_module.c
igloo-l380 /usr/src/linux # cat lib/zstd/decompress/huf_decompress.c.rej
--- lib/zstd/decompress/huf_decompress.c
+++ lib/zstd/decompress/huf_decompress.c
@@ -1069,7 +1153,7 @@ static void HUF_fillDTableX2Level2(HUF_DEltX2* DTable, U32 targetLog, const U32
static void HUF_fillDTableX2(HUF_DEltX2* DTable, const U32 targetLog,
const sortedSymbol_t* sortedList,
- const U32* rankStart, rankValCol_t *rankValOrigin, const U32 maxWeight,
+ const U32* rankStart, rankValCol_t* rankValOrigin, const U32 maxWeight,
const U32 nbBitsBaseline)
{
U32* const rankVal = rankValOrigin[0];
igloo-l380 /usr/src/linux # pluma lib/zstd/decompress/huf_decompress.c
igloo-l380 /usr/src/linux # patch -p1 -i 0003-bitmap.patch
patching file include/linux/bitmap.h
patching file include/linux/cpumask.h
patching file include/linux/find.h
patching file include/linux/nodemask.h
igloo-l380 /usr/src/linux # patch -p1 -i 0007-fs-patches.patch
patching file Documentation/admin-guide/xfs.rst
patching file block/blk-merge.c
patching file fs/btrfs/Makefile
patching file fs/btrfs/backref.c
patching file fs/btrfs/bio.c
patching file fs/btrfs/bio.h
patching file fs/btrfs/block-group.c
patching file fs/btrfs/block-group.h
patching file fs/btrfs/btrfs_inode.h
patching file fs/btrfs/compression.c
patching file fs/btrfs/compression.h
patching file fs/btrfs/ctree.c
patching file fs/btrfs/ctree.h
patching file fs/btrfs/defrag.c
patching file fs/btrfs/delayed-ref.c
patching file fs/btrfs/delayed-ref.h
patching file fs/btrfs/disk-io.c
patching file fs/btrfs/disk-io.h
patching file fs/btrfs/extent-io-tree.c
patching file fs/btrfs/extent-io-tree.h
patching file fs/btrfs/extent-tree.c
patching file fs/btrfs/extent-tree.h
patching file fs/btrfs/extent_io.c
patching file fs/btrfs/extent_io.h
patching file fs/btrfs/file-item.c
patching file fs/btrfs/file-item.h
patching file fs/btrfs/file.c
patching file fs/btrfs/free-space-tree.c
patching file fs/btrfs/fs.h
patching file fs/btrfs/inode.c
patching file fs/btrfs/ioctl.c
patching file fs/btrfs/lru_cache.c
patching file fs/btrfs/lru_cache.h
patching file fs/btrfs/lzo.c
patching file fs/btrfs/messages.c
patching file fs/btrfs/messages.h
patching file fs/btrfs/ordered-data.c
patching file fs/btrfs/ordered-data.h
patching file fs/btrfs/qgroup.c
patching file fs/btrfs/raid56.c
patching file fs/btrfs/raid56.h
patching file fs/btrfs/relocation.c
patching file fs/btrfs/scrub.c
patching file fs/btrfs/send.c
patching file fs/btrfs/super.c
patching file fs/btrfs/sysfs.c
patching file fs/btrfs/tests/extent-map-tests.c
patching file fs/btrfs/transaction.c
patching file fs/btrfs/transaction.h
patching file fs/btrfs/tree-log.c
patching file fs/btrfs/tree-log.h
patching file fs/btrfs/volumes.c
patching file fs/btrfs/volumes.h
patching file fs/btrfs/zoned.c
patching file fs/btrfs/zoned.h
patching file fs/ext4/extents.c
patching file fs/ext4/file.c
patching file fs/ext4/inode.c
patching file fs/ext4/ioctl.c
patching file fs/ext4/namei.c
patching file fs/ext4/page-io.c
patching file fs/ext4/super.c
patching file fs/ext4/xattr.c
patching file fs/gfs2/bmap.c
patching file fs/iomap/buffered-io.c
patching file fs/iomap/direct-io.c
patching file fs/xfs/libxfs/xfs_alloc.c
patching file fs/xfs/libxfs/xfs_bmap.c
patching file fs/xfs/libxfs/xfs_bmap.h
patching file fs/xfs/libxfs/xfs_btree.c
patching file fs/xfs/libxfs/xfs_refcount.c
patching file fs/xfs/libxfs/xfs_refcount.h
patching file fs/xfs/libxfs/xfs_rmap.c
patching file fs/xfs/libxfs/xfs_rmap.h
patching file fs/xfs/xfs_bmap_item.c
patching file fs/xfs/xfs_error.c
patching file fs/xfs/xfs_error.h
patching file fs/xfs/xfs_extfree_item.c
patching file fs/xfs/xfs_fsmap.c
patching file fs/xfs/xfs_globals.c
patching file fs/xfs/xfs_iomap.c
patching file fs/xfs/xfs_refcount_item.c
patching file fs/xfs/xfs_rmap_item.c
patching file fs/xfs/xfs_sysfs.c
patching file fs/xfs/xfs_sysfs.h
patching file fs/xfs/xfs_trace.h
patching file include/linux/bio.h
patching file include/linux/iomap.h
patching file include/trace/events/btrfs.h
patching file include/trace/events/ext4.h
igloo-l380 /usr/src/linux # patch -p1 -i 0010-maple-lru.patch
patching file Documentation/mm/multigen_lru.rst
patching file include/linux/fs.h
patching file include/linux/maple_tree.h
patching file include/linux/memcontrol.h
patching file include/linux/mm_inline.h
patching file include/linux/mmzone.h
patching file lib/maple_tree.c
patching file mm/fadvise.c
patching file mm/memcontrol.c
patching file mm/memory.c
patching file mm/page_alloc.c
Hunk #1 succeeded at 7929 (offset -14 lines).
patching file mm/rmap.c
patching file mm/vmscan.c
Hunk #3 succeeded at 445 (offset -4 lines).
Hunk #4 succeeded at 500 (offset -4 lines).
Hunk #5 succeeded at 3186 (offset -4 lines).
Hunk #6 succeeded at 3214 (offset -4 lines).
Hunk #7 succeeded at 3231 (offset -4 lines).
Hunk #8 succeeded at 3448 (offset -4 lines).
Hunk #9 succeeded at 3604 (offset -4 lines).
Hunk #10 succeeded at 3635 (offset -4 lines).
Hunk #11 succeeded at 3650 (offset -4 lines).
Hunk #12 succeeded at 3727 (offset -4 lines).
Hunk #13 succeeded at 3772 (offset -4 lines).
Hunk #14 succeeded at 3805 (offset -4 lines).
Hunk #15 succeeded at 4003 (offset -4 lines).
Hunk #16 succeeded at 4017 (offset -4 lines).
Hunk #17 succeeded at 4040 (offset -4 lines).
Hunk #18 succeeded at 4078 (offset -4 lines).
Hunk #19 succeeded at 4095 (offset -4 lines).
Hunk #20 succeeded at 4136 (offset -4 lines).
Hunk #21 succeeded at 4163 (offset -4 lines).
Hunk #22 succeeded at 4253 (offset -4 lines).
Hunk #23 succeeded at 4261 (offset -4 lines).
Hunk #24 succeeded at 4289 (offset -4 lines).
Hunk #25 succeeded at 4297 (offset -4 lines).
Hunk #26 succeeded at 4308 (offset -4 lines).
Hunk #27 succeeded at 4325 (offset -4 lines).
Hunk #28 succeeded at 4336 (offset -4 lines).
Hunk #29 succeeded at 4346 (offset -4 lines).
Hunk #30 succeeded at 4368 (offset -4 lines).
Hunk #31 succeeded at 4426 (offset -4 lines).
Hunk #32 succeeded at 4442 (offset -4 lines).
Hunk #33 succeeded at 4470 (offset -4 lines).
Hunk #34 succeeded at 4483 (offset -4 lines).
Hunk #35 succeeded at 4541 (offset -8 lines).
Hunk #36 succeeded at 4577 (offset -8 lines).
Hunk #37 succeeded at 4591 (offset -8 lines).
Hunk #38 succeeded at 4613 (offset -8 lines).
Hunk #39 succeeded at 4659 (offset -8 lines).
Hunk #40 succeeded at 4837 (offset -8 lines).
Hunk #41 succeeded at 4862 (offset -8 lines).
Hunk #42 succeeded at 4871 (offset -8 lines).
Hunk #43 succeeded at 4883 (offset -8 lines).
Hunk #44 succeeded at 4894 (offset -8 lines).
Hunk #45 succeeded at 4933 (offset -8 lines).
Hunk #46 succeeded at 4946 (offset -8 lines).
Hunk #47 succeeded at 4992 (offset -8 lines).
Hunk #48 succeeded at 5088 (offset -8 lines).
Hunk #49 succeeded at 5177 (offset -8 lines).
Hunk #50 succeeded at 5527 (offset -8 lines).
Hunk #51 succeeded at 5540 (offset -8 lines).
Hunk #52 succeeded at 5585 (offset -8 lines).
Hunk #53 succeeded at 5663 (offset -8 lines).
Hunk #54 succeeded at 5682 (offset -8 lines).
Hunk #55 succeeded at 5701 (offset -8 lines).
Hunk #56 succeeded at 5728 (offset -8 lines).
Hunk #57 succeeded at 5736 (offset -8 lines).
Hunk #58 succeeded at 5802 (offset -8 lines).
Hunk #59 succeeded at 5852 (offset -8 lines).
Hunk #60 succeeded at 5949 (offset -8 lines).
Hunk #61 succeeded at 5970 (offset -8 lines).
Hunk #62 succeeded at 6034 (offset -8 lines).
Hunk #63 succeeded at 6106 (offset -8 lines).
Hunk #64 succeeded at 6115 (offset -8 lines).
Hunk #65 succeeded at 6146 (offset -8 lines).
Hunk #66 succeeded at 6191 (offset -8 lines).
Hunk #67 succeeded at 6208 (offset -8 lines).
Hunk #68 succeeded at 6451 (offset -8 lines).
patching file mm/workingset.c
patching file tools/testing/radix-tree/maple.c
igloo-l380 /usr/src/linux # patch -p1 -i 0011-mm-kvm-lockless-accessed-bit-harvest.patch
patching file arch/arm64/include/asm/kvm_host.h
patching file arch/arm64/include/asm/kvm_pgtable.h
patching file arch/arm64/include/asm/stage2_pgtable.h
patching file arch/arm64/kvm/arm.c
patching file arch/arm64/kvm/hyp/pgtable.c
patching file arch/arm64/kvm/mmu.c
patching file arch/powerpc/include/asm/kvm_host.h
patching file arch/powerpc/include/asm/kvm_ppc.h
patching file arch/powerpc/kvm/book3s.c
patching file arch/powerpc/kvm/book3s.h
patching file arch/powerpc/kvm/book3s_64_mmu_radix.c
patching file arch/powerpc/kvm/book3s_hv.c
patching file arch/x86/include/asm/kvm_host.h
patching file arch/x86/kvm/mmu/spte.h
patching file arch/x86/kvm/mmu/tdp_mmu.c
patching file include/linux/kvm_host.h
patching file include/linux/mmu_notifier.h
patching file include/linux/mmzone.h
patching file mm/mmu_notifier.c
patching file mm/rmap.c
patching file mm/vmscan.c
Hunk #2 succeeded at 3925 (offset -4 lines).
Hunk #3 succeeded at 3989 (offset -4 lines).
Hunk #4 succeeded at 4009 (offset -4 lines).
Hunk #5 succeeded at 4017 (offset -4 lines).
Hunk #6 succeeded at 4642 (offset -8 lines).
Hunk #7 succeeded at 4667 (offset -8 lines).
Hunk #8 succeeded at 4688 (offset -8 lines).
Hunk #9 succeeded at 4700 (offset -8 lines).
Hunk #10 succeeded at 4716 (offset -8 lines).
Hunk #11 succeeded at 4776 (offset -8 lines).
Hunk #12 succeeded at 5795 (offset -8 lines).
patching file virt/kvm/kvm_main.c
igloo-l380 /usr/src/linux # rm -rf *.patch kernel/panic.c.rej drivers/block/zram/zram_drv.c.rej lib/zstd/decompress/huf_decompress.c.rej dev.gentoo.org all misc sched kernel/panic.c.orig drivers/block/zram/zram_drv.c.orig lib/zstd/decompress/huf_decompress.c.orig
igloo-l380 /usr/src/linux # nano kernel/Kconfig.preempt
igloo-l380 /usr/src/linux # rm localversion-rt
igloo-l380 /usr/src/linux # touch localversion-rt
igloo-l380 /usr/src/linux # nano Makefile
igloo-l380 /usr/src/linux # nano init/Makefile
export KBUILD_BUILD_VERSION=1
export KBUILD_BUILD_USER=javashin
export KBUILD_BUILD_HOST=igloo
export CC="clang"
export CXX="clang++"
export LD="ld.lld"
export AR="llvm-ar"
export AS="clang"
export NM="llvm-nm"
export RANLIB="llvm-ranlib"
export STRIP="llvm-strip"
export OBJCOPY="llvm-objcopy"
export OBJDUMP="llvm-objdump"
export HOSTCC="clang"
export HOSTLD="ld.lld"
export HOSTAR="llvm-ar"
export CFLAGS="-O3 -march=native -fno-stack-protector -fomit-frame-pointer -fno-strict-aliasing -pipe"
export CXXFLAGS="${CFLAGS}"
export FCFLAGS="${CFLAGS}"
export FFLAGS="${CFLAGS}"
export CPPFLAGS="${CFLAGS}"
export KCFLAGS="-march=native -O3 -fno-stack-protector -fno-strict-aliasing -pipe"
export LDFLAGS="-Wl,-O2 -Wl,--as-needed,-z,now -fuse-ld=lld -Wl,--hash-style=gnu"
zcat /proc/config.gz > /usr/src/linux/arch/x86/configs/x86_64_defconfig
make -j$(nproc --all) LLVM=1 LLVM_IAS=1 x86_64_defconfig oldconfig savedefconfig prepare bzImage modules install modules_install headers_install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment