diff mbox series

net: au1000_eth: Mark au1000_ReleaseDB() static

Message ID 20250323190450.111241-1-johan.korsnes@gmail.com (mailing list archive)
State Accepted
Commit 5e8df79497ce522170b5964d92c7f7df28dc1fa7
Delegated to: Netdev Maintainers
Headers show
Series net: au1000_eth: Mark au1000_ReleaseDB() static | expand

Checks

Context Check Description
netdev/series_format warning Single patches do not need cover letters; Target tree name not specified in the subject
netdev/tree_selection success Guessed tree name to be net-next
netdev/ynl success Generated files up to date; no warnings/errors; no diff in generated;
netdev/fixes_present success Fixes tag not required for -next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 0 this patch: 0
netdev/build_tools success No tools touched, skip
netdev/cc_maintainers warning 1 maintainers not CCed: u.kleine-koenig@baylibre.com
netdev/build_clang success Errors and warnings before: 0 this patch: 0
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 0 this patch: 0
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 8 lines checked
netdev/build_clang_rust success No Rust files in patch. Skipping build
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0
netdev/contest success net-next-2025-03-24--12-00 (tests: 896)

Commit Message

Johan Korsnes March 23, 2025, 7:04 p.m. UTC
This fixes the following build warning:
```
drivers/net/ethernet/amd/au1000_eth.c:574:6: warning: no previous prototype for 'au1000_ReleaseDB' [-Wmissing-prototypes]
  574 | void au1000_ReleaseDB(struct au1000_private *aup, struct db_dest *pDB)
      |      ^~~~~~~~~~~~~~~~
```

Signed-off-by: Johan Korsnes <johan.korsnes@gmail.com>
Cc: Andrew Lunn <andrew+netdev@lunn.ch>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Paolo Abeni <pabeni@redhat.com>
---
 drivers/net/ethernet/amd/au1000_eth.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michal Swiatkowski March 24, 2025, 6:01 a.m. UTC | #1
On Sun, Mar 23, 2025 at 08:04:50PM +0100, Johan Korsnes wrote:
> This fixes the following build warning:
> ```
> drivers/net/ethernet/amd/au1000_eth.c:574:6: warning: no previous prototype for 'au1000_ReleaseDB' [-Wmissing-prototypes]
>   574 | void au1000_ReleaseDB(struct au1000_private *aup, struct db_dest *pDB)
>       |      ^~~~~~~~~~~~~~~~
> ```
> 
> Signed-off-by: Johan Korsnes <johan.korsnes@gmail.com>
> Cc: Andrew Lunn <andrew+netdev@lunn.ch>
> Cc: "David S. Miller" <davem@davemloft.net>
> Cc: Eric Dumazet <edumazet@google.com>
> Cc: Jakub Kicinski <kuba@kernel.org>
> Cc: Paolo Abeni <pabeni@redhat.com>
> ---
>  drivers/net/ethernet/amd/au1000_eth.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ethernet/amd/au1000_eth.c b/drivers/net/ethernet/amd/au1000_eth.c
> index 0671a066913b..9d35ac348ebe 100644
> --- a/drivers/net/ethernet/amd/au1000_eth.c
> +++ b/drivers/net/ethernet/amd/au1000_eth.c
> @@ -571,7 +571,7 @@ static struct db_dest *au1000_GetFreeDB(struct au1000_private *aup)
>  	return pDB;
>  }
>  
> -void au1000_ReleaseDB(struct au1000_private *aup, struct db_dest *pDB)
> +static void au1000_ReleaseDB(struct au1000_private *aup, struct db_dest *pDB)
>  {
>  	struct db_dest *pDBfree = aup->pDBfree;
>  	if (pDBfree)

Thanks for fixing it
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>

You didn't specify the tree (net vs net-next in [PATCH ...]). If you
want it to go to net you will need fixes tag, if to net-next it is fine.

> -- 
> 2.49.0
Johan Korsnes March 24, 2025, 8:21 a.m. UTC | #2
On 24/03/2025 07:01, Michal Swiatkowski wrote:
> On Sun, Mar 23, 2025 at 08:04:50PM +0100, Johan Korsnes wrote:
>> This fixes the following build warning:
>> ```
>> drivers/net/ethernet/amd/au1000_eth.c:574:6: warning: no previous prototype for 'au1000_ReleaseDB' [-Wmissing-prototypes]
>>   574 | void au1000_ReleaseDB(struct au1000_private *aup, struct db_dest *pDB)
>>       |      ^~~~~~~~~~~~~~~~
>> ```
>>
>> Signed-off-by: Johan Korsnes <johan.korsnes@gmail.com>
>> Cc: Andrew Lunn <andrew+netdev@lunn.ch>
>> Cc: "David S. Miller" <davem@davemloft.net>
>> Cc: Eric Dumazet <edumazet@google.com>
>> Cc: Jakub Kicinski <kuba@kernel.org>
>> Cc: Paolo Abeni <pabeni@redhat.com>
>> ---
>>  drivers/net/ethernet/amd/au1000_eth.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/net/ethernet/amd/au1000_eth.c b/drivers/net/ethernet/amd/au1000_eth.c
>> index 0671a066913b..9d35ac348ebe 100644
>> --- a/drivers/net/ethernet/amd/au1000_eth.c
>> +++ b/drivers/net/ethernet/amd/au1000_eth.c
>> @@ -571,7 +571,7 @@ static struct db_dest *au1000_GetFreeDB(struct au1000_private *aup)
>>  	return pDB;
>>  }
>>  
>> -void au1000_ReleaseDB(struct au1000_private *aup, struct db_dest *pDB)
>> +static void au1000_ReleaseDB(struct au1000_private *aup, struct db_dest *pDB)
>>  {
>>  	struct db_dest *pDBfree = aup->pDBfree;
>>  	if (pDBfree)
> 
> Thanks for fixing it
> Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
> 
> You didn't specify the tree (net vs net-next in [PATCH ...]). If you
> want it to go to net you will need fixes tag, if to net-next it is fine.

Thank you for the review. I don't mind adding fixes tags and re-submit,
but would that be preferred in this case? Or will it just be noise for
the maintainers?

Kind regards,
Johan

> 
>> -- 
>> 2.49.0
Jakub Kicinski March 25, 2025, 9:45 a.m. UTC | #3
On Mon, 24 Mar 2025 09:21:29 +0100 Johan Korsnes wrote:
> > Thanks for fixing it
> > Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
> > 
> > You didn't specify the tree (net vs net-next in [PATCH ...]). If you
> > want it to go to net you will need fixes tag, if to net-next it is fine.  
> 
> Thank you for the review. I don't mind adding fixes tags and re-submit,
> but would that be preferred in this case? Or will it just be noise for
> the maintainers?

Just noise.

Michal, when PW bot guesses the tree correctly there is no need to flag
the problem to the contributor. The tree designation makes our life
easier but not enough to deal with reposts.
patchwork-bot+netdevbpf@kernel.org March 25, 2025, 3:40 p.m. UTC | #4
Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Sun, 23 Mar 2025 20:04:50 +0100 you wrote:
> This fixes the following build warning:
> ```
> drivers/net/ethernet/amd/au1000_eth.c:574:6: warning: no previous prototype for 'au1000_ReleaseDB' [-Wmissing-prototypes]
>   574 | void au1000_ReleaseDB(struct au1000_private *aup, struct db_dest *pDB)
>       |      ^~~~~~~~~~~~~~~~
> ```
> 
> [...]

Here is the summary with links:
  - net: au1000_eth: Mark au1000_ReleaseDB() static
    https://git.kernel.org/netdev/net-next/c/5e8df79497ce

You are awesome, thank you!
diff mbox series

Patch

diff --git a/drivers/net/ethernet/amd/au1000_eth.c b/drivers/net/ethernet/amd/au1000_eth.c
index 0671a066913b..9d35ac348ebe 100644
--- a/drivers/net/ethernet/amd/au1000_eth.c
+++ b/drivers/net/ethernet/amd/au1000_eth.c
@@ -571,7 +571,7 @@  static struct db_dest *au1000_GetFreeDB(struct au1000_private *aup)
 	return pDB;
 }
 
-void au1000_ReleaseDB(struct au1000_private *aup, struct db_dest *pDB)
+static void au1000_ReleaseDB(struct au1000_private *aup, struct db_dest *pDB)
 {
 	struct db_dest *pDBfree = aup->pDBfree;
 	if (pDBfree)