Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2401723ybh; Mon, 5 Aug 2019 00:17:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxBfoIE83S2Pdm7ldwv6hZl3m2U3A6JNcPtfZdQEFo8YDKB2/OQaDnOGWdJV5Ly6oL5H9C6 X-Received: by 2002:a17:902:a504:: with SMTP id s4mr119468428plq.117.1564989440802; Mon, 05 Aug 2019 00:17:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564989440; cv=none; d=google.com; s=arc-20160816; b=J0iBVjyJMVW8x/J2qyoFPt5ssdwOGMik1w+Yhen2PBMj8UkuV9ICoYh0d+FZRku1qh OjpYVKBAtmz5QgFwcof/Mv9FAMzLhujDsbsx2iRzOTfYsDcX+T3xbQ2nu2KnzHtGQvbx ZaDL1K9OnKtg9oK142SiQS7UabZn7e2/QEI5QTjj8u1/WoLUibIZfX3fpuVjaIV+MHL+ Rlsv/2CxMw+5rXx7yhO9AHz467ZMKl9F/3es5OqIAEvthTvVuXoddaYed/FQ4VYGJSRC K0+RCSjfsI0rhBvQK0Wwib55mlugMyGKv4nnnBzQ5qn8DNzWL9u8D73AzZJwaBhe0i/a bQaw== 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=AeNejt0zLzN492QJi1mkWun4jhRVeId9uvP6YFvkE6Y=; b=f9y7zqVdWWWEVTKqciNkfV5NLkd/jyKMVB4ip+cb5il3+oNxrwKC7TdwJV58MtgYge P7gpfNdxfmaAxJGMUdIRQii1ZW7cJEFTkaNJ6wdYKezveroXe48HRCHAmltx0SGB/qkS /0zJfmWUg35o+dczl6kuD4g1+l1U9hKTU1buy1F9UwfkQ8Ic+lYcRQQ5pEOg20HN3Lah 6ddeSuC0wB759sT0XNHk1BDNOw3DHuCD9T0UUNd3ZwoEQWOZIi4DJl01phGnt8V4ItTF pq9xMpXC8CkHRSjZREBFaVYh7nyQthfRTelveWkUN+0zJ9VigdLFTrML2dAYkcL3ETJA U37w== 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 m143si44131269pfd.224.2019.08.05.00.17.05; Mon, 05 Aug 2019 00:17:20 -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 S1727563AbfHEHO6 (ORCPT + 99 others); Mon, 5 Aug 2019 03:14:58 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:39003 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727529AbfHEHO6 (ORCPT ); Mon, 5 Aug 2019 03:14:58 -0400 Received: by mail-wr1-f65.google.com with SMTP id x4so30070095wrt.6 for ; Mon, 05 Aug 2019 00:14:56 -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=AeNejt0zLzN492QJi1mkWun4jhRVeId9uvP6YFvkE6Y=; b=A03eHU+EOAsZUSk+QjHXnMNBdv5LrvWG1nr8aj4UZxZBSMnubDNsrWtQNLrZVMk9sr X1BVegxcs9VHyGe8BeJ+2M3tqUfeOiN9H1Xn8ftlwlFUF3sEokHv0+TtduLa4WhjbYb1 zdx+FyBF0v+yFyDyCkm674oVIyLhXfTLNKAcsu1O9SIdwkJQ7EpyJQlQBDOAehrW0bF+ OaRvb55yOtJ8hnf8kkAt9cm12TdS1nAtLTRcejRgufAcB8RNNNN2OufNt8sYC68cSShg lt1f4PFlanFODX0vC91qSor641jaXLk6GiGC3QOP34RHN1KFeiS2jakGCtVUFSGgkeNp 9UQQ== X-Gm-Message-State: APjAAAW+GhHR2N8WtFq6gNbeExsp4m0Snf5wGgz+S2xULulFjVxG1ZHY 9NWPKROZ7q0AdwXBhc50V8QXAYOprBoVOinNBvQ= X-Received: by 2002:a5d:630c:: with SMTP id i12mr20079707wru.312.1564989296014; Mon, 05 Aug 2019 00:14:56 -0700 (PDT) MIME-Version: 1.0 References: <9ec2190f5be1c4e676a803901200364578662b6d.1564704625.git.fthain@telegraphics.com.au> In-Reply-To: From: Geert Uytterhoeven Date: Mon, 5 Aug 2019 09:14:42 +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 Hi Greg, 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 Thanks! 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