Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1739911 > unrolled thread

[PATCH] tpm: fix duplicate inline declaration specifier

Started byRuben Roy <rubenroy2005@gmail.com>
First post2017-09-26 16:00 +0200
Last post2017-09-30 02:50 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] tpm: fix duplicate inline declaration specifier Ruben Roy <rubenroy2005@gmail.com> - 2017-09-26 16:00 +0200
    Re: [PATCH] tpm: fix duplicate inline declaration specifier Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2017-09-29 19:20 +0200
      Re: [PATCH] tpm: fix duplicate inline declaration specifier Nick Desaulniers <nick.desaulniers@gmail.com> - 2017-09-30 02:50 +0200

#1739911 — [PATCH] tpm: fix duplicate inline declaration specifier

FromRuben Roy <rubenroy2005@gmail.com>
Date2017-09-26 16:00 +0200
Subject[PATCH] tpm: fix duplicate inline declaration specifier
Message-ID<utYz1-5vR-19@gated-at.bofh.it>
This commit fixes the duplicate inline declaration specifier in
tpm2_rc_value which caused a warning

Signed-off-by: Ruben Roy <rubenroy2005@gmail.com>
---
 drivers/char/tpm/tpm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/char/tpm/tpm.h b/drivers/char/tpm/tpm.h
index 04fbff2..f4d0272 100644
--- a/drivers/char/tpm/tpm.h
+++ b/drivers/char/tpm/tpm.h
@@ -550,7 +550,7 @@ static inline void tpm_add_ppi(struct tpm_chip *chip)
 }
 #endif
 
-static inline inline u32 tpm2_rc_value(u32 rc)
+static inline u32 tpm2_rc_value(u32 rc)
 {
 	return (rc & BIT(7)) ? rc & 0xff : rc;
 }
-- 
1.8.3.1

[toc] | [next] | [standalone]


#1742253

FromJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Date2017-09-29 19:20 +0200
Message-ID<uv77d-Gu-25@gated-at.bofh.it>
In reply to#1739911
On Tue, Sep 26, 2017 at 01:58:57PM +0000, Ruben Roy wrote:
> This commit fixes the duplicate inline declaration specifier in
> tpm2_rc_value which caused a warning
> 
> Signed-off-by: Ruben Roy <rubenroy2005@gmail.com>
> ---
>  drivers/char/tpm/tpm.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/char/tpm/tpm.h b/drivers/char/tpm/tpm.h
> index 04fbff2..f4d0272 100644
> --- a/drivers/char/tpm/tpm.h
> +++ b/drivers/char/tpm/tpm.h
> @@ -550,7 +550,7 @@ static inline void tpm_add_ppi(struct tpm_chip *chip)
>  }
>  #endif
>  
> -static inline inline u32 tpm2_rc_value(u32 rc)
> +static inline u32 tpm2_rc_value(u32 rc)
>  {
>  	return (rc & BIT(7)) ? rc & 0xff : rc;
>  }
> -- 
> 1.8.3.1
> 

Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>

/Jarkko

[toc] | [prev] | [next] | [standalone]


#1742417

FromNick Desaulniers <nick.desaulniers@gmail.com>
Date2017-09-30 02:50 +0200
Message-ID<uve8F-581-5@gated-at.bofh.it>
In reply to#1742253
Thanks! This fixes a warning I was seeing with Clang:

drivers/char/tpm/tpm.h:560:15: warning: duplicate 'inline' declaration
specifier [-Wduplicate-decl-specifier]

On Fri, Sep 29, 2017 at 10:17 AM, Jarkko Sakkinen
<jarkko.sakkinen@linux.intel.com> wrote:
> On Tue, Sep 26, 2017 at 01:58:57PM +0000, Ruben Roy wrote:
>> This commit fixes the duplicate inline declaration specifier in
>> tpm2_rc_value which caused a warning
>>
>> Signed-off-by: Ruben Roy <rubenroy2005@gmail.com>
>> ---
>>  drivers/char/tpm/tpm.h | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/char/tpm/tpm.h b/drivers/char/tpm/tpm.h
>> index 04fbff2..f4d0272 100644
>> --- a/drivers/char/tpm/tpm.h
>> +++ b/drivers/char/tpm/tpm.h
>> @@ -550,7 +550,7 @@ static inline void tpm_add_ppi(struct tpm_chip *chip)
>>  }
>>  #endif
>>
>> -static inline inline u32 tpm2_rc_value(u32 rc)
>> +static inline u32 tpm2_rc_value(u32 rc)
>>  {
>>       return (rc & BIT(7)) ? rc & 0xff : rc;
>>  }
>> --
>> 1.8.3.1
>>
>
> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
>
> /Jarkko

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web