All of lore.kernel.org
 help / color / mirror / Atom feed
* linux-next: build warning after merge of the hid tree
@ 2012-07-02  2:14 Stephen Rothwell
  2012-07-03  9:22 ` Jiri Kosina
  0 siblings, 1 reply; 14+ messages in thread
From: Stephen Rothwell @ 2012-07-02  2:14 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: linux-next, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 368 bytes --]

Hi Jiri,

After merging the hid tree, today's linux-next build (x86_64 allmodconfig)
produced this warning:

drivers/hid/Kconfig:7:error: recursive dependency detected!
drivers/hid/Kconfig:7:	symbol HID is selected by USB_HID
drivers/hid/usbhid/Kconfig:4:	symbol USB_HID depends on HID

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: linux-next: build warning after merge of the hid tree
  2012-07-02  2:14 linux-next: build warning after merge of the hid tree Stephen Rothwell
@ 2012-07-03  9:22 ` Jiri Kosina
  0 siblings, 0 replies; 14+ messages in thread
From: Jiri Kosina @ 2012-07-03  9:22 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-next, linux-kernel

On Mon, 2 Jul 2012, Stephen Rothwell wrote:

> Hi Jiri,
> 
> After merging the hid tree, today's linux-next build (x86_64 allmodconfig)
> produced this warning:
> 
> drivers/hid/Kconfig:7:error: recursive dependency detected!
> drivers/hid/Kconfig:7:	symbol HID is selected by USB_HID
> drivers/hid/usbhid/Kconfig:4:	symbol USB_HID depends on HID

This is fixed in for-next branch I have just pushed. Thanks,

-- 
Jiri Kosina
SUSE Labs

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: linux-next: build warning after merge of the hid tree
  2023-04-04  9:18       ` Bastien Nocera
@ 2023-04-05  1:48         ` Stephen Rothwell
  0 siblings, 0 replies; 14+ messages in thread
From: Stephen Rothwell @ 2023-04-05  1:48 UTC (permalink / raw)
  To: Bastien Nocera
  Cc: Jiri Kosina, Benjamin Tissoires, Linux Kernel Mailing List,
	Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 2003 bytes --]

Hi Bastien,

On Tue, 04 Apr 2023 11:18:35 +0200 Bastien Nocera <hadess@hadess.net> wrote:
>
> Before I send patches, does this look correct to you?
> 
> diff --git a/drivers/usb/core/message.c b/drivers/usb/core/message.c
> index 7930dca84616..7c7f88ca4f62 100644
> --- a/drivers/usb/core/message.c
> +++ b/drivers/usb/core/message.c
> @@ -1926,7 +1926,7 @@ static void __usb_wireless_status_intf(struct work_struct *ws)
> 1926⋮1926│ 
> 1927⋮1927│ /**
> 1928⋮1928│  * usb_set_wireless_status - sets the wireless_status struct member
> 1929⋮    │- * @dev: the device to modify
>     ⋮1929│+ * @iface: the interface to modify
> 1930⋮1930│  * @status: the new wireless status
> 1931⋮1931│  *
> 1932⋮1932│  * Set the wireless_status struct member to the new value, and emit

That looks good.

> diff --git a/include/linux/usb.h b/include/linux/usb.h
> index a48eeec62a66..3d523ebf0c09 100644
> --- a/include/linux/usb.h
> +++ b/include/linux/usb.h
> @@ -261,7 +261,8 @@ struct usb_interface {
>  261⋮ 261│      unsigned needs_binding:1;       /* needs delayed unbind/rebind */
>  262⋮ 262│      unsigned resetting_device:1;    /* true: bandwidth alloc after reset */
>  263⋮ 263│      unsigned authorized:1;          /* used for interface authorization */
>  264⋮    │-     enum usb_wireless_status wireless_status;
>     ⋮ 264│+     enum usb_wireless_status wireless_status; /* whether the emitter is
>     ⋮ 265│+                                                * connected to this receiver */
>  265⋮ 266│      struct work_struct wireless_status_work;
>  266⋮ 267│ 
>  267⋮ 268│      struct device dev;              /* interface specific device info */
> 

This is not right, though.  The warning was about
"wireless_status_work" not "wireless_status", so I think you need a
description of wireless_status_work in the block comment above the
struct definition.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: linux-next: build warning after merge of the hid tree
  2023-04-04  8:55     ` Stephen Rothwell
@ 2023-04-04  9:18       ` Bastien Nocera
  2023-04-05  1:48         ` Stephen Rothwell
  0 siblings, 1 reply; 14+ messages in thread
From: Bastien Nocera @ 2023-04-04  9:18 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Jiri Kosina, Benjamin Tissoires, Linux Kernel Mailing List,
	Linux Next Mailing List

On Tue, 2023-04-04 at 18:55 +1000, Stephen Rothwell wrote:
> Hi Bastien,
> 
> On Tue, 04 Apr 2023 10:22:35 +0200 Bastien Nocera <hadess@hadess.net>
> wrote:
> > 
> > On Tue, 2023-04-04 at 15:42 +1000, Stephen Rothwell wrote:
> > > 
> > > On Tue, 4 Apr 2023 15:40:05 +1000 Stephen Rothwell
> > > <sfr@canb.auug.org.au> wrote:  
> > > > 
> > > > After merging the hid tree, today's linux-next build (htmldocs)
> > > > produced
> > > > this warning:
> > > > 
> > > > drivers/usb/core/message.c:1939: warning: Function parameter or
> > > > member 'iface' not described in 'usb_set_wireless_status'
> > > > drivers/usb/core/message.c:1939: warning: Excess function
> > > > parameter
> > > > 'dev' description in 'usb_set_wireless_status'
> > > > 
> > > > Introduced by commit
> > > > 
> > > >   0a4db185f078 ("USB: core: Add API to change the
> > > > wireless_status")  
> > > 
> > > Also this:
> > > 
> > > include/linux/usb.h:270: warning: Function parameter or member
> > > 'wireless_status_work' not described in 'usb_interface'
> > 
> > How does one reproduce those warnings?
> 
> I just ran "make htmldocs" (see above).  You may need to install some
> software - but it will tell you if so.
> 

Before I send patches, does this look correct to you?

diff --git a/drivers/usb/core/message.c b/drivers/usb/core/message.c
index 7930dca84616..7c7f88ca4f62 100644
--- a/drivers/usb/core/message.c
+++ b/drivers/usb/core/message.c
@@ -1926,7 +1926,7 @@ static void __usb_wireless_status_intf(struct work_struct *ws)
1926⋮1926│ 
1927⋮1927│ /**
1928⋮1928│  * usb_set_wireless_status - sets the wireless_status struct member
1929⋮    │- * @dev: the device to modify
    ⋮1929│+ * @iface: the interface to modify
1930⋮1930│  * @status: the new wireless status
1931⋮1931│  *
1932⋮1932│  * Set the wireless_status struct member to the new value, and emit
diff --git a/include/linux/usb.h b/include/linux/usb.h
index a48eeec62a66..3d523ebf0c09 100644
--- a/include/linux/usb.h
+++ b/include/linux/usb.h
@@ -261,7 +261,8 @@ struct usb_interface {
 261⋮ 261│      unsigned needs_binding:1;       /* needs delayed unbind/rebind */
 262⋮ 262│      unsigned resetting_device:1;    /* true: bandwidth alloc after reset */
 263⋮ 263│      unsigned authorized:1;          /* used for interface authorization */
 264⋮    │-     enum usb_wireless_status wireless_status;
    ⋮ 264│+     enum usb_wireless_status wireless_status; /* whether the emitter is
    ⋮ 265│+                                                * connected to this receiver */
 265⋮ 266│      struct work_struct wireless_status_work;
 266⋮ 267│ 
 267⋮ 268│      struct device dev;              /* interface specific device info */


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* Re: linux-next: build warning after merge of the hid tree
  2023-04-04  8:22   ` Bastien Nocera
@ 2023-04-04  8:55     ` Stephen Rothwell
  2023-04-04  9:18       ` Bastien Nocera
  0 siblings, 1 reply; 14+ messages in thread
From: Stephen Rothwell @ 2023-04-04  8:55 UTC (permalink / raw)
  To: Bastien Nocera
  Cc: Jiri Kosina, Benjamin Tissoires, Linux Kernel Mailing List,
	Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 1118 bytes --]

Hi Bastien,

On Tue, 04 Apr 2023 10:22:35 +0200 Bastien Nocera <hadess@hadess.net> wrote:
>
> On Tue, 2023-04-04 at 15:42 +1000, Stephen Rothwell wrote:
> > 
> > On Tue, 4 Apr 2023 15:40:05 +1000 Stephen Rothwell
> > <sfr@canb.auug.org.au> wrote:  
> > > 
> > > After merging the hid tree, today's linux-next build (htmldocs)
> > > produced
> > > this warning:
> > > 
> > > drivers/usb/core/message.c:1939: warning: Function parameter or
> > > member 'iface' not described in 'usb_set_wireless_status'
> > > drivers/usb/core/message.c:1939: warning: Excess function parameter
> > > 'dev' description in 'usb_set_wireless_status'
> > > 
> > > Introduced by commit
> > > 
> > >   0a4db185f078 ("USB: core: Add API to change the wireless_status")  
> > 
> > Also this:
> > 
> > include/linux/usb.h:270: warning: Function parameter or member
> > 'wireless_status_work' not described in 'usb_interface'
> 
> How does one reproduce those warnings?

I just ran "make htmldocs" (see above).  You may need to install some
software - but it will tell you if so.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: linux-next: build warning after merge of the hid tree
  2023-04-04  5:42 ` Stephen Rothwell
@ 2023-04-04  8:22   ` Bastien Nocera
  2023-04-04  8:55     ` Stephen Rothwell
  0 siblings, 1 reply; 14+ messages in thread
From: Bastien Nocera @ 2023-04-04  8:22 UTC (permalink / raw)
  To: Stephen Rothwell, Jiri Kosina, Benjamin Tissoires
  Cc: Linux Kernel Mailing List, Linux Next Mailing List

On Tue, 2023-04-04 at 15:42 +1000, Stephen Rothwell wrote:
> Hi all,
> 
> On Tue, 4 Apr 2023 15:40:05 +1000 Stephen Rothwell
> <sfr@canb.auug.org.au> wrote:
> > 
> > After merging the hid tree, today's linux-next build (htmldocs)
> > produced
> > this warning:
> > 
> > drivers/usb/core/message.c:1939: warning: Function parameter or
> > member 'iface' not described in 'usb_set_wireless_status'
> > drivers/usb/core/message.c:1939: warning: Excess function parameter
> > 'dev' description in 'usb_set_wireless_status'
> > 
> > Introduced by commit
> > 
> >   0a4db185f078 ("USB: core: Add API to change the wireless_status")
> 
> Also this:
> 
> include/linux/usb.h:270: warning: Function parameter or member
> 'wireless_status_work' not described in 'usb_interface'
> 

How does one reproduce those warnings?

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: linux-next: build warning after merge of the hid tree
  2023-04-04  5:40 Stephen Rothwell
@ 2023-04-04  5:42 ` Stephen Rothwell
  2023-04-04  8:22   ` Bastien Nocera
  0 siblings, 1 reply; 14+ messages in thread
From: Stephen Rothwell @ 2023-04-04  5:42 UTC (permalink / raw)
  To: Jiri Kosina, Benjamin Tissoires
  Cc: Bastien Nocera, Linux Kernel Mailing List, Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 709 bytes --]

Hi all,

On Tue, 4 Apr 2023 15:40:05 +1000 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> After merging the hid tree, today's linux-next build (htmldocs) produced
> this warning:
> 
> drivers/usb/core/message.c:1939: warning: Function parameter or member 'iface' not described in 'usb_set_wireless_status'
> drivers/usb/core/message.c:1939: warning: Excess function parameter 'dev' description in 'usb_set_wireless_status'
> 
> Introduced by commit
> 
>   0a4db185f078 ("USB: core: Add API to change the wireless_status")

Also this:

include/linux/usb.h:270: warning: Function parameter or member 'wireless_status_work' not described in 'usb_interface'

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* linux-next: build warning after merge of the hid tree
@ 2023-04-04  5:40 Stephen Rothwell
  2023-04-04  5:42 ` Stephen Rothwell
  0 siblings, 1 reply; 14+ messages in thread
From: Stephen Rothwell @ 2023-04-04  5:40 UTC (permalink / raw)
  To: Jiri Kosina, Benjamin Tissoires
  Cc: Bastien Nocera, Linux Kernel Mailing List, Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 470 bytes --]

Hi all,

After merging the hid tree, today's linux-next build (htmldocs) produced
this warning:

drivers/usb/core/message.c:1939: warning: Function parameter or member 'iface' not described in 'usb_set_wireless_status'
drivers/usb/core/message.c:1939: warning: Excess function parameter 'dev' description in 'usb_set_wireless_status'

Introduced by commit

  0a4db185f078 ("USB: core: Add API to change the wireless_status")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: linux-next: build warning after merge of the hid tree
  2021-11-10  4:06 Stephen Rothwell
@ 2021-11-10  8:17 ` Jiri Kosina
  0 siblings, 0 replies; 14+ messages in thread
From: Jiri Kosina @ 2021-11-10  8:17 UTC (permalink / raw)
  To: Stephen Rothwell, Thomas Weißschuh
  Cc: Benjamin Tissoires, Linux Kernel Mailing List, Linux Next Mailing List

On Wed, 10 Nov 2021, Stephen Rothwell wrote:

> Hi all,
> 
> After merging the hid tree, today's linux-next build (htmldocs) produced
> this warning:
> 
> include/linux/mod_devicetable.h:909: warning: Function parameter or member 'guid' not described in 'ishtp_device_id'
> 
> Introduced by commit
> 
>   fa443bc3c1e4 ("HID: intel-ish-hid: add support for MODULE_DEVICE_TABLE()")
> 
> I also notice that there is a @context description, but no field.

Thanks for spotting it. The kerneldoc is clearly wrong there both on the 
'guid' member name, and also the description (mind the '36 char' part, 
where it should have been '16 char' instead).

Thomas, could you please send me a fixup patch for that?

Thanks,

-- 
Jiri Kosina
SUSE Labs


^ permalink raw reply	[flat|nested] 14+ messages in thread

* linux-next: build warning after merge of the hid tree
@ 2021-11-10  4:06 Stephen Rothwell
  2021-11-10  8:17 ` Jiri Kosina
  0 siblings, 1 reply; 14+ messages in thread
From: Stephen Rothwell @ 2021-11-10  4:06 UTC (permalink / raw)
  To: Jiri Kosina, Benjamin Tissoires
  Cc: Thomas Weißschuh, Linux Kernel Mailing List,
	Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 427 bytes --]

Hi all,

After merging the hid tree, today's linux-next build (htmldocs) produced
this warning:

include/linux/mod_devicetable.h:909: warning: Function parameter or member 'guid' not described in 'ishtp_device_id'

Introduced by commit

  fa443bc3c1e4 ("HID: intel-ish-hid: add support for MODULE_DEVICE_TABLE()")

I also notice that there is a @context description, but no field.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: linux-next: build warning after merge of the hid tree
  2012-04-30  4:05 Stephen Rothwell
@ 2012-04-30  8:42 ` Jiri Kosina
  0 siblings, 0 replies; 14+ messages in thread
From: Jiri Kosina @ 2012-04-30  8:42 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-next, linux-kernel

On Mon, 30 Apr 2012, Stephen Rothwell wrote:

> Hi Jiri,
> 
> After merging the hid tree, today's linux-next build (powerpc
> ppc64_defconfig) produced this warning:
> 
> In file included from drivers/hid/hid-core.c:37:0:
> include/linux/hidraw.h: In function 'hidraw_report_event':
> include/linux/hidraw.h:85:46: warning: no return statement in function returning non-void [-Wreturn-type]
> 
> Introduced by commit b6787242f327 ("HID: hidraw: add proper error
> handling to raw event reporting").

Now fixed by d6d7c87352, thanks a lot for the report.

-- 
Jiri Kosina
SUSE Labs


^ permalink raw reply	[flat|nested] 14+ messages in thread

* linux-next: build warning after merge of the hid tree
@ 2012-04-30  4:05 Stephen Rothwell
  2012-04-30  8:42 ` Jiri Kosina
  0 siblings, 1 reply; 14+ messages in thread
From: Stephen Rothwell @ 2012-04-30  4:05 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: linux-next, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 514 bytes --]

Hi Jiri,

After merging the hid tree, today's linux-next build (powerpc
ppc64_defconfig) produced this warning:

In file included from drivers/hid/hid-core.c:37:0:
include/linux/hidraw.h: In function 'hidraw_report_event':
include/linux/hidraw.h:85:46: warning: no return statement in function returning non-void [-Wreturn-type]

Introduced by commit b6787242f327 ("HID: hidraw: add proper error
handling to raw event reporting").
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: linux-next: build warning after merge of the hid tree
  2012-03-29  0:51 Stephen Rothwell
@ 2012-03-30  8:45 ` Jiri Kosina
  0 siblings, 0 replies; 14+ messages in thread
From: Jiri Kosina @ 2012-03-30  8:45 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: Jiri Kosina, linux-next, linux-kernel, Przemo Firszt

On Thu, 29 Mar 2012, Stephen Rothwell wrote:

> After merging the hid tree, today's linux-next build (x86_64 allmodconfig)
> produced this warning:
> 
> drivers/hid/Kconfig:595:error: recursive dependency detected!
> drivers/hid/Kconfig:595:	symbol HID_WACOM depends on HID_WACOM
> 
> Caused (very obviously) by commit 224b321b312e ("HID: wacom: Remove
> CONFIG_HID_WACOM_POWER_SUPPLY option").

Yeah, it has been already fixed in my tree a few hours after the first 
commit, but I raced with you snapshotting the tree. It should be gone now.

> Please test this stuff.  And don't rush stuff in during the merge window ...

Hm, I accidentally pushed it out to for-next, even though it's not 
destined for current merge window. Will flush the for-next branch now, 
sorry for that. I don't have anything pending for this merge window at the 
moment, so the for-next queue definitely should be empty.

Thanks,

-- 
Jiri Kosina
SUSE Labs

^ permalink raw reply	[flat|nested] 14+ messages in thread

* linux-next: build warning after merge of the hid tree
@ 2012-03-29  0:51 Stephen Rothwell
  2012-03-30  8:45 ` Jiri Kosina
  0 siblings, 1 reply; 14+ messages in thread
From: Stephen Rothwell @ 2012-03-29  0:51 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: linux-next, linux-kernel, Przemo Firszt

[-- Attachment #1: Type: text/plain, Size: 505 bytes --]

Hi Jiri,

After merging the hid tree, today's linux-next build (x86_64 allmodconfig)
produced this warning:

drivers/hid/Kconfig:595:error: recursive dependency detected!
drivers/hid/Kconfig:595:	symbol HID_WACOM depends on HID_WACOM

Caused (very obviously) by commit 224b321b312e ("HID: wacom: Remove
CONFIG_HID_WACOM_POWER_SUPPLY option").

Please test this stuff.  And don't rush stuff in during the merge window ...
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-04-05  1:48 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-02  2:14 linux-next: build warning after merge of the hid tree Stephen Rothwell
2012-07-03  9:22 ` Jiri Kosina
  -- strict thread matches above, loose matches on Subject: below --
2023-04-04  5:40 Stephen Rothwell
2023-04-04  5:42 ` Stephen Rothwell
2023-04-04  8:22   ` Bastien Nocera
2023-04-04  8:55     ` Stephen Rothwell
2023-04-04  9:18       ` Bastien Nocera
2023-04-05  1:48         ` Stephen Rothwell
2021-11-10  4:06 Stephen Rothwell
2021-11-10  8:17 ` Jiri Kosina
2012-04-30  4:05 Stephen Rothwell
2012-04-30  8:42 ` Jiri Kosina
2012-03-29  0:51 Stephen Rothwell
2012-03-30  8:45 ` Jiri Kosina

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.