Skip to contentSkip to conversation

crypto: stm32: fix modular build

PATCH In review Arnd Bergmann 2 participants 2 messages Dec 11, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto: stm32: fix modular build

Building the stm32 crypto suport as a loadable module causes a build failure from a simple typo:

drivers/crypto/stm32/stm32-cryp.c:1035:25: error: 'sti_dt_ids' undeclared here (not in a function); did you mean 'stm32_dt_ids'?

This renames the reference to point to the correct symbol.

Fixes 9e054ec21ef8 ("crypto: stm32 - Support for STM32 CRYP crypto module")
---
 drivers/crypto/stm32/stm32-cryp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/stm32/stm32-cryp.c +1 -1
index 459755940632..cf1dddbeaa2c 100644
@@ -1032,7 +1032,7 @@ static const struct of_device_id stm32_dt_ids[] = {
 	{ .compatible = "st,stm32f756-cryp", },
 	{},
 };
-MODULE_DEVICE_TABLE(of, sti_dt_ids);
+MODULE_DEVICE_TABLE(of, stm32_dt_ids);
 
 static int stm32_cryp_probe(struct platform_device *pdev)
 {
Signature · 1 line
2.9.0
#1 lore raw

Hi Arnd,

This issue was reported a few days ago, and Herbert applied the patch 2 minutes before you send the mail (see
[https://www.mail-archive.com/linux-crypto at vger.kernel.org/msg29762.html]).

Anyway, thank you for reporting this.

Fabien

Quoted 26 lines · Arnd Bergmann

Building the stm32 crypto suport as a loadable module causes a build failure from a simple typo:

drivers/crypto/stm32/stm32-cryp.c:1035:25: error: 'sti_dt_ids' undeclared here (not in a function); did you mean 'stm32_dt_ids'?

This renames the reference to point to the correct symbol.

Fixes 9e054ec21ef8 ("crypto: stm32 - Support for STM32 CRYP crypto module")
---
  drivers/crypto/stm32/stm32-cryp.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/stm32/stm32-cryp.c +1 -1
index 459755940632..cf1dddbeaa2c 100644
@@ -1032,7 +1032,7 @@ static const struct of_device_id stm32_dt_ids[] = {
  	{ .compatible = "st,stm32f756-cryp", },
  	{},
  };
-MODULE_DEVICE_TABLE(of, sti_dt_ids);
+MODULE_DEVICE_TABLE(of, stm32_dt_ids);
 
  static int stm32_cryp_probe(struct platform_device *pdev)
  {