From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Stone Subject: [PATCH v5 5/5] ACPI: remove definition of BAD_MADT_ENTRY macro Date: Tue, 29 Sep 2015 17:45:46 -0600 Message-ID: <1443570346-15378-6-git-send-email-al.stone@linaro.org> References: <1443570346-15378-1-git-send-email-al.stone@linaro.org> Return-path: Received: from mail-io0-f170.google.com ([209.85.223.170]:35545 "EHLO mail-io0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752123AbbI2XqI (ORCPT ); Tue, 29 Sep 2015 19:46:08 -0400 Received: by ioiz6 with SMTP id z6so29208625ioi.2 for ; Tue, 29 Sep 2015 16:46:07 -0700 (PDT) In-Reply-To: <1443570346-15378-1-git-send-email-al.stone@linaro.org> Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org 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 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 51a96a8..dd5bd228 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -127,10 +127,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)) - struct acpi_subtable_proc { int id; acpi_tbl_entry_handler handler; -- 2.4.3