Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6190109imm; Mon, 27 Aug 2018 11:14:33 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbGU3ouuAQZnMtqXxMmQpX3ZhlXecLr2k2E6tRtZqIMdDgv1gDKvhfLuReh/wtEjGk7ry/v X-Received: by 2002:a17:902:6845:: with SMTP id f5-v6mr14337073pln.17.1535393673030; Mon, 27 Aug 2018 11:14:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535393673; cv=none; d=google.com; s=arc-20160816; b=MGulYcAYmOapSvBbduQk0gsDtk5OV+TYSygwvbqquISX9HpRJqyA/FGwwKxZR6rtzB LNWWtuNTBpx/rgaD7qlTuR3D9UJxLjjzaoxpv9XkcOZGPfpePa63fNdryPdFCTh/w6R1 CD1oA8qt3JA/+DaqZ6oGyaOwPY0999JgcrEL/4RMPZk335k9xxRRWi2rRZByezIbTlr0 aVAszKzqzBQ6/BDUthfifUjy5XBxtgG8wSQgXpKfnZG/IRrGVppqGTJd9j49ZzLRXtzZ kRhEdhHyXhQLUzsSg0r0kqBFx2thiAjySdLR1Zs8R6tR7ttXksV6S/+PF5h5Nk8MkZnO CGJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=N+yGY5lAfeau7xIMpn+MNIIYVS/C9VlEH63oItTbuW4=; b=wAnpdayEBBidcXptylEO319r+/o4Ca0lp8Oh1VASB6HAbG0JjP4YuzDNsggPu1mdvB iCqJbg9BP6Fef8s2stN0UzZu4On9Mdl3enZpZk2sDIgQ19GnK43U5OaD9cmrFem1StUd 5Thg/wf8rQPvthb2asnsf1Azs4fY4e0FIeCqq8E5yoLbOkh4/t4zW4ia4HKRHtFF9oKU 5etPwlKIEp7bTp2hlNASSC7dD3SRrwQA0GgE+/deo5fZrxmwMPHb5MyDC3yXmD6bP/67 L9pRnIMCJ6MVXSk/djQifyMvxgiatRAfGqeQVfVhWd02QgZH8E/RSJf0vgnUMyWn3ebk rXIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=PFWoDJ9x; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e12-v6si14021897pls.372.2018.08.27.11.14.16; Mon, 27 Aug 2018 11:14:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=PFWoDJ9x; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727180AbeH0WAv (ORCPT + 99 others); Mon, 27 Aug 2018 18:00:51 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:34914 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726895AbeH0WAv (ORCPT ); Mon, 27 Aug 2018 18:00:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=N+yGY5lAfeau7xIMpn+MNIIYVS/C9VlEH63oItTbuW4=; b=PFWoDJ9x2EbPS/QkWhWM6enur IkdHzkeYZW0Kyy5X15UQyR4V4EoYugeWeOnKz39XUxXLOhJjbyAYrKcUaANxIMB3FHfx8YBHdCUxW xoQFzvWVW7jeU3j0Mw2rNAeBpMJwFB5Tn+K/5J31IPL62/6iIfLz/qNjMRdI6PSSPkBqZZZcq5JaH IQpMSXtgT3GqKln8HoqjU4M3GnQAPHb1mN5dAY1SUkIPfcAbrE2cmLLjEhppxkww/eVTktsvpbDUu arU3SYicyEZ6yNNpLF4oJ+h1NKbfBSRykX+YUaRe6iFbx6sYJURrJf1YhzhOMqEBcQsFppJ1ofVrW VckQ9ctqA==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fuM0l-0006pQ-AS; Mon, 27 Aug 2018 18:13:11 +0000 Date: Mon, 27 Aug 2018 11:13:11 -0700 From: Christoph Hellwig To: Guenter Roeck Cc: Christoph Hellwig , Linus Torvalds , Linux Kernel Mailing List Subject: Re: Linux 4.19-rc1 Message-ID: <20180827181311.GA24778@infradead.org> References: <20180827134459.GA16094@roeck-us.net> <20180827154641.GA17201@infradead.org> <20180827171152.GA2705@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180827171152.GA2705@roeck-us.net> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 27, 2018 at 10:11:52AM -0700, Guenter Roeck wrote: > When building sparc32 images, this results in the following > error. > > drivers/base/platform.c: In function 'setup_pdev_archdata': > drivers/base/platform.c:235:22: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types] > pdev->dev.dma_mask = &pdev->dma_mask; > > pdev->dev.dma_mask is u64 *, pdev->dma_mask is dma_addr_t which in turn > is either u32 or u64 depending on the architecture. Yes, I've fixed this up to be a u64. > > > +++ b/include/linux/platform_device.h > > @@ -25,6 +25,7 @@ struct platform_device { > > int id; > > bool id_auto; > > struct device dev; > > + dma_addr_t dma_mask; > > ... so this will have to be u64, or the pointer in struct device would > have to be fixed. > > However, even changing the definition to u64 does not help: The warnings > are still reported. This is because setup_pdev_archdata() is not called > for any of the affected devices. That is kind of interesting since it > means that arch_setup_pdev_archdata() won't be called for those devices > either. Yeah, this is odd. I'll need some more time to figure out where the platform devices for sbus are allocated.