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 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 60120C7EE2E for ; Fri, 9 Jun 2023 20:24:56 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 29C4485893; Fri, 9 Jun 2023 22:24:54 +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="aYWGftir"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D3D7285A85; Fri, 9 Jun 2023 22:24:52 +0200 (CEST) Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) (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 6D22584768 for ; Fri, 9 Jun 2023 22:24:50 +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=jernej.skrabec@gmail.com Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-30b023b0068so1680634f8f.0 for ; Fri, 09 Jun 2023 13:24:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686342290; x=1688934290; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=VJmj9RC7JrITIeRp5vwXnIagysFthIp7E3tpcobsSj8=; b=aYWGftir4Nc0j9T69cdUswXKfbAiXdRkiRgLgMGsiBKusnCe0+DlWwb2yuuvn72HwJ X4IezSIQPb7u3npkdJlqOoO6d6I+c6TtF/kuMbde4JJc+HGIdu2KSDj8fLIE4fEwupXN Sf+ZHOUuw/wetUP04lLZI9+Jup0vc8i988wlPVX7YLPhbQvNXohLlZzK013zifGCM3hA KEevlSG1sXKznJkQPUJtjjGo9yKjAQhq+qjzXXqX2upGqtKHqHNZEP0UepaxdENiRoLj jbKYABKNqj/i+ytjice+rPCoDDZ3dfEILnNM3Q1GKvCrFeJdbttiZYIjTzeJXeGIzBRU cH+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686342290; x=1688934290; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VJmj9RC7JrITIeRp5vwXnIagysFthIp7E3tpcobsSj8=; b=D9scDVcZA5bqODhml8jAsN2rPNNxgKA+KVkYHtykogJ18heR9oBoKeOMRIIzGrATL6 5siDTZDdx/oizaN2Epc1sYOkOWN4AT2cKobobfoz2sC5F/pCeMcmMIzKSTCshP5MyT92 +6BnnBmpC/a58EStADLqDpnbotPS1VnLhShQKsqkKsr0NC2Y0XZB8XPQVl/GRl0WG5b5 hN07rJjhjMkQEWNEx7/OtmS/TZLYcR3LMaR/e90h+1t04GQeFHj1baMkmnC/vACdz0jy 07bscjknX0V5VPdjn9/RXNQL670/9VoT6T10ru8QK/lLvBMp/5XUc3BzAIkDK/sMjGFp h34Q== X-Gm-Message-State: AC+VfDyNoK2iqq1hMYfkqMMLgiEwi6dPzQEtHlvBC2jaxeRAckSmwNoD zr7eglCkskGgeLp9C4M2qkw= X-Google-Smtp-Source: ACHHUZ6ZBgWscntQGExTdvlE8rW0jJ4+GYUdtTFcY43K2guECx9whpzgsfcxffLEmh9mnGD8p+JECQ== X-Received: by 2002:adf:dc83:0:b0:30a:e901:bc66 with SMTP id r3-20020adfdc83000000b0030ae901bc66mr2290935wrj.5.1686342289715; Fri, 09 Jun 2023 13:24:49 -0700 (PDT) Received: from jernej-laptop.localnet (89-212-118-115.static.t-2.net. [89.212.118.115]) by smtp.gmail.com with ESMTPSA id a9-20020a5d5089000000b0030ae973c2e7sm5294671wrt.83.2023.06.09.13.24.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jun 2023 13:24:49 -0700 (PDT) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Jagan Teki , Mikhail Kalashnikov , Andre Przywara Cc: Samuel Holland , Icenowy Zheng , Piotr Oniszczuk , u-boot@lists.denx.de, linux-sunxi@lists.linux.dev Subject: Re: [PATCH 2/5] sunxi: H616: dram: const-ify DRAM function parameters Date: Fri, 09 Jun 2023 22:24:48 +0200 Message-ID: <4490774.LvFx2qVVIh@jernej-laptop> In-Reply-To: <20230607000745.10245-3-andre.przywara@arm.com> References: <20230607000745.10245-1-andre.przywara@arm.com> <20230607000745.10245-3-andre.przywara@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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.8 at phobos.denx.de X-Virus-Status: Clean Dne sreda, 07. junij 2023 ob 02:07:42 CEST je Andre Przywara napisal(a): > There are quite some functions in the Allwinner H616 DRAM "driver", some > of them actually change the parameters in the structure passed to them, > but many are actually not. > To increase the optimisation potential for the code, mark those functions > that just read members of the passed dram_para struct as "const". > This in itself does not decrease the code size, but lays the groundwork > for future changes doing so. > > Signed-off-by: Andre Przywara Reviewed-by: Jernej Skrabec Best regards, Jernej