Commit aaee2dd3 authored by Mario Limonciello's avatar Mario Limonciello Committed by openeuler-sync-bot
Browse files

thunderbolt: Use const qualifier for `ring_interrupt_index`

stable inclusion
from stable-v5.10.177
commit 2d6c2dee59a396b22fff6d708db4b167281e78c2
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I88YNP

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2d6c2dee59a396b22fff6d708db4b167281e78c2



--------------------------------

commit 1716efdb upstream.

`ring_interrupt_index` doesn't change the data for `ring` so mark it as
const. This is needed by the following patch that disables interrupt
auto clear for rings.

Cc: Sanju Mehta <Sanju.Mehta@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
(cherry picked from commit aebf50e8)
parent 81745efe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment