Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp589192ybm; Wed, 27 May 2020 03:08:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyJM4dFc7AiTawQWZWRl3bEExq3SGGbqnWZQXkxDbfJRcPKeHfaBnthm2Fji3PTqog7ETf X-Received: by 2002:a17:907:392:: with SMTP id ss18mr5594551ejb.156.1590574133602; Wed, 27 May 2020 03:08:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590574133; cv=none; d=google.com; s=arc-20160816; b=x8ioQ8x09rGeggBV4tPPOjODXjkEdyhaFNellpt14VZdpnBMGU0+L8topfYwu97oDi ccOtHB1KesKUfxr6hLqg5t9JfosdMYHxpmF9QtrMHxlsJTzmk/icEQbRiWQI49gu5/9P DX3GJ/J9H/NiAVIOb9cPnQlB4Tlfnsjkp+uz+xGVrKnqpieHg3Hc32h2MVq8Ew/Pgq9F pw8IM/4qG9y2d2t+lfS5yNwZYYQSe3B2fX3/i3ylk2jlv5Z282O1eqxP6IiibLQ0quzX 8eprnYZGbApOWPHFcKOuov4EvDUX20CXTMXkFSXeq74JST1zi65YcKV8IcsTvFWN9L3n Euuw== 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=UmrgkNrS7YJyoX//CVVX8i/eCGz9CaA9GDfJeRj6hok=; b=tTLICP9zeOCWxR3Yyr5L76AHOlwst4wX5tTEeWDr+LfAeEFNvlsf2vGaq3MF7Vbljn Gjk203VOzRW3BXBZnDAJNdmD1gjh/SvZX9PTnYACmwsCfSbbHvlQILjLycm2+uG/LmtK ikPleJZzakeaQdgJDqjqPmdkdymCs+wKFL59iW0OZWrFj9Cf3g9pZHlvthVhN9GMD4SQ ObhW+36vjEkki/eDraUDUCu7x0KBuCFNRDp3Igp3vkJjRGMqYPD+u2ti75/5/84CKtMp YwtGrxWiW6TS+QEIgcdT0oXPUtkeZNRlT0gxHsMrl9uQlFQ9aq7SXT74Vw1G8L8Rnqh1 RAMA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a23si1653529ejk.653.2020.05.27.03.08.30; Wed, 27 May 2020 03:08:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728986AbgE0HDF (ORCPT + 99 others); Wed, 27 May 2020 03:03:05 -0400 Received: from mail-oi1-f193.google.com ([209.85.167.193]:37083 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726025AbgE0HDE (ORCPT ); Wed, 27 May 2020 03:03:04 -0400 Received: by mail-oi1-f193.google.com with SMTP id m67so10517784oif.4; Wed, 27 May 2020 00:03:03 -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=UmrgkNrS7YJyoX//CVVX8i/eCGz9CaA9GDfJeRj6hok=; b=rVkoQMULJ+OZ9x5kHBlqLqq5f6KYD2w/b0J2IyVB3B8JqMpW7sk7jWcZvEC5z4I2s5 /U9W/KEo/Y0TtJyaeao2lGFjLsMlHwKhCVKd1qhJhCmI2CQIjKHlv8PVmI2lUKM3QZRr 2D1V50FJZ4yZ/OeBxvwn0ssUHavgw4LuXbyG6F6NOPolLGAjObfPDMUaHo2Mvo84seuA FsRFyThXciFbJZqkE7uUHt5mAGaemkWh4a679yUz7gAb7MGqkY0h+vTo19twyS+wAfqW Gtn6fZ3nk46IIj9BzuRvbNyEk2QkxkVtDnw7461N395/Y8Ae32oTLe7aCgRAsV7yfGPi 8N+g== X-Gm-Message-State: AOAM530Bd2DKOIivzsOKO6SM1T90eRAGz073UiEVlgCtGaeKwl3Entoj gTl066CUVLamfgoBh6FVIykXMF9GUG6MNNZcXQ8= X-Received: by 2002:a05:6808:1:: with SMTP id u1mr1778697oic.54.1590562983010; Wed, 27 May 2020 00:03:03 -0700 (PDT) MIME-Version: 1.0 References: <20200515143646.3857579-7-hch@lst.de> <20200527043426.3242439-1-natechancellor@gmail.com> In-Reply-To: <20200527043426.3242439-1-natechancellor@gmail.com> From: Geert Uytterhoeven Date: Wed, 27 May 2020 09:02:51 +0200 Message-ID: Subject: Re: [PATCH] media: omap3isp: Shuffle cacheflush.h and include mm.h To: Nathan Chancellor Cc: Christoph Hellwig , "linux-ia64@vger.kernel.org" , Linux-sh list , Roman Zippel , "open list:BROADCOM NVRAM DRIVER" , Linux MM , sparclinux , linux-riscv@lists.infradead.org, Linux-Arch , linux-c6x-dev@linux-c6x.org, "open list:QUALCOMM HEXAGON..." , "the arch/x86 maintainers" , "open list:TENSILICA XTENSA PORT (xtensa)" , Arnd Bergmann , alpha , linux-um , linux-m68k , Openrisc , Linux ARM , Michal Simek , Linux Kernel Mailing List , Jessica Yu , Linux FS Devel , Andrew Morton , linuxppc-dev , Laurent Pinchart 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 Nathan, CC Laurent On Wed, May 27, 2020 at 6:37 AM Nathan Chancellor wrote: > After mm.h was removed from the asm-generic version of cacheflush.h, > s390 allyesconfig shows several warnings of the following nature: > > In file included from ./arch/s390/include/generated/asm/cacheflush.h:1, > from drivers/media/platform/omap3isp/isp.c:42: > ./include/asm-generic/cacheflush.h:16:42: warning: 'struct mm_struct' > declared inside parameter list will not be visible outside of this > definition or declaration > > cacheflush.h does not include mm.h nor does it include any forward > declaration of these structures hence the warning. To avoid this, > include mm.h explicitly in this file and shuffle cacheflush.h below it. > > Fixes: 19c0054597a0 ("asm-generic: don't include in cacheflush.h") > Signed-off-by: Nathan Chancellor Thanks for your patch! > I am aware the fixes tag is kind of irrelevant because that SHA will > change in the next linux-next revision and this will probably get folded > into the original patch anyways but still. > > The other solution would be to add forward declarations of these structs > to the top of cacheflush.h, I just chose to do what Christoph did in the > original patch. I am happy to do that instead if you all feel that is > better. That actually looks like a better solution to me, as it would address the problem for all users. > drivers/media/platform/omap3isp/isp.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/media/platform/omap3isp/isp.c b/drivers/media/platform/omap3isp/isp.c > index a4ee6b86663e..54106a768e54 100644 > --- a/drivers/media/platform/omap3isp/isp.c > +++ b/drivers/media/platform/omap3isp/isp.c > @@ -39,8 +39,6 @@ > * Troy Laramy > */ > > -#include > - > #include > #include > #include > @@ -49,6 +47,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -58,6 +57,8 @@ > #include > #include > > +#include > + > #ifdef CONFIG_ARM_DMA_USE_IOMMU > #include > #endif Why does this file need at all? It doesn't call any of the flush_*() functions, and seems to compile fine without (on arm32). Perhaps it was included at the top intentionally, to override the definitions of copy_{to,from}_user_page()? Fortunately that doesn't seem to be the case, from a quick look at the assembler output. So let's just remove the #include instead? 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