Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5156484ybi; Tue, 11 Jun 2019 20:34:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzilR4lXD94uJym5ccTJa6RSlLrZP5AF3aXnLcXeWPKvXhypRhYAUPp4g2Pegv5C/i3oHTz X-Received: by 2002:a62:14c4:: with SMTP id 187mr10736379pfu.241.1560310499282; Tue, 11 Jun 2019 20:34:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560310499; cv=none; d=google.com; s=arc-20160816; b=0ZvHxiMsa/BTQ7/DPAzS0bXBXoSbgk4fZ7Syz6JabDL3uwGOWh/spXa4F8nqqvvjc4 I4o0r0J0LK2IwKCjZxLtWBuubNknbEbDYqaoFm+gygqPBoNCkLvxAGDOXliEwlBiDwBg vaEbJ6OfN4NSlu7Mw7qsX6d4TzZf2SzdbL6a6iLDgUio8jAHvKCTdIJiZISz+8zVHwJ6 /KzLvAYbBtMLWoZrPn5fZkjS9Gc6booBkBRC1Kineklls6r5MvznE9hBp1Vl+Ad7h+6z 7yvTLhBfFMZ9owyzajaiy9VsJUhUVaFcNQwWSK9q4R7sFdrPyKUW6Ghl6UsqCWRzH+sU jDHw== 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:date:subject:cc:to:from :dkim-signature; bh=PresJl7oJlXIEHHC/IExtDBOZnrpFJgCQRhAg3ApC4U=; b=B5g2uGOC6iO3OAItn7pULLCvP3mgwvNtGsVdUD/MZKAO6Eg7RDCgiL4DRl7UCqbQh7 uWbY2Rg+qYA1HiIQ1MuP+MwkgOJcPfx1Bp09ga1sES3C1kRvcg9HJbD/oV+get6aAo1F J2mj0v09IZm3V/jT83Oc9T0YSJsgTmCILymxyIsDB6NYNj8iakDd//2QLL5E0HNmmqte 6NWdxiQMVPKLN4kBAln97RI6kLUEA8dzAqcd+V0wt6Vqb+eliK15frItFyqPA2gPgWee Y+ogrzfA7t9vhRtjAMCjnY7AzjYgcRIssuHaXNo+blRMWDJkSfC8M+tA8OqeM3J/VkqD DHxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uxCh8Pug; 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 t20si14151883pgm.589.2019.06.11.20.34.43; Tue, 11 Jun 2019 20:34:59 -0700 (PDT) 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=uxCh8Pug; 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 S2407725AbfFKVsR (ORCPT + 99 others); Tue, 11 Jun 2019 17:48:17 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:36802 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407712AbfFKVsP (ORCPT ); Tue, 11 Jun 2019 17:48:15 -0400 Received: by mail-qt1-f193.google.com with SMTP id p15so9040756qtl.3; Tue, 11 Jun 2019 14:48:15 -0700 (PDT) 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 :mime-version:content-transfer-encoding; bh=PresJl7oJlXIEHHC/IExtDBOZnrpFJgCQRhAg3ApC4U=; b=uxCh8Pugjb4tk3ieGWCto/bcWqHBA2VaCGGcw8kol7mD43R3w8INt4InkUJJMOw61d RmPEt2pc5tJpHF1pH4kxH+TTWmUraNsCyBP6KsEuqmsCRc7lxwlS+snNPw5Fvc+76P1k fQYOTcvJTe+uTi0/20Ev6c5Gd6nUpX7sbgdnidvwxSWDxxr4fPkCqDT2wV3BfK0ZcGZi cq6NOh3OXD75DybtVJLErl0inSHHte8nxF1cGs/UM5tV36Gzl69jG0UR8Cd/1Snfmzh2 zrLM7nzyE33XrVAdDf62HW88kCvlFm24+U9MGGxR9ZiJvNVVUkRhCJYdRkwc4RKxOp5b 70eA== 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:mime-version:content-transfer-encoding; bh=PresJl7oJlXIEHHC/IExtDBOZnrpFJgCQRhAg3ApC4U=; b=L15ipruIkVZHs1nSQ4eNNHF+FF3Ou7kgxV7nqzYFK6og4Wj81qvrihaO7svoHuGJQW o6euPf0VdMn8AWf89kE4wIIJtNnVZH5AzlK8RqelNdFfFH+f4rD6/q7W0S9mDT2DBjsg fw5LOzbzwZHTJ6qP2Jwc45HhhUMOi813riqPjmqYzblzuYc88yltq32t9qbEymYKxoKP 37RyysPFW5M9y9Ya7PW3lejX4XTQ03Vt3GBkZGqg2L0WPgVKmV6jXQfEOp+RZWHuWm60 Ab1fYrR4OCa4fB66AFTD0ZToydtRkQ6lNcIjr3gZ56Q3iZfhWh+OWrJVK2tgKcGgKe9l eNEQ== X-Gm-Message-State: APjAAAXO074clqEVPu7tHVfHRhm4BfGfrx2lOfMlZPKx3ApImaqCX/0z cfV1kzE5QQfZDESro8fxzOBWLK1KdVM= X-Received: by 2002:ac8:19d8:: with SMTP id s24mr66656560qtk.44.1560289694747; Tue, 11 Jun 2019 14:48:14 -0700 (PDT) Received: from localhost (modemcable249.105-163-184.mc.videotron.ca. [184.163.105.249]) by smtp.gmail.com with ESMTPSA id f26sm1064392qtf.44.2019.06.11.14.48.14 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 11 Jun 2019 14:48:14 -0700 (PDT) From: Vivien Didelot To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Vivien Didelot , "David S. Miller" , f.fainelli@gmail.com, andrew@lunn.ch Subject: [PATCH net-next 2/4] net: dsa: make cpu_dp non const Date: Tue, 11 Jun 2019 17:47:45 -0400 Message-Id: <20190611214747.22285-3-vivien.didelot@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190611214747.22285-1-vivien.didelot@gmail.com> References: <20190611214747.22285-1-vivien.didelot@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A port may trigger operations on its dedicated CPU port, so using cpu_dp as const will raise warnings. Make cpu_dp non const. Signed-off-by: Vivien Didelot --- include/net/dsa.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/dsa.h b/include/net/dsa.h index 82a2baa2dc48..1e8650fa8acc 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -181,7 +181,7 @@ struct dsa_port { struct dsa_switch *ds; unsigned int index; const char *name; - const struct dsa_port *cpu_dp; + struct dsa_port *cpu_dp; const char *mac; struct device_node *dn; unsigned int ageing_time; -- 2.21.0