From patchwork Wed Sep 16 23:26:45 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: 7201321 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C5725BEEC1 for ; Wed, 16 Sep 2015 23:29:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E1C4F207C3 for ; Wed, 16 Sep 2015 23:29:26 +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 A23B620640 for ; Wed, 16 Sep 2015 23:29:25 +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 1ZcM7Q-0008HJ-Qb; Wed, 16 Sep 2015 23:28:04 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZcM6v-0007jj-RY for linux-arm-kernel@bombadil.infradead.org; Wed, 16 Sep 2015 23:27:34 +0000 Received: from mail-ig0-f175.google.com ([209.85.213.175]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZcM6s-0000QY-RN for linux-arm-kernel@lists.infradead.org; Wed, 16 Sep 2015 23:27:32 +0000 Received: by igbkq10 with SMTP id kq10so44743906igb.0 for ; Wed, 16 Sep 2015 16:27:07 -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=kaMhrEdvIFDnd0TX3DA/oNwAfdncoA36O11UkFehoK4=; b=TIBa6yjAtTdztG9Bq39GHiDXBOajRi0hzAlc34CQA8Kb7yS9JoFe2pEa8DllkfU3Sx ReO1Dp2uHJ6/lvjt5vxz5ImEgmgMaFsXwfSzr5SZBhhqjtpqHD1kIQxsl85ThDyQg/jH owrZ3YvmnNGfSlC3uvHtwy2uIzX/whRbTnDcNpaWjmlKB2+C0Y8tg6o/1mwOWhxFTIsk wn97Jfv99DPd8ANnePfzBci6cH+Osq4pa0SflN5Vx+YuycFQC9smnxRENizCejZa1/1d Jbt0lfFPUXlpEWZUDJaU/VEWUyo0JfedS1Fyjy7u+ZzzonhRng173nHgJSMsRhHw6a41 IbfA== X-Gm-Message-State: ALoCoQkxMC5F2Zt1e57ZDR1XC9Qvcw9ShST6zNZrdfPyCgEwlIVdzKsrW2YVtS9pi24tlpaGWZkk X-Received: by 10.50.6.16 with SMTP id w16mr1143657igw.74.1442446027148; Wed, 16 Sep 2015 16:27:07 -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 ht6sm2983562igb.11.2015.09.16.16.27.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Sep 2015 16:27:06 -0700 (PDT) From: Al Stone To: linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 5/5] ACPI: remove definition of BAD_MADT_ENTRY macro Date: Wed, 16 Sep 2015 17:26:45 -0600 Message-Id: <1442446005-19799-6-git-send-email-al.stone@linaro.org> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1442446005-19799-1-git-send-email-al.stone@linaro.org> References: <1442446005-19799-1-git-send-email-al.stone@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150917_002731_027483_EE340704 X-CRM114-Status: GOOD ( 11.68 ) 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.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_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 7235c48..a6d6326 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);