From: Wolfgang Denk Date: Tue, 12 Oct 2010 21:15:22 +0200 Subject: [U-Boot] [PATCH 1/2] zlib/gunzip: Use WATCHDOG_RESET macro In-Reply-To: <1283952898-4247-1-git-send-email-sr@denx.de> References: <1283952898-4247-1-git-send-email-sr@denx.de> Message-ID: <20101012191522.20F1014F310@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Stefan Roese, In message <1283952898-4247-1-git-send-email-sr@denx.de> you wrote: > As usually done in U-Boot, the watchdog_reset code is called via a > macro (WATCHDOG_RESET). In zlib.c this was done differently, by using > a function pointer which is initialized with WATCHDOG_RESET upon watchdog > usage or with NULL otherwise. This patch now uses the plain > WATCHDOG_RESET macros to call the function resulting in slightly smaller > U-Boot images and simpler code. > > U-Boot code size reduction: > > PowerPC board with watchdog support (lwmon5): > -> 80 bytes smaller image size > > PowerPC board without watchdog support (sequoia): > -> 112 bytes smaller image size > > Signed-off-by: Stefan Roese > Cc: Detlev Zundel > Cc: Wolfgang Denk > --- > lib/gunzip.c | 5 ----- > lib/zlib.c | 10 ++++------ > 2 files changed, 4 insertions(+), 11 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de You could end up being oddly sad and full of a strange, diffuse com- passion which would lead you to believe that it might be a good idea to wipe out the whole human race and start again with amoebas. - Terry Pratchett, _Guards! Guards!_