Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2209295iof; Tue, 7 Jun 2022 23:16:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrFnfQbWa1/mles7GSadE9B0xX+tdg7eIgdJTPOlSQxtWlmXk1ps8CEPqq7b/U43M2Uw8D X-Received: by 2002:a17:902:b193:b0:158:c040:5cf8 with SMTP id s19-20020a170902b19300b00158c0405cf8mr32754884plr.146.1654668991349; Tue, 07 Jun 2022 23:16:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654668991; cv=none; d=google.com; s=arc-20160816; b=C/CkjtM2KCpa26ppm3iMnk2dq9wDhR0oJbzvD4zU3MrhIiNLzBwimXWYIk6dEsFIU8 j7AHY3emvUh9WXcsEsR3iegRhrJKoRmhOGEiTTE0IXW6dVGZd3uGthgBC7/xtMHW4gfn TJ30qbEPII8dVk1hKIq5JyXWtHhqCTT1Z0aTEHGu8RbifK6B1ZF6gIX7n9ARmmGzCi3u H/r9gFfJJTnZBCT0uVl9WHkDl+3uQvPL3jjwpOzQ0L7uk9LjgS7TPnNsn6CxJYpjBgLd iR6zGlMLttK4C1qf4XkEJ/qnFu21NnGIdjdQcOlMCuaNKKWIaW55DvT/IydGaMYXNFv+ TqUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=e8ENrtIbjY7+ujNuh6Tj/bUga0MuFUeslU3izMPi9Q4=; b=DP85ftywnw2+rEJdO4Uf5wkU3RH09rb1U3L+aw5riVV0kR3B7+JTiB804q/E9C00xt BYyieReANJ1Pe3TAdgyM9B/Soj954mJIKPD4WLCWcfP5uyBPrbBexAxcRZ5MA1kgXjmr hwZvTJykznmtg1wzoVkMTeYcHqoc82RFLDzUZAuBIl9X4F0ZiUL3kSqXdCohfTZ2pL6i YVhvJN5oN93t+gmSLBNxCYc0j42YARut03gvZW6cgXYoC+/03VcR2zIvou98OioPxr3v RKzjuTqJ+XlkEoGxbPbdnsFP5tR4qxUkK3rBWXHa6HqDpnc9mrikrAERqhtUb7GQ8Cf8 jElA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@landley-net.20210112.gappssmtp.com header.s=20210112 header.b=5GhBg18N; 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 Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id g8-20020a636b08000000b003daeb2bb972si27291273pgc.699.2022.06.07.23.16.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 23:16:31 -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=@landley-net.20210112.gappssmtp.com header.s=20210112 header.b=5GhBg18N; 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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2A04724AEC4; Tue, 7 Jun 2022 22:37:48 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376920AbiFHBzr (ORCPT + 99 others); Tue, 7 Jun 2022 21:55:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1587878AbiFGXxr (ORCPT ); Tue, 7 Jun 2022 19:53:47 -0400 Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90B6F2650 for ; Tue, 7 Jun 2022 15:50:43 -0700 (PDT) Received: by mail-oi1-x232.google.com with SMTP id h187so12750614oif.4 for ; Tue, 07 Jun 2022 15:50:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=landley-net.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=e8ENrtIbjY7+ujNuh6Tj/bUga0MuFUeslU3izMPi9Q4=; b=5GhBg18NLPAgGo65m7wpJuE5gTzXpD4A+/+sktUFqmKGmrsnDqi5Ps9yBpdY8/7mfr WjlhWg4IGhf7pkmXuYjSU76/RzUbQdjfswBA8anoHeFzL+5EAcDV+8KusQxfT8bTmGe0 OB3aXs7QSVDpQHWWahTgaGObb9eoDeY1tPORQ9M7j0b+XG5DZjxETgxJP8cLm15bCChg VxFWHxBhF9mjh+nfYPU4+Bp99/iSKDz9h3xQzveDxBLROCfSSSqH37SVH27JYvnA5x8o 2trDNzCgr2VeAkpCmoXu1g1d96kCcxFgN+CfxjKF+YFuhROIiMlIYkpLov0yhhtqwilo Buww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=e8ENrtIbjY7+ujNuh6Tj/bUga0MuFUeslU3izMPi9Q4=; b=P4y9NWfpo2kaZTs1RU5FfvpdCT6ai6+R9wqqf2h4E8VnENlXBsX6HGxT/emftJuWJW gGjKzdXjejvnWyG70dfQbXt9JTikrmxCllxe99FMfVlyw2Bv78hVGXThZUa8POCCsDEV HKp9HKB3axKUj7u7UuHyR6VxOBdqx0jX/K+6lJvyI1Zs4W1DPhtEJAV+07wkQVmRMsUK /mfMDJRKH0+r2CzFF1pwrBCnd0XaCtripoQgR/9LLpQDuU0tEOFvPtTKS+lPR/bALwI8 2W0W4IF2V9SKga95DcrElXKOMzcLwiEmb/Bkp0AiGcFpmqSdAQFBx986gVgZ4GkMWc5m ZMgA== X-Gm-Message-State: AOAM532oVRu7jl3iM9Zo463gPfKpBH3BLt5RaWtQnNiinNBIaVFCO8w8 yVsd9ral/OJLZfA9YliQMTsnHA== X-Received: by 2002:a05:6808:308e:b0:32b:1f24:34c4 with SMTP id bl14-20020a056808308e00b0032b1f2434c4mr734588oib.147.1654642242919; Tue, 07 Jun 2022 15:50:42 -0700 (PDT) Received: from [192.168.86.195] ([136.62.38.22]) by smtp.gmail.com with ESMTPSA id k6-20020a9d7dc6000000b0060bfb08741esm3409804otn.12.2022.06.07.15.50.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Jun 2022 15:50:41 -0700 (PDT) Message-ID: Date: Tue, 7 Jun 2022 17:56:22 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [PATCH] sh: cast away __iomem to remove sparse warning Content-Language: en-US To: Baoquan He , ysato@users.sourceforge.jp, dalias@libc.org Cc: linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, kernel test robot References: <20220507013411.74277-1-bhe@redhat.com> From: Rob Landley In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,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 On 5/30/22 07:09, Baoquan He wrote: > Hi, > > On 05/07/22 at 09:34am, Baoquan He wrote: >> LKP reported a sparse warning in arch/sh/kernel/crash_dump.c during >> a kdump patchset reviewing: >> https://lore.kernel.org/all/202204082128.JKXXDGpa-lkp@intel.com/T/#u >> >> ../arch/sh/kernel/crash_dump.c:23:36: sparse: warning: incorrect type in argument 1 (different address spaces) >> ../arch/sh/kernel/crash_dump.c:23:36: sparse: expected void const *addr >> ../arch/sh/kernel/crash_dump.c:23:36: sparse: got void [noderef] __iomem * >> >> This warning happened when __iomem pointer is passed into fucntion >> which doesn't expect it. Casting away the __iomem can fix it. > > This warning was reported by lkp during one patchset posted and > reviewing. Since it's not related to the patchset, I just sent it > separately so that later code change on arch/sh/kernel/crash_dump.c > won't trigger the lkp warning again. > > [PATCH v5 RESEND 0/3] Convert vmcore to use an iov_iter > https://lore.kernel.org/all/20220408090636.560886-2-bhe@redhat.com/T/#u > > Now the above patchset has been merged into linus's tree, please > consider taking this patch. > > Thanks > Baoquan > >> >> Reported-by: kernel test robot >> Signed-off-by: Baoquan He Tested-by: Rob Landley Rob