Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1195512ybt; Thu, 18 Jun 2020 02:56:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzP7ymepNq4PCLNV5u6gEglUiNPPRXjroOola0X4Oz37qNKXypwf2ISYPZGaflBbYBXlcBA X-Received: by 2002:a17:906:1a06:: with SMTP id i6mr3388072ejf.9.1592474181651; Thu, 18 Jun 2020 02:56:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592474181; cv=none; d=google.com; s=arc-20160816; b=BNBZvtKWkB3aeCVq1tIUfk+H/J7kfCAKwJWEZ0GRdpW2gCt2B5TJEjI5t+CbTD6qR1 /sTYFQmiHylL/dJwTNjd+fEGSP9HHQXcU7NgQgBneocxtaE2fYNZg+7Hm4wdhXgTtG2R YoLlcKlWcd4enylAmH9p7JiXxxxc5eh0RaQ6Ei5vB0VrMNB3ubhEQkcF7nrYCy+NtonN IqkQ3D+0celtCh1qldTLcWBRlG/8BhfHvt+vePOtFtGXaaa8oheTPE1K9v4kdsEyOFxR okG0V9xp5jFFGNwClwZr5tEMQQLKu3ylQ3AyneDfAjC9DspDQAvwbbxHYrRaT3bQ0TUY Yq6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=BnBPpOyYnMseMy2rePipZeDOTl0yeGFGm0sBbH50KjI=; b=KngHL0kv5wEw5IgENxTCpoOfzuzaVz7Cx7g1N4lDW/Vy+6Aasso9eOzBWhGcJ06ENu WD2mwa5rFfJc6hdcSl+oS77R2zMftdVsXGm5xs8fH0I5IbGFGUrDRQTInD+Uu4kD3id1 4faG0vQX+1SQFC/Rk55mrua5THgWSwqrQgQMjnov1hv61dxDE5X8XFbrA398v00xKTho gLT0gfEbuHyKTJ7P46eaMqJZn9xA3NaR44r37RUNWyi9bPwS/CceriAgyD1K4S4S3O/Q /MaOwZZe7GReF1JwuxEk5TMIFmn8Mc0Fxk2Tj7UoOXE0TZqmJyie3EQviaM/oJxa3++r S+wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MwaAHevJ; 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 r25si1848436edi.172.2020.06.18.02.55.59; Thu, 18 Jun 2020 02:56:21 -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; dkim=pass header.i=@kernel.org header.s=default header.b=MwaAHevJ; 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 S1728620AbgFRIVD (ORCPT + 99 others); Thu, 18 Jun 2020 04:21:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:50666 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727039AbgFRIVC (ORCPT ); Thu, 18 Jun 2020 04:21:02 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D58652166E; Thu, 18 Jun 2020 08:21:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592468462; bh=i7/azv2TIyitmWBxI8oESfdLcS5YpjhAKYG10IPi8qM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MwaAHevJxbmGhQOPCng+twAill0hon0Zl/MAunJDD+uOpVJiSgR1DakpD/8Rk/gdA +zNVGnTdTaJ3krZC+P0UcO7vSvxwDNyuP3nbD1eyiNmbPuKIoEqXKP0lt86Hp8dVVn SJIQd+0mvrThE5z2GK0Vra+yPesqHuK57QAOEEsk= Date: Thu, 18 Jun 2020 10:20:55 +0200 From: Greg Kroah-Hartman To: Macpaul Lin Cc: Felipe Balbi , Matthias Brugger , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Jim Lin , Siqi Lin , Alan Stern , Mediatek WSD Upstream , Macpaul Lin Subject: Re: [PATCH v2] usb: replace hardcode maximum usb string length by definition Message-ID: <20200618082055.GA1049665@kroah.com> References: <1591939967-29943-1-git-send-email-macpaul.lin@mediatek.com> <1592201855-8218-1-git-send-email-macpaul.lin@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1592201855-8218-1-git-send-email-macpaul.lin@mediatek.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 15, 2020 at 02:17:35PM +0800, Macpaul Lin wrote: > Replace hardcode maximum usb string length (126 bytes) by definition > "MAX_USB_STRING_LEN". > > Signed-off-by: Macpaul Lin > --- > Changes for v2: > - Add definition "MAX_USB_STRING_LEN" in ch9.h instead of in usb.h. > Thanks for Alan's suggestion. > > drivers/usb/gadget/composite.c | 4 ++-- > drivers/usb/gadget/configfs.c | 2 +- > drivers/usb/gadget/usbstring.c | 4 ++-- > include/uapi/linux/usb/ch9.h | 3 +++ > 4 files changed, 8 insertions(+), 5 deletions(-) This patch fails to apply to my tree (or to 5.8-rc1). Please rebase it and resend. thanks, greg k-h