mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 23:22:31 +02:00
First set of Counter fixes for 6.8
One fix to ensure private data in struct counter_device_allochelper has minimum alignment for safe DMA operations. -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSNN83d4NIlKPjon7a1SFbKvhIjKwUCZdzmKQAKCRC1SFbKvhIj K6lyAQCQBMlq+bM3YG4ZCDAx2gc0ZmtwNrI78oA5zmERGKzWwAEAtRra2zKXcoXS T4Tp2inC73PJai84eVCGRbddKgG4vwQ= =wVEq -----END PGP SIGNATURE----- Merge tag 'counter-fixes-for-6.8b' of https://git.kernel.org/pub/scm/linux/kernel/git/wbg/counter into char-misc-linus William writes: First set of Counter fixes for 6.8 One fix to ensure private data in struct counter_device_allochelper has minimum alignment for safe DMA operations. * tag 'counter-fixes-for-6.8b' of https://git.kernel.org/pub/scm/linux/kernel/git/wbg/counter: counter: fix privdata alignment
This commit is contained in:
commit
febbe9b9c0
|
|
@ -31,10 +31,11 @@ struct counter_device_allochelper {
|
|||
struct counter_device counter;
|
||||
|
||||
/*
|
||||
* This is cache line aligned to ensure private data behaves like if it
|
||||
* were kmalloced separately.
|
||||
* This ensures private data behaves like if it were kmalloced
|
||||
* separately. Also ensures the minimum alignment for safe DMA
|
||||
* operations (which may or may not mean cache alignment).
|
||||
*/
|
||||
unsigned long privdata[] ____cacheline_aligned;
|
||||
unsigned long privdata[] __aligned(ARCH_DMA_MINALIGN);
|
||||
};
|
||||
|
||||
static void counter_device_release(struct device *dev)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user