Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2580770ybl; Mon, 19 Aug 2019 04:30:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZWpXescXH5xjWl7MmJu8XZcruCQkW+0yj1LMAfhm3vtUIr964++ksWgpw6dVtGkRmnNZ4 X-Received: by 2002:a63:7e1d:: with SMTP id z29mr19528667pgc.346.1566214231102; Mon, 19 Aug 2019 04:30:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566214231; cv=none; d=google.com; s=arc-20160816; b=By8v5M/8OnFrmYZv342zaKxBlCQFv2cQI5Vq38igikajdm9rvCqU0n9n74tZCdTYjO O6UNYewQ33PxjG4w1Biti81SxPs2rwFKR9JmeWj1C6wNRJ6OzsBduZsZ64HO+9+o1zD6 6h1QY66Tl0P/U7ZEob6+r3F41rIlYWxfgPqFEJ+KxOmEkncoB0AmqEyk1L5A0uKjOkia J3z3HwCzoJjMK4tvd+BU5anu90lri3kO726w6Het216MAWgJKBuck0UtuISeAQpHG3R/ ZUxtun/H735iBrXWSDf4jTRB92IvzNjcmn0XghTiRw3e2PMlEbEIv8Qyd48+2Icz+LPL w23g== 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; bh=T9D4LJCrvyAjq0B6uegoMe+NT34sKYRDI6GJznmJGKs=; b=qp1s+PXb6E6AQ8cDoAtMVYuzTujwoGtqDZ/yy7Ae/R2EZPprcfbgxcedA620q2yw7n tr0c2DDDI64WJ8lM3Z/C3auQEEADh2Vul5mOONNv2/+DlL2cB8VX5dTKvGBe1kYFpQc+ Uk1gNKgFfgGZlI6yLpn1DquYjvIJqRcKLv8goLm4DzKRvNGfHICBVbxdUNj4xbR/IlQG C5EfNgAnxg/u5LRhPCryEdlQImT1r4XOi9HwNjBCXrljImQ72b0A/kUPqL9lhIAkzhuq TM9NlWYJHm6j0aG0x6l/SSuGGoo8lF//yYTb2fo4q/3c3XpVD4nKO0mtVd7DaItREiY6 atBA== 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 l185si9615026pgd.379.2019.08.19.04.30.16; Mon, 19 Aug 2019 04:30:31 -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 S1727575AbfHSL2F (ORCPT + 99 others); Mon, 19 Aug 2019 07:28:05 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:39447 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726703AbfHSL2E (ORCPT ); Mon, 19 Aug 2019 07:28:04 -0400 Received: by mail-ot1-f67.google.com with SMTP id b1so1311576otp.6 for ; Mon, 19 Aug 2019 04:28:04 -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=T9D4LJCrvyAjq0B6uegoMe+NT34sKYRDI6GJznmJGKs=; b=FHalniGC5REnMYrpah9O6X6V3azoMr+6kNIvni2rJmTobTblV6SMBZvt5b572QTehQ 58Z4vTEzV3OIWxmT7nBkhyX2HtuBM2S49CXD0lrHlYFrr2dtpxUJVPWj+Zsc+dQa1nWe 0AzAImZZHW/uZK1dA2RDjbmm1pYqLN3y3HidfIaayPyuwPIq5PAMl+7n5LkUhD+PdwxM p6bOldG2+NyczmFIbGAcJtU9mvFeGQeDUldmq4kY35lNA5bnCslsSlaWwGXVrMM8IDWA J2Fa7XkmFYzCYAHm7dIfOB4eJgTOFPMPeLDTDoLNDrkZf8ubJDf35joOX04z7/RPWg5m RigA== X-Gm-Message-State: APjAAAVezNnUtzJfocxd6p6ccqG9VQlhe2YqSLDTkhM/CZ2NS0K1pXbf YZ/3hgyGGuWQzATykyrGTts6hwUUirLmueC2W4w= X-Received: by 2002:a9d:68c5:: with SMTP id i5mr17693931oto.250.1566214083926; Mon, 19 Aug 2019 04:28:03 -0700 (PDT) MIME-Version: 1.0 References: <9ec2190f5be1c4e676a803901200364578662b6d.1564704625.git.fthain@telegraphics.com.au> In-Reply-To: From: Geert Uytterhoeven Date: Mon, 19 Aug 2019 13:27:52 +0200 Message-ID: Subject: Re: [PATCH] m68k: Prevent some compiler warnings in coldfire builds To: Greg Ungerer Cc: Finn Thain , Michael Schmitz , linux-m68k , 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 On Mon, Aug 5, 2019 at 2:18 PM Greg Ungerer wrote: > On 5/8/19 5:14 pm, Geert Uytterhoeven wrote: > > On Sat, Aug 3, 2019 at 1:36 AM Greg Ungerer wrote: > >> 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 > > > >> > >> 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. > > > > If you have fixes for m68knommu for v5.3, feel free to queue it. > > Else I can queue it for v5.4. > > > > Reviewed-by: Geert Uytterhoeven > > I don't currently have any fixes for 5.3 queued. > And there is no real hurry on this anyway, it can wait for 5.4. > So please add to your queue for 5.4 Thanks, applied and queued for v5.4. 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