From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-fw-52002.amazon.com (smtp-fw-52002.amazon.com [52.119.213.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3ADC525F789; Tue, 8 Apr 2025 00:54:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=52.119.213.150 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744073670; cv=none; b=CB8sAidRE9AU7fC4LoWiIDPEXMZzBEgwJe+BhFNwkrjAQjrsc5v0INYNKkEJ3cUY3yQydAK3VoNx9b2CEJbT7wAZRqj3Yp2NZkG8SiljTV/e+tLgbzUCFF2yAuc3mLH51ofVpj8ICWvX/6kmuDZ1O22zouUq77Stp1yI4J3ZS94= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744073670; c=relaxed/simple; bh=pJpeS6UDHGbVjpYImIei67eeZth3rh0ZwvC8QX8E05s=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=lm+X3UQzaMir/W3rfZtFGm5cFjseo699ZQavqx3r+Y1+35MwT75SvFKqq5GYcRnVLwdkDen0XyCfm2iEesgyGEQ8WqZzf16OyDEa0wrTQ89XLwm8EMFNPeXMb7tItX7nGdgZjlMzlHmXKGomjb2P5t8K6oC6G2NXs+7/R+ZIWgg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.com; spf=pass smtp.mailfrom=amazon.co.jp; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b=Fo7neAck; arc=none smtp.client-ip=52.119.213.150 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amazon.co.jp Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b="Fo7neAck" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1744073668; x=1775609668; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=UgadiJU1w8yj5XJQ01I/QKqBYxUhyf+os7wrkgro9Yg=; b=Fo7neAck6FmZuZtKWG6DCUY7jugp1rUXNWauz+IvKS+ukOYNVKJRDvKR YOdyV6q0Mi2R99EjqC1ei9yaCcPagsaiYy5snm/TP7emMftLyADEZ/MGR yeCjYiNdRnZWDTh5FMiFu/9odeF0wmVFf0miYfXk5ThZjUT3bjNIBme1r s=; X-IronPort-AV: E=Sophos;i="6.15,196,1739836800"; d="scan'208";a="711903701" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO smtpout.prod.us-west-2.prod.farcaster.email.amazon.dev) ([10.43.8.6]) by smtp-border-fw-52002.iad7.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2025 00:54:24 +0000 Received: from EX19MTAUWA001.ant.amazon.com [10.0.21.151:34745] by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.49.222:2525] with esmtp (Farcaster) id 735bb698-a981-4318-8a7b-aa579c2e66da; Tue, 8 Apr 2025 00:54:23 +0000 (UTC) X-Farcaster-Flow-ID: 735bb698-a981-4318-8a7b-aa579c2e66da Received: from EX19D004ANA001.ant.amazon.com (10.37.240.138) by EX19MTAUWA001.ant.amazon.com (10.250.64.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.1544.14; Tue, 8 Apr 2025 00:54:23 +0000 Received: from 6c7e67bfbae3.amazon.com (10.106.101.45) by EX19D004ANA001.ant.amazon.com (10.37.240.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.1544.14; Tue, 8 Apr 2025 00:54:18 +0000 From: Kuniyuki Iwashima To: CC: , , , , , , , , , , , , , , , , Subject: Re: [PATCH net-next v2 1/2] net: pass const to msg_data_left() Date: Mon, 7 Apr 2025 17:53:48 -0700 Message-ID: <20250408005404.10223-1-kuniyu@amazon.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250407-tcpsendmsg-v2-1-9f0ea843ef99@debian.org> References: <20250407-tcpsendmsg-v2-1-9f0ea843ef99@debian.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: EX19D035UWA004.ant.amazon.com (10.13.139.109) To EX19D004ANA001.ant.amazon.com (10.37.240.138) From: Breno Leitao Date: Mon, 07 Apr 2025 06:40:43 -0700 > The msg_data_left() function doesn't modify the struct msghdr parameter, > so mark it as const. This allows the function to be used with const > references, improving type safety and making the API more flexible. > > Signed-off-by: Breno Leitao Reviewed-by: Kuniyuki Iwashima