Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2692181ybh; Mon, 5 Aug 2019 05:19:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJ3qQpRP+0/IHjAzfB8ZT9uAVlLm2PCpy58dzNPc/1/vBly/jJOz0/0/+TbIoMEkaIDAo8 X-Received: by 2002:a63:550e:: with SMTP id j14mr28134554pgb.302.1565007571929; Mon, 05 Aug 2019 05:19:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565007571; cv=none; d=google.com; s=arc-20160816; b=jxe0tNwxQ2DDznSAcU9N4J5O08YXpHYWWgaZLPYNmtwjQi3zt/s4C1zX+zIo2Qsfsw miaCOaRezrnzp8WSWBc7qY2UJ8K/Zibsk9P6tDKyPoTDkIVdRBTK39V1Ul6yT2GKn4je FKiEoaGKGup7+/KFfH7FlAGMYa6rBs3dX0s9ANA1pfQxNtKz9rkjwArdbNqgi+CUud6C NtdM4KAc61idG4Rzp1YIWIPXP5VnRdVnqvZjildxl0lt8DGkw1xaorPm7d8hUnJYMz8J vKzDGZlP2TMS684T0wqPu55VHTUvYaGkHvH5ylV8ZMl+qoFQxkgLka6G695bCLO+9rQ2 23OA== 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=yQ4ulFEyF6VrvHFlKf881bAuYun1TIHdSMkPsNYgHWs=; b=sslAqmHsMYToUDZ3J2GXAQpKD8q5Q4neY6yn2oPmufIuVc3/SKeynVqs++m9vI3bnJ Sl/A9QDqGRRJLDIqr/9IDxmjoYKBZnSXYc29lMSpyCCMn+P7cvqY7pMeQLF1szSbWq96 krPxjquJX7xKhVT9xgSZEQ6zPMccKL4r0iNMtTWRKKTQR6SLTJhsLaUpFLkEU30SUtO7 8pZg93FmRBZKr3xFsUPe7v2/rdaWwYcqV1IzsPyThMDTzK5nmmFeBh1MX7fkXjWIseuz Gda7uvO1Jn6s4YmV2Qr+SGcGW3uHXGHrCGcrmeokFXYGUplvgMdfpS3izVXwmy93P80c p/kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=skYgA7Ag; 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 h7si47223616pgc.130.2019.08.05.05.19.16; Mon, 05 Aug 2019 05:19: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=skYgA7Ag; 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 S1728513AbfHEMSh (ORCPT + 99 others); Mon, 5 Aug 2019 08:18:37 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:38618 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727357AbfHEMSg (ORCPT ); Mon, 5 Aug 2019 08:18:36 -0400 Received: by mail-pg1-f195.google.com with SMTP id z14so2417302pga.5 for ; Mon, 05 Aug 2019 05:18:36 -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=yQ4ulFEyF6VrvHFlKf881bAuYun1TIHdSMkPsNYgHWs=; b=skYgA7Agimy3OMPxQskR5Po6L586nWbs5cHU4HtighVcSAC1Jk4olQop9weN10YKcN lJTu85PM2kgRgzigjN3o3npEzbPlvzdc3SeMnYYb7bpMGIBAbyWsnAnew5y1eKhjUveS R1fJhUsjEsUVtR4uLzIpWuzkvBh1DAQtUVNi7gD5voDXHpp9jc6en2jTlWKiJZXaqNRQ /9qnXTDTBsgjeqTfMwXPYj40gqgjRwR7lkhP94kuy5xubPI0OneqYZ4iJhu8JcxZkf1k EspqxkYRFeYT040UoHXCNmJMz0hsEG/c0XI6Xl8JHZskdOf+fBkQTyp3Sq47JFoc3LN2 Oj8A== 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=yQ4ulFEyF6VrvHFlKf881bAuYun1TIHdSMkPsNYgHWs=; b=cqP8USIiSpadGsBW13BXrijnARl5D5FC41yWEkHXuCSZH0W019H9n/oJHXqFGlLrwn 0Wotd11CPJUIy/aYUDVTAPm/p9w8pyamxDRvCjhXj+hNy1oA4RTZYvvsfzqhrbrTGLfv 6SzL5HzTTwVStbirx1Z3smalAedQEA2y94Qif5Z0DBkoNHBKJLOi0GrImykl//EuErOC n2S076vvPyS6RqGuDdQwPIoiCZ/Nub6CzSMKOxNzcC3/tYmzC2tZ1FyUPR6eCLFuo7gQ B9dBNGqrdUn1qYDTUwRiHF/aVSTBLXMKyO4kJBX0xI1TjBJebLIXd/zlVRUrsZiIyDEu Ik+w== X-Gm-Message-State: APjAAAVf2FdrK1TdEo92E15cDxtKgPZY5DsQvCg1s06BxRiwYU1H+Idp YVVUzL1UCdvszawiaPnQMuOHqi/C X-Received: by 2002:a62:7695:: with SMTP id r143mr75038886pfc.173.1565007515870; Mon, 05 Aug 2019 05:18:35 -0700 (PDT) Received: from [10.44.0.192] ([103.48.210.53]) by smtp.gmail.com with ESMTPSA id g18sm130360927pgm.9.2019.08.05.05.18.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Aug 2019 05:18:35 -0700 (PDT) From: Greg Ungerer X-Google-Original-From: Greg Ungerer Subject: Re: [PATCH] m68k: Prevent some compiler warnings in coldfire builds To: Geert Uytterhoeven Cc: Finn Thain , Michael Schmitz , linux-m68k , Linux Kernel Mailing List References: <9ec2190f5be1c4e676a803901200364578662b6d.1564704625.git.fthain@telegraphics.com.au> Message-ID: Date: Mon, 5 Aug 2019 22:18:30 +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: 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 Geert, 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 Regards Greg