From patchwork Sat Apr 18 06:08:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ovidiu Panait X-Patchwork-Id: 1272563 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=o0/ljSEO; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4942bN3jhFz9sP7 for ; Sat, 18 Apr 2020 16:09:04 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 792AE81205; Sat, 18 Apr 2020 08:08:45 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="o0/ljSEO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4CEB580652; Sat, 18 Apr 2020 08:08:38 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) (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 A0EDF80574 for ; Sat, 18 Apr 2020 08:08:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ovpanait@gmail.com Received: by mail-wr1-x443.google.com with SMTP id d27so5449465wra.1 for ; Fri, 17 Apr 2020 23:08:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cxp/ZgSFvfkPHO9BZAoSeSjv8i3LxwjOOwgEhZRAdOI=; b=o0/ljSEO4Dr9u1x9txWXSYWqb1gitQd1tQUYM/ON+Y/tqAevtxk0iDWy+Xi12NuOlh phQAgyNmP1A8XAQleeZxuMZ1bis3xcTCMP+QWYBjouSIX1ZoBOxfZb3DgBLhSZyhHybw j/FQ90erP/z3fCkbxSsYxBWueNMgKhCvozBobIHKuOEf/ziWQ5jBkb7SQRjghF9aG26l O+zWxTH+yrTaAngSdYf9bJLAnpqUiTW8uBlNyCHCKfmMPYLZ6LgeTGXfD6F8D2B6l2Xw 1v73UKD3O6SDEbs+iHpaNzq1UXDuJmJWXs9GWP+syyFu0A3/T13oSstKDIrSHSLYJMJa Gisw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=cxp/ZgSFvfkPHO9BZAoSeSjv8i3LxwjOOwgEhZRAdOI=; b=LYco1mkMROUGsK0cQjVyIQ+HlxuUxVDF53rXIhnuhhFQAjK1Oof9oYzd598qsBJcMY 4FnMRgeqQhBjQz46il5i0NoIp/WNOkoyCoXorIqnFbYlpm6U9uPElt/zoPMrU5HtkiTe 0BiwGBA+4c/DfsnT1n5zcmOxJaHHbFPY/M8hg1/FCCQTjSzHHYPnX/m2pADcfk0WuJuq ydvdyy6oyBFaHvxQk67NAjfffpY736/Hb3dMUou4FEOByoEvLzk5godVcwqGOC8yZ16Y ySUgdxs/jPDS+olSuoBGrB2iDVH8Y3F3fDMpI3k0GdWevhWEcttpYA2Rd2/3ogFk6NfA PPtQ== X-Gm-Message-State: AGi0PuaX2WB5kTR4lJP6H3IOADINziMlTrPX/ZJ/DZbopJ5lY9lZQzQD g+15K0yl2/Epsv0Y9tbCQsCUvGDfum9Fzg== X-Google-Smtp-Source: APiQypJfuhB10Epm+oMxTCVuZJqKS+Sh2sN0o7CkWbqTXGC16+QQG8scKytAToIvEFY2mfxfJzjtWQ== X-Received: by 2002:adf:ab09:: with SMTP id q9mr302217wrc.240.1587190114085; Fri, 17 Apr 2020 23:08:34 -0700 (PDT) Received: from uidivo.corp.ad.wrs.com ([2a02:2f0e:c308:f100:55bc:c5f1:3223:2b73]) by smtp.googlemail.com with ESMTPSA id d13sm10141901wmb.39.2020.04.17.23.08.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Apr 2020 23:08:33 -0700 (PDT) From: Ovidiu Panait To: u-boot@lists.denx.de Cc: sjg@chromium.org, trini@konsulko.com, Ovidiu Panait Subject: [PATCH 2/3] cmd/bedbug.c: Make bedbug_init have a return value Date: Sat, 18 Apr 2020 09:08:03 +0300 Message-Id: <20200418060804.28998-2-ovpanait@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200418060804.28998-1-ovpanait@gmail.com> References: <20200418060804.28998-1-ovpanait@gmail.com> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 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.102.2 at phobos.denx.de X-Virus-Status: Clean Do this as a preparation for removing initr_bedbug wrapper from common/board_r.c. Signed-off-by: Ovidiu Panait Reviewed-by: Simon Glass --- cmd/bedbug.c | 4 ++-- include/bedbug/type.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/bedbug.c b/cmd/bedbug.c index 9fee528830..7cb6378352 100644 --- a/cmd/bedbug.c +++ b/cmd/bedbug.c @@ -44,10 +44,10 @@ int bedbug_puts (const char *str) * settings. * ====================================================================== */ -void bedbug_init (void) +int bedbug_init (void) { /* -------------------------------------------------- */ - return; + return 0; } /* bedbug_init */ diff --git a/include/bedbug/type.h b/include/bedbug/type.h index b7b447b1fe..5008b40ca8 100644 --- a/include/bedbug/type.h +++ b/include/bedbug/type.h @@ -3,7 +3,7 @@ /* Supporting routines */ int bedbug_puts (const char *); -void bedbug_init (void); +int bedbug_init (void); void bedbug860_init (void); void do_bedbug_breakpoint (struct pt_regs *); void bedbug_main_loop (unsigned long, struct pt_regs *);