Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 156FFC43334 for ; Sat, 23 Jul 2022 17:05:23 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9BB9E84118; Sat, 23 Jul 2022 19:05:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="nUvikAWP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2EAA8840FE; Sat, 23 Jul 2022 19:05:19 +0200 (CEST) Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BAEB883FCB for ; Sat, 23 Jul 2022 19:05:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x72e.google.com with SMTP id c3so5760028qko.1 for ; Sat, 23 Jul 2022 10:05:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=FlhS3gqKW1iioAQl8Kcucv1U0Try9D+CZb7QHkwvduU=; b=nUvikAWPVU0IfwHKxl9PADa6NYYavKGrhCj8lTFAXK8PBK9T/4CP/hR8hZM/8KCBsy hfAWTw5cQe3GSXSxj5dtMNKtO24F3tfeM/4sjkvhFdLWmdPVewyIrLUEcWhgpTxMp9bD mnwo4ofjyPbAcwCJIXhDEVuXdgmESzjCj5EKQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=FlhS3gqKW1iioAQl8Kcucv1U0Try9D+CZb7QHkwvduU=; b=skwY/zm+e2FvE3ImpVThV5mlYjyodLbDJDQ4nX+H3zkLdn39MRCx/T0JcbPGFT6bKe O7m8qVDGXRFgXEz9VygTfbRso23QUMl6byEyE3QpFF8AzCoSrs/fZK5bD3tzLS6YOft5 H5VlMPHCd57+hUD4Ou8z1fUhQe7qB/1rkmtwt3LqTvwPnPCFwVHsEsPZxLxVVHveafG+ SygNxuMlBnJdMD7KyV6b+t7nnUOyh3A8F+NvLtgPjG/NiqNdw66t8ra9zKQYxcpRqk7Q U0S7nEWSMbLUuhTXxUJO9V2XinYwHZJ04wKJnn+NWpypjt9iSTIxt2mdPsI56Y27njRp M0vQ== X-Gm-Message-State: AJIora/0YqY7jZ2rGhTbmUBXYoFgxzg9vOE0atnmcLAN73rP16yCeUSx hHqYqy5A4AstDw6CebzMfrtDhiWHlJAO5w== X-Google-Smtp-Source: AGRyM1sr0zWVXW3LQ6iFUMEv1x5BPjnatRx/kiqjobAcmesgMhpuAhetY0LUwqfiq2gWKI4TEIJQUA== X-Received: by 2002:a05:620a:1a8f:b0:6b5:fe28:f91d with SMTP id bl15-20020a05620a1a8f00b006b5fe28f91dmr3977816qkb.279.1658595914753; Sat, 23 Jul 2022 10:05:14 -0700 (PDT) Received: from bill-the-cat.lan (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id w12-20020a05620a444c00b006a981a2c483sm5983901qkp.39.2022.07.23.10.05.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Jul 2022 10:05:13 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 01/20] sh: Remove unused code in arch/sh/lib/bootm.c Date: Sat, 23 Jul 2022 13:04:53 -0400 Message-Id: <20220723170512.1472738-1-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean There are no callers of the hexdump function that is guarded by CONFIG_SYS_DEBUG, so remove the section. Signed-off-by: Tom Rini --- arch/sh/lib/bootm.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/arch/sh/lib/bootm.c b/arch/sh/lib/bootm.c index 9b71424dfe60..7ea04442b876 100644 --- a/arch/sh/lib/bootm.c +++ b/arch/sh/lib/bootm.c @@ -17,21 +17,6 @@ DECLARE_GLOBAL_DATA_PTR; -#ifdef CONFIG_SYS_DEBUG -static void hexdump(unsigned char *buf, int len) -{ - int i; - - for (i = 0; i < len; i++) { - if ((i % 16) == 0) - printf("%s%08x: ", i ? "\n" : "", - (unsigned int)&buf[i]); - printf("%02x ", buf[i]); - } - printf("\n"); -} -#endif - #ifdef CONFIG_SH_SDRAM_OFFSET #define GET_INITRD_START(initrd, linux) (initrd - linux + CONFIG_SH_SDRAM_OFFSET) #else -- 2.25.1