Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VtJTj-00009a-T6 for mharc-grub-devel@gnu.org; Wed, 18 Dec 2013 10:56:07 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtJTc-00008N-Ld for grub-devel@gnu.org; Wed, 18 Dec 2013 10:56:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VtJTW-00062l-Ng for grub-devel@gnu.org; Wed, 18 Dec 2013 10:56:00 -0500 Received: from mail-qa0-f53.google.com ([209.85.216.53]:61465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtJTW-00062h-JW for grub-devel@gnu.org; Wed, 18 Dec 2013 10:55:54 -0500 Received: by mail-qa0-f53.google.com with SMTP id j5so540518qaq.12 for ; Wed, 18 Dec 2013 07:55:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=BS0nHB4Cq+eg83YBzP2UF1CYMOEBwXvU3+EGP00VmaA=; b=Zz6yI6HZ07trRhzCIKNH4m1+gkoXWNYfgg0FfxvI/kD9TjaZMaLgIsq+7AVxPKActI O8o5jYO0osFCBl/+XiehVEoXfFlZKP4+CAWGOLZsg84ohOCdrD/PCx4kdGQe5qEBoooc c5AHgall4HqvTgjycPhu3hcb600Ahp9kYWMznMDYUNuZlx6lIXqNDu/pjfCZmjOX0ckB u9OedxWbV6E4SQnz46Z8U8JCJdD8AWZRjM4nGvKfE5hXu/PMseafTAnuJrIXGBVIh1Qg ErIDIuO0UkoFU7VY0R4X3TL0pL+sdMG4oqqjLyh9auaw3YkRhHlwYQVgmjrpSxyYkFb1 5DBQ== X-Gm-Message-State: ALoCoQmtOx4VcT1BwMeZQ30/+Z7kKlLmjMrmH4Vq7nVLlmOVNlUU86ue6hNT7UFp4aSHzvItdEhZ X-Received: by 10.49.74.166 with SMTP id u6mr54913146qev.44.1387382154071; Wed, 18 Dec 2013 07:55:54 -0800 (PST) Received: from rocoto.smurfnet.nu ([2001:4b98:dc0:41:216:3eff:fea7:75f3]) by mx.google.com with ESMTPSA id o3sm1148542qak.5.2013.12.18.07.55.52 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 18 Dec 2013 07:55:53 -0800 (PST) Date: Wed, 18 Dec 2013 16:56:11 +0100 From: Leif Lindholm To: The development of GNU GRUB Subject: Re: [PATCH] add fdt prerequisites for arm64 UEFI Linux loader Message-ID: <20131218155611.GC22356@rocoto.smurfnet.nu> References: <20131216135210.GU22356@rocoto.smurfnet.nu> <52AF6DD8.1050407@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <52AF6DD8.1050407@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.216.53 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Dec 2013 15:56:06 -0000 On Mon, Dec 16, 2013 at 10:17:12PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > > + et->empty_node.node_end = grub_cpu_to_be32 (FDT_END); > > + et->empty_node.prop_end = grub_cpu_to_be32 (FDT_END_NODE); > > grub_cpu_to_be32_compile_time is better suited. Ok, will change. > > +#define grub_fdt_set_prop64(fdt, nodeoffset, name, val) \ > > +({ \ > > + grub_uint64_t _val = grub_cpu_to_be64(val); \ > > + grub_fdt_set_prop ((fdt), (nodeoffset), (name), &_val, 8); \ > > +}) > > + > > Why not make it into inline function? No particular reason, it is effectively a clone of grub_fdt_set_prop32() above it. / Leif