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 X-Patchwork-Id: 53765 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by patches.linaro.org (Postfix) with ESMTPS id 764BB22DB2 for ; Wed, 16 Sep 2015 23:27:14 +0000 (UTC) Received: by lanb10 with SMTP id b10sf406864lan.3 for ; Wed, 16 Sep 2015 16:27:13 -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=It2zg9X+B873173Bnj+ZRQNr1PsckaRDbt8/6Oq6Vhm2KNrnsx9J1mPnNveV6T/R5z 0RQKwrr5N7Pqb8GNmImw9FbksfqSP7Fm1ooeqiEgs5u8dogZsTH1RaDErwr/ckjabpAR R58Kaa+DOwpJw9NJG0l+3EdxdcWtuCNGpQ/TBjeRIKpu0hd3OnmVge6KNrR8/1p1vRrr Ikemslwkh5RjZKCedhUQMoMQ4HqitqVDxOt9hMj6WAzqiV9H3XDbxm8vCcuesoVFIuPy nDveIvbLGgTdlj54rcG9OUhKXuQo1j73DRNnOsKCB8yql84fQGzsE6jPdvPxPiT3TPce Q5sQ== X-Gm-Message-State: ALoCoQlI4X0TgTnK1cOunY5m0eW2SuG1I5yIPKlqNE3ZkZ5vNfwozfz7HBxjbjzxI1wBFPTP3z1l X-Received: by 10.112.172.70 with SMTP id ba6mr5899405lbc.1.1442446033468; Wed, 16 Sep 2015 16:27:13 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.204.11 with SMTP id ku11ls13611lac.2.gmail; Wed, 16 Sep 2015 16:27:13 -0700 (PDT) X-Received: by 10.152.43.202 with SMTP id y10mr4333680lal.75.1442446033200; Wed, 16 Sep 2015 16:27:13 -0700 (PDT) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com. [209.85.217.175]) by mx.google.com with ESMTPS id n8si137410lbs.50.2015.09.16.16.27.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Sep 2015 16:27:13 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by lbpo4 with SMTP id o4so734884lbp.2 for ; Wed, 16 Sep 2015 16:27:13 -0700 (PDT) X-Received: by 10.112.199.70 with SMTP id ji6mr32661656lbc.73.1442446033110; Wed, 16 Sep 2015 16:27:13 -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 w3csp2745376lbq; Wed, 16 Sep 2015 16:27:12 -0700 (PDT) X-Received: by 10.50.78.41 with SMTP id y9mr1121375igw.72.1442446027428; Wed, 16 Sep 2015 16:27:07 -0700 (PDT) Received: from mail-ig0-f175.google.com (mail-ig0-f175.google.com. [209.85.213.175]) by mx.google.com with ESMTPS id 4si87221igy.86.2015.09.16.16.27.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Sep 2015 16:27:07 -0700 (PDT) Received-SPF: pass (google.com: domain of al.stone@linaro.org designates 209.85.213.175 as permitted sender) client-ip=209.85.213.175; Received: by igbkq10 with SMTP id kq10so44743907igb.0 for ; Wed, 16 Sep 2015 16:27:07 -0700 (PDT) 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 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 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-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.175 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);