Skip to contentSkip to conversation

net: cx89x0: move attribute declaration before struct keyword

PATCH Applied Stefan Agner 2 participants 2 messages Apr 17, 2017 – Apr 18, 2017

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

PATCH v2 1/1 net: cx89x0: move attribute declaration before struct keyword

The attribute declaration is typically before the definition. Move the __maybe_unused attribute declaration before the struct keyword.

---
Changes in v2:
- Move __maybe_unused after the complete type

 drivers/net/ethernet/cirrus/cs89x0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/cirrus/cs89x0.c +1 -1
index 3647b28e8de0..47384f7323ac 100644
@@ -1896,7 +1896,7 @@ static int cs89x0_platform_remove(struct platform_device *pdev)
 	return 0;
 }
 
-static const struct __maybe_unused of_device_id cs89x0_match[] = {
+static const struct of_device_id __maybe_unused cs89x0_match[] = {
 	{ .compatible = "cirrus,cs8900", },
 	{ .compatible = "cirrus,cs8920", },
 	{ },
Signature · 1 line
2.12.2
maintainer Applied
#1 lore raw

From: Stefan Agner <[email protected]>
Date: Mon, 17 Apr 2017 13:54:34 -0700

Quoted 7 lines

The attribute declaration is typically before the definition. Move the __maybe_unused attribute declaration before the struct keyword.

---
Changes in v2:
- Move __maybe_unused after the complete type

Applied to net-next, thank you.