Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5626929imb; Thu, 7 Mar 2019 21:36:41 -0800 (PST) X-Google-Smtp-Source: APXvYqwfx9n/9GsRyngABf55ZZdvQECqYr+bAeyT4i/P81A7T0c4HRmKz9G+yJPIMrkWQ/LlqtTL X-Received: by 2002:a63:c948:: with SMTP id y8mr15240628pgg.263.1552023401539; Thu, 07 Mar 2019 21:36:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552023401; cv=none; d=google.com; s=arc-20160816; b=A6PL5wuXzs/QwpBMGQLN/053MpU50tMdXC474P/9KbOZj3p8FndRpPVqDW+8ygkUxB Csa1SDzvjIcDJiAH6rgHdPEiR+pAPBBcVHs4Q5ohZSdRKIg/GMV2lnEzJFREJ/C+CCga GEqkDWgh7aQZyjMQ0nSALZi+B4PE7nKLnryjyc++2Sd+XYU5CiQ4socen8KecQ3zt4+e /+HBD00pcODqBYQpYKKSaepxAVJwQCCsQdycby1cEmM78z6ce3NfAfx6kLsnovOQyAL1 83BJi4OvH8pL/vBO4sFV4K5CyfH/J/8AsSZ9GMy0Zfnrhk3bXClUcc4IVmBiKhXBujoZ +VXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=HuoVqlZmB3nNnfApKk4NxsGfgdExOBI8qX2IeTDEpj8=; b=Vc4uYpd2Jsw6Y+umFVZnCownWjYqbGEjK/l6uD7u3F012hgZVmbr20h4INn75IjaNm lHIj/FFLvX1sTDxbE6ot2OMKMdXNa02oKIHzuaMZJqESvLgaCLhauGp6z1GljVaZOUH4 SV2ek7ed8moYslSA/5TTzRcA3357H6bHE98yaJQxuuhP7XMt7n7Q4F/YdWANyaSQbqkC JYp+oOAwqh6fhC9jSwAoZXOXuseNB5JF+x7Am+Rwwm+XfTJ1YRp7KxBySct7pZIHeQMt seMcyn6TZcxWiULnfSX4N1Ikm8+2Ndeza6V8gIKPnz0VHREXki0aRREDk391cQ4tS3Mg 1klw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mrue6qLo; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o3si6175570pld.336.2019.03.07.21.36.25; Thu, 07 Mar 2019 21:36:41 -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=@gmail.com header.s=20161025 header.b=mrue6qLo; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726413AbfCHFeK (ORCPT + 99 others); Fri, 8 Mar 2019 00:34:10 -0500 Received: from mail-yw1-f67.google.com ([209.85.161.67]:36702 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725308AbfCHFeK (ORCPT ); Fri, 8 Mar 2019 00:34:10 -0500 Received: by mail-yw1-f67.google.com with SMTP id 189so15405501ywi.3; Thu, 07 Mar 2019 21:34:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=HuoVqlZmB3nNnfApKk4NxsGfgdExOBI8qX2IeTDEpj8=; b=mrue6qLo5PmYFOkUjkOdpsPOLAIhuvf6o3YW0jBhmNE2xcz7eJLbAJ7kp1y/IJ8mHE GEgvyPhqSmdolMKF6L60UhSZfRE+afRtcNSH6H9OZ/GHUfQQsxn1ykN62NqX0rQsiRAu hruLS/j3YiOWNHTZruqF7iOikVRvtXfWDCtf+8SFZ+ED2tQq4sf7QHposmMXWJ+VDImX DQBx4yUgeyurKUmybavxAMF1e3CtExAAeXEzVv+cV+oCptbvXHZfW1tm2YtdAOfH5GoG FoRdW7+hPx3ZRwiDu23VKiG7YWZHCvvWiaXPE5E6cDN60V8vLfuV8l/IGKkIgCmpDQ9y zgow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=HuoVqlZmB3nNnfApKk4NxsGfgdExOBI8qX2IeTDEpj8=; b=oNRXyCBoYXg4kii3asn3DukiaEAbRGMlqDEYs5+nrPLM5Nq/kQUM1vYluGz6gjkX4A Ku0P36w7mSzLcghSTnC//BIwvcMu0Ql25I/PAPVymerfQd9DmFuxfPPwlGuEPQmCmbjo 9W8fMKwXsFuItymq3SyzG0ai4iQKRwT9qq9e59okHq0G2D3BsasgSGXzh5hYFHZ+GhGa oJRUnWLptfeLYDEQ/lFR3w+dlhNPp397HjN+QK8gp/SX7SdOtNYHNXlHWfnAGmjsxSZr kGvmbik2HJcUSHDOK/gkLr9hbrlL5VWCArikvNuX8C4FgRBql2igTs3Ei3G7meUEA5hr Vnxw== X-Gm-Message-State: APjAAAVM4wJAzJJq7q4P8Bp1n/RvWhwOQ5pSX27CBgFJjtQtFd9tD3E7 0QGbKrM4cqrpQh2qB85d089aZQxFqbU= X-Received: by 2002:a81:110d:: with SMTP id 13mr13446692ywr.343.1552023249608; Thu, 07 Mar 2019 21:34:09 -0800 (PST) Received: from localhost.localdomain ([191.101.9.198]) by smtp.gmail.com with ESMTPSA id 79sm2315940ywr.110.2019.03.07.21.34.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Mar 2019 21:34:09 -0800 (PST) From: Bo YU To: j.vosburgh@gmail.com, vfalico@gmail.com, andy@greyhouse.net, davem@davemloft.net Cc: Bo YU , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, yuzibode@126.com Subject: [PATCH 2/2] net: bonding: fix incorrect type in assignment Date: Fri, 8 Mar 2019 00:34:05 -0500 Message-Id: <2fefb2a6962f668f76db79d2f9a2b866b077e42f.1552023000.git.tsu.yubo@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are some warning when: sudo make C=1 CF=-D__CHECK_ENDIAN__ drivers/net/bonding/ drivers/net/bonding/bond_main.c:2438:40: warning: incorrect type in assignment (different base types) drivers/net/bonding/bond_main.c:2438:40: expected restricted __be16 [usertype] vlan_proto drivers/net/bonding/bond_main.c:2438:40: ... rivers/net/bonding/bond_options.c:1089:24: warning: incorrect type in assignment (different base types) drivers/net/bonding/bond_options.c:1089:24: expected restricted __be32 [addressable] [usertype] target drivers/net/bonding/bond_options.c:1089:24: got unsigned long long const [usertype] value So fix it Signed-off-by: Bo YU --- drivers/net/bonding/bond_main.c | 2 +- drivers/net/bonding/bond_options.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 135fec28daa9..07e52d863e91 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c @@ -2435,7 +2435,7 @@ struct bond_vlan_tag *bond_verify_device_path(struct net_device *start_dev, tags = kcalloc(level + 1, sizeof(*tags), GFP_ATOMIC); if (!tags) return ERR_PTR(-ENOMEM); - tags[level].vlan_proto = VLAN_N_VID; + tags[level].vlan_proto = cpu_to_be16(VLAN_N_VID); return tags; } diff --git a/drivers/net/bonding/bond_options.c b/drivers/net/bonding/bond_options.c index da1fc17295d9..3a196999bd1b 100644 --- a/drivers/net/bonding/bond_options.c +++ b/drivers/net/bonding/bond_options.c @@ -1086,7 +1086,7 @@ static int bond_option_arp_ip_targets_set(struct bonding *bond, else netdev_err(bond->dev, "no command found in arp_ip_targets file - use + or -\n"); } else { - target = newval->value; + target = cpu_to_be32(newval->value); ret = bond_option_arp_ip_target_add(bond, target); } -- 2.11.0