From patchwork Wed Sep 9 21:09:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Stone X-Patchwork-Id: 53341 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by patches.linaro.org (Postfix) with ESMTPS id B11F222B05 for ; Wed, 9 Sep 2015 21:10:29 +0000 (UTC) Received: by lagj9 with SMTP id j9sf8742186lag.0 for ; Wed, 09 Sep 2015 14:10:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=kaMhrEdvIFDnd0TX3DA/oNwAfdncoA36O11UkFehoK4=; b=M822MOEbKGk85+dEb7UH7SA9wvzkYJudSfu+iNU5uwuAoIiLUcdd2VcywRiyaoodJ8 WIVcD5IC6QlY90W/RScdmJCBcmkQAVQK6iKT3/BRjs0VrQ5wva/aRGEUaYWzc+LDNvog KdHKf0CRTMAX5RNh0oKOJjDBIOQBT+e2oRhh8qHiqepGBbcXRnPHpEd6JRqrlhVsKmdQ G5Xw8GCWQVRKZcHK+IfdJHAVs8f/ebwRO9N7sdjzeSUjn3lsTJAkalWTHzRlf3ZCz9QN 9mDHs2Oit4LMlOMGgoolYsIB8ukaN3JWAx7f50aw9tOBgww2tBJsJ0wfB6tlqdFCotYd 48xA== X-Gm-Message-State: ALoCoQnSoeKCSBzA3UTlFIdwYSZERwHaql13PeHUR5fpFMnHfR40u7y1kCavRUAXZUp9v+cLz9y8 X-Received: by 10.112.12.132 with SMTP id y4mr4778698lbb.0.1441833028554; Wed, 09 Sep 2015 14:10:28 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.135 with SMTP id q7ls99881laj.77.gmail; Wed, 09 Sep 2015 14:10:28 -0700 (PDT) X-Received: by 10.152.178.133 with SMTP id cy5mr31630966lac.42.1441833028278; Wed, 09 Sep 2015 14:10:28 -0700 (PDT) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com. [209.85.217.179]) by mx.google.com with ESMTPS id p3si7924271lap.36.2015.09.09.14.10.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Sep 2015 14:10:28 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) client-ip=209.85.217.179; Received: by lbpo4 with SMTP id o4so12921260lbp.2 for ; Wed, 09 Sep 2015 14:10:28 -0700 (PDT) X-Received: by 10.112.166.106 with SMTP id zf10mr31205237lbb.36.1441833028172; Wed, 09 Sep 2015 14:10:28 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.59.35 with SMTP id w3csp559603lbq; Wed, 9 Sep 2015 14:10:27 -0700 (PDT) X-Received: by 10.50.79.129 with SMTP id j1mr53216872igx.7.1441833015477; Wed, 09 Sep 2015 14:10:15 -0700 (PDT) Received: from mail-ig0-f172.google.com (mail-ig0-f172.google.com. [209.85.213.172]) by mx.google.com with ESMTPS id j79si7578772ioj.150.2015.09.09.14.10.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Sep 2015 14:10:15 -0700 (PDT) Received-SPF: pass (google.com: domain of al.stone@linaro.org designates 209.85.213.172 as permitted sender) client-ip=209.85.213.172; Received: by igcpb10 with SMTP id pb10so4732065igc.1 for ; Wed, 09 Sep 2015 14:10:14 -0700 (PDT) X-Received: by 10.50.41.67 with SMTP id d3mr53938295igl.57.1441833014602; Wed, 09 Sep 2015 14:10:14 -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 n188sm5503348ion.27.2015.09.09.14.10.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Sep 2015 14:10:13 -0700 (PDT) From: Al Stone 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 Subject: [PATCH v3 5/5] ACPI: remove definition of BAD_MADT_ENTRY macro Date: Wed, 9 Sep 2015 15:09:51 -0600 Message-Id: <1441832991-28200-6-git-send-email-al.stone@linaro.org> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1441832991-28200-1-git-send-email-al.stone@linaro.org> References: <1441832991-28200-1-git-send-email-al.stone@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: al.stone@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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);