Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4473ybp; Thu, 3 Oct 2019 09:23:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqwW0fMld3nh1VYjamovHNl8pE+HtPNnDh+Cl5WD6GsIPDxiTspFAwNrDL9x+YPo314H8sEn X-Received: by 2002:a50:908c:: with SMTP id c12mr10627900eda.45.1570119783015; Thu, 03 Oct 2019 09:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570119783; cv=none; d=google.com; s=arc-20160816; b=HKgnOD3zUCnBFUqyhQvFoI7sDLUDLNYgG3aVsDv5xF099JVyITVlmyByYK6a2YdLtA +unkv2ti3O/8VfFTRZLcqU9M1QtLAkLqiwFfMmQAcYIujp3lphQfHJ+LKNE3HVJbgvdr GFz4mqoUphFxJqodLl/GUwHNRhLjOYe+0aOQyRL7GmCVufBnbqe41T0V8JBl8ocsDq9S NlIKwovcOLidpHaFChIxTssCp5n9n2zHukFTvppj/coMYYUBgSv4hy+O+Yd/kebZCg+o K1xL2DoFGx9AnGvm2Z8jqMH1REr9TTBCFCgDv0WygNYLEDh/eBhe4x89FOoIqAjwIQ0W W01Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Owy9b4zATonI/DMlC+CVT0oV9vBmdBeLni7Gh1aXg60=; b=avdkmyqFCWxseUZLG10NWGZfxffNiCW7gVN6MCdW818NaFv2GUahMkTx13qRe+DVPa 0JEOI0sxgVL4OwbYLClfOsCkIjCqxeUaxHaHsu7CzwN3FGGurqSgJDHCf77oC8MmArlK 8oiT6zUeK5MfS0a/C7Gh8n1w5rPzBBZzbtxde8lEeU7HgK+Tw2VPy9Imk0cBV/G/mtat 57EDHaRRMILL6f1jpkVgdfSZHkF5vHRA1WOs9duFtF/Zupx8+F2qCn11zvSOmU5fy8F2 EqpjvyOTO/70fI+7rAl8vJGJqN2ZrdktfvhT6IAf92chMm6psbkyI3wkEemZjK+5Lpsa EjWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NxNbdun9; 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 f45si1761435eda.345.2019.10.03.09.22.38; Thu, 03 Oct 2019 09:23:03 -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=@kernel.org header.s=default header.b=NxNbdun9; 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 S2389438AbfJCQSD (ORCPT + 99 others); Thu, 3 Oct 2019 12:18:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:44204 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388566AbfJCQR7 (ORCPT ); Thu, 3 Oct 2019 12:17:59 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 532D920700; Thu, 3 Oct 2019 16:17:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570119477; bh=wDpL378kGVf4pMIXAYaTkF7wCXDt9A51ysKZ6bNNgTc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NxNbdun9Dk57uz48XTBaFuhCamkAKKaHXhrO0d/HPINc88LlhzVZN5qjWdzARNdZP hYukMt49qwXw9YgaJy6HCcSjgkarCnUpOx7PaBi9Qq+S2vm0+rcr7YK5pV4bDHsbxc h8mevgN0qLdckb5z+DHs+KU1Xoa8PYMzf7y2FK/s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Finn Thain , Greg Ungerer , Geert Uytterhoeven , Sasha Levin Subject: [PATCH 4.19 080/211] m68k: Prevent some compiler warnings in Coldfire builds Date: Thu, 3 Oct 2019 17:52:26 +0200 Message-Id: <20191003154505.566967672@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191003154447.010950442@linuxfoundation.org> References: <20191003154447.010950442@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Finn Thain [ Upstream commit 94c04390225bcd8283103fd0c04be20cc30cc979 ] Since commit d3b41b6bb49e ("m68k: Dispatch nvram_ops calls to Atari or Mac functions"), Coldfire builds generate compiler warnings due to the unconditional inclusion of asm/atarihw.h and asm/macintosh.h. The inclusion of asm/atarihw.h causes warnings like this: In file included from ./arch/m68k/include/asm/atarihw.h:25:0, from arch/m68k/kernel/setup_mm.c:41, from arch/m68k/kernel/setup.c:3: ./arch/m68k/include/asm/raw_io.h:39:0: warning: "__raw_readb" redefined #define __raw_readb in_8 In file included from ./arch/m68k/include/asm/io.h:6:0, from arch/m68k/kernel/setup_mm.c:36, from arch/m68k/kernel/setup.c:3: ./arch/m68k/include/asm/io_no.h:16:0: note: this is the location of the previous definition #define __raw_readb(addr) \ ... This issue is resolved by dropping the asm/raw_io.h include. It turns out that asm/io_mm.h already includes that header file. Moving the relevant macro definitions helps to clarify this dependency and make it safe to include asm/atarihw.h. The other warnings look like this: In file included from arch/m68k/kernel/setup_mm.c:48:0, from arch/m68k/kernel/setup.c:3: ./arch/m68k/include/asm/macintosh.h:19:35: warning: 'struct irq_data' declared inside parameter list will not be visible outside of this definition or declaration extern void mac_irq_enable(struct irq_data *data); ^~~~~~~~ ... This issue is resolved by adding the missing linux/irq.h include. Signed-off-by: Finn Thain Acked-by: Greg Ungerer Signed-off-by: Geert Uytterhoeven Signed-off-by: Sasha Levin --- arch/m68k/include/asm/atarihw.h | 9 --------- arch/m68k/include/asm/io_mm.h | 6 +++++- arch/m68k/include/asm/macintosh.h | 1 + 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/arch/m68k/include/asm/atarihw.h b/arch/m68k/include/asm/atarihw.h index 9000b249d225e..407a617fa3a2b 100644 --- a/arch/m68k/include/asm/atarihw.h +++ b/arch/m68k/include/asm/atarihw.h @@ -22,7 +22,6 @@ #include #include -#include #include extern u_long atari_mch_cookie; @@ -126,14 +125,6 @@ extern struct atari_hw_present atari_hw_present; */ -#define atari_readb raw_inb -#define atari_writeb raw_outb - -#define atari_inb_p raw_inb -#define atari_outb_p raw_outb - - - #include #include diff --git a/arch/m68k/include/asm/io_mm.h b/arch/m68k/include/asm/io_mm.h index 782b78f8a0489..e056feabbaf0b 100644 --- a/arch/m68k/include/asm/io_mm.h +++ b/arch/m68k/include/asm/io_mm.h @@ -29,7 +29,11 @@ #include #ifdef CONFIG_ATARI -#include +#define atari_readb raw_inb +#define atari_writeb raw_outb + +#define atari_inb_p raw_inb +#define atari_outb_p raw_outb #endif diff --git a/arch/m68k/include/asm/macintosh.h b/arch/m68k/include/asm/macintosh.h index 08cee11180e69..e441517785fda 100644 --- a/arch/m68k/include/asm/macintosh.h +++ b/arch/m68k/include/asm/macintosh.h @@ -4,6 +4,7 @@ #include #include +#include #include -- 2.20.1