From patchwork Mon Dec 21 01:18:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Dureghello X-Patchwork-Id: 559389 X-Patchwork-Delegate: jason.jin@freescale.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 2F04D140B12 for ; Mon, 21 Dec 2015 12:18:43 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=sysam.it header.i=@sysam.it header.b=vtG0zurQ; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A64474B72A; Mon, 21 Dec 2015 02:18:38 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l2MHM6Za4Duv; Mon, 21 Dec 2015 02:18:38 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DD6AC4B72C; Mon, 21 Dec 2015 02:18:37 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2FEB44B72C for ; Mon, 21 Dec 2015 02:18:35 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HFdVtmnMmZ-K for ; Mon, 21 Dec 2015 02:18:35 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from nbjjceehccfb.turbo-smtp.net (nbjjceehccfb.turbo-smtp.net [199.244.72.251]) by theia.denx.de (Postfix) with SMTP id 90BD84B72A for ; Mon, 21 Dec 2015 02:18:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sysam.it; s=turbo-smtp; x=1451265514; h=DomainKey-Signature:Received: Received:From:To:Cc:Subject:Date:Message-ID; bh=UlUksx79intbB37R W22XlaxgcUrdU5zqkpVkqRthnWQ=; b=vtG0zurQdStN3WQskMBloFwun+OQ5UEQ xEPS8u6PHBWafIJcw3M6xHjhQZfnVp1l9nsZHgFC/+FwNLX6teoIgt5zhSzoMWX2 j1yA/JGdwvLSbY1Ni/TafuUiNZenIEScHvYWNDeM5iEPFPpVLAlTuTe0IPV/DjzT BZP0XQ6K8Qg= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=turbo-smtp; d=sysam.it; h=Received:Received:X-TurboSMTP-Tracking:From:To:Cc:Subject:Date:Message-ID:X-Mailer; b=MMvwGz5gKcbKKnF5Nij2agZMAaVtKuSer9B2WsPfOPxrh7XGSRdZjiusfnaT4W QP6Q+ASIuf0lHSNmNlnGfP6WISe9UmZoyGfzY+NsdOy/dttoVmUPR+HwqtoNGNXJ 1EmScwR4XqX0vhS/KF8Ja9GYRxiiD5U7eRCm9jT5ZIWT4=; Received: (qmail 26512 invoked from network); 21 Dec 2015 01:18:29 -0000 Received: from unknown (HELO localhost.localdomain) (authenticated@79.54.23.65) by turbo-smtp.com with SMTP; 21 Dec 2015 01:18:29 -0000 X-TurboSMTP-Tracking: 2691507009 From: Angelo Dureghello To: u-boot@lists.denx.de Date: Mon, 21 Dec 2015 02:18:24 +0100 Message-ID: <1450660705-9930-1-git-send-email-angelo@sysam.it> X-Mailer: git-send-email 2.5.3 Cc: Tom Rini , Angelo Dureghello , TsiChung Liew , Alison Wang Subject: [U-Boot] [PATCH] board: m5253demo, fix gcc-5.2.0 compilation warnings X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Fix gcc-5.2.0 buildman warnings: warning: 'w' is static but declared in inline function 'spin_wheel' which is not static warning: 'p' is static but declared in inline function 'spin_wheel' which is not static Signed-off-by: Angelo Dureghello Reviewed-by: Tom Rini --- board/freescale/m5253demo/flash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/freescale/m5253demo/flash.c b/board/freescale/m5253demo/flash.c index 071701d..099deca 100644 --- a/board/freescale/m5253demo/flash.c +++ b/board/freescale/m5253demo/flash.c @@ -31,7 +31,7 @@ typedef volatile unsigned short FLASH_PORT_WIDTHV; ulong flash_get_size(FPWV * addr, flash_info_t * info); int flash_get_offsets(ulong base, flash_info_t * info); int write_word(flash_info_t * info, FPWV * dest, u16 data); -void inline spin_wheel(void); +static inline void spin_wheel(void); flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; @@ -439,7 +439,7 @@ int write_word(flash_info_t * info, FPWV * dest, u16 data) return (res); } -void inline spin_wheel(void) +static inline void spin_wheel(void) { static int p = 0; static char w[] = "\\/-";