From patchwork Thu Aug 6 20:59:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Stone X-Patchwork-Id: 52015 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by patches.linaro.org (Postfix) with ESMTPS id EDDC520539 for ; Thu, 6 Aug 2015 21:00:04 +0000 (UTC) Received: by lbbyj8 with SMTP id yj8sf27562116lbb.3 for ; Thu, 06 Aug 2015 14:00:03 -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=jmZYT7Iz4jhq40mnLOYUUgWi8wev5k0SyXF5x5/7bYo=; b=Nw8SF1R5DK7LS6s7U/l4Oocrk+PB5osm/+5oB72+SXforjvLdc95KrRNuKSjLd4PAI PLnTck+zrBXHq2/Xtx54OgFaQwvtxr8hag4MJ3E9o6g3NUI38nKPXGuzaudy7m2CNUMS xhqX77PNXSGYRvSOJmSvRzmAxdxqXCQnIVv1HIq2Fd4/x0BPlCfitrLgrIFAJvaDtQ3t RHen//bRD4J+ngHRB+Sn7WbxNPR989Pcndn1HczuY1YeRB7PeYeZuzAPlthZ4hSpJFHW +Oqqb56xtn8oFlYQC++4wLJbinZ4Xqgb/K3uQxC8n3KgX4t9Ied36taHSVy4foz6ZKlw TlbQ== X-Gm-Message-State: ALoCoQk2ugkCHRP3uvhz7q7kRYE12snrHu0ehrFL8foD7v4d/cAt9A/KVCNH06roKlP6y2Ss/F14 X-Received: by 10.180.35.162 with SMTP id i2mr1513245wij.6.1438894803899; Thu, 06 Aug 2015 14:00:03 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.163 with SMTP id z3ls439745laj.32.gmail; Thu, 06 Aug 2015 14:00:03 -0700 (PDT) X-Received: by 10.112.219.165 with SMTP id pp5mr4288247lbc.23.1438894803737; Thu, 06 Aug 2015 14:00:03 -0700 (PDT) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com. [209.85.217.182]) by mx.google.com with ESMTPS id s6si5795368las.169.2015.08.06.14.00.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Aug 2015 14:00:03 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by lbbpu9 with SMTP id pu9so22560917lbb.3 for ; Thu, 06 Aug 2015 14:00:03 -0700 (PDT) X-Received: by 10.152.18.162 with SMTP id x2mr4273588lad.73.1438894803189; Thu, 06 Aug 2015 14:00:03 -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.7.198 with SMTP id l6csp1158306lba; Thu, 6 Aug 2015 14:00:02 -0700 (PDT) X-Received: by 10.50.29.17 with SMTP id f17mr6988526igh.54.1438894798781; Thu, 06 Aug 2015 13:59:58 -0700 (PDT) Received: from mail-ig0-f174.google.com (mail-ig0-f174.google.com. [209.85.213.174]) by mx.google.com with ESMTPS id pj2si2731586igb.44.2015.08.06.13.59.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Aug 2015 13:59:58 -0700 (PDT) Received-SPF: pass (google.com: domain of al.stone@linaro.org designates 209.85.213.174 as permitted sender) client-ip=209.85.213.174; Received: by igbpg9 with SMTP id pg9so19763004igb.0 for ; Thu, 06 Aug 2015 13:59:58 -0700 (PDT) X-Received: by 10.50.136.194 with SMTP id qc2mr6473907igb.6.1438894797955; Thu, 06 Aug 2015 13:59:57 -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 7sm5345121iot.6.2015.08.06.13.59.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Aug 2015 13:59:56 -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 , Tony Luck , Fenghua Yu Subject: [PATCH 3/5] ACPI / IA64: remove usage of BAD_MADT_ENTRY Date: Thu, 6 Aug 2015 14:59:28 -0600 Message-Id: <1438894770-31163-4-git-send-email-al.stone@linaro.org> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1438894770-31163-1-git-send-email-al.stone@linaro.org> References: <1438894770-31163-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.182 as permitted sender) smtp.mail=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 the bad_madt_entry() function, and that function is being invoked in acpi_table_parse_madt() for us, there is no longer any need to use the BAD_MADT_ENTRY macro. Signed-off-by: Al Stone Cc: Tony Luck Cc: Fenghua Yu --- arch/ia64/kernel/acpi.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/arch/ia64/kernel/acpi.c b/arch/ia64/kernel/acpi.c index b1698bc..efa3f0a 100644 --- a/arch/ia64/kernel/acpi.c +++ b/arch/ia64/kernel/acpi.c @@ -184,9 +184,6 @@ acpi_parse_lapic_addr_ovr(struct acpi_subtable_header * header, lapic = (struct acpi_madt_local_apic_override *)header; - if (BAD_MADT_ENTRY(lapic, end)) - return -EINVAL; - if (lapic->address) { iounmap(ipi_base_addr); ipi_base_addr = ioremap(lapic->address, 0); @@ -201,8 +198,6 @@ acpi_parse_lsapic(struct acpi_subtable_header * header, const unsigned long end) lsapic = (struct acpi_madt_local_sapic *)header; - /*Skip BAD_MADT_ENTRY check, as lsapic size could vary */ - if (lsapic->lapic_flags & ACPI_MADT_ENABLED) { #ifdef CONFIG_SMP smp_boot_data.cpu_phys_id[available_cpus] = @@ -222,9 +217,6 @@ acpi_parse_lapic_nmi(struct acpi_subtable_header * header, const unsigned long e lacpi_nmi = (struct acpi_madt_local_apic_nmi *)header; - if (BAD_MADT_ENTRY(lacpi_nmi, end)) - return -EINVAL; - /* TBD: Support lapic_nmi entries */ return 0; } @@ -236,9 +228,6 @@ acpi_parse_iosapic(struct acpi_subtable_header * header, const unsigned long end iosapic = (struct acpi_madt_io_sapic *)header; - if (BAD_MADT_ENTRY(iosapic, end)) - return -EINVAL; - return iosapic_init(iosapic->address, iosapic->global_irq_base); } @@ -253,9 +242,6 @@ acpi_parse_plat_int_src(struct acpi_subtable_header * header, plintsrc = (struct acpi_madt_interrupt_source *)header; - if (BAD_MADT_ENTRY(plintsrc, end)) - return -EINVAL; - /* * Get vector assignment for this interrupt, set attributes, * and program the IOSAPIC routing table. @@ -336,9 +322,6 @@ acpi_parse_int_src_ovr(struct acpi_subtable_header * header, p = (struct acpi_madt_interrupt_override *)header; - if (BAD_MADT_ENTRY(p, end)) - return -EINVAL; - iosapic_override_isa_irq(p->source_irq, p->global_irq, ((p->inti_flags & ACPI_MADT_POLARITY_MASK) == ACPI_MADT_POLARITY_ACTIVE_LOW) ? @@ -356,9 +339,6 @@ acpi_parse_nmi_src(struct acpi_subtable_header * header, const unsigned long end nmi_src = (struct acpi_madt_nmi_source *)header; - if (BAD_MADT_ENTRY(nmi_src, end)) - return -EINVAL; - /* TBD: Support nimsrc entries */ return 0; }