From patchwork Thu Aug 6 20:59:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Stone X-Patchwork-Id: 52017 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id 654E120539 for ; Thu, 6 Aug 2015 21:00:09 +0000 (UTC) Received: by wijp15 with SMTP id p15sf10578155wij.3 for ; Thu, 06 Aug 2015 14:00:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=O5LJv1Suv6IMiNyl2D4wb+NAfOZIC9/F193Hb7Kh7fU=; b=SdShv+7L12ZCjzm1BU62fzL3f9Yd9MZVJOYKwO0XfgiBAmhFb0vkavbSPTLc3NhqPW LC/nP5Ptxnbovz2j6nhnPdQkINItA6UUa++mubbJQo/W7eib0KU+9Z4u/6GN9Y3i9Xxc 9AYZUUzwdMFOvgm30CeuUlOiKBYXsDoTvtSnoy++8sluUrx6KpW8ibCG67ltg56JmAkR tteLMN3aktwG2FRNK9jXCmAX4xeW51wbQ4YKq4bXV2SVX7d/kGzNpFlNigTAOWAChrTT YNYZtSts0+b8p+fliQ71R/PxOuc2ANXSdKjt61gNM8/KDQLhH2F3tOzIo5+NksUQXH7P P2JA== X-Gm-Message-State: ALoCoQmFU4na9UoxLxqCwPyml0gAoQecNuI4Sfo/4mU2RkzGDSOZ/zHfqOVmCkkV2ie1NiGVQYsR X-Received: by 10.152.242.133 with SMTP id wq5mr1049814lac.7.1438894808633; Thu, 06 Aug 2015 14:00:08 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.9.7 with SMTP id v7ls432344laa.107.gmail; Thu, 06 Aug 2015 14:00:08 -0700 (PDT) X-Received: by 10.152.42.209 with SMTP id q17mr4295576lal.33.1438894808367; Thu, 06 Aug 2015 14:00:08 -0700 (PDT) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id j10si5875351lbp.23.2015.08.06.14.00.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Aug 2015 14:00:08 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by labjt7 with SMTP id jt7so39002007lab.0 for ; Thu, 06 Aug 2015 14:00:08 -0700 (PDT) X-Received: by 10.112.199.133 with SMTP id jk5mr4418505lbc.32.1438894808255; Thu, 06 Aug 2015 14:00:08 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.7.198 with SMTP id l6csp1158344lba; Thu, 6 Aug 2015 14:00:07 -0700 (PDT) X-Received: by 10.50.30.197 with SMTP id u5mr6735170igh.9.1438894802074; Thu, 06 Aug 2015 14:00:02 -0700 (PDT) Received: from mail-io0-f172.google.com (mail-io0-f172.google.com. [209.85.223.172]) by mx.google.com with ESMTPS id h102si6478083iod.92.2015.08.06.14.00.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Aug 2015 14:00:02 -0700 (PDT) Received-SPF: pass (google.com: domain of al.stone@linaro.org designates 209.85.223.172 as permitted sender) client-ip=209.85.223.172; Received: by ioeg141 with SMTP id g141so93692685ioe.3 for ; Thu, 06 Aug 2015 14:00:01 -0700 (PDT) X-Received: by 10.107.11.155 with SMTP id 27mr4579496iol.121.1438894801283; Thu, 06 Aug 2015 14:00:01 -0700 (PDT) Received: from fidelio.ahs3.com (c-50-134-239-249.hsd1.co.comcast.net. [50.134.239.249]) by smtp.googlemail.com with ESMTPSA id 7sm5345121iot.6.2015.08.06.13.59.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Aug 2015 14:00:00 -0700 (PDT) From: Al Stone To: linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org, linux-pm@vger.kernel.org, linaro-acpi@lists.linaro.org, linaro-kernel@lists.linaro.org, patches@linaro.org, Al Stone , "Rafael J. Wysocki" , Len Brown Subject: [PATCH 5/5] ACPI: remove definition of BAD_MADT_ENTRY macro Date: Thu, 6 Aug 2015 14:59:30 -0600 Message-Id: <1438894770-31163-6-git-send-email-al.stone@linaro.org> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1438894770-31163-1-git-send-email-al.stone@linaro.org> References: <1438894770-31163-1-git-send-email-al.stone@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: al.stone@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Now that we have introduced to bad_madt_entry(), and we have removed all the usages of the BAD_MADT_ENTRY macro from all of the various architectures that use it (arm64, ia64, x86), we can remove the macro definition since it is no longer used. Signed-off-by: Al Stone Cc: Rafael J. Wysocki Cc: Len Brown --- include/linux/acpi.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/linux/acpi.h b/include/linux/acpi.h index d2445fa..06072d8 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -131,10 +131,6 @@ static inline void acpi_initrd_override(void *data, size_t size) } #endif -#define BAD_MADT_ENTRY(entry, end) ( \ - (!entry) || (unsigned long)entry + sizeof(*entry) > end || \ - ((struct acpi_subtable_header *)entry)->length < sizeof(*entry)) - char * __acpi_map_table (unsigned long phys_addr, unsigned long size); void __acpi_unmap_table(char *map, unsigned long size); int early_acpi_boot_init(void);