summaryrefslogtreecommitdiffstats
path: root/lib/stmp_device.c
diff options
context:
space:
mode:
authorMatthew Wilcox <willy@infradead.org>2018-11-05 19:19:54 +0100
committerMatthew Wilcox <willy@infradead.org>2018-12-06 15:25:15 +0100
commitb7677a132a4c2ff877986c5b30f9427127b9897a (patch)
treed93228d64009d3398ebdffe20515c7152db0950d /lib/stmp_device.c
parentXArray: Add xa_cmpxchg_irq and xa_cmpxchg_bh (diff)
downloadlinux-b7677a132a4c2ff877986c5b30f9427127b9897a.tar.xz
linux-b7677a132a4c2ff877986c5b30f9427127b9897a.zip
XArray tests: Handle larger indices more elegantly
xa_mk_value() only handles values up to LONG_MAX. I successfully hid that inside xa_store_index() and xa_erase_index(), but it turned out I also needed it for testing xa_alloc() on 32-bit machines. So extract xa_mk_index() from the above two functions, and convert the non-constant users of xa_mk_value() to xa_mk_index(). Signed-off-by: Matthew Wilcox <willy@infradead.org>
Diffstat (limited to 'lib/stmp_device.c')
0 files changed, 0 insertions, 0 deletions