All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joshua Crofts <crofts@kernel.org>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: "Jonathan Cameron" <jonathan.cameron@oss.qualcomm.com>,
	linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org,
	"Jonathan Cameron" <jic23@kernel.org>,
	"David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	"Rupesh Majhi" <zoone.rupert@gmail.com>
Subject: Re: [PATCH v1 1/1] iio: core: Split debugfs routines
Date: Tue, 24 Nov 2026 11:51:11 +0100	[thread overview]
Message-ID: <4012fef5-2d69-41e4-81ef-52f06d9313f7@kernel.org> (raw)
In-Reply-To: <awVq-mE1H2g01yS4@ashevche-desk.local>

On 24-Nov-26 11:46, Andy Shevchenko wrote:
>> > +static const struct file_operations iio_debugfs_reg_fops = {
>> > +	.open = simple_open,
>> > +	.read = iio_debugfs_read_reg,
>> > +	.write = iio_debugfs_write_reg,
>> > +};
>> > +
>> > +static void iio_device_unregister_debugfs(struct iio_dev *indio_dev)
>> 
>> Static here but not in the header file. Same goes for register_debugfs().
> 
> Oh, how does it compile?
Unfortunately it doesn't :(

drivers/iio/industrialio-debugfs.c:138:13: error: static declaration of ‘iio_device_unregister_debugfs’ follows non-static declaration
  138 | static void iio_device_unregister_debugfs(struct iio_dev *indio_dev)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/iio/industrialio-debugfs.c:20:
drivers/iio/iio_core.h:23:6: note: previous declaration of ‘iio_device_unregister_debugfs’ with type ‘void(struct iio_dev *)’
   23 | void iio_device_unregister_debugfs(struct iio_dev *indio_dev);
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/industrialio-debugfs.c:145:13: error: static declaration of ‘iio_device_register_debugfs’ follows non-static declaration
  145 | static void iio_device_register_debugfs(struct iio_dev *indio_dev)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/iio_core.h:24:6: note: previous declaration of ‘iio_device_register_debugfs’ with type ‘void(struct iio_dev *)’
   24 | void iio_device_register_debugfs(struct iio_dev *indio_dev);
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/industrialio-debugfs.c:145:13: warning: ‘iio_device_register_debugfs’ defined but not used [-Wunused-function]
  145 | static void iio_device_register_debugfs(struct iio_dev *indio_dev)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/industrialio-debugfs.c:138:13: warning: ‘iio_device_unregister_debugfs’ defined but not used [-Wunused-function]
  138 | static void iio_device_unregister_debugfs(struct iio_dev *indio_dev)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[4]: *** [scripts/Makefile.build:290: drivers/iio/industrialio-debugfs.o] Error 1

-- 
Kind regards,
Joshua Crofts

  reply	other threads:[~2026-11-24 10:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24  9:44 [PATCH v1 1/1] iio: core: Split debugfs routines Andy Shevchenko
2026-11-24 10:17 ` Joshua Crofts
2026-11-24 10:46   ` Andy Shevchenko
2026-11-24 10:51     ` Joshua Crofts [this message]
2026-11-24 11:04       ` Andy Shevchenko
2026-11-24 10:51     ` Andy Shevchenko
2026-11-24 10:55       ` Joshua Crofts
2026-11-24 11:07         ` Andy Shevchenko
2026-11-24 11:26 ` Nuno Sá
2026-11-24 16:29 ` kernel test robot
2026-11-24 17:56 ` kernel test robot

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=4012fef5-2d69-41e4-81ef-52f06d9313f7@kernel.org \
    --to=crofts@kernel.org \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=andy@kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=jic23@kernel.org \
    --cc=jonathan.cameron@oss.qualcomm.com \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nuno.sa@analog.com \
    --cc=zoone.rupert@gmail.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.