Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1699732pxk; Fri, 4 Sep 2020 17:13:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUbLO48djT7w5ATqNXgnrsuh5YKU9d0d0PkaOQMv2UmyoVn2cqjNM7XI6byv4qw4Fq3gpx X-Received: by 2002:a17:906:d9d9:: with SMTP id qk25mr9882444ejb.51.1599264789523; Fri, 04 Sep 2020 17:13:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599264789; cv=none; d=google.com; s=arc-20160816; b=GtYW4ezatHhVXFcLHBJc323nJWU19Wf1dlSnxa8U9ZQic/GbBL9clTZamPDfc02eKJ DLp7Pn8wInvK4Hz1mcfBzY9iYVODVnc/l9XPoQPjq+OZLXP72oV1POfEh6r34H097Mfh uYN5RqmPoRgW5/Zi9Iu0XYnomAi/2jlmulOpqQj3TW8cAN+zktXrTveQkDVa6i+zdScP G1IuQK4hxxWfmhRn7ESIbq9ogIqh8abTDMrAKMznaNw/iTgsOzPZO50RDRhGGgPKgigA lhdB7naT90cjq+od7OnBDPZiSq3wB/0zSa03HAIpIKTpUCri3jYlkDgSAP20fCGFciom wCuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=N5LdhWbNHwGUD+hatjXQ8/rC8Hf8U9OPIQmA1/MlpwU=; b=lhlUAmGnhrj9xXqCmF5/tMpnv+mSas8zXtTeJ8Lkz1hFzD0/lHmO12kccQk7MMhdIK OJ5NnMYutGvOb+5XHdzr00KNMGt8FhoLZ4iwaxCfTLt6H3FukBYPY7RSTu1bUUBmq/yl +VzPKoFNnDNd4LSMx6iJCk14dyBiugE2hlma4uefF6ahUyZUwLwlQhgiyGLJSF6MlRrL EWpVmexy9ZO58/2ac/kfdlnY2CzKxiBgmsSudS8TfYUMkmXqeLDtb3mSyXs4OSsyt0iJ LTys4Dh4LSBy7H//EnGzwxAibvvVsBv0G2Uhp0hC7sQTDOrQuDh/InJt/Vo9jmimgcpV LrKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kotxlg9g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j16si5948983edj.408.2020.09.04.17.12.45; Fri, 04 Sep 2020 17:13:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kotxlg9g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728201AbgIEAKA (ORCPT + 99 others); Fri, 4 Sep 2020 20:10:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:57988 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726208AbgIEAKA (ORCPT ); Fri, 4 Sep 2020 20:10:00 -0400 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5BDD6208FE; Sat, 5 Sep 2020 00:09:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599264599; bh=P/6uRSKbc276FtT+BF2FCS1nLO3Isxb5xURf1YHtXCA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=kotxlg9gdljRKVFnlVGjSRirPUAw0VjAM2+kv2MMbw7NNr/KRAGbQ/qP+LxCx8jf1 EBl9Y+/ANHoA6CJTtV9q8wa6gtmq3MFnyQ6/ipRCZVC3LuV2dFHY4kakkmdSPYk0Dd Q1p085pqITMVNoaOs7qqLD7DJwzHC4K0FBYxhSZI= Date: Fri, 4 Sep 2020 17:09:57 -0700 From: Jakub Kicinski To: Grygorii Strashko Cc: "David S. Miller" , , Vignesh Raghavendra , Murali Karicheri , Sekhar Nori , , Subject: Re: [PATCH net-next 8/9] net: ethernet: ti: ale: switch to use tables for vlan entry description Message-ID: <20200904170957.11a8068d@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20200904230924.9971-9-grygorii.strashko@ti.com> References: <20200904230924.9971-1-grygorii.strashko@ti.com> <20200904230924.9971-9-grygorii.strashko@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 5 Sep 2020 02:09:23 +0300 Grygorii Strashko wrote: > The ALE VLAN entries are too much differ between different TI CPSW ALE > versions. So, handling them using flags, defines and get/set functions > became over-complicated. > > This patch introduces tables to describe the ALE VLAN entries fields, which > are different between TI CPSW ALE versions, and new get/set access > functions. It also allows to detect incorrect access to not available ALL > entry fields. When building with W=1 C=1: drivers/net/ethernet/ti/cpsw_ale.c:179:28: warning: symbol 'vlan_entry_cpsw' was not declared. Should it be static? drivers/net/ethernet/ti/cpsw_ale.c:187:28: warning: symbol 'vlan_entry_nu' was not declared. Should it be static? drivers/net/ethernet/ti/cpsw_ale.c:63: warning: Function parameter or member 'num_bits' not described in 'ale_entry_fld'