projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
073e58b
)
i2c: i801: Annotate apanel_addr as __ro_after_init
author
Heiner Kallweit
<hkallweit1@gmail.com>
Fri, 12 Apr 2024 10:21:58 +0000
(12:21 +0200)
committer
Andi Shyti
<andi.shyti@kernel.org>
Sun, 5 May 2024 22:56:31 +0000
(
00:56
+0200)
Annotate this variable as __ro_after_init to protect it from being
overwritten later.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-i801.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/busses/i2c-i801.c
b/drivers/i2c/busses/i2c-i801.c
index 6d027a77d1dd70f8ffb0cec701d9c722bd0dbc61..e577abc776c1e4fbcae48ac09a190a6e347e48a3 100644
(file)
--- a/
drivers/i2c/busses/i2c-i801.c
+++ b/
drivers/i2c/busses/i2c-i801.c
@@
-1060,7
+1060,7
@@
static const struct pci_device_id i801_ids[] = {
MODULE_DEVICE_TABLE(pci, i801_ids);
#if defined CONFIG_X86 && defined CONFIG_DMI
-static unsigned char apanel_addr;
+static unsigned char apanel_addr
__ro_after_init
;
/* Scan the system ROM for the signature "FJKEYINF" */
static __init const void __iomem *bios_signature(const void __iomem *bios)