Received: by 10.223.185.116 with SMTP id b49csp2363134wrg; Thu, 15 Feb 2018 10:25:15 -0800 (PST) X-Google-Smtp-Source: AH8x2262JkOyZtZ5joA0FxKIttIARG6mlo8sCfqXD5y2NcII7c21FBH8XzEFFupP/H9Qf/hSI6Yl X-Received: by 2002:a17:902:6985:: with SMTP id l5-v6mr3444056plk.14.1518719115292; Thu, 15 Feb 2018 10:25:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518719115; cv=none; d=google.com; s=arc-20160816; b=dThDn/21nYBakyjc2KYJzs3pzKd3WZ52Wjr+yi6TcMQRJcMp2vMik4UHbcHoTJQ/ih tNRhclYXL62c4ZXDZ834hF3SR/vRJk3/D6xgv5TBKSiWAi9jTe+KvN3U7cEoSe87oR1o ZmbzVtzxNTv5ncUH0x7Clwt7TS89SePhb7WW217R48B5xZkQF3umMlUUCvG34TyVq4w3 7DhxvtB/r3hW1r+I/9tTDUZITDplgpouga8Yq5GxBAKsIWkCRm6d6kNhNyOq34cLUBNO KoQhfDsAqEttYIpwqDqzhPi2VMJZZHylBN8fVEN9f7K0InX9Be2IozA7vCC43+yPU8PG Znhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=pqYsFnKMAzhvZIi/evQahDArzsYY5EVKV8u9GrdxIb8=; b=nRdjZK6OqmGH35nbjkIOFraBLgtbZi/HFo9+1IxhaCtm0BMMEh+gWkd4xA5pvTwoR7 CcOaKnxhY6gQQ216RAJlR3AKdERhiA3EwYEAB3i1RopeX/O2sK9OlbvUZ0R3i5BWpFl2 3dQ1Fra4zPeFax0bG6wbo0Xwl4sdxJUbC9vVEyZzmVj4nZn4rHUXYPc50wYsDyR+CFje DHPPqhbGRW6aRW0hsCXvYR5AU+9Oe2NFAu76jwhcagvYYfbgApgszu3HhQT/+1HHaNCg RHb/MkUvur4Z6Ckw8tBIxVxb1i5Ab6lqxos9YHVpBPnjY4MMz18UxWY4371itzs1rdCP Et3g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id be3-v6si328768plb.398.2018.02.15.10.25.00; Thu, 15 Feb 2018 10:25:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1166382AbeBOSX4 (ORCPT + 99 others); Thu, 15 Feb 2018 13:23:56 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:52640 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1163352AbeBOP0T (ORCPT ); Thu, 15 Feb 2018 10:26:19 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 309C540B; Thu, 15 Feb 2018 15:26:19 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Petr Cvek , Felipe Balbi Subject: [PATCH 4.9 08/88] usb: gadget: uvc: Missing files for configfs interface Date: Thu, 15 Feb 2018 16:16:35 +0100 Message-Id: <20180215151223.709062488@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180215151222.437136975@linuxfoundation.org> References: <20180215151222.437136975@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Petr Cvek commit c8cd751060b149997b9de53a494fb1490ded72c5 upstream. Commit 76e0da34c7ce ("usb-gadget/uvc: use per-attribute show and store methods") caused a stringification of an undefined macro argument "aname", so three UVC parameters (streaming_interval, streaming_maxpacket and streaming_maxburst) were named "aname". Add the definition of "aname" to the main macro and name the filenames as originaly intended. Signed-off-by: Petr Cvek Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman --- drivers/usb/gadget/function/uvc_configfs.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) --- a/drivers/usb/gadget/function/uvc_configfs.c +++ b/drivers/usb/gadget/function/uvc_configfs.c @@ -2140,7 +2140,7 @@ static struct configfs_item_operations u .release = uvc_attr_release, }; -#define UVCG_OPTS_ATTR(cname, conv, str2u, uxx, vnoc, limit) \ +#define UVCG_OPTS_ATTR(cname, aname, conv, str2u, uxx, vnoc, limit) \ static ssize_t f_uvc_opts_##cname##_show( \ struct config_item *item, char *page) \ { \ @@ -2183,16 +2183,16 @@ end: \ return ret; \ } \ \ -UVC_ATTR(f_uvc_opts_, cname, aname) +UVC_ATTR(f_uvc_opts_, cname, cname) #define identity_conv(x) (x) -UVCG_OPTS_ATTR(streaming_interval, identity_conv, kstrtou8, u8, identity_conv, - 16); -UVCG_OPTS_ATTR(streaming_maxpacket, le16_to_cpu, kstrtou16, u16, le16_to_cpu, - 3072); -UVCG_OPTS_ATTR(streaming_maxburst, identity_conv, kstrtou8, u8, identity_conv, - 15); +UVCG_OPTS_ATTR(streaming_interval, streaming_interval, identity_conv, + kstrtou8, u8, identity_conv, 16); +UVCG_OPTS_ATTR(streaming_maxpacket, streaming_maxpacket, le16_to_cpu, + kstrtou16, u16, le16_to_cpu, 3072); +UVCG_OPTS_ATTR(streaming_maxburst, streaming_maxburst, identity_conv, + kstrtou8, u8, identity_conv, 15); #undef identity_conv