Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751194AbdHXFaq (ORCPT ); Thu, 24 Aug 2017 01:30:46 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:60676 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750806AbdHXFap (ORCPT ); Thu, 24 Aug 2017 01:30:45 -0400 Date: Wed, 23 Aug 2017 22:30:44 -0700 (PDT) Message-Id: <20170823.223044.860811579441677677.davem@davemloft.net> To: andrew@lunn.ch Cc: arvind.yadav.cs@gmail.com, vivien.didelot@savoirfairelinux.com, f.fainelli@gmail.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH 0/3] constify dsa_switch_ops From: David Miller In-Reply-To: <20170823124556.GC28612@lunn.ch> References: <1503483419-21780-1-git-send-email-arvind.yadav.cs@gmail.com> <20170823124556.GC28612@lunn.ch> X-Mailer: Mew version 6.7 on Emacs 25.2 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 23 Aug 2017 22:30:45 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 688 Lines: 19 From: Andrew Lunn Date: Wed, 23 Aug 2017 14:45:56 +0200 > On Wed, Aug 23, 2017 at 03:46:56PM +0530, Arvind Yadav wrote: >> dsa_switch_ops are not supposed to change at runtime. All functions >> working with dsa_switch_ops provided by work with >> const dsa_switch_ops. So mark the non-const structs as const. >> >> Arvind Yadav (3): >> [PATCH 1/3] net: dsa: loop: constify dsa_switch_ops >> [PATCH 2/3] net: dsa: lan9303: constify dsa_switch_ops >> [PATCH 3/3] net: dsa: mt7530: constify dsa_switch_ops > > For the whole series: > > Reviewed-by: Andrew Lunn None of these patches apply to net-next, things are const there already.