Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp602515pxu; Sun, 25 Oct 2020 10:50:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwO1zztEzZ7GF3iyeJPjzrz7bIDGUyUUr0k0fx7HVzg7pdiyBQoACnV/nZZd3YvnhN0KAjj X-Received: by 2002:a17:906:c0d8:: with SMTP id bn24mr11801605ejb.480.1603648228270; Sun, 25 Oct 2020 10:50:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603648228; cv=none; d=google.com; s=arc-20160816; b=O8ma1WqJ7wRQqYHNCDkOUjvHI8DqRkjVdJWeCgBXecqpPAXW324VV8XlylM5Xoqjxz pcUd3ELynWdoel5+Kq+VCjZlaMWMT5GCzA+Sg/yxlBwDJWztlLtK+H3cg/UpQr5dWK6F ti3yA8wPsnfAKe+Ubu2iBQ2Vt3UkHniDjlyafozR6G3yHSposwrLtqGjIzPErDyMOWei 6YLN//z98sbRMKSt6mpGSxheMYZWv6/vhmUA53F6erwz6uctNqthNatscs69GOF5GbEi /rUeUKxSpFj9k6iGjYd8lGGjQ2PX+gZ7pDml/Li+/07+SuOiz3R6475tRtv1yxUUqTiz EsUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=LI7KEPtGo0aOY0QJyOh9B9cJZ8HJalIm2T9VCJdP7Gw=; b=k/yycFrEC0jiAp/lmbSqywM2EN8QQM4rYtic1bHAt5bTMVxUNli8g5sNGIpQRDveNO p+4BZibHqz8RoRPS3K3A5GHfsyFUc0P9ReAvukhjAb+xBUxfHd2CSkkQgO8H7A6C/QBl p2rwF5D9PKEP+Jkt/AqH3f8MNVjQGkL6eFb84ftz6NU0I03mQalOnv3V5bFJJrtY1/fT Fs/EykxjVZa/PTqa4GyPzInArpzoIjhXV9XbzrOgNrTaFWZhproS90ccoEyllfAoS8ov BM5QqOhvTpPg4cfMEbJ6B3Wy9PBmF0/jPROvKECerZa9L6UMMvi0lK3su6RHyY5IDf+A boWg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o6si5354882eju.647.2020.10.25.10.49.41; Sun, 25 Oct 2020 10:50:28 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1416881AbgJYOr3 (ORCPT + 99 others); Sun, 25 Oct 2020 10:47:29 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:43508 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1415756AbgJYOr3 (ORCPT ); Sun, 25 Oct 2020 10:47:29 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kWhIo-003RJA-Vi; Sun, 25 Oct 2020 15:47:22 +0100 Date: Sun, 25 Oct 2020 15:47:22 +0100 From: Andrew Lunn To: Tom Rix Cc: Xu Yilun , jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com, davem@davemloft.net, kuba@kernel.org, mdf@kernel.org, lee.jones@linaro.org, linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org, netdev@vger.kernel.org, lgoncalv@redhat.com, hao.wu@intel.com, Russ Weight Subject: Re: [RFC PATCH 5/6] ethernet: dfl-eth-group: add DFL eth group private feature driver Message-ID: <20201025144722.GF792004@lunn.ch> References: <1603442745-13085-1-git-send-email-yilun.xu@intel.com> <1603442745-13085-6-git-send-email-yilun.xu@intel.com> <326cf423-33ef-1fea-86c5-1b5245eadddf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <326cf423-33ef-1fea-86c5-1b5245eadddf@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > +u64 read_mac_stats(struct eth_com *ecom, unsigned int addr) > > +{ > > + u32 data_l, data_h; > > + > > + if (eth_com_read_reg(ecom, addr, &data_l) || > > + eth_com_read_reg(ecom, addr + 1, &data_h)) > > + return 0xffffffffffffffffULL; > return -1; ? Since this is a u64 function, i expect you get a compiler warning. Maybe only with W=1. It is better to use U64_MAX. Andrew