Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936633AbdIZN7N (ORCPT ); Tue, 26 Sep 2017 09:59:13 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34962 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935805AbdIZN7L (ORCPT ); Tue, 26 Sep 2017 09:59:11 -0400 X-Google-Smtp-Source: AOwi7QA+0E+AZ882fdVO5tASLTdimKY5bDZplrHQMA3ng9Th0nDTXl7cY4MHwzcD8jP8lMW1Yiu20A== From: Ruben Roy To: Peter Huewe , Marcel Selhorst , Jarkko Sakkinen , Jason Gunthorpe , tpmdd-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Cc: Nick Desaulniers , trivial@kernel.org, Ruben Roy Subject: [PATCH] tpm: fix duplicate inline declaration specifier Date: Tue, 26 Sep 2017 13:58:57 +0000 Message-Id: <1506434337-15284-1-git-send-email-rubenroy2005@gmail.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 619 Lines: 23 This commit fixes the duplicate inline declaration specifier in tpm2_rc_value which caused a warning Signed-off-by: Ruben Roy --- 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