Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp130906iof; Sun, 5 Jun 2022 23:17:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUCN5sZcc7onF0jgoww8juu5QOTfuYLo7IZWgoL2sTnyyH8jo09uMsZLC9bUn3El80Vdxs X-Received: by 2002:a17:902:e80d:b0:167:5e77:e695 with SMTP id u13-20020a170902e80d00b001675e77e695mr11453248plg.144.1654496221687; Sun, 05 Jun 2022 23:17:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654496221; cv=none; d=google.com; s=arc-20160816; b=kgHxC0yno6dLET5+y6AE18RxW2uAv+t2mUzf8TwPKvbIAuyMXqhqehywpYf7KJd5vU mkaohtuYIsFuCsQBTvZ95ezbohj/4JD7ulJMuN6nphRdN0rnijw87rRhnewa93N/akC5 L/HDwzKhupQPIyrGHL+VqBkVU+ZyskiqxMQOdEuWaA0/OLUvSlH5MHsgBiFloc+xU/xD ipqFakG3xjhDoFieva0Sua6m4s4e+qouua4IXi9WHf2DFdQxGOHSE0rP3H2q8iGWihhn OpIt2bicNd2MifMdYxUAOWP1iC7gv9TfkeDvTqnqk4ZcLIKLCksbKmCAwpSOr5gTXyIR /nNg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=11bg+QU3USA7zdKeWScJFzkeTgGjQHl0jFPdzvO1jgU=; b=cjlxXKkONtL5RdHZAL9ztcsAFaqm4BcW2idbAvlPxK+QlZ9yOvpBgPNkmPuwhhuZys 7vZQSrzOanJ//EbmBdGc9NW+rpZKftAcx+0DQKJrUNzOVGK630s0RJ1LofcUKoH/ZQ5U TYMQKN5TmHpz9A8iKXwJfQLIeG3CNnolyne1NGb0YirnGa/CFvkZMqtEC7x0miYe8LWI UTb9xht5G/f7zpB75Y4Ui2L1nOgwOFST7kYrAjJqnXL5qHVVtzG/RMinmYKz1lRowEA2 YpXKp5E1eviBoaF7z7VyPWqHdV6QH2L/IcpyrKU0Mcrd++ZgTt7UBmH5FuMtljR/IVGw YvTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AVCNc8WZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 66-20020a630045000000b003fcef4b7babsi14860667pga.417.2022.06.05.23.17.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 23:17:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AVCNc8WZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EDF5BE3DD5; Sun, 5 Jun 2022 21:56:17 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344727AbiFCRlg (ORCPT + 99 others); Fri, 3 Jun 2022 13:41:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344716AbiFCRlH (ORCPT ); Fri, 3 Jun 2022 13:41:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F073C53A74; Fri, 3 Jun 2022 10:40:47 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1AC9E61AFD; Fri, 3 Jun 2022 17:40:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23179C385B8; Fri, 3 Jun 2022 17:40:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654278046; bh=2/eUY5HJlBIAAIiHk2QQP+pGXmnFeSwcIppQN6JtJJs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AVCNc8WZRydYfOz5ZqEXeyRPzNB08bkFofmGTQjwO1BJohUf3kRcHSIaUj4CXIK8/ JRJrpJadDrBwmd64veC2F1nqjQYKYwI7Lwh+ZXOnw8lXqFw5eH+Jvg/jJKuTJ9mW9F +Iy4I23rAD8Hme2m0JJxjoFtlvJdieYaVMEypbNA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andy Shevchenko , "Rafael J. Wysocki" , dann frazier Subject: [PATCH 4.14 05/23] ACPI: sysfs: Make sparse happy about address space in use Date: Fri, 3 Jun 2022 19:39:32 +0200 Message-Id: <20220603173814.528641585@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220603173814.362515009@linuxfoundation.org> References: <20220603173814.362515009@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andy Shevchenko commit bdd56d7d8931e842775d2e5b93d426a8d1940e33 upstream. Sparse is not happy about address space in use in acpi_data_show(): drivers/acpi/sysfs.c:428:14: warning: incorrect type in assignment (different address spaces) drivers/acpi/sysfs.c:428:14: expected void [noderef] __iomem *base drivers/acpi/sysfs.c:428:14: got void * drivers/acpi/sysfs.c:431:59: warning: incorrect type in argument 4 (different address spaces) drivers/acpi/sysfs.c:431:59: expected void const *from drivers/acpi/sysfs.c:431:59: got void [noderef] __iomem *base drivers/acpi/sysfs.c:433:30: warning: incorrect type in argument 1 (different address spaces) drivers/acpi/sysfs.c:433:30: expected void *logical_address drivers/acpi/sysfs.c:433:30: got void [noderef] __iomem *base Indeed, acpi_os_map_memory() returns a void pointer with dropped specific address space. Hence, we don't need to carry out __iomem in acpi_data_show(). Signed-off-by: Andy Shevchenko Signed-off-by: Rafael J. Wysocki Cc: dann frazier Signed-off-by: Greg Kroah-Hartman --- drivers/acpi/sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/acpi/sysfs.c +++ b/drivers/acpi/sysfs.c @@ -435,7 +435,7 @@ static ssize_t acpi_data_show(struct fil loff_t offset, size_t count) { struct acpi_data_attr *data_attr; - void __iomem *base; + void *base; ssize_t rc; data_attr = container_of(bin_attr, struct acpi_data_attr, attr);