From patchwork Wed Jan 27 08:57:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Kardashevskiy X-Patchwork-Id: 1432131 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DQffZ2PGyz9sS8 for ; Wed, 27 Jan 2021 21:17:10 +1100 (AEDT) Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4DQffZ1WC2zDqjp for ; Wed, 27 Jan 2021 21:17:10 +1100 (AEDT) X-Original-To: slof@lists.ozlabs.org Delivered-To: slof@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.ru (client-ip=107.174.27.60; helo=ozlabs.ru; envelope-from=aik@ozlabs.ru; receiver=) Received: from ozlabs.ru (ozlabs.ru [107.174.27.60]) by lists.ozlabs.org (Postfix) with ESMTP id 4DQfdk70BJzDqjY for ; Wed, 27 Jan 2021 21:16:26 +1100 (AEDT) Received: from fstn1-p1.ozlabs.ibm.com (localhost [IPv6:::1]) by ozlabs.ru (Postfix) with ESMTP id E15D8AE8027C; Wed, 27 Jan 2021 03:58:20 -0500 (EST) From: Alexey Kardashevskiy To: slof@lists.ozlabs.org Date: Wed, 27 Jan 2021 19:57:48 +1100 Message-Id: <20210127085752.120571-10-aik@ozlabs.ru> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210127085752.120571-1-aik@ozlabs.ru> References: <20210127085752.120571-1-aik@ozlabs.ru> Subject: [SLOF] [PATCH slof 09/13] libhv: Compile with -Wextra X-BeenThere: slof@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Patches for https://github.com/aik/SLOF" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: slof-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "SLOF" -Wextra enables a bunch of rather useful checks which this fixes. Signed-off-by: Alexey Kardashevskiy Reviewed-by: Thomas Huth --- include/ppcp7/cache.h | 2 +- lib/libhvcall/rfill.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ppcp7/cache.h b/include/ppcp7/cache.h index 3c02bb10de63..611b6a33599e 100644 --- a/include/ppcp7/cache.h +++ b/include/ppcp7/cache.h @@ -124,7 +124,7 @@ static inline void ci_rmove(void *dst, void *src, unsigned long esize, #define FAST_MRMOVE(s, d, size) _FASTRMOVE(s, d, size) -extern void fast_rfill(char *dst, long size, char pat); +extern void fast_rfill(char *dst, unsigned long size, char pat); #define FAST_RFILL(dst, size, pat) fast_rfill(dst, size, pat) static inline uint16_t bswap16_load(uint64_t addr) diff --git a/lib/libhvcall/rfill.c b/lib/libhvcall/rfill.c index 5407cd2a60e7..377fb892ba60 100644 --- a/lib/libhvcall/rfill.c +++ b/lib/libhvcall/rfill.c @@ -23,7 +23,7 @@ typedef unsigned long type_u; * local buffer - and that caused stack size problems in engine() when * we used it directly in the FAST_RFILL macro. */ -void fast_rfill(char *dst, long size, char pat) +void fast_rfill(char *dst, unsigned long size, char pat) { type_u buf[64];