From patchwork Wed Aug 19 22:07:28 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: 7039611 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 BCCE49F373 for ; Wed, 19 Aug 2015 22:10:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 07B582084F for ; Wed, 19 Aug 2015 22:10:53 +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 25A9D206E8 for ; Wed, 19 Aug 2015 22:10:52 +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 1ZSBXU-0005S5-Hq; Wed, 19 Aug 2015 22:08:56 +0000 Received: from mail-io0-f172.google.com ([209.85.223.172]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZSBWy-00052E-9w for linux-arm-kernel@lists.infradead.org; Wed, 19 Aug 2015 22:08:24 +0000 Received: by iodv127 with SMTP id v127so25711313iod.3 for ; Wed, 19 Aug 2015 15:08:02 -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=BTZ9BjFLDv+A9ZXvU32dtE84y/OmFcPfPINjUpAaEp4=; b=H4lYDh3r1FJ3GhXoEQs5tATf0DbqypjCxu/JnPga1LEVqojZYJBRML+Z6AhWnHI3B2 8eDUvGMzmeTZjl4Mp+2jJb3MjP8s7A3lO1eHPguwaV37EnfF569IOz/ukYQCB+WsqWTP ri7WKihz9mlTqD/eIskzkGMMulo1h4NYZ09uEZ4UfKVgKZ14pOhvq9s+oe0KhQUkhQ7U oYZGflfTR+Wz+slIWBk8PZRMARtmemWBoyqQG7yxg4jP3rhbkjcn4pOIZmdLOMC/Xo4X zc4TTyhWROkzm+Lb0H2rE40zAZAJvtrFT/af6iqxYNmBYrG15DqY1nm6wzo32y6/vuiu C5xA== X-Gm-Message-State: ALoCoQnwVhZqUNQu0fSmEh5gsW6sjMfm3lWJVto4zsfCQJFix9Yq8ULaMPcuk+QqZOPFKVGNMeUZ X-Received: by 10.107.34.147 with SMTP id i141mr14089472ioi.59.1440022081964; Wed, 19 Aug 2015 15:08: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 f126sm1708666ioe.21.2015.08.19.15.08.00 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Aug 2015 15:08:00 -0700 (PDT) From: Al Stone To: linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 5/5] ACPI: remove definition of BAD_MADT_ENTRY macro Date: Wed, 19 Aug 2015 16:07:28 -0600 Message-Id: <1440022048-6285-6-git-send-email-al.stone@linaro.org> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1440022048-6285-1-git-send-email-al.stone@linaro.org> References: <1440022048-6285-1-git-send-email-al.stone@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150819_150824_419997_A9982A3A X-CRM114-Status: GOOD ( 10.55 ) 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.8 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 01e6770..96729d3 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)) - 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);