From patchwork Mon Aug 2 15:23:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Pieralisi X-Patchwork-Id: 490363 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:1185:0:0:0:0 with SMTP id f5csp2027362jas; Mon, 2 Aug 2021 08:24:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4f8FmaZTrZ73e60O7kIwtRNmuP/kgihvFIKlpG4UQAPvAE0vrqWSs3iRmPGN1uWhEC4Id X-Received: by 2002:a5d:8541:: with SMTP id b1mr897864ios.105.1627917859321; Mon, 02 Aug 2021 08:24:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627917859; cv=none; d=google.com; s=arc-20160816; b=XKGQzUJeWejMhSq0KZpRiTkjq4WjG/gcXBaeejwF1GoXimW9/wMn1i7fzrfWvvoCQy s2bQdh6mpJ5R5qE3rgSvpSIfwSo9QRNaEjolW7i4PwGkhbd/DYUbuBkVZmD+7/hrbzei MPjxeSO3xMlUyBo21WTNl1V3Z9FrC4viJSbyz0JwA3Z6bIr9g4Etg5u0GUHzQc9ZVXX/ Zk9UUqTcXwx9QGdS4mUtgdCOcC1XTS8dZOQbjesj5S3lqnPwm1qQlCoFVzDy73lmQTqm cMomrxyzCF86HqHkYTulZWOKGbOGqse/Uw8t//I5lOJt1KiynfM/wXyQn0wMd2XZrLlO mz6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=/H9kTzkFi2uriF3vGRNNzeZYEXzob3yTYmdg8oB+OqA=; b=P+DmaPM9T+yR5dUJ5g4x+gGiy3hbwthXsk6m7NURT5EdP/MMlL9AgxikR/GIbHJuzd huRQgKM+Th/guvbNU1ifJZwtsdJAAL3dkRAdtq48URNqKSE31d/NiuxWM3rmXvE8sYK8 d28mVndd0pNLcJU1a+xCwTJXKlodfzQ/srk9LiulXbXHAUtHVwkJFD9HLrpUlZzaovi7 GQMT8wYbabeKikWGfNFGKNgFY591LuRw6MK3tN+x+f4pfcASQ+me/MbY+w2BUtL55imK shsBaEd0TrTK9FnfhweiqEtP76dVFswKRyupFX15TS72wjOLNFCgvYJ/7wnVNN7PWkb9 cFrw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i20si1599760jaj.74.2021.08.02.08.24.19; Mon, 02 Aug 2021 08:24:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234359AbhHBPY0 (ORCPT + 4 others); Mon, 2 Aug 2021 11:24:26 -0400 Received: from foss.arm.com ([217.140.110.172]:37490 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235089AbhHBPYY (ORCPT ); Mon, 2 Aug 2021 11:24:24 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F3F8811FB; Mon, 2 Aug 2021 08:24:13 -0700 (PDT) Received: from e123427-lin.arm.com (unknown [10.57.39.152]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 62CB43F66F; Mon, 2 Aug 2021 08:24:11 -0700 (PDT) From: Lorenzo Pieralisi To: linux-kernel@vger.kernel.org Cc: Lorenzo Pieralisi , Ard Biesheuvel , "Rafael J. Wysocki" , linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Veronika kabatova , Robin Murphy , Will Deacon , Hanjun Guo , Sudeep Holla , Catalin Marinas Subject: [PATCH v2 1/3] ACPI: osl: Add __force attribute in acpi_os_map_iomem() cast Date: Mon, 2 Aug 2021 16:23:57 +0100 Message-Id: <20210802152359.12623-2-lorenzo.pieralisi@arm.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210726100026.12538-1-lorenzo.pieralisi@arm.com> References: <20210726100026.12538-1-lorenzo.pieralisi@arm.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Add a __force attribute to the void* cast in acpi_os_map_iomem() to prevent sparse warnings. Signed-off-by: Lorenzo Pieralisi Cc: Ard Biesheuvel Cc: "Rafael J. Wysocki" --- drivers/acpi/osl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.31.0 diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 45c5c0e45e33..8f67bf0f090b 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c @@ -376,7 +376,7 @@ EXPORT_SYMBOL_GPL(acpi_os_map_iomem); void *__ref acpi_os_map_memory(acpi_physical_address phys, acpi_size size) { - return (void *)acpi_os_map_iomem(phys, size); + return (__force void *)acpi_os_map_iomem(phys, size); } EXPORT_SYMBOL_GPL(acpi_os_map_memory);