Blame SOURCES/0244-net-trivial-grub_cpu_to_XX_compile_time-cleanup.patch

4fe85b
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
4fe85b
From: Andrei Borzenkov <arvidjaar@gmail.com>
4fe85b
Date: Fri, 27 Mar 2015 18:58:57 +0300
4fe85b
Subject: [PATCH] net: trivial grub_cpu_to_XX_compile_time cleanup
4fe85b
4fe85b
---
4fe85b
 grub-core/net/arp.c   | 2 +-
4fe85b
 grub-core/net/icmp6.c | 4 ++--
4fe85b
 2 files changed, 3 insertions(+), 3 deletions(-)
4fe85b
4fe85b
diff --git a/grub-core/net/arp.c b/grub-core/net/arp.c
4fe85b
index 6cc580d6f85..996473e1091 100644
4fe85b
--- a/grub-core/net/arp.c
4fe85b
+++ b/grub-core/net/arp.c
4fe85b
@@ -80,7 +80,7 @@ grub_net_arp_send_request (struct grub_net_network_level_interface *inf,
4fe85b
   arp_packet = (struct arppkt *) nb.data;
4fe85b
   arp_packet->hrd = grub_cpu_to_be16_compile_time (GRUB_NET_ARPHRD_ETHERNET);
4fe85b
   arp_packet->hln = 6;
4fe85b
-  arp_packet->pro = grub_cpu_to_be16 (GRUB_NET_ETHERTYPE_IP);
4fe85b
+  arp_packet->pro = grub_cpu_to_be16_compile_time (GRUB_NET_ETHERTYPE_IP);
4fe85b
   arp_packet->pln = 4;
4fe85b
   arp_packet->op = grub_cpu_to_be16_compile_time (ARP_REQUEST);
4fe85b
   /* Sender hardware address.  */
4fe85b
diff --git a/grub-core/net/icmp6.c b/grub-core/net/icmp6.c
4fe85b
index 78223946031..7953e68ecfa 100644
4fe85b
--- a/grub-core/net/icmp6.c
4fe85b
+++ b/grub-core/net/icmp6.c
4fe85b
@@ -552,8 +552,8 @@ grub_net_icmp6_send_router_solicit (struct grub_net_network_level_interface *inf
4fe85b
   struct icmp_header *icmphr;
4fe85b
 
4fe85b
   multicast.type = GRUB_NET_NETWORK_LEVEL_PROTOCOL_IPV6;
4fe85b
-  multicast.ipv6[0] = grub_cpu_to_be64 (0xff02ULL << 48);
4fe85b
-  multicast.ipv6[1] = grub_cpu_to_be64 (0x02ULL);
4fe85b
+  multicast.ipv6[0] = grub_cpu_to_be64_compile_time (0xff02ULL << 48);
4fe85b
+  multicast.ipv6[1] = grub_cpu_to_be64_compile_time (0x02ULL);
4fe85b
 
4fe85b
   err = grub_net_link_layer_resolve (inf, &multicast, &ll_multicast);
4fe85b
   if (err)