From patchwork Tue Aug 1 09:28:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 109124 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp1267297qge; Tue, 1 Aug 2017 02:29:16 -0700 (PDT) X-Received: by 10.99.126.85 with SMTP id o21mr18210272pgn.262.1501579756872; Tue, 01 Aug 2017 02:29:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501579756; cv=none; d=google.com; s=arc-20160816; b=neLrBnMr5nKAywyqI6Vo2s3MQBHAM7jgzpjQluZ0VuluvAoUYn6i06PrpBCF6cbRSQ a1Ih0cuaxnma2R48mhxu2JHLjlbVbKTBfaW18p1doRq/dwNA3Fr+UCgwrbhm6naVJIY9 buJNN3Vs+KWLPtCu/hr6mRbedS0UjJBSoD6CoP1xwPwKBkhL0mAkayqa5RlkiwMAEXg9 Fvynj5DGwSdvJti3urkSdZqnYrIutWjM9y8AuGw/wnvoKnlaOGiQC8Lce7vvzAK4n/DC C4Thfc2uJwFwsrqUdT0GFzxMyZlhzsZSC+/yVx69cpBfjGXRN+eKRGjdljARL9hzBkMr 42/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=gNawY019tj10tRyL3l+PxuSFofCCwdI5yZbYQlnv3JQ=; b=f4MtK2WCsBr3kG//Uhskif+mzzbdobzYNHrmluJS76ReREWuFIQVqbxzWD5uHQ20km dqy5qePNC48DBNerjBUg/mRjbh6L/jSh525KCp4pI0tSCm+ln+RLoUv9bGpqb53EbOcj Griwv9vLpVwEFf1eC48h2G6CRB4aYYfEQoDj0sUtXkEFsdcrltmlnEN4FFcoXUKjxWJA n9JVntFQQqdNRpaKSG7+EA5iBgOPzwfiTeD8lF7qep1OxG/w3NZZF5Hvn7+OrjaxgHH3 mkYnPuii/ynZMIbF4QM+a1c4KDOodlTCn3eQMnk7gxihq+7jJIBl3ZGw8ZDeG4xmAZwf ogRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=bm7f9dM6; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id 11si17688035plb.284.2017.08.01.02.29.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Aug 2017 02:29:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=bm7f9dM6; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 083E421D2DCE6; Tue, 1 Aug 2017 02:27:07 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org 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 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: [edk2] [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: , Cc: jason.liu@linaro.org, shawn.guo@linaro.org MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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(-) -- 1.9.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Leif Lindholm 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 {