Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp344318ybf; Thu, 27 Feb 2020 22:37:55 -0800 (PST) X-Google-Smtp-Source: APXvYqwk04Aek9gdRUVgxnOR1a8r2rPnhhIZq2dcTnzc07hHdi1/t5hdeE1cVc3382pT4krtpzIQ X-Received: by 2002:a54:4805:: with SMTP id j5mr2127338oij.29.1582871875304; Thu, 27 Feb 2020 22:37:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582871875; cv=none; d=google.com; s=arc-20160816; b=M7dtoT9k7aQKTyuSl+aOgAFZjEiz4hvB8JnPCa+2KeA5aZaN+bPk9WDBpzClExQB0f vzPGA39Y9WgO5LVuqmbhjTfwTB6UbVE9zS81NJZ+j1lfX4b/8hOtL0dMPDsEOTIbIcBf U0gnK6EcZGNQlZExTsMQA46xq+ePJHl+XW6EYLnu9TDHre/jIUC64JF6ZB1G3vWCsg1V E6slHRhcs8i1+appmhrFdMFZRPDC2xqhh+MLG2Ubu8Uq9kkpsTAHEGjyS34oyJ+Pw/3n 72gd2EvLGjxdjPfq+NAmkv8SmBafHNhKtPrRatHRkA6VXU2ZIIMBYk0x3op3S9Yg2xLF do9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=m49OdKPe1I/oPM1RnkJb6B2gHY6zkx2O7ln3AzFZcfU=; b=juDpEfmhjzWMPQczvQh4pqJbwTxnhOO9nn6SchF2BqSY/X84a16MbE9Pn7DHLSDewg 29wlmPX7hIj6OBZ7MzOwJWbLWs37vBoFbzh2YqMX/1Wk9p+TkAXwctaagGRBtT14AcX2 A6GrtRNT1ItqpSxME3s6CQP9SYYgcn91lt7j1EP2m1YY5JclpYOGEsXtbDglcw8jiTnp Q6kN7Q54fvf0QndgRyWRcmNahcj6RjEtsVK2mpk/t5x7ugbyfKOreSRA6JGNh6zKygGI XlshrnGnjnhir4GNs0Y1flQADkmOnxD1kKeD6FK+k6+goNntNwwTOOch2kzSWDxccoCY trpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=ATAbGjog; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l9si569567otr.27.2020.02.27.22.37.43; Thu, 27 Feb 2020 22:37:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=ATAbGjog; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726671AbgB1Gg0 (ORCPT + 99 others); Fri, 28 Feb 2020 01:36:26 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:54757 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725862AbgB1Gg0 (ORCPT ); Fri, 28 Feb 2020 01:36:26 -0500 Received: by mail-wm1-f65.google.com with SMTP id z12so1969808wmi.4 for ; Thu, 27 Feb 2020 22:36:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=m49OdKPe1I/oPM1RnkJb6B2gHY6zkx2O7ln3AzFZcfU=; b=ATAbGjogBvVdPfzGc7nWLhIysYWI0IeFcclb3bwuMJA/jCu1D+zew5i++bdrqRSqaK WdfsIsfHlggASETKp2IrEB2lX4ZSQ3Kdzh+vvufqEVmJWY2Uo7QaPihzBYDAWZHkTFzX UqF5EagV2+pQu6ToENGYUbBlLkh1igMHH/694s6EcKN1Or/cU8RU/09xf5eYHwKXPSHR m9G6z4J4NRqP9aajm/6xfPTLZgoD1aUwBpDTUWbgSSsJOeVW2l4iHHL5ByhgyxFQenSu i/zoWc/CO50mhPR4P7DA2wtIwVYfpy3ZLS1ihleCQBM/CwRJsQf0y6ODMavx9WU2XJHi /Peg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=m49OdKPe1I/oPM1RnkJb6B2gHY6zkx2O7ln3AzFZcfU=; b=FgY80An4DETwtfYqLZPTlnfqw4R2H4HNmtwwqWxYlx+Ow7Gj/QVj5UqTxav80M5tJW f+QCWQ1bnue1T1XshL50BmN7jxGnvG7q9HC5pamrvxv6cPuhscmmTYC1oXjyxouIcCW2 LWLFGzKdYGuMvGCpVAAqRLfqRU4gtv+H0kEBAohcuqlEuQVuvzoKba+ojyOW7/07mL8m eVrmszUU25GzjLwh5Fmsq5Gx2lpLqvk5JcWi8XOLK8FrLB3rQc43t+P3E6S8nmAmS2sv Wgr4FIL9kOzjJw1EgWZXV+FaVhENAbmSV17p9YNxF/wWiRMlCO20l4oerlWWSdj4iB4V 4fpg== X-Gm-Message-State: APjAAAWNDjgVvTaFNUIklgDvsoicWKtUNPGOKGTdxQ0HBnF5QKQ24XjA tV8Mi0otZhHgu/zK6hn67DmIzs3QHRM= X-Received: by 2002:a05:600c:2409:: with SMTP id 9mr3208126wmp.140.1582871784752; Thu, 27 Feb 2020 22:36:24 -0800 (PST) Received: from localhost (ip-89-177-130-96.net.upcbroadband.cz. [89.177.130.96]) by smtp.gmail.com with ESMTPSA id l4sm11640069wrv.22.2020.02.27.22.36.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Feb 2020 22:36:24 -0800 (PST) Date: Fri, 28 Feb 2020 07:36:23 +0100 From: Jiri Pirko To: Vadym Kochan Cc: Andrew Lunn , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "David S . Miller" , Oleksandr Mazur , Taras Chornyi , Serhiy Boiko , Andrii Savka , Volodymyr Mytnyk , Serhiy Pshyk Subject: Re: [RFC net-next 1/3] net: marvell: prestera: Add Switchdev driver for Prestera family ASIC device 98DX325x (AC3x) Message-ID: <20200228063623.GI26061@nanopsycho> References: <20200225163025.9430-1-vadym.kochan@plvision.eu> <20200225163025.9430-2-vadym.kochan@plvision.eu> <20200226155423.GC26061@nanopsycho> <20200227213150.GA9372@plvision.eu> <20200227214357.GB29979@lunn.ch> <20200227235048.GA21304@plvision.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200227235048.GA21304@plvision.eu> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fri, Feb 28, 2020 at 12:50:58AM CET, vadym.kochan@plvision.eu wrote: >On Thu, Feb 27, 2020 at 10:43:57PM +0100, Andrew Lunn wrote: >> > > Please be consistent. Make your prefixes, name, filenames the same. >> > > For example: >> > > prestera_driver_kind[] = "prestera"; >> > > >> > > Applied to the whole code. >> > > >> > So you suggested to use prestera_ as a prefix, I dont see a problem >> > with that, but why not mvsw_pr_ ? So it has the vendor, device name parts >> > together as a key. Also it is necessary to apply prefix for the static >> > names ? >> >> Although static names don't cause linker issues, you do still see them >> in opps stack traces, etc. It just helps track down where the symbols >> come from, if they all have a prefix. >> >> Andrew > >Sure, thanks, makes sense. But is it necessary that prefix should match >filenames too ? Would it be OK to use just 'mvpr_' instead of 'prestera_' I would vote for "prestera_". It is clean, consistent, obvious. >for funcs & types in this particular case ? > >Regards, >Vadym Kochan