X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=lib%2Fgzip.c;h=2c49e4e9ffa0c748abc972fa14263c7047259aad;hb=fc01daee8b8dc1ea486fcbea887224c8d1aca33b;hp=a83f4af08af27566d889f884fc8465fbe9681e63;hpb=1c27059a2f7158a9c9a8778535b030935d75179d;p=u-boot diff --git a/lib/gzip.c b/lib/gzip.c index a83f4af08a..2c49e4e9ff 100644 --- a/lib/gzip.c +++ b/lib/gzip.c @@ -2,23 +2,7 @@ * (C) Copyright 2012 * Lei Wen , Marvell Inc. * - * See file CREDITS for list of people who contributed to this - * project. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA + * SPDX-License-Identifier: GPL-2.0+ */ #include @@ -26,6 +10,7 @@ #include #include #include +#include #include #include "zlib/zutil.h" @@ -41,7 +26,7 @@ static void *zalloc(void *x, unsigned items, unsigned size) size *= items; size = (size + ZALLOC_ALIGNMENT - 1) & ~(ZALLOC_ALIGNMENT - 1); - p = malloc (size); + p = malloc_cache_aligned(size); return (p); }