mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	ipv4: make net_protocol const
Make these const as they are only passed to a const argument of the function inet_add_protocol. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
		
							parent
							
								
									eb73ddebe9
								
							
						
					
					
						commit
						aa8db499ea
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -1596,7 +1596,7 @@ static const struct net_protocol igmp_protocol = {
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static struct net_protocol tcp_protocol = {
 | 
					static const struct net_protocol tcp_protocol = {
 | 
				
			||||||
	.early_demux	=	tcp_v4_early_demux,
 | 
						.early_demux	=	tcp_v4_early_demux,
 | 
				
			||||||
	.early_demux_handler =  tcp_v4_early_demux,
 | 
						.early_demux_handler =  tcp_v4_early_demux,
 | 
				
			||||||
	.handler	=	tcp_v4_rcv,
 | 
						.handler	=	tcp_v4_rcv,
 | 
				
			||||||
| 
						 | 
					@ -1606,7 +1606,7 @@ static struct net_protocol tcp_protocol = {
 | 
				
			||||||
	.icmp_strict_tag_validation = 1,
 | 
						.icmp_strict_tag_validation = 1,
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static struct net_protocol udp_protocol = {
 | 
					static const struct net_protocol udp_protocol = {
 | 
				
			||||||
	.early_demux =	udp_v4_early_demux,
 | 
						.early_demux =	udp_v4_early_demux,
 | 
				
			||||||
	.early_demux_handler =	udp_v4_early_demux,
 | 
						.early_demux_handler =	udp_v4_early_demux,
 | 
				
			||||||
	.handler =	udp_rcv,
 | 
						.handler =	udp_rcv,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue