Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp127101iof; Sun, 5 Jun 2022 23:10:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyF526Dz4HbN4eCOLAi7w25xpygngOb2uFpDqrN5FHG+QY2+jhO3ShyRMLiR1TyKESy+5kx X-Received: by 2002:a17:902:ea0e:b0:163:efcf:adc7 with SMTP id s14-20020a170902ea0e00b00163efcfadc7mr22341982plg.145.1654495829668; Sun, 05 Jun 2022 23:10:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654495829; cv=none; d=google.com; s=arc-20160816; b=pWQTcu4eIcUaezy7ObNq0S2vI4B89btPzhHGuunbvzHKcr9rCXrwO3lLMVGf63SbLW Nw/Dwim5caUe4l36YJQyyVVS0QsqcC+pSJHXTsQ82nIgW9mG1l0Zln381Ixqq7sctp7Z 6ixCPGcVXtiUt4JtlTF1zbXcn1S1MFyMbZb66XrdtHshDv3pOOjaCy3PkO7Ft21/rohe R/w58ue1RqtsiF/zStoCmrqrH7dWgFiyrLdkmAs+VToqT6UNZ+mKVVzdKL+vIhs7BnmP 9Hl9WMgJlqdn3wpujMi7OxQJAvBdHXs1rtEi96W9FpVgdPW1pmknVDOhKHM5XtIHXXch 1j9g== 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=7mgepNtifVOubftC6yvSuR0KP4Nmrr+zpwrm7YPBXec=; b=GXGt8EndRlHbBjTiFy6Ae4q9ytRFERla6ku3d68qG9mf5U+YKccCu2e88rydGyz97z aR3xfxhmkegTpqfFcEQkYJZ2XDdGr/ryeBSc6/a6xw0+S2n0h3od+LgOCUnBGs9bxOhP NqpzCd9d0FRJNGxvzbZlW8FyCiwq4ElEOtPJ+rPIgCk9Yd7vSSQg4IXnb0mPGPnc/H4a ug5LRPoBuKYD40c7r0RmfZh7MUy1Rx8yDuBRqpwjZePSRv/VBi6uSwckQae9LrlnA6QA JYXpiVFWIjbUJxK1+mKzQB7oZJFeLRHGfgd/OuAE/yoaFcR4M/rQ8TOoFhxAe+MXCP6H Qaew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RHcXXRiZ; 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 h17-20020a170902f55100b00161ab578554si22377029plf.297.2022.06.05.23.10.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 23:10:29 -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=RHcXXRiZ; 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 690AE10170A; Sun, 5 Jun 2022 22:01:32 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345015AbiFCRp1 (ORCPT + 99 others); Fri, 3 Jun 2022 13:45:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345092AbiFCRoC (ORCPT ); Fri, 3 Jun 2022 13:44:02 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E64F5522D; Fri, 3 Jun 2022 10:42:34 -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 ams.source.kernel.org (Postfix) with ESMTPS id F3398B8242E; Fri, 3 Jun 2022 17:42:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C795C385A9; Fri, 3 Jun 2022 17:42:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654278151; bh=jN3i2LdxfYzhR0w/hB0nyLMKgMI6Tdxlrm4dOLX7fsg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RHcXXRiZ0en+FlvnKlXB6WTsyqTsqW2lkoCJS/6Cqq2hVZWxbCuiCanUkp51jGKVK Y1qApdBpHX1PjkMmZMJVbxSkC5IXd+SXWik0vEHFD6/mb+CpArQ810kcDrJpmjbEI+ PTcqCSujyQ8aZQh1q4yY6wWJE8qgT+7Ia/VWWA2o= 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.19 05/30] ACPI: sysfs: Make sparse happy about address space in use Date: Fri, 3 Jun 2022 19:39:33 +0200 Message-Id: <20220603173815.250557142@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220603173815.088143764@linuxfoundation.org> References: <20220603173815.088143764@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 @@ -438,7 +438,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);