summaryrefslogtreecommitdiff
path: root/drivers/platform/x86
diff options
context:
space:
mode:
authorStuart Hayes <stuart.w.hayes@gmail.com>2025-06-09 21:46:55 +0300
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2025-06-10 10:44:37 +0300
commita2f32c7467e843727f20cae0e9b1545e1504a977 (patch)
treed6343eb82c3b6954ebbfa74cf947b5abcb514be8 /drivers/platform/x86
parentd7186dfd41924ef01ef490be5b82ab63cc417b31 (diff)
downloadlinux-a2f32c7467e843727f20cae0e9b1545e1504a977.tar.xz
platform/x86: dell_rbu: Fix lock context warning
Fix a sparse lock context warning. Signed-off-by: Stuart Hayes <stuart.w.hayes@gmail.com> Link: https://lore.kernel.org/r/20250609184659.7210-2-stuart.w.hayes@gmail.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'drivers/platform/x86')
-rw-r--r--drivers/platform/x86/dell/dell_rbu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/dell/dell_rbu.c b/drivers/platform/x86/dell/dell_rbu.c
index e30ca325938c..7b019fb72e86 100644
--- a/drivers/platform/x86/dell/dell_rbu.c
+++ b/drivers/platform/x86/dell/dell_rbu.c
@@ -91,7 +91,7 @@ static void init_packet_head(void)
rbu_data.imagesize = 0;
}
-static int create_packet(void *data, size_t length)
+static int create_packet(void *data, size_t length) __must_hold(&rbu_data.lock)
{
struct packet_data *newpacket;
int ordernum = 0;