Received: by 10.223.176.46 with SMTP id f43csp435336wra; Wed, 24 Jan 2018 00:08:05 -0800 (PST) X-Google-Smtp-Source: AH8x22429XWlAAL8+5ZQ6c8WvHzrlguMldjJJi0glGkOrGl45hAjqq7k3KcA/3hkSN9x5e2nvrlJ X-Received: by 2002:a17:902:60c7:: with SMTP id k7-v6mr7599595pln.316.1516781285411; Wed, 24 Jan 2018 00:08:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516781285; cv=none; d=google.com; s=arc-20160816; b=zIxPYI355bWajbfUQxTEv8K6EJlUj5ufxovLkU2WJ7MUStCoKSPMMVGmVNuB6mK/SF HmUsH/VUcvxTRU/dpfIEicj+6PqTnTE2eqoosaz4M0a0gf6pLKq/q/RK3UzLhHRlhHWf xEfkILferjPUG2WeHUq9i8gdwQLp7tH+8zPYDZAR+NGHZPnR4hXVdo0UI85/cmTZzTf0 d+ts6ZsZApG/2csbWjsFUdV0XPoZOWr6y6Mvn4Cu3mKysgsQtx1kfKrlxTUxxFieJwOp 5ThfQk2sHldeLh7KP2TDHEDQtJGz23skbHeXzg4HjVIeo4b6vWvmR8G1zl0ypZAWSVgR M/IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=oPqDveguswswyJHElIpKhAT7jzefT8IIsKLRgpp0yYg=; b=ULEPFztHRCZNF4xxS5xyK21z4GtHr/BrUoOlxREvHEAKnhBG6B0azvmri31DIZPHX2 1b5H1bMxRnpWhvodCKturQe/qUX6GQB6YwHhIICpewfvdELWR66Jl0wpRIveYJkuFalY zhPDz7T9JAACg1bi7ii8Qgn3rQoCxoKKs7tt8GC+Dd836iabiY3sKFjVAwG0L87BKE9u 9MrgLgzC9oQgSUSuJJHfULudX1qRDmqZreSEX3YBXRlL8BgsEW1vhKDMVLeBzT0xb9Bh WzysyWqKXgyE0mXAQRfCkDNPHQTfg1UKB9nt/N0OVhcECLkpVHryhfY3CziL4dWmh6jU 4oHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=QMSx5PlB; 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 g189si2522891pfc.386.2018.01.24.00.07.51; Wed, 24 Jan 2018 00:08:05 -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=fail header.i=@gmail.com header.s=20161025 header.b=QMSx5PlB; 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 S932265AbeAXIH2 (ORCPT + 99 others); Wed, 24 Jan 2018 03:07:28 -0500 Received: from mail-oi0-f67.google.com ([209.85.218.67]:46446 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752375AbeAXIH1 (ORCPT ); Wed, 24 Jan 2018 03:07:27 -0500 Received: by mail-oi0-f67.google.com with SMTP id d124so2258728oib.13 for ; Wed, 24 Jan 2018 00:07:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=oPqDveguswswyJHElIpKhAT7jzefT8IIsKLRgpp0yYg=; b=QMSx5PlB9B5vq/GH+9o6VCYR0KuEfmE1QHTytdCt9AGSMamEjXUhKPGuNAaxTrSfX2 2QHFea9k95xTLTgjc+sdjnRz2o4GGBhVTKS14XLVtfF/UJwfDi3xgS5MaEaCn9HNk+hF FPNaebAOanCyDJRkeTYDSUI1wVKLz5WSOuHXrJsJDyTNQhvWXLDwYIY18T0cdK0b0hXS tQ7Tati08/z50oV9VJn5Hv160tWizpgxNq9Vx2wXkg9NZ5BEIGnW7DD6hRKvQgZcDcg0 CJulRVg1zvZM/AFafJVLdwMceJM2uyDZNlN6g2uzN6iSq+oUJtf6QOSNZUJj/7jW/Cux 4PhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=oPqDveguswswyJHElIpKhAT7jzefT8IIsKLRgpp0yYg=; b=gBWwetHVpBp5CAmorTYUJsdVidUhQCw76MSLJKL4BWp56YuZp+VTOdkTVvb5gqLJSv U5gVjS9fDQXKg2wb31ur3AdsOK1NN8tw2kcBlYuukf2OzOSeLoMIAA9U25CSenWHL8Y2 vaZnAFepyvbINWnSkGsfpsXaRCJ18wz574NfdrJWK9fYH+rRYZx6vRNRX9yfOHwR33MX /HB+4hnH+jJQiclsbQjSaLuaLS+eafNUGO1DND+1YUnIk04MqfLbRaOxneyWzGxZy7jR wEwzvJ00E+8m+Rs0h77WD9L3T+JwHnMR3eIn9yP9in/gZsVeIqNpnwh1etGlVXEx7lor yVmw== X-Gm-Message-State: AKwxytewmjBP1dygqa4g0vOzVPYEcnhI+Rtvwtjg08anbM9XQJOJd9Pe d3neoEp5HVGWIEKjEnyIQwuG2iYfWs4XDqVnYXo= X-Received: by 10.202.91.69 with SMTP id p66mr186314oib.64.1516781246608; Wed, 24 Jan 2018 00:07:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.68.119 with HTTP; Wed, 24 Jan 2018 00:07:26 -0800 (PST) In-Reply-To: <20180124074845.32125-1-fancer.lancer@gmail.com> References: <20180119173044.8013-1-fancer.lancer@gmail.com> <20180124074845.32125-1-fancer.lancer@gmail.com> From: Arnd Bergmann Date: Wed, 24 Jan 2018 09:07:26 +0100 X-Google-Sender-Auth: Bsqm2OXJxa5fgqkyTNwyIAlazTE Message-ID: Subject: Re: [PATCH v2] NTB: ntb_perf: fix cast to restricted __le32 To: Serge Semin Cc: jdmason@kudzu.us, Dave Jiang , allenbh@gmail.com, "Hook, Gary" , Sergey.Semin@t-platforms.ru, linux-ntb@googlegroups.com, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 24, 2018 at 8:48 AM, Serge Semin wrote: > Sparse is whining about the u32 and __le32 mixed usage in the driver > > drivers/ntb/test/ntb_perf.c:288:21: warning: cast to restricted __le32 > drivers/ntb/test/ntb_perf.c:295:37: warning: incorrect type in argument 4 (different base types) > drivers/ntb/test/ntb_perf.c:295:37: expected unsigned int [unsigned] [usertype] val > drivers/ntb/test/ntb_perf.c:295:37: got restricted __le32 [usertype] > ... > > NTB hardware drivers shall accept CPU-endian data and translate it to > the portable formate by internal means, so the explicit conversions > are not necessary before Scratchpad/Messages API usage anymore. > > Fixes: b83003b3fdc1 ("NTB: ntb_perf: Add full multi-port NTB API support") > Signed-off-by: Serge Semin Looks good to me, Acked-by: Arnd Bergmann