All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@intel.com>
To: Jonathan Cameron <jic23@kernel.org>
Cc: "Jonathan Cameron" <Jonathan.Cameron@huawei.com>,
	"Andy Shevchenko" <andy.shevchenko@gmail.com>,
	linux-iio@vger.kernel.org,
	"David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>
Subject: Re: [PATCH 2/2] iio: dummy: Drop unused export.h include.
Date: Wed, 11 Jun 2025 20:48:19 +0300	[thread overview]
Message-ID: <aEnBYwaBVKqvIJ2s@smile.fi.intel.com> (raw)
In-Reply-To: <20250611173217.270a3696@jic23-huawei>

On Wed, Jun 11, 2025 at 05:32:17PM +0100, Jonathan Cameron wrote:
> On Mon, 9 Jun 2025 10:39:05 +0100
> Jonathan Cameron <Jonathan.Cameron@huawei.com> wrote:
> > On Mon, 9 Jun 2025 12:27:33 +0300
> > Andy Shevchenko <andy.shevchenko@gmail.com> wrote:
> > > On Mon, Jun 9, 2025 at 10:06 AM Jonathan Cameron <jic23@kernel.org> wrote:  
> > > >

> > > > Resolves:
> > > >   warning: EXPORT_SYMBOL() is not used, but #include <linux/export.h> is present    
> > > 
> > > While this true...
> > >   
> > > >  #include <linux/kernel.h>    
> > > 
> > > ...I prefer a full and not half-baked solution, i.e. revisiting all
> > > headers and esp. replacing kernel.h with what is used.
> > >   
> > > > -#include <linux/export.h>
> > > >  #include <linux/slab.h>
> > > >  #include <linux/interrupt.h>
> > > >  #include <linux/irq.h>    
> > > 
> > > While doing that, the headers may be sorted (in the same or preparatory patch).
> > 
> > Whilst I agree that more work is need, I also don't like the time it might
> > take to get to it and the warnings that might mean more significant issues get
> > missed in the wash in the meantime.
> 
> After I wrote this I remembered that this is our 'reference' code so we
> should hold it to a higher standard.  So I'll try and come back and improve
> this one sometime soon rather than just papering over the cracks.

Right, I would actually add to whatever TODO exists (written or spelled :-)
to replace kernel.h with the respective header(s) in whole IIO subsystem.

> Given I tend to build with W=1 and right now I'm swamped with pages
> of these warnings I'm really keen to get rid of them in IIO anyway
> and I see lots of activity to squash them more generally.

I am frustrated not less than you, but here we are.

> I'm a bit grumpy that this warning got added without (as far as I saw)
> any attempt to first clean up upstream.

This is not the first time something like this happened. Because it's `make
W=1` build, not many complain.

-- 
With Best Regards,
Andy Shevchenko



  reply	other threads:[~2025-06-11 17:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-09  7:06 [PATCH 0/2] IIO: Drop some unneeded export.h includes Jonathan Cameron
2025-06-09  7:06 ` [PATCH 1/2] iio: potentiometer: Drop unused " Jonathan Cameron
2025-06-09  9:28   ` Andy Shevchenko
2025-06-11 16:32     ` Jonathan Cameron
2025-06-09  7:06 ` [PATCH 2/2] iio: dummy: Drop unused export.h include Jonathan Cameron
2025-06-09  9:27   ` Andy Shevchenko
2025-06-09  9:39     ` Jonathan Cameron
2025-06-11 16:32       ` Jonathan Cameron
2025-06-11 17:48         ` Andy Shevchenko [this message]
2025-06-09  7:18 ` [PATCH 0/2] IIO: Drop some unneeded export.h includes Nuno Sá

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aEnBYwaBVKqvIJ2s@smile.fi.intel.com \
    --to=andriy.shevchenko@intel.com \
    --cc=Jonathan.Cameron@huawei.com \
    --cc=andy.shevchenko@gmail.com \
    --cc=andy@kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=nuno.sa@analog.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.