From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99605C12002 for ; Wed, 21 Jul 2021 09:31:26 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id AEB3A61181 for ; Wed, 21 Jul 2021 09:31:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AEB3A61181 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B3D2B80FBE; Wed, 21 Jul 2021 11:31:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1626859883; bh=Z3ouGq5181TP8PPGVmMSqBm2iHyKxG/utbdh/jCYa8I=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=ef9gLHKqLqCcirxRunDFbTgagnwjxwEeJcMxmZ9OUqNotiqLAhPwBKx6GnBCsJL1e ijwl/cwmvxk6Jix0WHKbc+pUIeEuufWZL70AAfxwuCqUI3Wrz4aIM7JEO6+xtScpw2 CAk6cBN184oXpm9huDbCpEQ4iz8RtRBUQsQ5hEH2tuNJFNxMzcSTZUL9r87oajTmxS BYeGL2QZDbLZQAXpsGyEtvK6ndyeifOv/Lvw2dfYYH1k19ow1ZVJEL/q+v2sn5cO8D sdybgBA2BhyxC/0y4txGPNwZBQJmd8aq3+/1nyLUVYOf6qkK0fPgLiPt5adDfrxg+a GfP3i00WMrsYg== Received: by phobos.denx.de (Postfix, from userid 109) id 9EC188203D; Wed, 21 Jul 2021 11:31:21 +0200 (CEST) Received: from mout-u-205.mailbox.org (mout-u-205.mailbox.org [IPv6:2001:67c:2050:1::465:205]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 14AC280FB4 for ; Wed, 21 Jul 2021 11:31:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-205.mailbox.org (Postfix) with ESMTPS id 4GV9Lt5mfVzQk2X; Wed, 21 Jul 2021 11:31:18 +0200 (CEST) Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter05.heinlein-hosting.de (spamfilter05.heinlein-hosting.de [80.241.56.123]) (amavisd-new, port 10030) with ESMTP id TBdKKRRHIDd7; Wed, 21 Jul 2021 11:31:14 +0200 (CEST) Subject: Re: [PATCH u-boot-mvebu v2 13/41] tools: kwbimage: Change maximum number of arguments in binary header to 256 To: =?UTF-8?Q?Marek_Beh=c3=ban?= , u-boot@lists.denx.de, Chris Packham , Baruch Siach , Dirk Eibach , Chris Packham Cc: Dennis Gilmore , Mario Six , Jon Nettleton , =?UTF-8?Q?Pali_Roh=c3=a1r?= References: <20210719122104.29698-1-marek.behun@nic.cz> <20210719122104.29698-14-marek.behun@nic.cz> From: Stefan Roese Message-ID: <03660a36-59ab-ffea-d34c-194f0dc62eb0@denx.de> Date: Wed, 21 Jul 2021 11:31:13 +0200 MIME-Version: 1.0 In-Reply-To: <20210719122104.29698-14-marek.behun@nic.cz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 33BF01827 X-Rspamd-UID: e08b35 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean On 19.07.21 14:20, Marek Behún wrote: > From: Pali Rohár > > The number is stored in one byte, so the maximum should be 255. > > Signed-off-by: Pali Rohár > Reviewed-by: Marek Behún Reviewed-by: Stefan Roese Thanks, Stefan > --- > tools/kwbimage.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/kwbimage.c b/tools/kwbimage.c > index 76c25628d4..2d4574af7d 100644 > --- a/tools/kwbimage.c > +++ b/tools/kwbimage.c > @@ -89,7 +89,7 @@ struct nand_ecc_mode nand_ecc_modes[] = { > /* Used to identify an undefined execution or destination address */ > #define ADDR_INVALID ((uint32_t)-1) > > -#define BINARY_MAX_ARGS 8 > +#define BINARY_MAX_ARGS 255 > > /* In-memory representation of a line of the configuration file */ > > Viele Grüße, Stefan -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de