From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 64D4928D8FD for ; Fri, 23 Jan 2026 17:04:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769187882; cv=none; b=CBuYrfS6rNApf4bXrvTP74M2p1sGDrk3onBsSmt2QYSRRlprsvEdQtWliVoVGBs0Ry1STVl2YbM/C2pcs9attDfTkCmuwdvdNSOyaMO5P259mg2o6FmH5L9L8+3UD9ZMoZr9XEQfrDqFHOY9EIWwa6AdhWNGw8WwLLW6KntzIX4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769187882; c=relaxed/simple; bh=nMixvZuuS4oZr2axCrQxgLAwHCuDLILf/R8pKqL+qVY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=H67TdPGAQRjYR+/+Oyxhu0lSnQO1/ym+YxPYgVt9SDMS9yBb9mN7RkYBpYOOBBi9HGEFfwcb2UcOR60OzQsSJ/aCI1YMNbu/j97/qaCXPNnXOqRzN6PVYX+DcGhEipEaF/fk/SXTyuaeKLOt3ZUKNcpKW2TXHCx15/DYUgLSLwM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=GqmqbWMZ; arc=none smtp.client-ip=209.85.167.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GqmqbWMZ" Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-59dd4bec4ecso2649478e87.0 for ; Fri, 23 Jan 2026 09:04:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769187880; x=1769792680; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cnVwG+qD/nEigpZjI89PTFpptVNDER/CTlFHRi35/8U=; b=GqmqbWMZU/EcVMxP2Hzd9xgDEYbzkBnvJTNyHSFaJslIjRPwsRdCpvGkXRRoZF4rOG +zQCTnK0KMcabanCCDCoyj+8+oZecfw/XUHisAmvTOzbNlqIJKRsvkFKl90P0cVVvrEA VqOLqFqUjv+wzT9ibrYB13C0VAR59M76C96BZOQ2szYE8W4ECmFk1yzzs4BMMZRCpMz0 xHN/XLZBm+MjAvzRpn091UIPAiWwrPhTL5zZBL8Aoki7MNr6X36cC28PBqmH22UqlGXr 1koWqaPCm1apJ9eJ0f9oN+sVtkf/m+7exrS2BVyWcJQHXBfQeOLzIdORT6JRqdWHW0XA 2BoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769187880; x=1769792680; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=cnVwG+qD/nEigpZjI89PTFpptVNDER/CTlFHRi35/8U=; b=K3Blq3CNCBn0cQPZtWW2cBkJtzPAPy4j5OASdAq761u+rfHFmlv0l60YxfMPvcjOrB 5qnOMoJSIpXCbGStdoeVB8afW3q0bWvaZhRw1B7TCHVPFxBhaGfc+MM1p2q5bApm6+ym sytAZNLGEo1lGLGsDw2DWg7W0hcy6w8hHh4AC8WhCIzZDXiQzt43MQG5GJrsroqXnV1v j9n249oF9B6Li7Bx76DZ3ErF3tVWYkKuuSE3uiaZ5ktH5UeT/Owdo8wwl63pxB+FyXtF ZW3HjmJ6zTQhd3xnBt1DaeMgu9ohkAOckxWCMKzieNeRQaYnrQRuzEj4hICvHR7Er+iR qcMQ== X-Forwarded-Encrypted: i=1; AJvYcCXtZ7GhJwvAiMj4LS9DXsfTUjT8shBYf5F2hletDbUPVMhOkD8i0Gha28tcAR+sOo7FRUdEnBy/KPFxyJc=@vger.kernel.org X-Gm-Message-State: AOJu0YzsLdlBhYX3mf0Q0dKyRZhagyIR/kaBXzDTKVdXXXyIehU4RhKp GM1nSDXHar5KmfBTh9JDemioiBsRficKWmsOQss7wVWkJc0058Sf3Iud X-Gm-Gg: AZuq6aLTVrlnlEU2rMDlbDcgcsydddEbtdmd/GmO3plOwU1LQZHmYEcbZ8KaFBqNwJz unB0z5Ufp5cHXjSe6UHMHCQQl2LME+chqcd+tdizDomLDETlhab2HZ6Z0PV9dS6cMBwKI93+iaJ r2Zb/h/KXOsRc1OpPm11QKxKY2pAodVEsWRIg5X6I/6kWLTLhM0Fq60MfbKP5n4i5P+LLoZpW+W n7snHdDLslY3Apw6OxPhsapWl1Hhfc51MMuFv7LKHO4CDv6h1s+del+VsK7fBtwIM8IY7B2jeO6 jZmNZ05Y8qgzD1ONJHz8QhhX3tmEesKPwa/xoi/6sRGMjHEo/SnQ4rxqCP486A6W+M31Cf0JqU7 hkYZsJXtbKTNJl6TPWFDO7tkjuzrxxQrHq7+ek1sM9T9zDnjzfzCFEgI7O+ZgvGaNpeaMham88R 7XVmh9KunsSQt7AnLcSn8qwmQfrcnJXWS1Loa6XSdyst5GDA== X-Received: by 2002:a05:6512:2307:b0:59b:7185:757d with SMTP id 2adb3069b0e04-59de4a25cf6mr1169413e87.50.1769187879371; Fri, 23 Jan 2026 09:04:39 -0800 (PST) Received: from huawei-System-Product-Name.. ([159.138.216.23]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-59de48e5fd3sm801772e87.33.2026.01.23.09.04.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jan 2026 09:04:38 -0800 (PST) From: Dmitry Skorodumov X-Google-Original-From: Dmitry Skorodumov To: netdev@vger.kernel.org, Jakub Kicinski , Dmitry Skorodumov , Paolo Abeni , Kuniyuki Iwashima , Xiao Liang , Ido Schimmel , Julian Vetter , Guillaume Nault , Eric Dumazet , Stanislav Fomichev , linux-kernel@vger.kernel.org Cc: Andrew Lunn , "David S. Miller" Subject: [PATCH v2 net-next 1/3] ipvlan: const-specifier for functions that use iaddr Date: Fri, 23 Jan 2026 20:03:54 +0300 Message-ID: <20260123170412.906280-2-skorodumov.dmitry@huawei.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260123170412.906280-1-skorodumov.dmitry@huawei.com> References: <20260123170412.906280-1-skorodumov.dmitry@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Fix functions that accept "void *iaddr" as param to have const-specifier. Signed-off-by: Dmitry Skorodumov --- drivers/net/ipvlan/ipvlan.h | 2 +- drivers/net/ipvlan/ipvlan_core.c | 2 +- drivers/net/ipvlan/ipvlan_main.c | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/net/ipvlan/ipvlan.h b/drivers/net/ipvlan/ipvlan.h index 80f84fc87008..235e9218b1bb 100644 --- a/drivers/net/ipvlan/ipvlan.h +++ b/drivers/net/ipvlan/ipvlan.h @@ -159,7 +159,7 @@ int ipvlan_queue_xmit(struct sk_buff *skb, struct net_device *dev); void ipvlan_ht_addr_add(struct ipvl_dev *ipvlan, struct ipvl_addr *addr); struct ipvl_addr *ipvlan_find_addr(const struct ipvl_dev *ipvlan, const void *iaddr, bool is_v6); -bool ipvlan_addr_busy(struct ipvl_port *port, void *iaddr, bool is_v6); +bool ipvlan_addr_busy(struct ipvl_port *port, const void *iaddr, bool is_v6); void ipvlan_ht_addr_del(struct ipvl_addr *addr); struct ipvl_addr *ipvlan_addr_lookup(struct ipvl_port *port, void *lyr3h, int addr_type, bool use_dest); diff --git a/drivers/net/ipvlan/ipvlan_core.c b/drivers/net/ipvlan/ipvlan_core.c index bdb3a46b327c..6d22487010c0 100644 --- a/drivers/net/ipvlan/ipvlan_core.c +++ b/drivers/net/ipvlan/ipvlan_core.c @@ -118,7 +118,7 @@ struct ipvl_addr *ipvlan_find_addr(const struct ipvl_dev *ipvlan, return NULL; } -bool ipvlan_addr_busy(struct ipvl_port *port, void *iaddr, bool is_v6) +bool ipvlan_addr_busy(struct ipvl_port *port, const void *iaddr, bool is_v6) { struct ipvl_dev *ipvlan; bool ret = false; diff --git a/drivers/net/ipvlan/ipvlan_main.c b/drivers/net/ipvlan/ipvlan_main.c index baccdad695fd..cf8c1ea78f4b 100644 --- a/drivers/net/ipvlan/ipvlan_main.c +++ b/drivers/net/ipvlan/ipvlan_main.c @@ -814,7 +814,8 @@ static int ipvlan_device_event(struct notifier_block *unused, } /* the caller must held the addrs lock */ -static int ipvlan_add_addr(struct ipvl_dev *ipvlan, void *iaddr, bool is_v6) +static int ipvlan_add_addr(struct ipvl_dev *ipvlan, const void *iaddr, + bool is_v6) { struct ipvl_addr *addr; @@ -846,7 +847,8 @@ static int ipvlan_add_addr(struct ipvl_dev *ipvlan, void *iaddr, bool is_v6) return 0; } -static void ipvlan_del_addr(struct ipvl_dev *ipvlan, void *iaddr, bool is_v6) +static void ipvlan_del_addr(struct ipvl_dev *ipvlan, const void *iaddr, + bool is_v6) { struct ipvl_addr *addr; -- 2.43.0