From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-x231.google.com (mail-pf0-x231.google.com [IPv6:2607:f8b0:400e:c00::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 08DFC21D2DCE1 for ; Tue, 1 Aug 2017 02:27:06 -0700 (PDT) Received: by mail-pf0-x231.google.com with SMTP id d67so5617611pfc.0 for ; Tue, 01 Aug 2017 02:29:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=zulPlsg/oxIJmwzbqpdfIKXMuGFRZqfCAT7fkIdyIEA=; b=bm7f9dM6KsVYldgRq+wtjbK9Sgrwb/F32y3gCxkCLnUI0M8KeT4iBS3D2bDkx8zfbr XlCXLU3XrsyHpNt67OqozYT0F9tdfKvVfaE9qjze5kZRbrN50+OZ6G+Cn1jhDWjzgHxb 7nGvzDZOFDXBM7NNezKbBW+wXd/bUaXD4bSHw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=zulPlsg/oxIJmwzbqpdfIKXMuGFRZqfCAT7fkIdyIEA=; b=OoluFwsCFgVAc+XySPfrICQMHWtbZfnxLV/YyKhkANeXzma8VCUZKo2BSAvqW/enX0 zhJhOGN01w2PSbA3v4r3gffxGyVUFVm5P9UmAYwDiynTBIFyxnah8skeFklCkIawu+r5 kxyT7L1pTlfaM4rl5tX959ucl6Lo8bvyPF5SKA2jQgBaQ0W4xKx+XEfVKVmah0Wa1ZQB E7NFxDV7lr/fdL2uKDHjFBs7VmHnNhDz64S1up6NXk+nRxd/EEjpghUGKvZKTbvLUEYp PRm+ireO0ad1ZYvSKFa/Wq8LDUdM7fhGeWMMSCk/2KXJoyot1z0dktvCKqrZYJA3yxq4 ZmpQ== X-Gm-Message-State: AIVw112URoIQ3M6l/QeQaNqymiug6FgXS3JSQ19tKDM1cgMcatKfnMF5 sUWQcoqH0Z2uDYxo X-Received: by 10.84.179.165 with SMTP id b34mr20655985plc.455.1501579754799; Tue, 01 Aug 2017 02:29:14 -0700 (PDT) Received: from localhost.localdomain ([113.53.228.63]) by smtp.gmail.com with ESMTPSA id i133sm20557070pgc.0.2017.08.01.02.29.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Aug 2017 02:29:14 -0700 (PDT) From: Jun Nie To: haojian.zhuang@linaro.org, leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, edk2-devel@lists.01.org, linaro-uefi@lists.linaro.org Cc: shawn.guo@linaro.org, jason.liu@linaro.org, Jun Nie Date: Tue, 1 Aug 2017 17:28:58 +0800 Message-Id: <1501579741-28866-1-git-send-email-jun.nie@linaro.org> X-Mailer: git-send-email 1.9.1 Subject: [PATCH v4 1/4] ArmPkg: Move IS_DEVICE_PATH_NODE for sharing X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Aug 2017 09:27:06 -0000 Move IS_DEVICE_PATH_NODE into header to share it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jun Nie --- ArmPkg/Include/Library/BdsLib.h | 3 +++ ArmPkg/Library/BdsLib/BdsFilePath.c | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ArmPkg/Include/Library/BdsLib.h b/ArmPkg/Include/Library/BdsLib.h index c58f47e..4528c2e 100644 --- a/ArmPkg/Include/Library/BdsLib.h +++ b/ArmPkg/Include/Library/BdsLib.h @@ -15,6 +15,9 @@ #ifndef __BDS_ENTRY_H__ #define __BDS_ENTRY_H__ +#define IS_DEVICE_PATH_NODE(node,type,subtype) \ + (((node)->Type == (type)) && ((node)->SubType == (subtype))) + /** This is defined by the UEFI specs, don't change it **/ diff --git a/ArmPkg/Library/BdsLib/BdsFilePath.c b/ArmPkg/Library/BdsLib/BdsFilePath.c index f9d8c4c..41557bb 100644 --- a/ArmPkg/Library/BdsLib/BdsFilePath.c +++ b/ArmPkg/Library/BdsLib/BdsFilePath.c @@ -24,9 +24,6 @@ #include #include - -#define IS_DEVICE_PATH_NODE(node,type,subtype) (((node)->Type == (type)) && ((node)->SubType == (subtype))) - /* Type and defines to set up the DHCP4 options */ typedef struct { -- 1.9.1