Skip to contentSkip to conversation

mlxbf_gige: remove own module name define and use KBUILD_MODNAME instead

PATCH Applied David Thompson 2 participants 2 messages Jun 14, 2022 – Jun 16, 2022

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

PATCH 1/1 mlxbf_gige: remove own module name define and use KBUILD_MODNAME instead

This patch adds use of KBUILD_MODNAME as defined by the build system, replacing the definition and use of a custom-defined name.

---
 drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c +1 -3
index 84621b4cb15b..b03e1c66bac0 100644
@@ -19,8 +19,6 @@
 #include "mlxbf_gige.h"
 #include "mlxbf_gige_regs.h"
 
-#define DRV_NAME    "mlxbf_gige"
-
 /* Allocate SKB whose payload pointer aligns with the Bluefield
  * hardware DMA limitation, i.e. DMA operation can't cross
  * a 4KB boundary.  A maximum packet size of 2KB is assumed in the
@@ -427,7 +425,7 @@ static struct platform_driver mlxbf_gige_driver = {
 	.remove = mlxbf_gige_remove,
 	.shutdown = mlxbf_gige_shutdown,
 	.driver = {
-		.name = DRV_NAME,
+		.name = KBUILD_MODNAME,
 		.acpi_match_table = ACPI_PTR(mlxbf_gige_acpi_match),
 	},
 };
Signature · 1 line
2.30.1
#1 lore raw
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Tue, 14 Jun 2022 17:26:02 -0400 you wrote:

This patch adds use of KBUILD_MODNAME as defined by the build system, replacing the definition and use of a custom-defined name.

---
 drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Here is the summary with links:
- [net-next,v1] mlxbf_gige: remove own module name define and use KBUILD_MODNAME instead

    https://git.kernel.org/netdev/net-next/c/cfbc80e34e3a

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html