Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp848000imm; Tue, 3 Jul 2018 00:42:46 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcV7MPaZtPcTl2vLDXr6wvTbvIyWnZQ17mXnvMK62Blyoc+aYpQx9gyGLcQoK/fyfuuGGVM X-Received: by 2002:a63:6345:: with SMTP id x66-v6mr24774594pgb.43.1530603766637; Tue, 03 Jul 2018 00:42:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530603766; cv=none; d=google.com; s=arc-20160816; b=ZfyRfoE0B/h13V6fP/xQ62Q/ZK0NcujkUUc+d6ffhhGCseXPKY+T5/PmAduUfeiaJT vli6+1Hw2nBBPmrFyY5ghx5Bq9BWVwY/vzUwu43o3AUAsOLW/iy0KOUWTSc/h1qjbHxq Z4fC5BSoTJHYL3ZCw4IElyuWc9Cn+Gkqie2PZVnpq8rMCGQobN12aoS8jJNku9Gfbi8Y AeePHk0HePWqDY4H4ZdUgICqv9OnWTZXH55T85HGQy8HEEdOK0qs75eH4nNQP6+ogNto y1zKTPT8fjZV/hx3pG13/vQlU98NSBSO4eZXb29EcInDaaEO96EZ+te6iGS5VwXT4HLl cOqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:arc-authentication-results; bh=Lo5QfrQYlpMYzMVN8UsWUKjOsGlYwde+su3qxFYumiE=; b=N77IS/FD7TbtbCQfSTWk9MosmXVsMrDNqQHRnfhtdnnIZD+fIvzFOGl6dyPA/RBhhV yZs0Bvvc01CCdg32JND2GO09XkZ7lqWG6mrhYhmuhswmcfImPhL2SaTj88rQ4ZuzJafn mnI8UPx7WIGYKSSxfNfDdDKI26bVAJZuZN4fJmtV5fGL7551EbCdonbYjm5048h2tXZJ jIU5X3EgGU/QYEps/E2TVDrsoC9y4hnT/vlqx1h5v0UPTK1ctUkHyJKtNmKIIBvnasjn UtzKrHm7mqjnhIc6JbKWcu2O7H+6KRwDGOfrqG9EKoi2bQvgfgK8xnva+NM1TBr27a0S kgFg== ARC-Authentication-Results: i=1; mx.google.com; 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 s71-v6si543736pfa.367.2018.07.03.00.42.32; Tue, 03 Jul 2018 00:42:46 -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; 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 S932778AbeGCHlw (ORCPT + 99 others); Tue, 3 Jul 2018 03:41:52 -0400 Received: from mail-ua0-f194.google.com ([209.85.217.194]:39291 "EHLO mail-ua0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932169AbeGCHlu (ORCPT ); Tue, 3 Jul 2018 03:41:50 -0400 Received: by mail-ua0-f194.google.com with SMTP id n4-v6so612607uad.6; Tue, 03 Jul 2018 00:41:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Lo5QfrQYlpMYzMVN8UsWUKjOsGlYwde+su3qxFYumiE=; b=tSlDl8kyQvjzN/gAKhiot9zwBtN4nGRfL4QHZ/h7MaNQr2PkrRPb3fir3U+Q6FiMcG sTVkTiUnRYm9U2yyEmCSaAP30btlb4+GwSBI8PtaU+db8Bz4YH9iPu1EfzMnrm4kdEDq v8fMPCmogMh4MGR6PJ5uMq7qZDmpP38UIioS6KhO1eVzpovo9BC2SntOJnCz+k+sI4vs u/6CqFzk9YyoRlqOI9Vttntpnm9x/OtnAToSAapjJEL46Z0EelyHLGIMICFcu/bbIxz7 SkONHkDV8heQv6I9v8kZ+oEmg4U1HaNi93fMU5giJgDb8LwV5SV/oTgB030dh4PJNIqk zcQA== X-Gm-Message-State: APt69E3DlvvhFszQ/e27syiSL2dMcMjzvkk30GoMDb5YROc1fVUMEimF fLNY8uLq+IcIQQ0gA29RJ9L9V8AOdBOjJ3iBILY= X-Received: by 2002:ab0:265:: with SMTP id 92-v6mr19136263uas.26.1530603709901; Tue, 03 Jul 2018 00:41:49 -0700 (PDT) MIME-Version: 1.0 References: <20180702133532.5412-1-geert@linux-m68k.org> <20180702133532.5412-2-geert@linux-m68k.org> <1349f685-e4a2-5e04-8227-dd55e11153f6@linux-m68k.org> In-Reply-To: <1349f685-e4a2-5e04-8227-dd55e11153f6@linux-m68k.org> From: Geert Uytterhoeven Date: Tue, 3 Jul 2018 09:41:38 +0200 Message-ID: Subject: Re: [PATCH 1/5] m68k/io: Add missing ioremap define guards, fix typo To: Greg Ungerer Cc: "David S. Miller" , Dmitry Torokhov , Helge Deller , linux-m68k , netdev , linux-input@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, On Tue, Jul 3, 2018 at 4:13 AM Greg Ungerer wrote: > On 02/07/18 23:35, Geert Uytterhoeven wrote: > > - Add missing define guard for ioremap_wt(), > > - Fix typo s/ioremap_fillcache/ioremap_fullcache/, > > - Add define guard for iounmap() for consistency with other > > architectures. > > > > Fixes: 9746882f547d2f00 ("m68k: group io mapping definitions and functions") > > Signed-off-by: Geert Uytterhoeven > > If I build for the m5475evb defconfig then I get warnings like this: > > CC init/main.o > In file included from ./include/asm-generic/io.h:19:0, > from ./arch/m68k/include/asm/io_no.h:147, > from ./arch/m68k/include/asm/io.h:3, > from ./include/linux/bio.h:28, > from ./include/linux/blkdev.h:21, > from init/main.c:80: > ./include/asm-generic/iomap.h:79:0: warning: "ioremap_wt" redefined > #define ioremap_wt ioremap_nocache > ^ > In file included from ./arch/m68k/include/asm/io_no.h:145:0, > from ./arch/m68k/include/asm/io.h:3, > from ./include/linux/bio.h:28, > from ./include/linux/blkdev.h:21, > from init/main.c:80: > ./arch/m68k/include/asm/kmap.h:37:0: note: this is the location of the previous definition > #define ioremap_wt ioremap_wt > ^ Thanks, I did some m68knommu compile tests, but didn't see this warning, which happens for Coldfire+MMU only. The issue is that there are two ways to declare an architecture has ioremap_wt(): 1. By defining ioremap_wt, 2. By defining ARCH_HAS_IOREMAP_WT. 1 is done in arch/m68k/include/asm/kmap.h. 2 is done in arch/m68k/include/asm/io_mm.h. Moving that to kmap.h fixes the warning. Will send an update shortly. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds