Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2284161iof; Wed, 8 Jun 2022 01:24:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOfky1Fa1dAr7/qqOyD4sTdvHW2tdwv5z+EQyTFlRCxQMCrx64i0razbFW6SGFEEe6tWpe X-Received: by 2002:a63:5c56:0:b0:3fc:824d:fc57 with SMTP id n22-20020a635c56000000b003fc824dfc57mr29641787pgm.561.1654676656826; Wed, 08 Jun 2022 01:24:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654676656; cv=none; d=google.com; s=arc-20160816; b=zyuugTv1j8Kn3cpG2cgT42+c5W25BqnwwrMl/WAo/ctHK5TlZma3Y60zwlJrNS7Bu4 zBjooZ0k/lcyYNf9PdXW41HoMxoFmhFBtqN256Ls9jbkiAmfoGqOJ6lk4x1d7ss222SS gxPSBy0pGqp0BYsRiKM3myPsb7q+MRpZJNixofvEf0baW3Yaqne3wVueH6iWPiOcUoU9 ljPDVm3HdoIDMmygXeRsCpg6M8FVOcbhY/z0bAipgjW9nw7Ao6qqgva+XL29nRl+AvWU kpMJVszCpzt7GXSA8hwlWQbKY/iIrcpcpwYZlSWDH6kYhU9gjN9WLf6UpGCNBDUmDXnd 64EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TeDZmjWnzyfSlyFkCkzDa5dQOySlKUE6Xhy3xS5xaC0=; b=ZWfoomIEP1N1mcyNh8nJunGV/hAHe5X9domXaZETc1ilFXya4WN4Bfi0um2WCooj1F u1+ZZjecTVCuLgzt4aYza09SmlRHueJ87apcnVHEn/MCl1LCtuwRWOtxs6FtNDPKwUYF EZyKpkezIoVra4fNW4zziV8NZn9vvGW8nKPtiWt2+CV/IZg8G9Q5Y0ADA8WmTHnYixhJ yLJ8Peb4BasYGVPKcUd/7DhcVuAm+kAPPtE8EZJuMKnm6fHTnKUGvZjON+hOQ+xwj540 1mCJXMKG/+W0Dcq40iP90+e0v/3krHf/Hl6vtOgF5mro0Jw8EadhlCCfn/MhLG7qvR3H t33w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NV2E9F0x; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b14-20020a056a000cce00b0050cf84f4e8fsi6326348pfv.29.2022.06.08.01.24.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 01:24:16 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NV2E9F0x; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 677C01D5A83; Wed, 8 Jun 2022 00:55:11 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230315AbiFHEwl (ORCPT + 99 others); Wed, 8 Jun 2022 00:52:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229946AbiFHEvz (ORCPT ); Wed, 8 Jun 2022 00:51:55 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6E83D253FDD for ; Tue, 7 Jun 2022 18:17:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654651056; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TeDZmjWnzyfSlyFkCkzDa5dQOySlKUE6Xhy3xS5xaC0=; b=NV2E9F0xO+QBdPkcmXObG2ZtGn5Gt/mJT4RNTEUVmVB6+//UWLyr1tL+IPUfxWDOKZo2/V zl3nzjDq90Cdz62m8W5ezRBnm/jDuth3zsbOVKaauXOq0ry0AaaHpaAJPC5Bi2SpbASOcK fVQvIPk4r97wBUIqJ7yKsxWeJuO66iQ= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-477-klJpFXGiNfi0VZs1VHN7uw-1; Tue, 07 Jun 2022 21:11:16 -0400 X-MC-Unique: klJpFXGiNfi0VZs1VHN7uw-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 83222101A54E; Wed, 8 Jun 2022 01:11:15 +0000 (UTC) Received: from localhost (ovpn-12-81.pek2.redhat.com [10.72.12.81]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C1D50492C3B; Wed, 8 Jun 2022 01:11:14 +0000 (UTC) Date: Wed, 8 Jun 2022 09:11:10 +0800 From: Baoquan He To: Rob Landley , akpm@linux-foundation.org Cc: ysato@users.sourceforge.jp, dalias@libc.org, linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, kernel test robot Subject: Re: [PATCH] sh: cast away __iomem to remove sparse warning Message-ID: References: <20220507013411.74277-1-bhe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 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 On 06/07/22 at 05:56pm, Rob Landley wrote: > > > 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. ...... > Tested-by: Rob Landley Thanks for testing, Rob. I guess SuperH arch has been in status of no maintenance, however some generic code change may involve correspondant ARCH change so that we have to touch arch/sh/. Hi Andrew, To avoid annoying warning when modifying crash_dump code, could you pick this one? Thanks Baoquan