Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4028211rdh; Tue, 28 Nov 2023 09:50:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IEsCyegiTnr2JW7K9A+3mh1rTdTGtlQxlceMuiii9Nw+bn/+E+xM6wLfi/1vwvHuNZOI0oB X-Received: by 2002:a17:90b:4a90:b0:280:3cc4:f052 with SMTP id lp16-20020a17090b4a9000b002803cc4f052mr15856491pjb.17.1701193846602; Tue, 28 Nov 2023 09:50:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701193846; cv=none; d=google.com; s=arc-20160816; b=GZgxjIGpMBAM4R86uQUi5gWngeNPDLjdO5/CPoOorTmju7Ae1m1dn20nCy9C37FqtC BnKne8H3BQXAB+00b3N5TAxfWBxXRZNhD5L5NevJuz4qPwaMaTwSl82gprL7KbmLaDDD 1YwDF4LwcdbiirMK7pH9iFKuOPnzPuVKlJvtWpXwPEpL4fSvgVOZyvKhY6W+Ym4skwZG sG5f2RITu5ekFbSyXlPmZkSeJ2PrEVhMGfplPbiwlRWXPc40GlRXz9YsvCUaFUBu8SY/ nkSmUIMPQ1PQSQLuHMiH4UOG44vVWPM7uO2O7vI3DoJAg9m1rWbnBDCvQic6VinSgiA+ wRRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=xgdRAg2B82nOyntV7bTiD6MVZUB9Pooa7flCajfyRsc=; fh=15bSe2RYV30STzUggdtMwkwrjcGwnlxmTfALLZrzAjg=; b=Bts5rwv+n/HdpC6f1jEyPkZRm6hnI0UgfN9puzwq9FD0yfPi0RhBrD7gj4VZVxOuY3 w+MYb/g1cA9Ga/A30FwMO91JdZBN1mkWryt95dmBArMKoNKSu9UkdBgDgtPloCjOuPvU om3H2M/RVOJ6+wHTUVIFO7ueYN0PpEGzZlISXIVnPo3yRT+f/NTp77O/llyP7ojFGCa1 XmdIpMnNdpun/TyKEo48khdFt2S5tfl+2OWvM7XDqK3JgIQCTiJX9l9lqRRi+OwCp17o rmfZrHDhU463PstLryGAuumhGwkztnVKuR8+ioA6W9tEYEPmJfA8CyPFjOzV7alqArKA MgNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="EbnNwH/X"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id fw8-20020a17090b128800b0028524fc80c4si12433964pjb.55.2023.11.28.09.50.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 09:50:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="EbnNwH/X"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 117988089855; Tue, 28 Nov 2023 09:50:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346463AbjK1Rua (ORCPT + 99 others); Tue, 28 Nov 2023 12:50:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346449AbjK1Ru1 (ORCPT ); Tue, 28 Nov 2023 12:50:27 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F008DC; Tue, 28 Nov 2023 09:50:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701193834; x=1732729834; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=FHQ7x5YlyO03fAtFmbz0hZlnhaEwXt8ecRdrQKklMuw=; b=EbnNwH/XsmAQUFrBIPW5kc8LTTxAJO3intXbKWOu5Qd6lXuqyE2IWJ4l zR+cLxFkKl7ClD1Ut1tMT0Xc1y0eeR2cpXWx2YmRHfLqeReJsqcU/r++S bo22+X9/dfqFL7I2xqbdsc6HNgbflxrCoWxZVU+ElH1dlHd44HTzwou5B y0XhUw5I/ARyTy+ERkisty1IR3+1P50B3iJAaq9iCTkAMu43cGeH/UIE9 tAzhK/w4JnWtEsHUfV3Q9kePjK+UysgSk6uM6Oz0hiGKgeSHT/13nLY0P 8OKlSpt/75BhwXqBbB34IO/MXznVb4SFyoD6J25oPWLimo/Z2phI559ej A==; X-IronPort-AV: E=McAfee;i="6600,9927,10908"; a="372352359" X-IronPort-AV: E=Sophos;i="6.04,234,1695711600"; d="scan'208";a="372352359" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2023 09:50:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10908"; a="744972833" X-IronPort-AV: E=Sophos;i="6.04,234,1695711600"; d="scan'208";a="744972833" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga006.jf.intel.com with ESMTP; 28 Nov 2023 09:50:30 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id E33F723E; Tue, 28 Nov 2023 19:50:28 +0200 (EET) From: Andy Shevchenko To: Vladimir Oltean , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: Vladimir Oltean , Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andy Shevchenko Subject: [PATCH net-next v1 1/1] net: dsa: sja1105: Use units.h instead of the copy of a definition Date: Tue, 28 Nov 2023 19:50:27 +0200 Message-ID: <20231128175027.394754-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 28 Nov 2023 09:50:44 -0800 (PST) BYTES_PER_KBIT is defined in units.h, use that definition. Signed-off-by: Andy Shevchenko --- drivers/net/dsa/sja1105/sja1105_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/dsa/sja1105/sja1105_main.c b/drivers/net/dsa/sja1105/sja1105_main.c index 74cee39d73df..6646f7fb0f90 100644 --- a/drivers/net/dsa/sja1105/sja1105_main.c +++ b/drivers/net/dsa/sja1105/sja1105_main.c @@ -21,6 +21,8 @@ #include #include #include +#include + #include "sja1105.h" #include "sja1105_tas.h" @@ -2138,7 +2140,6 @@ static void sja1105_bridge_leave(struct dsa_switch *ds, int port, sja1105_bridge_member(ds, port, bridge, false); } -#define BYTES_PER_KBIT (1000LL / 8) /* Port 0 (the uC port) does not have CBS shapers */ #define SJA1110_FIXED_CBS(port, prio) ((((port) - 1) * SJA1105_NUM_TC) + (prio)) -- 2.43.0.rc1.1.gbec44491f096