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@linaro.org X-Patchwork-Id: 6963001 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3F8DB9F39D for ; Thu, 6 Aug 2015 21:02:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5F9B9205DF for ; Thu, 6 Aug 2015 21:02:28 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7613F204EB for ; Thu, 6 Aug 2015 21:02:27 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZNSGz-00089w-FT; Thu, 06 Aug 2015 21:00:21 +0000 Received: from mail-io0-f180.google.com ([209.85.223.180]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZNSGw-0006zY-5i for linux-arm-kernel@lists.infradead.org; Thu, 06 Aug 2015 21:00:18 +0000 Received: by ioeg141 with SMTP id g141so93692683ioe.3 for ; Thu, 06 Aug 2015 14:00:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=O5LJv1Suv6IMiNyl2D4wb+NAfOZIC9/F193Hb7Kh7fU=; b=CfDlJDZyEf+UzKvCB5vdfRzkfrOUpflaCDZ+ziD05FXqVvA6ptk+SMBpKQFGDQrjWy PEvLi2QWsZJIBlAlqT59lZ5PO4WHdsJARyNPeg9Qmgvffyjb18KE+YqnVSe0pWw3dnlu a80c5rE//qlEJzd2y6g1uQOA1vCYMbqeKG9capmMy6dPZBLEMhHI9t39VnWMkwFrp6CN e1r3mgnIWrFKeyjWK/Ad23LccqBkbUAdn0+ebGz0ZRl307ZZ7g0QxpTazmHL2LGZxNx6 jAP6WHvbxHQPpLu6GkHlWkCTyuChpFlfA4haSb32ymnj41QKdlyOPQddyO180Al7OwVv bwsQ== X-Gm-Message-State: ALoCoQlNmWt1r7CYsAVs/PK5eG+7rhZG3qk/2tchw8L5oMb8nO2FH1ev2ki6zzFemwpzt/kH9C+k 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150806_140018_319047_AB7564FD X-CRM114-Status: GOOD ( 10.41 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linaro-kernel@lists.linaro.org, linux-ia64@vger.kernel.org, Al Stone , patches@linaro.org, linux-pm@vger.kernel.org, linaro-acpi@lists.linaro.org, "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, Len Brown MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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);