From patchwork Tue Sep 29 23:45:46 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: 7291621 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 2FA1B9F39B for ; Tue, 29 Sep 2015 23:52:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5EFCE205F0 for ; Tue, 29 Sep 2015 23:52:48 +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 10F73205EF for ; Tue, 29 Sep 2015 23:52:47 +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 1Zh4ft-0007zp-0j; Tue, 29 Sep 2015 23:51:09 +0000 Received: from mail-io0-f169.google.com ([209.85.223.169]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zh4bM-0004Z9-6I for linux-arm-kernel@lists.infradead.org; Tue, 29 Sep 2015 23:46:28 +0000 Received: by ioii196 with SMTP id i196so29260511ioi.3 for ; Tue, 29 Sep 2015 16:46: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=xNJQosITo0deq+g3qI55fmU2O3//9/Pu3dJLjfQC4Kc=; b=Gp5gXkYR1XXxRsk4AUN5sEEKc67ut7E+SHCWrC6ni0g2mrfBc/KpDIQebJMloWkNcH qD81kLMSXn/ADtxPM4RPbo6kAr3gZtvb81ZQJY80WnOqyc1KmsfDHoICmDGRzO8WYrZQ eEFolGg3XRFnd8Gma0F8C2t68kCBcKbHpSVFEvUxwH8NPMfGIOdGE6WsZs0nOXPal1Cl tt6u0y4WLA9Tt4Lf3S6Pgcx20fBYjMuiPRDp9e3Tk+avoLjAy3QNd9uDWTnY3B1UvY0u GwG4F0iwr6093ja6aQ7DwY0r1gQoDj+apqwNmL+NXzahoziyXEBBl/I2vpKtBag5XNcM 5m6g== X-Gm-Message-State: ALoCoQm7VHUAT3o5SIoTrbDq75U177pdFBhcDe5an1ljGBS31bF2iMDPnQrA4ENiR7SVXrRHrXSS X-Received: by 10.107.17.159 with SMTP id 31mr1572270ior.126.1443570367058; Tue, 29 Sep 2015 16:46: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 r40sm12256182ioe.20.2015.09.29.16.46.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Sep 2015 16:46:06 -0700 (PDT) From: Al Stone To: linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1443570346-15378-1-git-send-email-al.stone@linaro.org> References: <1443570346-15378-1-git-send-email-al.stone@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150929_164628_295745_7462870C X-CRM114-Status: GOOD ( 10.65 ) 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 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;