Received: by 10.213.65.68 with SMTP id h4csp2744047imn; Mon, 9 Apr 2018 08:21:22 -0700 (PDT) X-Google-Smtp-Source: AIpwx48aXM89cgJzY9Bpr44tAt523rjPVl0Iy+mcG4+eri3rrb7+YjNiUr2+a4SDxnntV3NPLRWT X-Received: by 10.99.179.68 with SMTP id x4mr20850565pgt.132.1523287282543; Mon, 09 Apr 2018 08:21:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523287282; cv=none; d=google.com; s=arc-20160816; b=taqYryuKO2rYmsFEXD29CPoOwL5m+LwAmJttKP1aAXgsWVaa4Ii1ainJlOGIxQrRHj YuKdM9s14iG4BMrL4Nefa5iCWFwAogJqQKYNBxIg5+rZTrxKWHEBchwDdM30yqZTZd8u JRcRPAdbrH1ltUcIta+Tl0TiBQkze8weJ/fsOG+HucKK2GTz6vvBB5ir5c/fWHmrppKT 9eEuWe1mdPGN1xblbCl+3PnRddCJvjjQUXoUje0ueBfJtuRrlw8AjZIPYdT/bSHMJYcq NMdAvVuvImHDDpYyfAAHZn8upxy4ksZpyCUKxv38hxdYJc+utQLF8Sj15Q41pJHCazZe tSdw== 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=UDCnrPSdRWEkFXSDqZVtSY8gWxZabKCTs4L6rZqBGsk=; b=FozZETlYW2p6kwarIXgN4P2GIfe5srJ3PSoQQLfOQUbKaRkdIWyGEI4rxXEuw3xNEP JcpvOo2+LpBIv6gUXfVIt/RfRs9Us9YCucFQKNFEY1jtbXBDCqAYsufDApoAljDD8d/F BcxgRIQ0qFWrfdKftRo/U37rT3/6sNejx+rSWUbTIa94Smoyc5whFsdktUfdvLvXZkmd 0wE4Ds4ImmJGyyU72b/Ezud1T3U3JneFjtaJnMyvpuKgpmnoTE1kFdmlkGKW82F0m2wq pDAdmoEcu6MepKJXGt61ES5y9ERF4brGwbX70GzPadsjP+3HnybnP6dU7P4Wz9KJqC4c MAuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=l3bgg/nL; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p85si419899pfk.77.2018.04.09.08.20.41; Mon, 09 Apr 2018 08:21:22 -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=pass header.i=@gmail.com header.s=20161025 header.b=l3bgg/nL; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753036AbeDIPRf (ORCPT + 99 others); Mon, 9 Apr 2018 11:17:35 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:39918 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753028AbeDIPRd (ORCPT ); Mon, 9 Apr 2018 11:17:33 -0400 Received: by mail-wm0-f65.google.com with SMTP id f125so17477425wme.4 for ; Mon, 09 Apr 2018 08:17:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=UDCnrPSdRWEkFXSDqZVtSY8gWxZabKCTs4L6rZqBGsk=; b=l3bgg/nLdNWTPWCjBkQsUvefhli7x3reV/6Nd6PkjmmhbqV3xLAfY5yQ2JjA0Ycabq GLYGG4s0ekn8sDbPfsjCMDp5ALDK+zjQaiM6IyC1Tskli3kd2nXMuIzjBPXcKqndH2sS 3ceOmygs/S32CHuuYvKqa0jj/5tuhypB2vbvHtDFTmmBzxiKCGfl9Wv35PXsrdUiVLyB bwM4cU8oW0FNevO3OG2w5W1+yd+UiJ1i2RizaCk0hOuDTlYRn4bOWLLS92P7OI48MDcP voF/d78RwB5RmeaXCqoQAP9T+nBQHLOXJZ1KTQGViIRrn44SLx+piuCYrO4E5eAWS24g EcDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=UDCnrPSdRWEkFXSDqZVtSY8gWxZabKCTs4L6rZqBGsk=; b=j/sr1xPcZyYLjhp6CmHqQHUaULrz3OUEdHYXD4rpKnNY5onCqFXFh+am44dBXRFX+F jso8lIdcvvFYt6hXhCTT2GVUZ5dGBTy6oRocp+CRWcD57ZwJe4qiwikrQpI167RFyMjF OX/ZPtKt/wduFMjdbxHGeug/3sgjH0eI/x4Wiq2nQrHnpxesnSe9J2249fZqRU06GwMR VI/gAiL1O7OoC+M5rijd36zSjRMb3Rmw7iXrAfW3WLUnvCWwqDP+D+fT9PJj153xRGhb qdM9A2YSFX0LVjxrCBxZCZj8mGZ9SH2TlygzZpjk3l1lp0KwNTq4r8n1zWUqVofcDQzE HUhw== X-Gm-Message-State: ALQs6tCKP1ckcF8XFG/aHO7TKU4vHGEEtGyQHyI/mJsFwMS+Y2evKy3c Xj+1iE4rxOvDrPr16fBnvjM= X-Received: by 10.80.243.16 with SMTP id p16mr20599009edm.101.1523287052375; Mon, 09 Apr 2018 08:17:32 -0700 (PDT) Received: from ltop.local ([2a02:a03f:4014:db00:9c89:8e5:af9f:ff2d]) by smtp.gmail.com with ESMTPSA id a88sm455846edf.64.2018.04.09.08.17.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Apr 2018 08:17:31 -0700 (PDT) Date: Mon, 9 Apr 2018 17:17:28 +0200 From: Luc Van Oostenryck To: Geert Uytterhoeven Cc: Finn Thain , Laurent Vivier , Jens Axboe , linux-m68k , Linux Kernel Mailing List Subject: Re: [PATCH 03/12] m68k/mac: Don't remap SWIM MMIO region Message-ID: <20180409151727.pcvgbfymbr65amy2@ltop.local> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 09, 2018 at 02:54:30PM +0200, Geert Uytterhoeven wrote: > > > > - swim_base = ioremap(res->start, resource_size(res)); > > + swim_base = (struct swim __iomem *)res->start; > > I guess you need a __force to please sparse? Hi, Only pointer-to-pointer conversions may need __force. The logic being if you use an integer type to hold an address this address is typeless anyway and has no address-space, so extra checking is not done in this case and the cast in itself is enough. Cheers, -- Luc