Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp1194908ybh; Sat, 3 Aug 2019 20:18:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxMFYZdIQmqZFu8zQ3ebGSpahbI5FFgU8V9WHKc5NA1tNuQ9l0W7GIFo57TUojlsoxzcYpZ X-Received: by 2002:aa7:8e17:: with SMTP id c23mr67323859pfr.227.1564888734883; Sat, 03 Aug 2019 20:18:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564888734; cv=none; d=google.com; s=arc-20160816; b=TgFbq5MHljAgEUJVVZXXPomiZHZvBOB1KJJ0QabCQXr6v+4effVZN5kVKQSFCE1fDs rzmcdTEA7jj+jEbN6wz62Iz3khZbPwUDKY8KmOYZcRlIis0TNxxV01MuIfZ5b+jMyyUy eLRYOW0V16K1Y86D71CEy14ZR5NvTqaEDp+nQY6xOJQp6mcmJKUX5YT94jleLNEFH1jS iI2coCSNcNVBcZyazEP1gpI2KYPsWwYuyrl7P5585J29apHjdP+1ubSY4dHYdZpPk3jp Q/jdZhsPI0xXo2ybKC1me6DtTKAwuMNHFFrlmDEfHgA6yILGcnC7i5Fa4AhxlRgXg03f RmUA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:subject:from:dkim-signature; bh=qUss61uErCv45l6U5vMW/dNDvgWLW+8JpQICeZFcraM=; b=q90jGZsykwMydDeZjp3CxZi31YsonbMODYAzydNrI1SsaW5snYuKB17FePrqERG/z4 zSIAIgFydoS0kIfT/waOrLIQ007qafnTrake6rGcUC1/zY1A/Qt1/Tnjko2vtKK2dD1v Z19bpHhvGpOMoE3VLIoRpV7RgCYjvPCui7YeVK1b15Sn+t29mFJag79i/VGbdL/wkbsB dD8NNmNOUWoMrE+YvuON5wKYi6TnbjcWoBcKkbYEQzyZLQQlXB//dALfDXi6vcUkYkXU Ifqm+9X0z7mky4xFuhUJES98H+/f1rkuBoUfhphqKTapIOXO4XXb/+KiC7rQIbO4g8qu 6xvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=opNi5P09; 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 j74si9794433pje.12.2019.08.03.20.18.40; Sat, 03 Aug 2019 20:18:54 -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=opNi5P09; 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 S2390532AbfHBXgx (ORCPT + 99 others); Fri, 2 Aug 2019 19:36:53 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:36669 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388400AbfHBXgw (ORCPT ); Fri, 2 Aug 2019 19:36:52 -0400 Received: by mail-pf1-f194.google.com with SMTP id r7so36760829pfl.3 for ; Fri, 02 Aug 2019 16:36:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=qUss61uErCv45l6U5vMW/dNDvgWLW+8JpQICeZFcraM=; b=opNi5P09MxsE+vav+3iC9q9f+8JyZWly3jBOYMwBH7/jzZOPNqgbw3ZBnJoxiYVWy/ ADLFS1F8nZrqcMc/ZFiss4V/EfjGtGY0Ir0T928i32sIxtGOHIFzvQ6bqbZtqh92OOAp KqtAJFfDGc9dlQ7Ok9JbnuH5BoQk8g78VPRI2qNKGH2mhsN/8zoNSm1wu/3vJJo5GGmr +PgOZcWZ6I8AG/HE9Q0a61LYp0sHB7a3lQYKTYgVAHNQCyG4w32/URdSiNh3SWbY0bEE 9B9vuN6t1s9tQ6824DJQ42CmXh7pyKhaeEyefvebyhWgUA9iMm3JBv5VDW4eVTuQjbfa oXmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=qUss61uErCv45l6U5vMW/dNDvgWLW+8JpQICeZFcraM=; b=QxlGyYlySWhoA/WFaVPIm+i7yzp5KkOZxUGQlk5YtYwf6+9I4KxAaA/nDt4uDpWGTO uxKrtA9Zkb8HlSCQb9fHqZrRf0cNgbLOLinInGjq0oG+hks2awSDMWQ72DuppHAEWEyP 0/GU7ADFU0lt4ku7i2DCGEYNg6LHbANs7TIKmpGHc2q7jQLCdpBnPdMXXRDbsPMWdJ4C YVpMc+LlZVX8itZ8C5mxDho/0SRIK6RhxGkrxjJ5uXTkW4TSzrT9PTugfvLTOhVuTPm9 NXWo8T3Benc4CcafYeb7JX0Yc4tiXvjre4ozUsonZ+xpgKAT1j5hQqDnxCv1es5/rC+S 6dhA== X-Gm-Message-State: APjAAAV1Nq7srSbb8St1BEVAc/C80SKlZI+U+RdKwhj25fjhz3plYTu9 3W1uzinFrfWP1KnPn7+rLRdSpb6E X-Received: by 2002:a17:90a:9a83:: with SMTP id e3mr6485379pjp.105.1564789011564; Fri, 02 Aug 2019 16:36:51 -0700 (PDT) Received: from [192.168.0.106] (124-169-192-12.dyn.iinet.net.au. [124.169.192.12]) by smtp.gmail.com with ESMTPSA id i74sm23703182pje.16.2019.08.02.16.36.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Aug 2019 16:36:51 -0700 (PDT) From: Greg Ungerer X-Google-Original-From: Greg Ungerer Subject: Re: [PATCH] m68k: Prevent some compiler warnings in coldfire builds To: Finn Thain , Geert Uytterhoeven Cc: Michael Schmitz , linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org References: <9ec2190f5be1c4e676a803901200364578662b6d.1564704625.git.fthain@telegraphics.com.au> Message-ID: Date: Sat, 3 Aug 2019 09:36:45 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <9ec2190f5be1c4e676a803901200364578662b6d.1564704625.git.fthain@telegraphics.com.au> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Finn, On 2/8/19 10:10 am, Finn Thain wrote: > 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. > > Cc: Michael Schmitz > Signed-off-by: Finn Thain > --- > 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 533008262b69..5e5601c382b8 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; > @@ -132,14 +131,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 6c03ca5bc436..819f611dccf2 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 8f0698bca3dc..8a43babcf53a 100644 > --- a/arch/m68k/include/asm/macintosh.h > +++ b/arch/m68k/include/asm/macintosh.h > @@ -4,6 +4,7 @@ > > #include > #include > +#include > > #include > Looks good to me: Acked-by: Greg Ungerer Geert: I can take this via the m68knommu tree if you like? Or if you want to pick it up then no problem. Regards Greg