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=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no 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 36495C433DB for ; Tue, 30 Mar 2021 13:35:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 11A20619D3 for ; Tue, 30 Mar 2021 13:35:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232117AbhC3NfC (ORCPT ); Tue, 30 Mar 2021 09:35:02 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:54800 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232079AbhC3Nej (ORCPT ); Tue, 30 Mar 2021 09:34:39 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1lREVk-00E1hy-W6; Tue, 30 Mar 2021 15:34:24 +0200 Date: Tue, 30 Mar 2021 15:34:24 +0200 From: Andrew Lunn To: Steen Hegelund Cc: Kishon Vijay Abraham I , Vinod Koul , linux-arm-kernel@lists.infradead.org, Alexandre Belloni , Microchip UNG Driver List , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel test robot Subject: Re: [PATCH linux-next 1/1] phy: Sparx5 Eth SerDes: Use direct register operations Message-ID: References: <20210329081438.558885-1-steen.hegelund@microchip.com> <20210329081438.558885-2-steen.hegelund@microchip.com> <2356027828f1fa424751e91e478ff4bc188e7f6d.camel@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2356027828f1fa424751e91e478ff4bc188e7f6d.camel@microchip.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > +static int sparx5_sd25g28_apply_params(struct sparx5_serdes_macro *macro, > > > + struct sparx5_sd25g28_params *params) > > > { > > > - struct sparx5_serdes_regval item[] = { > > > > Could you just add const here, and then it is no longer on the stack? > > > > Andrew > > No it still counts against the stack even as a const structure. I'm surprised. Maybe it needs static as well? I'm just thinking you can get a much smaller patch if you don't need to modify the table, just add additional qualifiers. Andrew