Skip to content

rust: Enable KCFI support #1034

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1,087 commits into
base: rust-next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 42 commits
Commits
Show all changes
1087 commits
Select commit Hold shift + click to select a range
1aee4ab
zswap: export compression failure stats
nhatsmrt Oct 24, 2023
0343b77
mm/vmalloc: fix the unchecked dereference warning in vread_iter()
Oct 18, 2023
50b37e1
Documentation: maple_tree: fix word spelling error
Oct 23, 2023
dc1c309
selftests: add a sanity check for zswap
nhatsmrt Oct 20, 2023
b569721
ocfs2: replace BUG_ON() at ocfs2_num_free_extents() with ocfs2_error()
Oct 18, 2023
7de8447
do_io_accounting: use __for_each_thread()
oleg-nesterov Oct 23, 2023
a91fa00
do_io_accounting: use sig->stats_lock
oleg-nesterov Oct 23, 2023
0dbee63
fs/proc/base.c: remove unneeded semicolon
Oct 26, 2023
29d92d4
proc: fix proc-empty-vm test with vsyscall
Oct 27, 2023
c969e28
proc: test ProtectionKey in proc-empty-vm test
swarupkotikalapudi Oct 27, 2023
0bbd896
ocfs2: fix a spelling typo in comment
KunWuChan Oct 25, 2023
d431880
scripts/gdb: add lx_current support for riscv
deepak0414 Oct 26, 2023
44c9217
Merge branch 'mm-nonmm-unstable' into mm-everything
akpm00 Oct 28, 2023
e100c36
Merge branch 'for-6.7/cxl-rch-eh' into cxl/next
djbw Oct 28, 2023
9f39bd0
Merge branch 'for-6.7/cxl-qtg' into cxl/next
djbw Oct 28, 2023
553ceb4
Merge branch 'for-6.7/cxl' into cxl/next
djbw Oct 28, 2023
2630b39
Merge branch 'for-6.7/cxl-committed' into cxl/next
djbw Oct 28, 2023
ecaf76f
Merge branch 'perf/urgent' into perf/core, to pick up fix
Oct 28, 2023
11674c3
Merge branch into tip/master: 'irq/urgent'
Oct 28, 2023
0b504a9
Merge branch into tip/master: 'perf/urgent'
Oct 28, 2023
4c4e860
Merge branch into tip/master: 'x86/urgent'
Oct 28, 2023
41928f5
Merge branch into tip/master: 'x86/merge'
Oct 28, 2023
b080166
Merge branch into tip/master: 'core/core'
Oct 28, 2023
4df9fee
Merge branch into tip/master: 'irq/core'
Oct 28, 2023
238e21e
Merge branch into tip/master: 'locking/core'
Oct 28, 2023
fde9da6
Merge branch into tip/master: 'objtool/core'
Oct 28, 2023
7c20760
Merge branch into tip/master: 'ras/core'
Oct 28, 2023
6cb2fc2
Merge branch into tip/master: 'sched/core'
Oct 28, 2023
d19f50c
Merge branch into tip/master: 'smp/core'
Oct 28, 2023
374a276
Merge branch into tip/master: 'timers/core'
Oct 28, 2023
17d4fed
Merge branch into tip/master: 'x86/apic'
Oct 28, 2023
acdc692
Merge branch into tip/master: 'x86/asm'
Oct 28, 2023
631395a
Merge branch into tip/master: 'x86/bugs'
Oct 28, 2023
ea6c9cf
Merge branch into tip/master: 'x86/build'
Oct 28, 2023
51a0f1e
Merge branch into tip/master: 'x86/cache'
Oct 28, 2023
caf0ab8
Merge branch into tip/master: 'x86/cpu'
Oct 28, 2023
efceba9
Merge branch into tip/master: 'x86/entry'
Oct 28, 2023
886047f
Merge branch into tip/master: 'x86/fpu'
Oct 28, 2023
41c5e69
Merge branch into tip/master: 'x86/headers'
Oct 28, 2023
320e30a
Merge branch into tip/master: 'x86/irq'
Oct 28, 2023
26f55bb
Merge branch into tip/master: 'x86/microcode'
Oct 28, 2023
04b3b89
Merge branch into tip/master: 'x86/mm'
Oct 28, 2023
25e9b01
Merge branch into tip/master: 'x86/percpu'
Oct 28, 2023
ec3e2ac
Merge branch into tip/master: 'x86/platform'
Oct 28, 2023
1187c0b
Merge branch into tip/master: 'x86/tdx'
Oct 28, 2023
492f7c8
Merge branch 'i2c/for-mergewindow' into i2c/for-next
wsakernel Oct 28, 2023
bce3ab2
iio: common: ms_sensors: ms_sensors_i2c: fix humidity conversion time…
javiercarrascocruz Oct 26, 2023
522ea9d
hwmon: Add driver for ltc2991
amiclaus Oct 26, 2023
144c314
dt-bindings: hwmon: npcm: Add npcm845 compatible string
tmaimon Oct 18, 2023
a91c4af
hwmon: (aquacomputer_d5next) Add support for Aquacomputer High Flow U…
aleksamagicka Oct 16, 2023
8293a6b
hwmon: (aquacomputer_d5next) Check if temp sensors of legacy devices …
aleksamagicka Oct 16, 2023
1d3936f
smb3: fix creating FIFOs when mounting with "sfu" mount option
Oct 20, 2023
39543a5
smb: client: fix potential deadlock when releasing mids
Oct 25, 2023
948df36
smb: client: fix use-after-free bug in cifs_debug_data_proc_show()
Oct 24, 2023
f0fea94
cifs: update internal module version number for cifs.ko
Jul 20, 2023
cc02197
Merge branch 'mm-hotfixes-unstable' of git://git.kernel.org/pub/scm/l…
sfrothwell Oct 29, 2023
ca72f66
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/gi…
sfrothwell Oct 29, 2023
93dbf60
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
sfrothwell Oct 29, 2023
5b3479a
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
sfrothwell Oct 29, 2023
550472a
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
sfrothwell Oct 29, 2023
eb379d8
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
sfrothwell Oct 29, 2023
d321c8b
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
sfrothwell Oct 29, 2023
5890a57
Merge branch 'fixes-togreg' of git://git.kernel.org/pub/scm/linux/ker…
sfrothwell Oct 29, 2023
78bb567
Merge branch 'hwmon' of git://git.kernel.org/pub/scm/linux/kernel/git…
sfrothwell Oct 29, 2023
c2aac28
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git…
sfrothwell Oct 29, 2023
0fbf005
Merge branch 'next-fixes' of git://git.kernel.org/pub/scm/linux/kerne…
sfrothwell Oct 29, 2023
aa916bb
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git…
sfrothwell Oct 29, 2023
0920cf9
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git…
sfrothwell Oct 29, 2023
e3966f3
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git…
sfrothwell Oct 29, 2023
b6dab1f
Merge branch 'zstd-linus' of https://github.com/terrelln/linux.git
sfrothwell Oct 29, 2023
8ae6578
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git…
sfrothwell Oct 29, 2023
55bd4c6
Merge branch 'for-linux-next-fixes' of git://anongit.freedesktop.org/…
sfrothwell Oct 29, 2023
3cf88bd
Merge branch 'mm-stable' of git://git.kernel.org/pub/scm/linux/kernel…
sfrothwell Oct 29, 2023
43fe6cd
Merge branch 'mm-nonmm-stable' of git://git.kernel.org/pub/scm/linux/…
sfrothwell Oct 29, 2023
f8a91ae
Merge branch 'mm-everything' of git://git.kernel.org/pub/scm/linux/ke…
sfrothwell Oct 29, 2023
b871ee4
Merge branch 'i2c/for-mergewindow' into i2c/for-next
wsakernel Oct 29, 2023
216dca4
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
263db6a
Merge branch 'perf-tools-next' of git://git.kernel.org/pub/scm/linux/…
sfrothwell Oct 29, 2023
1edab09
Merge branch 'for-next' of git://git.infradead.org/users/hch/dma-mapp…
sfrothwell Oct 29, 2023
c19dc19
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/gi…
sfrothwell Oct 29, 2023
a5cbbe4
Merge branch 'for-next' of git://git.armlinux.org.uk/~rmk/linux-arm.git
sfrothwell Oct 29, 2023
6de6060
Merge branch 'for-next/core' of git://git.kernel.org/pub/scm/linux/ke…
sfrothwell Oct 29, 2023
e44d8ca
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
db9fb02
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
d929afa
Merge branch 'asahi-soc/for-next' of https://github.com/AsahiLinux/li…
sfrothwell Oct 29, 2023
98f2b7a
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
b118d81
Merge branch 'next' of https://github.com/Broadcom/stblinux.git
sfrothwell Oct 29, 2023
4f4d319
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
9d2d4f0
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
9fca894
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
895030c
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
331cfa6
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
1d98732
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…
sfrothwell Oct 29, 2023
bd1ae72
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
2c954e2
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
b00f77d
Merge branch 'for-linux-next' of git://git.kernel.org/pub/scm/linux/k…
sfrothwell Oct 29, 2023
5265827
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
856ced4
Merge branch 'ti-next' of git://git.kernel.org/pub/scm/linux/kernel/g…
sfrothwell Oct 29, 2023
f5f4e69
Merge branch 'for-next' of git://github.com/Xilinx/linux-xlnx.git
sfrothwell Oct 29, 2023
b0c0193
Merge branch 'clk-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
3324a6f
Merge branch 'loongarch-next' of git://git.kernel.org/pub/scm/linux/k…
sfrothwell Oct 29, 2023
f1d6d60
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
db3056c
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
c56f7f6
Merge branch 'mips-next' of git://git.kernel.org/pub/scm/linux/kernel…
sfrothwell Oct 29, 2023
5b40382
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
541aca2
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…
sfrothwell Oct 29, 2023
aab43b5
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
48c5b56
Merge branch 'riscv-dt-for-next' of git://git.kernel.org/pub/scm/linu…
sfrothwell Oct 29, 2023
5b33601
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
43f5414
Merge branch 'for-next' of git:git.kernel.org/pub/scm/linux/kernel/gi…
sfrothwell Oct 29, 2023
8c8315e
Merge branch 'xtensa-for-next' of git://github.com/jcmvbkbc/linux-xte…
sfrothwell Oct 29, 2023
c138d41
Merge branch 'for-next' of https://evilpiepirate.org/git/bcachefs.git
sfrothwell Oct 29, 2023
7bf7446
Merge branch 'for-next' of git://git.kernel.org/pub/scm/fs/fscrypt/li…
sfrothwell Oct 29, 2023
0f62e94
Merge branch 'afs-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
c06feb3
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
a49b55b
Merge branch 'for-next' of git://git.samba.org/sfrench/cifs-2.6.git
sfrothwell Oct 29, 2023
34c7b20
Merge branch 'for-next' of git://git.infradead.org/users/hch/configfs…
sfrothwell Oct 29, 2023
a7599e8
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…
sfrothwell Oct 29, 2023
7f2061b
Merge branch 'dev' of git://git.kernel.org/pub/scm/linux/kernel/git/x…
sfrothwell Oct 29, 2023
b0cd19f
Merge branch 'dev' of git://git.kernel.org/pub/scm/linux/kernel/git/l…
sfrothwell Oct 29, 2023
d424049
Merge branch 'for_next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
80be27e
Merge branch 'dev' of git://git.kernel.org/pub/scm/linux/kernel/git/t…
sfrothwell Oct 29, 2023
6653ed7
Merge branch 'dev' of git://git.kernel.org/pub/scm/linux/kernel/git/j…
sfrothwell Oct 29, 2023
2280582
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
1ee1eca
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
86e399e
Merge branch 'jfs-next' of git://github.com/kleikamp/linux-shaggy.git
sfrothwell Oct 29, 2023
55dd5d6
Merge branch 'ksmbd-for-next' of https://github.com/smfrench/smb3-ker…
sfrothwell Oct 29, 2023
979058f
Merge branch 'nfsd-next' of git://git.kernel.org/pub/scm/linux/kernel…
sfrothwell Oct 29, 2023
a8a2e0e
Merge branch 'overlayfs-next' of git://git.kernel.org/pub/scm/linux/k…
sfrothwell Oct 29, 2023
387fe7f
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…
sfrothwell Oct 29, 2023
c6a2bcb
Merge branch '9p-next' of git://github.com/martinetd/linux
sfrothwell Oct 29, 2023
7e43fcc
Merge branch 'vfs.all' of git://git.kernel.org/pub/scm/linux/kernel/g…
sfrothwell Oct 29, 2023
76d1d09
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
785a1f8
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…
sfrothwell Oct 29, 2023
5284a92
Merge branch 'for-next/pstore' of git://git.kernel.org/pub/scm/linux/…
sfrothwell Oct 29, 2023
c3ce0c2
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
319690a
Merge branch 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/ker…
sfrothwell Oct 29, 2023
df634a8
Merge branch 'i3c/next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
18aaa69
Merge branch 'hwmon-next' of git://git.kernel.org/pub/scm/linux/kerne…
sfrothwell Oct 29, 2023
763dc4f
Merge branch 'docs-next' of git://git.lwn.net/linux.git
sfrothwell Oct 29, 2023
5d44cd3
Merge branch 'master' of git://linuxtv.org/media_tree.git
sfrothwell Oct 29, 2023
d8ed851
Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kerne…
sfrothwell Oct 29, 2023
b25be1e
Merge branch 'cpufreq/arm/linux-next' of git://git.kernel.org/pub/scm…
sfrothwell Oct 29, 2023
9876ac1
Merge branch 'cpupower' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
131fbe9
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…
sfrothwell Oct 29, 2023
50985ac
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…
sfrothwell Oct 29, 2023
d52da78
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
39be36d
Merge branch 'main' of git://git.kernel.org/pub/scm/linux/kernel/git/…
sfrothwell Oct 29, 2023
1a18684
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/gi…
sfrothwell Oct 29, 2023
a7efe57
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/gi…
sfrothwell Oct 29, 2023
72f4181
Merge branch 'mtd/next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 29, 2023
af3c48e
Merge branch 'nand/next' of git://git.kernel.org/pub/scm/linux/kernel…
sfrothwell Oct 29, 2023
5ecde8d
Merge branch 'spi-nor/next' of git://git.kernel.org/pub/scm/linux/ker…
sfrothwell Oct 29, 2023
ca57034
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/gi…
sfrothwell Oct 29, 2023
d530632
Merge branch 'drm-next' of git://git.freedesktop.org/git/drm/drm.git
sfrothwell Oct 29, 2023
c42b486
Merge branch 'for-linux-next' of git://anongit.freedesktop.org/drm/dr…
sfrothwell Oct 29, 2023
509b8b9
Merge branch 'drm-next' of https://gitlab.freedesktop.org/agd5f/linux
sfrothwell Oct 29, 2023
fba5088
Merge branch 'for-linux-next' of git://anongit.freedesktop.org/drm-intel
sfrothwell Oct 29, 2023
7c05de2
Merge branch 'etnaviv/next' of https://git.pengutronix.de/git/lst/linux
sfrothwell Oct 29, 2023
f06e5a6
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
aedef34
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
27313e8
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
44e7f0e
Merge branch 'for-next' of https://git.kernel.org/pub/scm/linux/kerne…
sfrothwell Oct 30, 2023
80618ef
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
bee1cf6
Merge branch 'modules-next' of git://git.kernel.org/pub/scm/linux/ker…
sfrothwell Oct 30, 2023
35cf83b
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…
sfrothwell Oct 30, 2023
df622de
Merge branch 'for-next' of git://git.kernel.dk/linux-block.git
sfrothwell Oct 30, 2023
77fd7dd
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
4f0d6a9
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
0b20ec9
Merge branch 'pcmcia-next' of git://git.kernel.org/pub/scm/linux/kern…
sfrothwell Oct 30, 2023
77f1414
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…
sfrothwell Oct 30, 2023
f1019e7
Merge branch 'for-mfd-next' of git://git.kernel.org/pub/scm/linux/ker…
sfrothwell Oct 30, 2023
a08601e
Merge branch 'for-backlight-next' of git://git.kernel.org/pub/scm/lin…
sfrothwell Oct 30, 2023
db61277
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
dc839c8
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
df363ff
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…
sfrothwell Oct 30, 2023
d8b3b2b
Merge branch 'apparmor-next' of git://git.kernel.org/pub/scm/linux/ke…
sfrothwell Oct 30, 2023
e84e97d
Merge branch 'next-integrity' of git://git.kernel.org/pub/scm/linux/k…
sfrothwell Oct 30, 2023
7816213
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…
sfrothwell Oct 30, 2023
1fecf9a
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…
sfrothwell Oct 30, 2023
364cbc8
Merge branch 'master' of git://www.linux-watchdog.org/linux-watchdog-…
sfrothwell Oct 30, 2023
dcf3eb1
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…
sfrothwell Oct 30, 2023
cb52fe3
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…
sfrothwell Oct 30, 2023
6df7d69
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
452ccfe
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
01a00e2
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
6a523a1
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/gi…
sfrothwell Oct 30, 2023
9ed0c09
Merge branch 'edac-for-next' of git://git.kernel.org/pub/scm/linux/ke…
sfrothwell Oct 30, 2023
7ed478f
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
3d811b6
Merge branch 'rcu/next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
eee94ea
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…
sfrothwell Oct 30, 2023
8c5b1d2
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…
sfrothwell Oct 30, 2023
0f08a21
Merge branch 'topic/ppc-kvm' of git://git.kernel.org/pub/scm/linux/ke…
sfrothwell Oct 30, 2023
7d284c8
Merge branch 'riscv_kvm_next' of https://github.com/kvm-riscv/linux.git
sfrothwell Oct 30, 2023
bd6afa0
Merge branch 'next' of https://github.com/kvm-x86/linux.git
sfrothwell Oct 30, 2023
52afee3
Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kerne…
sfrothwell Oct 30, 2023
d2092c0
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
10064a5
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
2bb3353
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
5abb7fc
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
78c43d5
Merge branch 'for-leds-next' of git://git.kernel.org/pub/scm/linux/ke…
sfrothwell Oct 30, 2023
7d68a22
Merge branch 'for-next' of git://github.com/cminyard/linux-ipmi.git
sfrothwell Oct 30, 2023
4af9bfe
Merge branch 'driver-core-next' of git://git.kernel.org/pub/scm/linux…
sfrothwell Oct 30, 2023
cfbba8a
Merge branch 'usb-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
0274497
Merge branch 'tty-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
825a5a6
Merge branch 'char-misc-next' of git://git.kernel.org/pub/scm/linux/k…
sfrothwell Oct 30, 2023
3b30814
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…
sfrothwell Oct 30, 2023
67470fb
Merge branch 'togreg' of git://git.kernel.org/pub/scm/linux/kernel/gi…
sfrothwell Oct 30, 2023
fb3b92d
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…
sfrothwell Oct 30, 2023
a95298e
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…
sfrothwell Oct 30, 2023
e8a3bc8
Merge branch 'next' of git://github.com/awilliam/linux-vfio.git
sfrothwell Oct 30, 2023
96f1a92
Merge branch 'staging-next' of git://git.kernel.org/pub/scm/linux/ker…
sfrothwell Oct 30, 2023
c899bd2
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…
sfrothwell Oct 30, 2023
a7f546c
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
d1db888
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
fed14f5
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
1f79eb2
Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kerne…
sfrothwell Oct 30, 2023
97101bf
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
3faaff9
Merge branch 'gpio/for-next' of git://git.kernel.org/pub/scm/linux/ke…
sfrothwell Oct 30, 2023
1abc77e
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
6f77b43
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
2349541
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
1216ad2
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…
sfrothwell Oct 30, 2023
83b3370
Merge branch 'kunit' of git://git.kernel.org/pub/scm/linux/kernel/git…
sfrothwell Oct 30, 2023
ac3855b
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
eaa43d6
Merge branch 'rtc-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
33b7bbd
Merge branch 'libnvdimm-for-next' of git://git.kernel.org/pub/scm/lin…
sfrothwell Oct 30, 2023
c8aacc3
Merge branch 'ntb-next' of https://github.com/jonmason/ntb.git
sfrothwell Oct 30, 2023
9fba422
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
d0b9ec2
Merge branch 'kgdb/for-next' of git://git.kernel.org/pub/scm/linux/ke…
sfrothwell Oct 30, 2023
da4b532
Merge branch 'mhi-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
976ded4
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
57d3744
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…
sfrothwell Oct 30, 2023
2aafd0d
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…
sfrothwell Oct 30, 2023
a0bbb0e
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
fe2f607
Merge branch 'slab/for-next' of git://git.kernel.org/pub/scm/linux/ke…
sfrothwell Oct 30, 2023
6b3196c
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…
sfrothwell Oct 30, 2023
b978096
Merge branch 'rust-next' of https://github.com/Rust-for-Linux/linux.git
sfrothwell Oct 30, 2023
52fa75a
Merge branch 'sysctl-next' of git://git.kernel.org/pub/scm/linux/kern…
sfrothwell Oct 30, 2023
b472d09
Merge branch 'for-next/execve' of git://git.kernel.org/pub/scm/linux/…
sfrothwell Oct 30, 2023
d56b65a
Merge branch 'bitmap-for-next' of https://github.com/norov/linux.git
sfrothwell Oct 30, 2023
95bef89
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
4bf4bd7
Merge branch 'for-next/kspp' of git://git.kernel.org/pub/scm/linux/ke…
sfrothwell Oct 30, 2023
00141e2
Merge branch 'tsm-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
e2c0150
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…
sfrothwell Oct 30, 2023
5cc8815
fix up for "crypto: ahash - remove crypto_ahash_alignmask"
sfrothwell Oct 30, 2023
c503e3e
Add linux-next specific files for 20231030
sfrothwell Oct 30, 2023
b6e2b2e
rust: Use From instances for JSON encoder
maurer Sep 14, 2023
49654b3
rust: Support arrays in target JSON
maurer Sep 14, 2023
8eaa5a9
rust: Enable KCFI support when available
maurer Sep 15, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 16 additions & 17 deletions arch/alpha/include/asm/local.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,28 +65,27 @@ static __inline__ bool local_try_cmpxchg(local_t *l, long *old, long new)
#define local_xchg(l, n) (xchg_local(&((l)->a.counter), (n)))

/**
* local_add_unless - add unless the number is a given value
* local_add_unless - add unless the number is already a given value
* @l: pointer of type local_t
* @a: the amount to add to l...
* @u: ...unless l is equal to u.
*
* Atomically adds @a to @l, so long as it was not @u.
* Returns non-zero if @l was not @u, and zero otherwise.
* Atomically adds @a to @l, if @v was not already @u.
* Returns true if the addition was done.
*/
#define local_add_unless(l, a, u) \
({ \
long c, old; \
c = local_read(l); \
for (;;) { \
if (unlikely(c == (u))) \
break; \
old = local_cmpxchg((l), c, c + (a)); \
if (likely(old == c)) \
break; \
c = old; \
} \
c != (u); \
})
static __inline__ bool
local_add_unless(local_t *l, long a, long u)
{
long c = local_read(l);

do {
if (unlikely(c == u))
return false;
} while (!local_try_cmpxchg(l, &c, c + a));

return true;
}

#define local_inc_not_zero(l) local_add_unless((l), 1, 0)

#define local_add_negative(a, l) (local_add_return((a), (l)) < 0)
Expand Down
4 changes: 4 additions & 0 deletions arch/alpha/kernel/syscalls/syscall.tbl
Original file line number Diff line number Diff line change
Expand Up @@ -492,3 +492,7 @@
560 common set_mempolicy_home_node sys_ni_syscall
561 common cachestat sys_cachestat
562 common fchmodat2 sys_fchmodat2
# 563 reserved for map_shadow_stack
564 common futex_wake sys_futex_wake
565 common futex_wait sys_futex_wait
566 common futex_requeue sys_futex_requeue
3 changes: 3 additions & 0 deletions arch/arm/tools/syscall.tbl
Original file line number Diff line number Diff line change
Expand Up @@ -466,3 +466,6 @@
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
451 common cachestat sys_cachestat
452 common fchmodat2 sys_fchmodat2
454 common futex_wake sys_futex_wake
455 common futex_wait sys_futex_wait
456 common futex_requeue sys_futex_requeue
2 changes: 1 addition & 1 deletion arch/arm64/include/asm/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE + 5)
#define __ARM_NR_COMPAT_END (__ARM_NR_COMPAT_BASE + 0x800)

#define __NR_compat_syscalls 453
#define __NR_compat_syscalls 457
#endif

#define __ARCH_WANT_SYS_CLONE
Expand Down
6 changes: 6 additions & 0 deletions arch/arm64/include/asm/unistd32.h
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,12 @@ __SYSCALL(__NR_set_mempolicy_home_node, sys_set_mempolicy_home_node)
__SYSCALL(__NR_cachestat, sys_cachestat)
#define __NR_fchmodat2 452
__SYSCALL(__NR_fchmodat2, sys_fchmodat2)
#define __NR_futex_wake 454
__SYSCALL(__NR_futex_wake, sys_futex_wake)
#define __NR_futex_wait 455
__SYSCALL(__NR_futex_wait, sys_futex_wait)
#define __NR_futex_requeue 456
__SYSCALL(__NR_futex_requeue, sys_futex_requeue)

/*
* Please add new compat syscalls above this comment and update
Expand Down
3 changes: 3 additions & 0 deletions arch/ia64/kernel/syscalls/syscall.tbl
Original file line number Diff line number Diff line change
Expand Up @@ -373,3 +373,6 @@
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
451 common cachestat sys_cachestat
452 common fchmodat2 sys_fchmodat2
454 common futex_wake sys_futex_wake
455 common futex_wait sys_futex_wait
456 common futex_requeue sys_futex_requeue
27 changes: 16 additions & 11 deletions arch/loongarch/include/asm/local.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,22 +70,27 @@ static inline bool local_try_cmpxchg(local_t *l, long *old, long new)
#define local_xchg(l, n) (atomic_long_xchg((&(l)->a), (n)))

/**
* local_add_unless - add unless the number is a given value
* local_add_unless - add unless the number is already a given value
* @l: pointer of type local_t
* @a: the amount to add to l...
* @u: ...unless l is equal to u.
*
* Atomically adds @a to @l, so long as it was not @u.
* Returns non-zero if @l was not @u, and zero otherwise.
* Atomically adds @a to @l, if @v was not already @u.
* Returns true if the addition was done.
*/
#define local_add_unless(l, a, u) \
({ \
long c, old; \
c = local_read(l); \
while (c != (u) && (old = local_cmpxchg((l), c, c + (a))) != c) \
c = old; \
c != (u); \
})
static inline bool
local_add_unless(local_t *l, long a, long u)
{
long c = local_read(l);

do {
if (unlikely(c == u))
return false;
} while (!local_try_cmpxchg(l, &c, c + a));

return true;
}

#define local_inc_not_zero(l) local_add_unless((l), 1, 0)

#define local_dec_return(l) local_sub_return(1, (l))
Expand Down
3 changes: 3 additions & 0 deletions arch/m68k/kernel/syscalls/syscall.tbl
Original file line number Diff line number Diff line change
Expand Up @@ -452,3 +452,6 @@
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
451 common cachestat sys_cachestat
452 common fchmodat2 sys_fchmodat2
454 common futex_wake sys_futex_wake
455 common futex_wait sys_futex_wait
456 common futex_requeue sys_futex_requeue
3 changes: 3 additions & 0 deletions arch/microblaze/kernel/syscalls/syscall.tbl
Original file line number Diff line number Diff line change
Expand Up @@ -458,3 +458,6 @@
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
451 common cachestat sys_cachestat
452 common fchmodat2 sys_fchmodat2
454 common futex_wake sys_futex_wake
455 common futex_wait sys_futex_wait
456 common futex_requeue sys_futex_requeue
27 changes: 16 additions & 11 deletions arch/mips/include/asm/local.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,22 +108,27 @@ static __inline__ bool local_try_cmpxchg(local_t *l, long *old, long new)
#define local_xchg(l, n) (atomic_long_xchg((&(l)->a), (n)))

/**
* local_add_unless - add unless the number is a given value
* local_add_unless - add unless the number is already a given value
* @l: pointer of type local_t
* @a: the amount to add to l...
* @u: ...unless l is equal to u.
*
* Atomically adds @a to @l, so long as it was not @u.
* Returns non-zero if @l was not @u, and zero otherwise.
* Atomically adds @a to @l, if @v was not already @u.
* Returns true if the addition was done.
*/
#define local_add_unless(l, a, u) \
({ \
long c, old; \
c = local_read(l); \
while (c != (u) && (old = local_cmpxchg((l), c, c + (a))) != c) \
c = old; \
c != (u); \
})
static __inline__ bool
local_add_unless(local_t *l, long a, long u)
{
long c = local_read(l);

do {
if (unlikely(c == u))
return false;
} while (!local_try_cmpxchg(l, &c, c + a));

return true;
}

#define local_inc_not_zero(l) local_add_unless((l), 1, 0)

#define local_dec_return(l) local_sub_return(1, (l))
Expand Down
3 changes: 3 additions & 0 deletions arch/mips/kernel/syscalls/syscall_n32.tbl
Original file line number Diff line number Diff line change
Expand Up @@ -391,3 +391,6 @@
450 n32 set_mempolicy_home_node sys_set_mempolicy_home_node
451 n32 cachestat sys_cachestat
452 n32 fchmodat2 sys_fchmodat2
454 n32 futex_wake sys_futex_wake
455 n32 futex_wait sys_futex_wait
456 n32 futex_requeue sys_futex_requeue
3 changes: 3 additions & 0 deletions arch/mips/kernel/syscalls/syscall_n64.tbl
Original file line number Diff line number Diff line change
Expand Up @@ -367,3 +367,6 @@
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
451 n64 cachestat sys_cachestat
452 n64 fchmodat2 sys_fchmodat2
454 n64 futex_wake sys_futex_wake
455 n64 futex_wait sys_futex_wait
456 n64 futex_requeue sys_futex_requeue
3 changes: 3 additions & 0 deletions arch/mips/kernel/syscalls/syscall_o32.tbl
Original file line number Diff line number Diff line change
Expand Up @@ -440,3 +440,6 @@
450 o32 set_mempolicy_home_node sys_set_mempolicy_home_node
451 o32 cachestat sys_cachestat
452 o32 fchmodat2 sys_fchmodat2
454 o32 futex_wake sys_futex_wake
455 o32 futex_wait sys_futex_wait
456 o32 futex_requeue sys_futex_requeue
3 changes: 3 additions & 0 deletions arch/parisc/kernel/syscalls/syscall.tbl
Original file line number Diff line number Diff line change
Expand Up @@ -451,3 +451,6 @@
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
451 common cachestat sys_cachestat
452 common fchmodat2 sys_fchmodat2
454 common futex_wake sys_futex_wake
455 common futex_wait sys_futex_wait
456 common futex_requeue sys_futex_requeue
12 changes: 6 additions & 6 deletions arch/powerpc/include/asm/local.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,23 +115,23 @@ static __inline__ long local_xchg(local_t *l, long n)
}

/**
* local_add_unless - add unless the number is a given value
* local_add_unless - add unless the number is already a given value
* @l: pointer of type local_t
* @a: the amount to add to v...
* @u: ...unless v is equal to u.
*
* Atomically adds @a to @l, so long as it was not @u.
* Returns non-zero if @l was not @u, and zero otherwise.
* Atomically adds @a to @l, if @v was not already @u.
* Returns true if the addition was done.
*/
static __inline__ int local_add_unless(local_t *l, long a, long u)
static __inline__ bool local_add_unless(local_t *l, long a, long u)
{
unsigned long flags;
int ret = 0;
bool ret = false;

powerpc_local_irq_pmu_save(flags);
if (l->v != u) {
l->v += a;
ret = 1;
ret = true;
}
powerpc_local_irq_pmu_restore(flags);

Expand Down
3 changes: 3 additions & 0 deletions arch/powerpc/kernel/syscalls/syscall.tbl
Original file line number Diff line number Diff line change
Expand Up @@ -539,3 +539,6 @@
450 nospu set_mempolicy_home_node sys_set_mempolicy_home_node
451 common cachestat sys_cachestat
452 common fchmodat2 sys_fchmodat2
454 common futex_wake sys_futex_wake
455 common futex_wait sys_futex_wait
456 common futex_requeue sys_futex_requeue
3 changes: 3 additions & 0 deletions arch/s390/kernel/syscalls/syscall.tbl
Original file line number Diff line number Diff line change
Expand Up @@ -455,3 +455,6 @@
450 common set_mempolicy_home_node sys_set_mempolicy_home_node sys_set_mempolicy_home_node
451 common cachestat sys_cachestat sys_cachestat
452 common fchmodat2 sys_fchmodat2 sys_fchmodat2
454 common futex_wake sys_futex_wake sys_futex_wake
455 common futex_wait sys_futex_wait sys_futex_wait
456 common futex_requeue sys_futex_requeue sys_futex_requeue
3 changes: 3 additions & 0 deletions arch/sh/kernel/syscalls/syscall.tbl
Original file line number Diff line number Diff line change
Expand Up @@ -455,3 +455,6 @@
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
451 common cachestat sys_cachestat
452 common fchmodat2 sys_fchmodat2
454 common futex_wake sys_futex_wake
455 common futex_wait sys_futex_wait
456 common futex_requeue sys_futex_requeue
3 changes: 3 additions & 0 deletions arch/sparc/kernel/syscalls/syscall.tbl
Original file line number Diff line number Diff line change
Expand Up @@ -498,3 +498,6 @@
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
451 common cachestat sys_cachestat
452 common fchmodat2 sys_fchmodat2
454 common futex_wake sys_futex_wake
455 common futex_wait sys_futex_wait
456 common futex_requeue sys_futex_requeue
2 changes: 1 addition & 1 deletion arch/x86/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ config X86_64
select ARCH_HAS_GIGANTIC_PAGE
select ARCH_SUPPORTS_INT128 if CC_HAS_INT128
select ARCH_SUPPORTS_PER_VMA_LOCK
select ARCH_USE_CMPXCHG_LOCKREF
select HAVE_ARCH_SOFT_DIRTY
select MODULES_USE_ELF_RELA
select NEED_DMA_MAP_STATE
Expand Down Expand Up @@ -118,6 +117,7 @@ config X86
select ARCH_SUPPORTS_LTO_CLANG
select ARCH_SUPPORTS_LTO_CLANG_THIN
select ARCH_USE_BUILTIN_BSWAP
select ARCH_USE_CMPXCHG_LOCKREF if X86_CMPXCHG64
select ARCH_USE_MEMTEST
select ARCH_USE_QUEUED_RWLOCKS
select ARCH_USE_QUEUED_SPINLOCKS
Expand Down
3 changes: 3 additions & 0 deletions arch/x86/entry/syscalls/syscall_32.tbl
Original file line number Diff line number Diff line change
Expand Up @@ -457,3 +457,6 @@
450 i386 set_mempolicy_home_node sys_set_mempolicy_home_node
451 i386 cachestat sys_cachestat
452 i386 fchmodat2 sys_fchmodat2
454 i386 futex_wake sys_futex_wake
455 i386 futex_wait sys_futex_wait
456 i386 futex_requeue sys_futex_requeue
3 changes: 3 additions & 0 deletions arch/x86/entry/syscalls/syscall_64.tbl
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,9 @@
451 common cachestat sys_cachestat
452 common fchmodat2 sys_fchmodat2
453 64 map_shadow_stack sys_map_shadow_stack
454 common futex_wake sys_futex_wake
455 common futex_wait sys_futex_wait
456 common futex_requeue sys_futex_requeue

#
# Due to a historical design error, certain syscalls are numbered differently
Expand Down
6 changes: 6 additions & 0 deletions arch/x86/include/asm/cmpxchg.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,18 @@ extern void __add_wrong_size(void)
#define __try_cmpxchg(ptr, pold, new, size) \
__raw_try_cmpxchg((ptr), (pold), (new), (size), LOCK_PREFIX)

#define __sync_try_cmpxchg(ptr, pold, new, size) \
__raw_try_cmpxchg((ptr), (pold), (new), (size), "lock; ")

#define __try_cmpxchg_local(ptr, pold, new, size) \
__raw_try_cmpxchg((ptr), (pold), (new), (size), "")

#define arch_try_cmpxchg(ptr, pold, new) \
__try_cmpxchg((ptr), (pold), (new), sizeof(*(ptr)))

#define arch_sync_try_cmpxchg(ptr, pold, new) \
__sync_try_cmpxchg((ptr), (pold), (new), sizeof(*(ptr)))

#define arch_try_cmpxchg_local(ptr, pold, new) \
__try_cmpxchg_local((ptr), (pold), (new), sizeof(*(ptr)))

Expand Down
33 changes: 16 additions & 17 deletions arch/x86/include/asm/local.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,28 +135,27 @@ static inline bool local_try_cmpxchg(local_t *l, long *old, long new)
#define local_xchg(l, n) (xchg(&((l)->a.counter), (n)))

/**
* local_add_unless - add unless the number is a given value
* local_add_unless - add unless the number is already a given value
* @l: pointer of type local_t
* @a: the amount to add to l...
* @u: ...unless l is equal to u.
*
* Atomically adds @a to @l, so long as it was not @u.
* Returns non-zero if @l was not @u, and zero otherwise.
* Atomically adds @a to @l, if @v was not already @u.
* Returns true if the addition was done.
*/
#define local_add_unless(l, a, u) \
({ \
long c, old; \
c = local_read((l)); \
for (;;) { \
if (unlikely(c == (u))) \
break; \
old = local_cmpxchg((l), c, c + (a)); \
if (likely(old == c)) \
break; \
c = old; \
} \
c != (u); \
})
static __always_inline bool
local_add_unless(local_t *l, long a, long u)
{
long c = local_read(l);

do {
if (unlikely(c == u))
return false;
} while (!local_try_cmpxchg(l, &c, c + a));

return true;
}

#define local_inc_not_zero(l) local_add_unless((l), 1, 0)

/* On x86_32, these are no better than the atomic variants.
Expand Down
3 changes: 3 additions & 0 deletions arch/xtensa/kernel/syscalls/syscall.tbl
Original file line number Diff line number Diff line change
Expand Up @@ -423,3 +423,6 @@
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
451 common cachestat sys_cachestat
452 common fchmodat2 sys_fchmodat2
454 common futex_wake sys_futex_wake
455 common futex_wait sys_futex_wait
456 common futex_requeue sys_futex_requeue
Loading