diff --git a/patches.suse/i2c-pxa-hide-unused-icr_bits-variable.patch b/patches.suse/i2c-pxa-hide-unused-icr_bits-variable.patch new file mode 100644 index 0000000..9b628ad --- /dev/null +++ b/patches.suse/i2c-pxa-hide-unused-icr_bits-variable.patch @@ -0,0 +1,45 @@ +From 95197779091166b9ed4b1c630c13600abf94ada7 Mon Sep 17 00:00:00 2001 +From: Arnd Bergmann +Date: Wed, 3 Apr 2024 10:06:22 +0200 +Subject: [PATCH] i2c: pxa: hide unused icr_bits[] variable +Git-commit: 95197779091166b9ed4b1c630c13600abf94ada7 +Patch-mainline: v6.9-rc3 +References: git-fixes + +The function using this is hidden in an #ifdef, so the variable +needs the same one for a clean W=1 build: + +drivers/i2c/busses/i2c-pxa.c:327:26: error: 'icr_bits' defined but not used [-Werror=unused-const-variable=] + +Fixes: d6a7b5f84b5c ("[ARM] 4827/1: fix two warnings in drivers/i2c/busses/i2c-pxa.c") +Signed-off-by: Arnd Bergmann +Signed-off-by: Andi Shyti +Acked-by: Takashi Iwai + +--- + drivers/i2c/busses/i2c-pxa.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c +index 76f79b68cef8..888ca636f3f3 100644 +--- a/drivers/i2c/busses/i2c-pxa.c ++++ b/drivers/i2c/busses/i2c-pxa.c +@@ -324,6 +324,7 @@ static void decode_ISR(unsigned int val) + decode_bits(KERN_DEBUG "ISR", isr_bits, ARRAY_SIZE(isr_bits), val); + } + ++#ifdef CONFIG_I2C_PXA_SLAVE + static const struct bits icr_bits[] = { + PXA_BIT(ICR_START, "START", NULL), + PXA_BIT(ICR_STOP, "STOP", NULL), +@@ -342,7 +343,6 @@ static const struct bits icr_bits[] = { + PXA_BIT(ICR_UR, "UR", "ur"), + }; + +-#ifdef CONFIG_I2C_PXA_SLAVE + static void decode_ICR(unsigned int val) + { + decode_bits(KERN_DEBUG "ICR", icr_bits, ARRAY_SIZE(icr_bits), val); +-- +2.43.0 + diff --git a/series.conf b/series.conf index ffc9656..687c1cf 100644 --- a/series.conf +++ b/series.conf @@ -46286,6 +46286,7 @@ patches.suse/ata-sata_sx4-fix-pdc20621_get_from_dimm-on-64-bit.patch patches.suse/ata-sata_mv-Fix-PCI-device-ID-table-declaration-comp.patch patches.suse/0001-stackdepot-rename-pool_index-to-pool_index_plus_1.patch + patches.suse/i2c-pxa-hide-unused-icr_bits-variable.patch patches.suse/iommu-vt-d-Allocate-local-memory-for-page-request-qu.patch # out-of-tree patches