Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5705821rwl; Tue, 4 Apr 2023 02:20:36 -0700 (PDT) X-Google-Smtp-Source: AKy350b7nbAVrsYA7JkhZzZQawxV4nRp4W5ZN3TJCG1ZRjbcXozR7MEsnmBOqRbJ1cqYaXHuMoAW X-Received: by 2002:a17:903:2904:b0:1a0:44e7:59dc with SMTP id lh4-20020a170903290400b001a044e759dcmr1927522plb.40.1680600036110; Tue, 04 Apr 2023 02:20:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680600036; cv=none; d=google.com; s=arc-20160816; b=oJ17AZG2drTS0z/L/cf6g4ty0r89jffunRWqJPJptPGsbEeRQ266yQZbwfx5vL2G4I FxvUQoV9rYN0Silyp7g8Yu1BGwMDjRo0bCeTmUlkijT083PsJL9x6CMgireEGs7yV0wg 3FQOTd4N+Z32YJqivcEIyq7tOAd2XLyORgaEr6McS2Z10v9hnLmQoWy2qNKuT0IpHxMa pctoiD00U+OzFa8ZCj5g4Gq4M7gGL7rv6hhp0/+6gA1ZMKZDxCcWaun8zMVQkAK5RYNL 4cEyR1SL4RjCtAl1aGRc640Gb65lLQinB143+2HWEzgsJSJju4Zzi44lDCal7XIAgvQv ED0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=V3Q2Ewa7vfvu6ESUCQ6KEtgKuExEylGSr6gkDXppsXM=; b=wGtvPpdV9We8IAGYC+X3DgPWoWd6iw2Af+NBSpkPpA1kf2cyxm2mi48ExbOk1v6wUW tb6MKGOMrDFcsP8EjtBECh1k22w/aylVBsxQ5sdFXkvZADwKsVb2LlboTmIKNFUZWVU/ EIp2iZU0Xz9a+t/TNyRKLpnvzqs41bVcuLkEvFDisSJN8AhUfgM4X8maipynB9wFLvIY 7j8fBMVKjkvrydZz4vXLQ46rmGETf1cS2dVmGIPsvTaZbH20N2TQPPGXypf5dbUqxl6m 72wYcl7ZCp7RTUPR6LDsGevworYth3K7RMS+vMsQIBourvIw4lx6SvxH8in3gfCufQ0X EO3Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p27-20020a634f5b000000b004fab1ea0112si10301477pgl.528.2023.04.04.02.20.23; Tue, 04 Apr 2023 02:20:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234081AbjDDJSq convert rfc822-to-8bit (ORCPT + 99 others); Tue, 4 Apr 2023 05:18:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233955AbjDDJSm (ORCPT ); Tue, 4 Apr 2023 05:18:42 -0400 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06E9C1981; Tue, 4 Apr 2023 02:18:39 -0700 (PDT) Received: (Authenticated sender: hadess@hadess.net) by mail.gandi.net (Postfix) with ESMTPSA id DA2E5FF815; Tue, 4 Apr 2023 09:18:35 +0000 (UTC) Message-ID: <366ab6c4d488645aee5cbf49fb2e9b39d9bb1e22.camel@hadess.net> Subject: Re: linux-next: build warning after merge of the hid tree From: Bastien Nocera To: Stephen Rothwell Cc: Jiri Kosina , Benjamin Tissoires , Linux Kernel Mailing List , Linux Next Mailing List Date: Tue, 04 Apr 2023 11:18:35 +0200 In-Reply-To: <20230404185500.7953d9d2@canb.auug.org.au> References: <20230404154005.449800c3@canb.auug.org.au> <20230404154254.6c3be26b@canb.auug.org.au> <20230404185500.7953d9d2@canb.auug.org.au> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.48.0 (3.48.0-1.fc38) MIME-Version: 1.0 X-Spam-Status: No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > wrote: > > > > On Tue, 2023-04-04 at 15:42 +1000, Stephen Rothwell wrote: > > > > > > On Tue, 4 Apr 2023 15:40:05 +1000 Stephen Rothwell > > > 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 */