From patchwork Mon Jul 6 13:33:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234880 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4781674ilg; Mon, 6 Jul 2020 06:36:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdBi25EMMbr7ti1zxj338Zxv/BeaAIDjzo7VQ6i6iKXq4Q7ubsdQX5qbqvWTO56wlwLdcM X-Received: by 2002:aa7:ce91:: with SMTP id y17mr34482758edv.105.1594042597522; Mon, 06 Jul 2020 06:36:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042597; cv=none; d=google.com; s=arc-20160816; b=qTO/SHxVMm5+RWQpKaU+5gEIFdLbUmyA98Zkrv8NnQx7hztbMiT6uWCmTsgF5LsCYh d1Fno2oHOWUNN5uFgBceHezDRFKL6aJKvyd1NOrUEANNyIbHNp2ZrrnLC4uZM16ltmNm PGpq0+GWHWEmd8kOA9I+EMGPwIkdkAft/p9sf94Dwa8iHu99TNafIvTLYS2LW4+JBskL xEeVEskRT6Ol4J9Jqtb+hkoQNh2FLxHa2wVt3J3g5odgt1onvIvuOEs3gW65ILTt9H+9 oOCxrZLFbTKK0mkYzThlxm1mS8T2nFk+ezYcsG8bDlV9nofDqgBBpuQglE92PH5zKVjY fdKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KtWn8hsOXI1tl0MUhSmyvGeFes81dlof0v8VW7+fdbw=; b=BLCblSKtPydC5qrse5Ki2yU2neE16Az1VUmVedaucARhgm24aSzYUIF9HK37APuSXH 6ZBRJ9QlmPsnprkYRlS9TXmxC2J84HBDvxQgMoK+qPGhd0oK7l3iSaQR8tfCY8AhNED0 0VfIhXM7ya0DqpVyxdpNIvbEC+zqkrlI+QCxij/OzMbtZn/i4NJ6LzdNGmkHF7JjXvc0 loPLCdsFSByqpkQdRyTsnSrtq2EadCfzhQ4bMnEkSyy5JxAai3DSAr7Upzo231jNGSUV 3BL1n+Hm6Ej+Rr4kpHevSAnlb1sRYVzyA/DaWIgsBYEmIJdz024xnf91AAEUymtrp7gO SxjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="tb+/K0K1"; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bu27si12871462edb.542.2020.07.06.06.36.37; Mon, 06 Jul 2020 06:36:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b="tb+/K0K1"; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729215AbgGFNds (ORCPT + 5 others); Mon, 6 Jul 2020 09:33:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729209AbgGFNdr (ORCPT ); Mon, 6 Jul 2020 09:33:47 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5ED1C061794 for ; Mon, 6 Jul 2020 06:33:46 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id o2so42117292wmh.2 for ; Mon, 06 Jul 2020 06:33:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KtWn8hsOXI1tl0MUhSmyvGeFes81dlof0v8VW7+fdbw=; b=tb+/K0K1eA704mpMyghl55v/zWI4mSEucjEWMkto05EJAwtt81Tuc5Ialuiq8LeS2R x7eNhrR5yGpofVpGMlUc+dGvW6hOfzZAKfuPvTYOL9cr6csy+Q7aT4rJAe+QBVgDpCWB JmX38nI6hJKRDaLdaCbKahq0CK0atprPWa2Wn5hZzUEnnjAXQrcx+95LGiam9CAdWbmM QFxzd5VOEiDqMgyMUKWN0JEn5Yco8m9QTRctmmUjIDZ2rJKKvS/HJF17k9YJnzu5eULF XF3nsJOJPonHF1SaySMBGld80Ol8vOnadKhByaY0CkSeG7cHOObHZPhTkBpFLNt2aOaX OXrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KtWn8hsOXI1tl0MUhSmyvGeFes81dlof0v8VW7+fdbw=; b=C1URJ3soQ1gquaTJ38uKPOt2qcuNwkBHiWCoNex791vP8ZlCi9kILAkg6VruIhfrt4 UFv3ekpsw70qeJNGMwRy79twsZoIE0BlPCgQzqYueHU/cHnOdkyE+KZowOCGRjfQYglR +2XYq0mfNh4rzWWhp7eaC5ibQBZJEHanKgU2h9iRw5E6NnluQWjbsqeZlo6p0PwhBmo6 rdtYwE6XUBBNFDVftz5uequPksl9C5xasvvImPZRYh7yhUWI6TOOPTohzzNTNNjjxCAj JzjiWzsb59wlZis6S4gtNjfKJw2ZRmbW/vwJv/UmbjfzlfwtWwzxxYBf6Mg8TAwbijzm ekmA== X-Gm-Message-State: AOAM531ibqmx9BIwTsKEwwsYTjZ2ayUdlANgXPwJkXkJvWLI5DPzCpKP r1MK5xYGC4DY0lQW75RBQy1kQl3MB54= X-Received: by 2002:a7b:cc92:: with SMTP id p18mr51110615wma.4.1594042425621; Mon, 06 Jul 2020 06:33:45 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.33.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:33:45 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Juergen Stuber , David Glance , david , legousb-devel@lists.sourceforge.net Subject: [PATCH 01/32] usb: misc: legousbtower: Demote obvious misuse of kerneldoc to standard comment blocks Date: Mon, 6 Jul 2020 14:33:10 +0100 Message-Id: <20200706133341.476881-2-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org No attempt has been made to document any of the demoted functions here. Fixes the following W=1 kernel build warning(s): drivers/usb/misc/legousbtower.c:280: warning: Function parameter or member 'dev' not described in 'lego_usb_tower_debug_data' drivers/usb/misc/legousbtower.c:280: warning: Function parameter or member 'function' not described in 'lego_usb_tower_debug_data' drivers/usb/misc/legousbtower.c:280: warning: Function parameter or member 'size' not described in 'lego_usb_tower_debug_data' drivers/usb/misc/legousbtower.c:280: warning: Function parameter or member 'data' not described in 'lego_usb_tower_debug_data' drivers/usb/misc/legousbtower.c:290: warning: Function parameter or member 'dev' not described in 'tower_delete' drivers/usb/misc/legousbtower.c:306: warning: Function parameter or member 'inode' not described in 'tower_open' drivers/usb/misc/legousbtower.c:306: warning: Function parameter or member 'file' not described in 'tower_open' drivers/usb/misc/legousbtower.c:405: warning: Function parameter or member 'inode' not described in 'tower_release' drivers/usb/misc/legousbtower.c:405: warning: Function parameter or member 'file' not described in 'tower_release' drivers/usb/misc/legousbtower.c:452: warning: Function parameter or member 'dev' not described in 'tower_check_for_read_packet' drivers/usb/misc/legousbtower.c:468: warning: Function parameter or member 'file' not described in 'tower_poll' drivers/usb/misc/legousbtower.c:468: warning: Function parameter or member 'wait' not described in 'tower_poll' drivers/usb/misc/legousbtower.c:494: warning: Function parameter or member 'file' not described in 'tower_llseek' drivers/usb/misc/legousbtower.c:494: warning: Function parameter or member 'off' not described in 'tower_llseek' drivers/usb/misc/legousbtower.c:494: warning: Function parameter or member 'whence' not described in 'tower_llseek' drivers/usb/misc/legousbtower.c:503: warning: Function parameter or member 'file' not described in 'tower_read' drivers/usb/misc/legousbtower.c:503: warning: Function parameter or member 'buffer' not described in 'tower_read' drivers/usb/misc/legousbtower.c:503: warning: Function parameter or member 'count' not described in 'tower_read' drivers/usb/misc/legousbtower.c:503: warning: Function parameter or member 'ppos' not described in 'tower_read' drivers/usb/misc/legousbtower.c:587: warning: Function parameter or member 'file' not described in 'tower_write' drivers/usb/misc/legousbtower.c:587: warning: Function parameter or member 'buffer' not described in 'tower_write' drivers/usb/misc/legousbtower.c:587: warning: Function parameter or member 'count' not described in 'tower_write' drivers/usb/misc/legousbtower.c:587: warning: Function parameter or member 'ppos' not described in 'tower_write' drivers/usb/misc/legousbtower.c:669: warning: Function parameter or member 'urb' not described in 'tower_interrupt_in_callback' drivers/usb/misc/legousbtower.c:724: warning: Function parameter or member 'urb' not described in 'tower_interrupt_out_callback' drivers/usb/misc/legousbtower.c:752: warning: Function parameter or member 'interface' not described in 'tower_probe' drivers/usb/misc/legousbtower.c:752: warning: Function parameter or member 'id' not described in 'tower_probe' drivers/usb/misc/legousbtower.c:863: warning: Function parameter or member 'interface' not described in 'tower_disconnect' Cc: Juergen Stuber Cc: David Glance Cc: david Cc: legousb-devel@lists.sourceforge.net Signed-off-by: Lee Jones --- drivers/usb/misc/legousbtower.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) -- 2.25.1 diff --git a/drivers/usb/misc/legousbtower.c b/drivers/usb/misc/legousbtower.c index ab4b98b041158..8aca55c4c95f1 100644 --- a/drivers/usb/misc/legousbtower.c +++ b/drivers/usb/misc/legousbtower.c @@ -283,7 +283,7 @@ static inline void lego_usb_tower_debug_data(struct device *dev, } -/** +/* * tower_delete */ static inline void tower_delete(struct lego_usb_tower *dev) @@ -299,7 +299,7 @@ static inline void tower_delete(struct lego_usb_tower *dev) } -/** +/* * tower_open */ static int tower_open(struct inode *inode, struct file *file) @@ -398,7 +398,7 @@ static int tower_open(struct inode *inode, struct file *file) return retval; } -/** +/* * tower_release */ static int tower_release(struct inode *inode, struct file *file) @@ -440,7 +440,7 @@ static int tower_release(struct inode *inode, struct file *file) return retval; } -/** +/* * tower_check_for_read_packet * * To get correct semantics for signals and non-blocking I/O @@ -461,7 +461,7 @@ static void tower_check_for_read_packet(struct lego_usb_tower *dev) } -/** +/* * tower_poll */ static __poll_t tower_poll(struct file *file, poll_table *wait) @@ -487,7 +487,7 @@ static __poll_t tower_poll(struct file *file, poll_table *wait) } -/** +/* * tower_llseek */ static loff_t tower_llseek(struct file *file, loff_t off, int whence) @@ -496,7 +496,7 @@ static loff_t tower_llseek(struct file *file, loff_t off, int whence) } -/** +/* * tower_read */ static ssize_t tower_read(struct file *file, char __user *buffer, size_t count, loff_t *ppos) @@ -580,7 +580,7 @@ static ssize_t tower_read(struct file *file, char __user *buffer, size_t count, } -/** +/* * tower_write */ static ssize_t tower_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos) @@ -662,7 +662,7 @@ static ssize_t tower_write(struct file *file, const char __user *buffer, size_t } -/** +/* * tower_interrupt_in_callback */ static void tower_interrupt_in_callback(struct urb *urb) @@ -717,7 +717,7 @@ static void tower_interrupt_in_callback(struct urb *urb) } -/** +/* * tower_interrupt_out_callback */ static void tower_interrupt_out_callback(struct urb *urb) @@ -742,7 +742,7 @@ static void tower_interrupt_out_callback(struct urb *urb) } -/** +/* * tower_probe * * Called by the usb core when a new device is connected that it thinks @@ -854,7 +854,7 @@ static int tower_probe(struct usb_interface *interface, const struct usb_device_ } -/** +/* * tower_disconnect * * Called by the usb core when the device is removed from the system. From patchwork Mon Jul 6 13:33:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234878 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4781584ilg; Mon, 6 Jul 2020 06:36:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw19LUME3x89txd/sHMdvxTuP68xLCiB0+5VE09cCsbHBLHsPannAKEmDQ8SHQqedC96YxO X-Received: by 2002:a50:e408:: with SMTP id d8mr54419629edm.375.1594042590730; Mon, 06 Jul 2020 06:36:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042590; cv=none; d=google.com; s=arc-20160816; b=xp5yK+QGe8FUhptbwLU4ZXD9kihrr7994kov1fsSogbkT/nCwmskvNYStg6KJIveaH U1e4I54HxukCl/9f/zjncRUigtjDAAx3hHKjLndBQuo62FAnvnwNG77XoA8PvyOhboru fJHYgDvm37OeLHOicOUvX7ydGuhLWkkIDc7Z90mJsKzyFc22ZZGrHXcjwjLifaG98xZo mdOIXkR+BIENivTqN6vvUunWmv+K+TYrpb6nJ/DPYCVbpRV4sSj/zIKxr1mHWdhJ5Zns jG1BmigRidAbH3RuaOf4ZnmYeHvfwunD2pZIWAKcnOcCtdBiySoItiXA9FIu2pLN7K3T NV3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WNaU7ol+N7ICBJATYVP9nw4MVbukWo2xxwQRmnXSWuw=; b=sG97ACaPEAbjV/NnIw1SwWOegE7ttX/YniSAFVqNMbpLwfr/4gcB3KA1M1ZZc2DoGy FUZdzZB+MSrtycz6Z33uKUeO3KlFNbGxZKga9tHl+j2gUsuM+Cb3DN3ainJtCzRbFtPG YB6tp+YB7fYAcy9Celhd58KlQx8JEtnbPvVM+NvMPCUMc/bISHEIX0+dIuey3fk1Akw6 Hqk3b0Icc5+C1h0OwDWPl9y8qwN5rTU8R/PbkrOQvNTykIE7GTgLtOxkFCcPxDu37oeO eCnlzBPQ99QG5m2VK66ZtjyOT6I/A521w7Qk//+tAJpfJOpF5/T6TRa0j0dHarT+O7kC Otmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="NkRY2E/H"; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e8si14470390edv.230.2020.07.06.06.36.30; Mon, 06 Jul 2020 06:36:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b="NkRY2E/H"; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729238AbgGFNdv (ORCPT + 5 others); Mon, 6 Jul 2020 09:33:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729209AbgGFNds (ORCPT ); Mon, 6 Jul 2020 09:33:48 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF3A3C061755 for ; Mon, 6 Jul 2020 06:33:47 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id q15so39369864wmj.2 for ; Mon, 06 Jul 2020 06:33:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WNaU7ol+N7ICBJATYVP9nw4MVbukWo2xxwQRmnXSWuw=; b=NkRY2E/HSC6TCiGYYeAp7Ij0MVWlfjDJVXmJchaUI3rMunKmwloMDjVwIp6WkePzX/ zebB66G53xUr0ZsJFMrQhXE1gWX/AxLXp0tbYzYz+lCr6MH6Z9gTFrD1OfaR+kij4/1e 2NzT2rvVJrW4SvM//cDtdM/tfm4y/E8QoRFFxL2ksnPMJ1Kp2LcVIiLEjXgEkiSAokKK hFp2tTqg+WJ9LgX/G1frCemjOnFGdmZY3t5IEYxNaXbrue949/A0rRh6O9KbRzWpzsYL dWP09kh1fL33PDeBGoUY6awH4Adfw8S3qvhYakuSG2YCXfUEfR/XdT+fSm0Rukc4Wopr vteg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WNaU7ol+N7ICBJATYVP9nw4MVbukWo2xxwQRmnXSWuw=; b=LrY+JN2bs3xLWGZrnqlXkCXL25+JrZC2F8sHUTm+5JVqCnTrJEeogcQtYiE72QW0j8 uDc+tktAcpoC+KPF9eOdNm71Kv8MJf9cidpCRrwsbCMBigWG4yK75GjdCfRfzrBYykah lsGnvrJXnXRSWZ5ComtjPYwWCOZMt5DdP+yxbi977iZAsl+lMuMnJcNZMlatuo56GTvn bkDw9uCaquGreMOSqaVLmGMlJ8whYG/Mhy4nhv/LZRDlnekocvJnrqWF2T/RSGWsQ02i EV/lUy7kLmGgaoRAP+C9PIogw9v1QLElLiOpvR6LEcCmLyNCW3Vo6Wxq/gFj+aiZPsDe 3UBg== X-Gm-Message-State: AOAM533gudR9VZlQL707Jeq2JkBS1/KRb2H+FWktnWHXKuSrgtCcD5tL rNt3XR9MBRFS4YnGcJjbd8DrZA== X-Received: by 2002:a1c:1bc4:: with SMTP id b187mr52514926wmb.105.1594042426613; Mon, 06 Jul 2020 06:33:46 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.33.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:33:46 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Peter Chen , David Lopo Subject: [PATCH 02/32] usb: chipidea: ci_hdrc_pci: Fix improper use of kerneldoc format Date: Mon, 6 Jul 2020 14:33:11 +0100 Message-Id: <20200706133341.476881-3-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org No attempt has been made to document any of the structure's properties here. Fixes the following W=1 kernel build warning(s): drivers/usb/chipidea/ci_hdrc_pci.c:132: warning: cannot understand function prototype: 'const struct pci_device_id ci_hdrc_pci_id_table[] = ' Cc: Peter Chen Cc: David Lopo Signed-off-by: Lee Jones --- drivers/usb/chipidea/ci_hdrc_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 diff --git a/drivers/usb/chipidea/ci_hdrc_pci.c b/drivers/usb/chipidea/ci_hdrc_pci.c index 49a61549cee67..d63479e1ad104 100644 --- a/drivers/usb/chipidea/ci_hdrc_pci.c +++ b/drivers/usb/chipidea/ci_hdrc_pci.c @@ -120,7 +120,7 @@ static void ci_hdrc_pci_remove(struct pci_dev *pdev) usb_phy_generic_unregister(ci->phy); } -/** +/* * PCI device table * PCI device structure * From patchwork Mon Jul 6 13:33:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234877 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4781566ilg; Mon, 6 Jul 2020 06:36:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBW/BW3KJzumas3KFwIRXuBPtGnYYdwoggp4WWkkEa/ph4cUM+3YTOQ4Pg4EiQhOK0FHoN X-Received: by 2002:aa7:d285:: with SMTP id w5mr27483144edq.174.1594042589808; Mon, 06 Jul 2020 06:36:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042589; cv=none; d=google.com; s=arc-20160816; b=JYb1FkkOhKYyagwu2FMRN+ei8EfEMHvrLigc79CYnPPzi32A2Hp5npOOdU6PVkzzMW h5MrJEf4jmMmR6qjkSsDQfpHpZbvrqgNX3DA7Akznr3BSlTDWVmu7EM/r4lN1nQcyhr/ RnnnEhx2tXibzD3vDCg/JAwU5rV7Ez3BAyh7Dact3tH2FAV9JB0AiEXqnGTuyaUopoMu RAPmwDgomOIZqr1IZ+8NXjySFziTuvaXGbuSf65yHlvW1V8ZsCNMoSTNvtbYud6tdWcu Fa9O3uzlTEqRgBoK1NnMPzoWRlz93lLNjLaS9H+pFcw71DARWGsK5AMcSlU2T0dKlUgw /xXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Da1l6YoL6n3bU+jKdqHFRQjokYKz+vBJsiPCL0gGolc=; b=NFVOUO2F0d0wmA86hC8XnAdvhPYHPiNFjYSCO3mEOJcNqY8ClAh6qfQSalrXTCUhJB aFiVED7ZSauYw5ATote356wtwWfHDfmFF1z0y/Om/eB7w8CiHe+w3X7Qple4r/apfDK2 bmNf123KbmTvVXVkQu4EF4pG3SwAbGooljZpYyubeZqX4sbxGxwIfu7SKd0LzQssJ6x1 zEHiKcyTMeao1HMOQhD4xAsCBmSiPrTUzKKDLLmKQEaUpdFJvkEFNP0xQMc8a0GCwyeF y1yORBYp5waZ6SuzmzN0UCvFM5Us3b2RpojeyUbrVJt0OL8bspGPpe8pEK74yKGLzd+L 0buQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RLGORxri; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e8si14470390edv.230.2020.07.06.06.36.29; Mon, 06 Jul 2020 06:36:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=RLGORxri; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729245AbgGFNdw (ORCPT + 5 others); Mon, 6 Jul 2020 09:33:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729230AbgGFNdu (ORCPT ); Mon, 6 Jul 2020 09:33:50 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B68ADC061755 for ; Mon, 6 Jul 2020 06:33:49 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id f7so37934256wrw.1 for ; Mon, 06 Jul 2020 06:33:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Da1l6YoL6n3bU+jKdqHFRQjokYKz+vBJsiPCL0gGolc=; b=RLGORxri111/tc0Sf0mSoMmtk2VwtRaHx86WcvDwSf1/2SpW+CMz1rr253sGKsrvUK uK22hb403LtPowLnwcDgpTXUfLiAzl7Ehka5hCIWxZK6tjJrXH/wyoVJgONMo5Vu0Nlj JOVU+F2Tj3eJNLPuV+P6fh0BlaNOe3kQimvqE0cUCtSdVVV++6OkgHXYK9XMdK6fCCjd iZNN4s0Qp4aWOgSDwztx886A+qDLbMjw6kR7XG7HJvjUgbm3GyBPHn2A4CX1p7G+5fJG RBZDMLNZSD0KaU+9REz4lAenuUrsvBhPyngaO9nQBPnshwM8sSoFKRwQJe7F/lZ+K4W/ mSlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Da1l6YoL6n3bU+jKdqHFRQjokYKz+vBJsiPCL0gGolc=; b=P4ljdu7oKxKYRVvYgERapwb1EtbQUpZDAAjF48mQZuVvsdtpCD7nsRlPQh+4+3Yxb9 sbha6Q/HjKbhxH+6grSICnSTCmFhB3+RAVKAQMnqv9+b0ym27tnQfTxWqgLikVoCggdm mco2O2mGbZTgif3ZZbeWrGd4loPVcuoSuC9L6kJc7keD5HQE1WDN4HfAQzbnAQeg6xMx 1hvxrZPF5WX+pu1wN0XoNVdFf8XiXI1+1Omdi0N+eSmNK6H9RRaUusZCZsENsPZ06VTX e1tXgIdPFxEMS0DEIEfsU2pEa6RRtL44kuv0ctEj/S3uiY9TjmVqfLy/NgPo65xrbM+7 a20w== X-Gm-Message-State: AOAM532nFDVOOdwbJjokG0XDrCQjrjiRhQC8u6bGz8QK36/jUaXDfjQM 9Qq77ikBjZNLnYGp+6qdpG+NVQ== X-Received: by 2002:a5d:504b:: with SMTP id h11mr47735862wrt.160.1594042428510; Mon, 06 Jul 2020 06:33:48 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.33.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:33:47 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Felipe Balbi Subject: [PATCH 03/32] usb: gadget: legacy: printer: Remove unused variable 'driver_desc' Date: Mon, 6 Jul 2020 14:33:12 +0100 Message-Id: <20200706133341.476881-4-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/usb/gadget/legacy/printer.c:24:19: warning: ‘driver_desc’ defined but not used [-Wunused-const-variable=] Cc: Felipe Balbi Signed-off-by: Lee Jones --- drivers/usb/gadget/legacy/printer.c | 1 - 1 file changed, 1 deletion(-) -- 2.25.1 diff --git a/drivers/usb/gadget/legacy/printer.c b/drivers/usb/gadget/legacy/printer.c index 57858f0c2b6c9..2cd389575084b 100644 --- a/drivers/usb/gadget/legacy/printer.c +++ b/drivers/usb/gadget/legacy/printer.c @@ -21,7 +21,6 @@ USB_GADGET_COMPOSITE_OPTIONS(); #define DRIVER_VERSION "2015 FEB 17" static const char shortname [] = "printer"; -static const char driver_desc [] = DRIVER_DESC; #include "u_printer.h" From patchwork Mon Jul 6 13:33:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234879 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4781590ilg; Mon, 6 Jul 2020 06:36:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw27nz3BFh8bdX8ejJ+gMGuqV+LeQkMCX+1oFhmGKjYy1Prs+CvBS5LC/HjfMTJCdPXr2zV X-Received: by 2002:a17:906:a01:: with SMTP id w1mr44107587ejf.197.1594042591125; Mon, 06 Jul 2020 06:36:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042591; cv=none; d=google.com; s=arc-20160816; b=n+zrMFAlFlqiFNEPPhN1QUSJlQXyXxwNVK2skdWumZ0dwzylNEVfTYeDnN5TKTNO8N xmQ+IWfpBNkzCFcKPHNsWJJ+fM/VIGVT7j5pzpkARa5Iyj9aVSdAik/SHOY8FAoiby9A SwvdZCsTCsqo8wLnPKPIe2V2uO1KDkFLsQ9yPUQe8qSGko0jjn7bASqqb1RpwviXwcnT vgijEGkpk0p3qufjT8FApWZru7Vz5tpE9FPBdtc2UmDZyV6vzbwaXK3DBIkecL8RM1xi /EDCYDmxxO07b0X8J/tlYXxcVQxoLcl6rm0u5XsngknnuzAjPz2d+UzX9F76KYe4OhaW 1BqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2vBJeRBU9C8xa/2tDAV3EYv6FtdJQoWad8hFtUeL0Ic=; b=GrdHM+xOv25wf2T06s7lEdqIjazUdcmpvGuf150PktHFSzN39zEkeQEVzO5uoENg7f ZhL4qvJqaggv1Cf8KtqdavilX+TwMQO2Qn2FZH9uPjx6g3LkIDhcNROZ7ocve41G5XVc kGtzJg1t/GfhGr000heIAH89pbRQnpAxIuNQYMhCjzmUw7K1MKl3K3cc14AuloFKni4k OdtJnixLfYPWnQiVN5eb06hZaxZH8y9w+RbwETJAV/gfj1/JWhQwg91An1KH7tKBWPbL 2B4hpjnE0oIp0sodYhSubto4kiVvhQgMRRT0f4/tUHqNh/zR4q9L0gH5Eskd+W8p31WI cCPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G1JoL1Da; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e8si14470390edv.230.2020.07.06.06.36.30; Mon, 06 Jul 2020 06:36:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=G1JoL1Da; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729303AbgGFNg3 (ORCPT + 5 others); Mon, 6 Jul 2020 09:36:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729232AbgGFNdv (ORCPT ); Mon, 6 Jul 2020 09:33:51 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD228C08C5E0 for ; Mon, 6 Jul 2020 06:33:50 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id j4so38523794wrp.10 for ; Mon, 06 Jul 2020 06:33:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2vBJeRBU9C8xa/2tDAV3EYv6FtdJQoWad8hFtUeL0Ic=; b=G1JoL1Daorj+JI1ZRbOm0BsITxlYPCPhqAXR8booNKNusooKx24v80Dl9rC+dERNjZ 1wDaFAseXrhBUGr/nbWDDAg/16r5MFQ9cICHpdVqoKiFiyiwWy/N6B6OmFsQ5NXGyjc9 YYrEKmJpZh64Xww7sSEG5VmFi3dtB3DobR83PDYZV5cTCGpwS6PSwpL/XGycHcTpzTWc KSpxBlGnI3+pIfmjl4b1LGJvFxbn3iOWQV/oCNEbTR+EPdh+h7R8qux7lxvt8n7chmMt 6dbFgzTJ0owILMLo/els7olUo+4e0lOaKULvAdId+iS9nhTGGBE4kGFBKvyANowDHPnf XWng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2vBJeRBU9C8xa/2tDAV3EYv6FtdJQoWad8hFtUeL0Ic=; b=HR2GeQlidjQqhtHIa8OBuagaO5VJAtYvQdBwtWtXsU3WnUpO1iS42jtija5Q2Diift POWoJ0Gt+tQN4gfl81GAZNk/k7yTDuDHo9gOH9WxyKDm5hS3j9Ls6dYh0BreKjrCaYV4 67G71ECGiLwADtAYrCzVZ98+Rm0Gh6BetPlUiLEQGTA//L8Clejalf9Ct6S6umHNlu6o uz94ydT+eeumVXoCsaEJj50SggLb+c1dO+eCjOgC8CiSPLN0cR/CAyiPvjKIh0zRgvD0 xwrSrVI00gz3fGY9E5EkvjVxe2tai5+GzB/hC1tlgbkV2T/HUGazU6+wszQBcJDYDi5s w+WQ== X-Gm-Message-State: AOAM532fgdnX8hrdMDfBDouxxvO8lTBWbmUjWdWWUj4hLh+GqW46nLqn IPLKQriOSNgHueq7GOYrxn3MAw2Y4ZY= X-Received: by 2002:a5d:5706:: with SMTP id a6mr13465102wrv.328.1594042429481; Mon, 06 Jul 2020 06:33:49 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.33.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:33:48 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Felipe Balbi Subject: [PATCH 04/32] usb: gadget: udc: amd5536udc_pci: Remove unused variable 'mod_desc' Date: Mon, 6 Jul 2020 14:33:13 +0100 Message-Id: <20200706133341.476881-5-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/usb/gadget/udc/amd5536udc_pci.c:52:19: warning: ‘mod_desc’ defined but not used [-Wunused-const-variable=] Cc: Felipe Balbi Signed-off-by: Lee Jones --- drivers/usb/gadget/udc/amd5536udc_pci.c | 1 - 1 file changed, 1 deletion(-) -- 2.25.1 diff --git a/drivers/usb/gadget/udc/amd5536udc_pci.c b/drivers/usb/gadget/udc/amd5536udc_pci.c index 80685e4306f31..56258d076abc4 100644 --- a/drivers/usb/gadget/udc/amd5536udc_pci.c +++ b/drivers/usb/gadget/udc/amd5536udc_pci.c @@ -49,7 +49,6 @@ static struct udc *udc; /* description */ -static const char mod_desc[] = UDC_MOD_DESCRIPTION; static const char name[] = "amd5536udc-pci"; /* Reset all pci context */ From patchwork Mon Jul 6 13:33:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234849 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4779225ilg; Mon, 6 Jul 2020 06:33:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpOLWnh1Sc31t9COD5oOd2dgXEpaOlHr2mhuvElci3RWYlPrH/BfjDNZlv09AcVMUD+P7a X-Received: by 2002:a17:906:e91:: with SMTP id p17mr36735549ejf.252.1594042434666; Mon, 06 Jul 2020 06:33:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042434; cv=none; d=google.com; s=arc-20160816; b=q3P7Os/hqCUT1CwgPAT4OBLwQ1LhCaC1Ys5XRW+fRj4STnI2nzMkttJIIUQFI/8now BIBhADaH9ahtXg8dnEowmPCIzRxZfaqNs7V63AJikNwRGt2a1kCCKA2BTYYB3gtcSzzk pCHai0hsDeuxJ/9aE3vxRjBcBL6MQIIBu7QiFA32LvZ7wYwp5U6h0IZZtHM6wQY0FyxO mwVP5/qgFcvDUrl0PfPDCEfcjhoXi3wOs4ygx+bvCecuPazXNRh/c6bUzVxjrt7YCEGv n+l/48e/RRCb3ATgUt3uGeKIwbvOVd9lqKobKqkQ8MBz6MKQyUImTFlz6GTwpSk/W2EM kycQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+1uVBpjaOD4IpY3ZVlXbRV81yiri13+tuf6A/llAK/Q=; b=iQ6ayz9Kj8UWMla2qq7bnRzsb+5t1TWL4UCl8Dt3+FPfOaHHNMuzKFlrQBbcFXtcnF oq6GjLy+IyVb+0wTX8nGy0HBnntVl6vIYVt8g1qd9bdTmMm3bV/aLBg5tauVj1698Ds/ EGqoQ3OmUsctlGRHycgQ/0LgkaqHQZ50xFInh/RSCEXL3r7MpB56cC9bUjm4n0KEKg3z VgxDgFI0jRtqmd7UbYPQfFZ0Q8fbShXr3Q0yEbOoT85EbnzYMcpcINZ+UyPMZ838ffrs ooKMJrmmXs9GbgOlxvWeZaklXs1LF7eoe/3K6Xlo8N/jk42A9FK75bw9t2aHal5lIJxL Q7zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bWfrC2CT; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ca10si13450073edb.224.2020.07.06.06.33.54; Mon, 06 Jul 2020 06:33:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=bWfrC2CT; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729257AbgGFNdx (ORCPT + 5 others); Mon, 6 Jul 2020 09:33:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729249AbgGFNdw (ORCPT ); Mon, 6 Jul 2020 09:33:52 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA21BC061794 for ; Mon, 6 Jul 2020 06:33:51 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id o11so40973637wrv.9 for ; Mon, 06 Jul 2020 06:33:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+1uVBpjaOD4IpY3ZVlXbRV81yiri13+tuf6A/llAK/Q=; b=bWfrC2CT864d48e8sCwLNN6S649Z7RUI6pO1r+dF7OQw0XBZ0w+YwQQRCgFTULa6lO pUTSNHqHo5MEMTKVVgMIK7+bkfHfqxXFMNgjUdN4S6S7nnMVygMuDMWlbsNhPfyl68jD avi2zqxlw+3PRHuC+6tM753fGejds5lVDT+akNypUQ2JCcQvMzLNJF+A2Xe6mKVZPj7x ZLRC8d3qGcXfT5kgnn66HLzFcO6h8g/DsDcpAsMjN5bQHWZPSbai4i1du/j4Cmeb9Ml5 5lJ4DfLAuw09P70HDlLAaeKYQp/cHK5Eh+xJMsB+5p8ptypyUIV1/p+NtWybWXuYyrVB AiVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+1uVBpjaOD4IpY3ZVlXbRV81yiri13+tuf6A/llAK/Q=; b=j7c8bWIZpdoPkyuSy77HdhAuIcJpze5Yke4L59fE6sryRDEJAUnjc+zkdhqN6qZh50 fD1+EL2SnbxAxktDyJ0idBnu8HwWyHFzP4ZaluOebzH7IcD1Wq14t4tpuyGQAF5yQduw RwbzVfD6rw7H5fmD2HOpxJE0L+WbAttTk18K3iGBD1H7NoplWrDktrXRtwX45PZsfEak t/e5d75q1V3HeNRLBlIYKpfRBmpwWmMesrW+zyjK40ORtEJM/M28sO6njUqUh77gUd+O 4HJopF0rbOwv/jFifpcyO3GobQsDyL7so5+pSWI17U3pJ4jwgXTaHRRkpstaBFIruBI1 MQpg== X-Gm-Message-State: AOAM530WM6IZqAo16gYdwZSAo99GmJm+VMvop/vAdsCWBNaLPB9T4V9M VAKb/ExRUS3XuvKGkNFMApKrFQ== X-Received: by 2002:a5d:470b:: with SMTP id y11mr50991135wrq.101.1594042430666; Mon, 06 Jul 2020 06:33:50 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.33.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:33:50 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Felipe Balbi Subject: [PATCH 05/32] usb: gadget: function: u_ether: Downgrade kerneldoc headers which to not make the mark Date: Mon, 6 Jul 2020 14:33:14 +0100 Message-Id: <20200706133341.476881-6-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Kerneldoc expects all function arguments to be documented. If any are missed it will complain. Downgrade one header with 3 missing argument descriptions and one which makes no attempt. Fixes the following W=1 kernel build warning(s): drivers/usb/gadget/function/u_ether.c:750: warning: Function parameter or member 'dev_addr' not described in 'gether_setup_name' drivers/usb/gadget/function/u_ether.c:750: warning: Function parameter or member 'host_addr' not described in 'gether_setup_name' drivers/usb/gadget/function/u_ether.c:750: warning: Function parameter or member 'qmult' not described in 'gether_setup_name' drivers/usb/gadget/function/u_ether.c:1022: warning: Function parameter or member 'dev' not described in 'gether_cleanup' Cc: Felipe Balbi Signed-off-by: Lee Jones --- drivers/usb/gadget/function/u_ether.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.25.1 diff --git a/drivers/usb/gadget/function/u_ether.c b/drivers/usb/gadget/function/u_ether.c index fbe96ef1ac7a4..f01e3e21ecf21 100644 --- a/drivers/usb/gadget/function/u_ether.c +++ b/drivers/usb/gadget/function/u_ether.c @@ -730,7 +730,7 @@ static struct device_type gadget_type = { .name = "gadget", }; -/** +/* * gether_setup_name - initialize one ethernet-over-usb link * @g: gadget to associated with these links * @ethaddr: NULL, or a buffer in which the ethernet address of the @@ -1012,7 +1012,7 @@ int gether_get_ifname(struct net_device *net, char *name, int len) } EXPORT_SYMBOL_GPL(gether_get_ifname); -/** +/* * gether_cleanup - remove Ethernet-over-USB device * Context: may sleep * From patchwork Mon Jul 6 13:33:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234875 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4781352ilg; Mon, 6 Jul 2020 06:36:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzu1qEI95r9w9erWooqQ76oNK4oW1TrNZ25k7CZOORQpr0ZukQvBiZvdtSMTbcL3CVHwOs2 X-Received: by 2002:a17:906:57c5:: with SMTP id u5mr27255164ejr.311.1594042574667; Mon, 06 Jul 2020 06:36:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042574; cv=none; d=google.com; s=arc-20160816; b=0X7OfkwUj6K/+iN7NUh6HRd8l79Ulo7r5O/fOXD/hWoea3kjS00fY5ndNNFdhKDVvh nKQ83nY7ebczKV+BDSHx7Q1eCZBlm68pNoMwL0DYso1fKgAjaVpAqTrTC3yQnRSnv9/Y XMxD/BCuEcF9I8YcChQWNQYPJKC3hdGGTJKfHdQ6TFrqVAQnRQm4d8Y84xyAJghWiTUy DrXGOjvyuB85hgHMM9ykyRO8solft/+03SvHwCOUV2KgabGuykv8Ku95a6pYRu5CsYEA 8/plyXxKyIPE2gK7uRI6kAdTMfhYzyE5XNWaX81F4dNu2OFZxf3WtKp+vEQxF1nRu/uF gOLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+2CvC0dcY8mKf0yUeXARfEMP6PiuGQCwRdvUKfmvdsM=; b=oun7PKi9FYYFu7vyU1F0jf/wVS296fBDPU5xCmXI+Q8Ac03pfB2BZ+1gP+VxZnLgQK hLEyoCYqOWF2lI1ZXC+J8Iwp9vQgXf60UC6EhoOSp6fSkO4pyy72/esXjHyFIodJvAL7 wn/pGCYpjX1c9iWTdu8it8DkygAalF0aiep2Iaa4GuI/Ve5r2fHsN8YVUGaeVgBuDHBe JWdGhhXjperuDqItyCl2pAIR66NRRnu6/DWom6NrPVgHmVP5QoPJYAmQMX2ZmiJ7T8aw /A5die7M9xEV4+ueLi+RXcfSB9ExcyMYB0aXd1vbJ7a0dwQRpuE9hRBb0P64hKIiB16u 8NPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EQlHDXEO; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ds2si17516329ejc.114.2020.07.06.06.36.14; Mon, 06 Jul 2020 06:36:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=EQlHDXEO; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729573AbgGFNgM (ORCPT + 5 others); Mon, 6 Jul 2020 09:36:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729264AbgGFNdx (ORCPT ); Mon, 6 Jul 2020 09:33:53 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42A93C061794 for ; Mon, 6 Jul 2020 06:33:53 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id q15so39370192wmj.2 for ; Mon, 06 Jul 2020 06:33:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+2CvC0dcY8mKf0yUeXARfEMP6PiuGQCwRdvUKfmvdsM=; b=EQlHDXEOu5c3/xdYpeddQYBFy4VeGzctriOoYrhCEIoajtAlPrNE3FLI4QCGC5nYfM 7ZiHnbWq+YynONBW3qBawaRo36Ul1xVRH5XE+6GrHGxZpgH++Oh7NYaLgGeCsmYbSpwP 3tLYXhtCdK1wHAoNxnOXADLy8CMSkwXWQzkN7wW8SQo5YOCf6fp0RzSk5OGqctOCLZQg GL8Eg2Y3+FtPHIX6Tpv5cIHjwTba4ZLTCzpqUq8COYY3u/kKfbWo0BR2b9t04dS8/eyk O6chMiqAeUlB1WPYKpr1wK9FhkOq2ULHnyFhs1yRG0AzM4NIL04PlaplMvLyE4hRCsAl Qcgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+2CvC0dcY8mKf0yUeXARfEMP6PiuGQCwRdvUKfmvdsM=; b=KrB/m9nITIteVXYE9TNx3zMGeWyvK8+LxCoPf/aK9kRhnvVB2uMh2DpKvF1/3clKob kFdi5ccRFj9lZfQhr971eI3f/ad9e2G6puHwKUHp/dcvt1q4IIQSwmLF1PdOPUh8p2n0 UyjZCN3EHd0hz4ecO81dwuqHB4WlVTwtwAtkUFPCuFgpchCTSzurYKvwjJtoizJJOTP6 D8pxnspqVoZkX6AJkW+Moyk/8yfxdNE5oWlbO14iKx25OzlqqfRpj6MB+vvbHKFpmu7a cKMbmQxaS6zFxLyngB4SJs37pX5Gs/GngODBBGgYIbEIhv9hHmCUKE/07+51ZWH9Z/4I fcJw== X-Gm-Message-State: AOAM532lzrvHIyw3oIDXD5GcByJGOswJRNPrgFtGmnHdis2gxJDteJba 9GQLbUN/mYJj/7aSi4prRBg4VQ== X-Received: by 2002:a1c:a589:: with SMTP id o131mr46569094wme.12.1594042431959; Mon, 06 Jul 2020 06:33:51 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.33.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:33:51 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Felipe Balbi Subject: [PATCH 06/32] usb: gadget: udc: pxa27x_udc: Fix a bunch of kerneldoc issues Date: Mon, 6 Jul 2020 14:33:15 +0100 Message-Id: <20200706133341.476881-7-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Mostly bitrotted argument descriptions/names. Also the removal of a blank line in the middle of a kerneldoc header, which is not allowed. Fixes the following W=1 kernel build warning(s): drivers/usb/gadget/udc/pxa27x_udc.c:398: warning: Function parameter or member 'ep' not described in 'ep_write_UDCCSR' drivers/usb/gadget/udc/pxa27x_udc.c:398: warning: Excess function parameter 'udc' description in 'ep_write_UDCCSR' drivers/usb/gadget/udc/pxa27x_udc.c:479: warning: Function parameter or member 'udc' not described in 'set_ep0state' drivers/usb/gadget/udc/pxa27x_udc.c:479: warning: Excess function parameter 'dev' description in 'set_ep0state' drivers/usb/gadget/udc/pxa27x_udc.c:506: warning: Excess function parameter 'req' description in 'inc_ep_stats_reqs' drivers/usb/gadget/udc/pxa27x_udc.c:1476: warning: bad line: drivers/usb/gadget/udc/pxa27x_udc.c:1697: warning: Function parameter or member 'udc' not described in 'udc_enable' drivers/usb/gadget/udc/pxa27x_udc.c:1697: warning: Excess function parameter 'dev' description in 'udc_enable' drivers/usb/gadget/udc/pxa27x_udc.c:1750: warning: Function parameter or member 'g' not described in 'pxa27x_udc_start' drivers/usb/gadget/udc/pxa27x_udc.c:1750: warning: Excess function parameter 'bind' description in 'pxa27x_udc_start' drivers/usb/gadget/udc/pxa27x_udc.c:1784: warning: Excess function parameter 'driver' description in 'stop_activity' drivers/usb/gadget/udc/pxa27x_udc.c:1800: warning: Function parameter or member 'g' not described in 'pxa27x_udc_stop' drivers/usb/gadget/udc/pxa27x_udc.c:1800: warning: Excess function parameter 'driver' description in 'pxa27x_udc_stop' drivers/usb/gadget/udc/pxa27x_udc.c:2358: warning: Function parameter or member 'pdev' not described in 'pxa_udc_probe' drivers/usb/gadget/udc/pxa27x_udc.c:2358: warning: Excess function parameter '_dev' description in 'pxa_udc_probe' Cc: Daniel Mack Cc: Haojian Zhuang Cc: Robert Jarzmik Cc: Felipe Balbi Signed-off-by: Lee Jones --- drivers/usb/gadget/udc/pxa27x_udc.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) -- 2.25.1 Acked-by: Robert Jarzmik diff --git a/drivers/usb/gadget/udc/pxa27x_udc.c b/drivers/usb/gadget/udc/pxa27x_udc.c index 78902d13fc275..cfaeca457fa72 100644 --- a/drivers/usb/gadget/udc/pxa27x_udc.c +++ b/drivers/usb/gadget/udc/pxa27x_udc.c @@ -386,7 +386,7 @@ static inline void udc_clear_mask_UDCCR(struct pxa_udc *udc, int mask) /** * ep_write_UDCCSR - set bits in UDCCSR - * @udc: udc device + * @ep: udc endpoint * @mask: bits to set in UDCCR * * Sets bits in UDCCSR (UDCCSR0 and UDCCSR*). @@ -472,7 +472,7 @@ static int epout_has_pkt(struct pxa_ep *ep) /** * set_ep0state - Set ep0 automata state - * @dev: udc device + * @udc: udc device * @state: state */ static void set_ep0state(struct pxa_udc *udc, int state) @@ -498,7 +498,6 @@ static void ep0_idle(struct pxa_udc *dev) /** * inc_ep_stats_reqs - Update ep stats counts * @ep: physical endpoint - * @req: usb request * @is_in: ep direction (USB_DIR_IN or 0) * */ @@ -1473,7 +1472,6 @@ static void udc_disable(struct pxa_udc *udc); * Context: any * * The UDC should be enabled if : - * - the pullup resistor is connected * - and a gadget driver is bound * - and vbus is sensed (or no vbus sense is available) @@ -1688,7 +1686,7 @@ static void udc_init_data(struct pxa_udc *dev) /** * udc_enable - Enables the udc device - * @dev: udc device + * @udc: udc device * * Enables the udc device : enables clocks, udc interrupts, control endpoint * interrupts, sets usb as UDC client and setups endpoints. @@ -1732,8 +1730,8 @@ static void udc_enable(struct pxa_udc *udc) /** * pxa27x_start - Register gadget driver + * @g: gadget * @driver: gadget driver - * @bind: bind function * * When a driver is successfully registered, it will receive control requests * including set_configuration(), which enables non-control requests. Then @@ -1775,7 +1773,6 @@ static int pxa27x_udc_start(struct usb_gadget *g, /** * stop_activity - Stops udc endpoints * @udc: udc device - * @driver: gadget driver * * Disables all udc endpoints (even control endpoint), report disconnect to * the gadget user. @@ -1792,7 +1789,7 @@ static void stop_activity(struct pxa_udc *udc) /** * pxa27x_udc_stop - Unregister the gadget driver - * @driver: gadget driver + * @g: gadget * * Returns 0 if no error, -ENODEV, -EINVAL otherwise */ @@ -2349,7 +2346,7 @@ MODULE_DEVICE_TABLE(of, udc_pxa_dt_ids); /** * pxa_udc_probe - probes the udc device - * @_dev: platform device + * @pdev: platform device * * Perform basic init : allocates udc clock, creates sysfs files, requests * irq. From patchwork Mon Jul 6 13:33:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234876 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4781454ilg; Mon, 6 Jul 2020 06:36:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZewkj1v9h0fKwF5BhO3A1W0ibOykbFF9lZ3SWz/PDuSzCdfsmusYqVzcQSq6lrawP0FY1 X-Received: by 2002:a17:906:2851:: with SMTP id s17mr44536212ejc.347.1594042581788; Mon, 06 Jul 2020 06:36:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042581; cv=none; d=google.com; s=arc-20160816; b=QoN7Hy6IM8CWeZdEl0QO4+0tBBflDHfm10vr7h3M6ftGWkuFIQLZr5utffeFIYybrc J9e1oppJ0WsrcLG+3h77bcHPejNuG+5s/tLO/sndogyVQHSY2kOfwRzFuKV/dHdbSB1j WigJ4qbFuiIy+7OgScFB7lsS19odd4vCEgu3TDt/LjaJRcVFYm18KcxUliuj+Kah2AK2 iAZG4E2twsLR/MsIMr9hV7ICw23eB50WENs83fi13iS1+CUL9j7+rp1B7TYuhs8Hknkn V6u75uCTpNczq+nBtSnAUNAEqm7Y2gQL38E8eE/H85g23iJ5Wgess/BKXl4ARkkblB2T Ry1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WegnVZ9DGyLW+kA2xpWSNAlVRAFvD3JLviW2wF/jZ6s=; b=oqB/H1m2RddQOeb2cAKIYQ4ST1jhlWePlDFqi/2QVmbZ4phlNnW747VAnl5mWeu9I/ L4rjQdJw4EQCZK4ZXkjyt/383vjbc+QHWRodwBEswsOvULMIFfLjGgcMNKi9U1zTReRC 8BJazrif6z7qPcmqAVqZV+mPL4YgHdHoBUoRsHmKNrHo3EstQjqwJu0XgdWo+A75Epbs KqoF2zL074+6cgBgfXd8Ts9shIaxhIWwEHFSIazOl8j+LsKWFyqpzqJyi7iQWi27Kvmt 1cGJBLwmPLkwKP3khiOwoEG5VqW2gWRrTwfijFPtpoPWzAWjjO5GxUt5yXhyiSYlYGrw F/cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xT+yupj9; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e8si14470390edv.230.2020.07.06.06.36.21; Mon, 06 Jul 2020 06:36:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=xT+yupj9; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729570AbgGFNgL (ORCPT + 5 others); Mon, 6 Jul 2020 09:36:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729268AbgGFNdy (ORCPT ); Mon, 6 Jul 2020 09:33:54 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6177EC08C5E1 for ; Mon, 6 Jul 2020 06:33:54 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id w3so29666612wmi.4 for ; Mon, 06 Jul 2020 06:33:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WegnVZ9DGyLW+kA2xpWSNAlVRAFvD3JLviW2wF/jZ6s=; b=xT+yupj9MavimR1wa5EZqEYTVTre9t7Il8BFvnEd4FOqKCV1obJEBkXayBjU4VTUpX EjG552aZP/iWzX7n5uCIBks2UnXw89KPGuPpFaGTfGBxeYUsPeDHCRpN2j7upHhRcoYp LKHDSdNN49TKwN3vrQQ3LH7oPAr3gSKkrpECRhZdCSuAfuNJxBkCyB4HSP+vs2T3balU /FH7pNPZ2YwlCJegT6qTrUN/oM2ejngS3tbIbVpgI0Y4EN1R+c5gIurEWJ+OMaofmHf4 Xrrez6/t4LlVxxsjlS3b8/S+W4A2pXlnJB+OuOGyM5adoBRjPyRVSYVu37lfQ1r3xGMk vtNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WegnVZ9DGyLW+kA2xpWSNAlVRAFvD3JLviW2wF/jZ6s=; b=Jfy7i5/iG6yfXVKzbRt2K07ci68WpVHy/ADPR4x6bzzLAG/la0AUETkkIys6/1fgcO 3yTQ8rMwMHeM8KBZI7ux6MzxcAuhOiD2jtg0tyuuXCVY2Zg/gg3VuwyuYXZ55BgIAqCa lXcErOKrZUwDoXzhU/UWtSmpZQfpVrpFLKox3G6OVaW17epi3FVu7l/7g4vzGUSDIVR9 ByGmOViy49bRB38FT+7UotdNwh7sPRxCIMf2z2990PhVlPdj6j/6tutK691IbL1lCHqi hUCs/CWMR9Iul80gSHfKCJXIRzajNUbODy64nuJ3dmjR2blrmtFSdU6Gt/CvYJ0y+RET DB7g== X-Gm-Message-State: AOAM530+6DChqUw3DEcgJW3LKwxxD4RL5Q8Jx8oBd6vp94L3LkwCvFvs eZxD0J4sQbaSDi/TtsQSaQrAYg== X-Received: by 2002:a1c:48:: with SMTP id 69mr51473365wma.32.1594042433108; Mon, 06 Jul 2020 06:33:53 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.33.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:33:52 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Juergen Stuber , David Glance , david , legousb-devel@lists.sourceforge.net Subject: [PATCH 07/32] usb: misc: legousbtower: Demote function header which is clearly not kerneldoc Date: Mon, 6 Jul 2020 14:33:16 +0100 Message-Id: <20200706133341.476881-8-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/usb/misc/legousbtower.c:280: warning: Function parameter or member 'dev' not described in 'lego_usb_tower_debug_data' drivers/usb/misc/legousbtower.c:280: warning: Function parameter or member 'function' not described in 'lego_usb_tower_debug_data' drivers/usb/misc/legousbtower.c:280: warning: Function parameter or member 'size' not described in 'lego_usb_tower_debug_data' drivers/usb/misc/legousbtower.c:280: warning: Function parameter or member 'data' not described in 'lego_usb_tower_debug_data' Cc: Juergen Stuber Cc: David Glance Cc: david Cc: legousb-devel@lists.sourceforge.net Signed-off-by: Lee Jones --- drivers/usb/misc/legousbtower.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 diff --git a/drivers/usb/misc/legousbtower.c b/drivers/usb/misc/legousbtower.c index 8aca55c4c95f1..f922544056de4 100644 --- a/drivers/usb/misc/legousbtower.c +++ b/drivers/usb/misc/legousbtower.c @@ -271,7 +271,7 @@ static struct usb_driver tower_driver = { }; -/** +/* * lego_usb_tower_debug_data */ static inline void lego_usb_tower_debug_data(struct device *dev, From patchwork Mon Jul 6 13:33:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234850 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4779314ilg; Mon, 6 Jul 2020 06:34:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIAT4gG/t5FgkIf6DfFxC53IElksmcV3L9LA0UTWPjHnXIHnU5v76Sv883SxnNSK4D/Bj1 X-Received: by 2002:a17:906:391:: with SMTP id b17mr29442234eja.282.1594042440062; Mon, 06 Jul 2020 06:34:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042440; cv=none; d=google.com; s=arc-20160816; b=oBU3YexCij0qMPIyGSGR4fc4MCbAk/wn6B1Uxil/PHWGaZVAqX72CwODUGdcy+8oNc wfeRb/x4QldfnEayVqwqiCZItV/gKUdy1FAmJ9z/LukHAW+c7WO/DI5r5vVXUckRYL/Q MwmExdW6OqoNOdmhQL9A65SpuXugqjoxKmQbwR9A/z1cZXkEAAwOtJVFGmMiT8CSno4j gBNoicsQqMX/RZd3wjBWNHXzHugQfRkeI2hy8zj/BSb+Ci5BnKzUiQDMi2S3nNr89WeU ImYo/p4ukQvjUo6fFGwbJjTOnT2tMLcNxRpIJfmXjLDV+Kb6o2X/F9EDhIwCHVuX8mDX hupQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=P8CBq5D9tY/rIxd8Q9bScU/Lf3c39zfJPjGb95MJ1ho=; b=LwtZIKnWVc2szhJ9t0xbISUarTNFegmX6CufpqHS/PZQPd1eESK7uYVTUplHRdNVqQ GYEaq7OShA1PtQEkmZT2snJXl7Xhdq5RuBtXrDTQPvQ6ehYEHr+P8O1j/9Z82kuOiq2B nmYd1Dcs3rPxu1T8LnxiCoBncocutHRPQUpfILKb9VJQvfwaOay5Ip7QxWniqer10BAX gd6qvQfqBUgq7kVEZrUFoRpM0v3o0+IDwZZWE8YjFQ/+irS/pl96S9KaXLZkmE53Sswg RPvGhVvEj1cwh5bRAFVHRVpws7rW2eRlTuDBl3Uvi/LtE1ZtWEz9/FPmbmaTwMf2xeTC SFhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vTKBeOy8; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a15si14434094edl.117.2020.07.06.06.33.59; Mon, 06 Jul 2020 06:34:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=vTKBeOy8; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729287AbgGFNd6 (ORCPT + 5 others); Mon, 6 Jul 2020 09:33:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729276AbgGFNdz (ORCPT ); Mon, 6 Jul 2020 09:33:55 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8592EC061755 for ; Mon, 6 Jul 2020 06:33:55 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id g75so39362997wme.5 for ; Mon, 06 Jul 2020 06:33:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=P8CBq5D9tY/rIxd8Q9bScU/Lf3c39zfJPjGb95MJ1ho=; b=vTKBeOy8iUfSZmKMM4EVVOzgbmiCgEA6KMhIW9ctG3K+ahehKKx7a1sXbFvVZtjfS6 innuNalMpnrsqCB+v/QEOP7FDE8Ix5qjbmsU7xSdjpWQDRLoEvBKLlFRGs5HkWKupr5o F/sjXi24nPO0VtY4D2xhTt/xEQPYTXmWfpNum1ncVbzONuISe7B5N2oXZLn+/JAMhw5Z QO2Fo4cOg3XCdfDsBNaMPBVmVx+jBtFeW/lsaUdDr7JemyEnLj8QFk1YWkHg6Xu3O4lQ eq2usXfgODMDCtLx9nv9djz2KGH7YngG/1Y5dAF0iGn6+u6x99vRJjfYVKZCkXX4Zsir JK8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=P8CBq5D9tY/rIxd8Q9bScU/Lf3c39zfJPjGb95MJ1ho=; b=cbY6o7sx2TVSv2fmmeoalqhC2GXvJlR4r3maLstSV1PzAwaeRcIPHY6S0FRUu/ujip qEJe4VZQ0OFqRLn5lcndhUVBLcO7UtnQxfJVt4VKIQ9r8uKNF8Ht53TmAYLXAnA3Q2Yt fWW7poZj0zjPNDpyrlKlUvDWZXp0hLUC/BDbjDgEK6cToOfR/tXN9Ui505qeM/5HDPcK qUcwiNQs4qI92DFct8CtsA5NZPe8v6tm40cMhU+6Ow0ry3sLfq6a97pb7P4zl5iQIbON liuvSF/CcR2cNb7R6VdTqR/TXu1swWICttWOZ86rLQRWa9Lp+LQY22Om7uYx1Oudwmzp ykpQ== X-Gm-Message-State: AOAM532bcDU7MmO9WFN+MDI9x3neW9VZKYWzlBNm/PMk45Hw69CVAgyg sr6ZrWgjpmKKRXcUntgwiuzgAlQNZUo= X-Received: by 2002:a1c:2157:: with SMTP id h84mr48334366wmh.35.1594042434299; Mon, 06 Jul 2020 06:33:54 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.33.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:33:53 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Guenter Roeck , Heikki Krogerus , Hans de Goede Subject: [PATCH 08/32] usb: typec: tcpm: tcpm: Remove dangling unused 'struct tcpm_altmode_ops' Date: Mon, 6 Jul 2020 14:33:17 +0100 Message-Id: <20200706133341.476881-9-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Looks as though a079973f462a3 ("usb: typec: tcpm: Remove tcpc_config configuration mechanism") pulled out the only use of 'tcpm_altmode_ops' last year. No need to keep it around. Fixes the following W=1 kernel build warning(s): drivers/usb/typec/tcpm/tcpm.c:1551:39: warning: ‘tcpm_altmode_ops’ defined but not used [-Wunused-const-variable=] 1551 | static const struct typec_altmode_ops tcpm_altmode_ops = { | ^~~~~~~~~~~~~~~~ Cc: Guenter Roeck Cc: Heikki Krogerus Cc: Hans de Goede Signed-off-by: Lee Jones --- drivers/usb/typec/tcpm/tcpm.c | 51 ----------------------------------- 1 file changed, 51 deletions(-) -- 2.25.1 diff --git a/drivers/usb/typec/tcpm/tcpm.c b/drivers/usb/typec/tcpm/tcpm.c index 82b19ebd7838e..d6913eb0ea54d 100644 --- a/drivers/usb/typec/tcpm/tcpm.c +++ b/drivers/usb/typec/tcpm/tcpm.c @@ -1503,57 +1503,6 @@ static int tcpm_validate_caps(struct tcpm_port *port, const u32 *pdo, return 0; } -static int tcpm_altmode_enter(struct typec_altmode *altmode, u32 *vdo) -{ - struct tcpm_port *port = typec_altmode_get_drvdata(altmode); - u32 header; - - mutex_lock(&port->lock); - header = VDO(altmode->svid, vdo ? 2 : 1, CMD_ENTER_MODE); - header |= VDO_OPOS(altmode->mode); - - tcpm_queue_vdm(port, header, vdo, vdo ? 1 : 0); - mod_delayed_work(port->wq, &port->vdm_state_machine, 0); - mutex_unlock(&port->lock); - - return 0; -} - -static int tcpm_altmode_exit(struct typec_altmode *altmode) -{ - struct tcpm_port *port = typec_altmode_get_drvdata(altmode); - u32 header; - - mutex_lock(&port->lock); - header = VDO(altmode->svid, 1, CMD_EXIT_MODE); - header |= VDO_OPOS(altmode->mode); - - tcpm_queue_vdm(port, header, NULL, 0); - mod_delayed_work(port->wq, &port->vdm_state_machine, 0); - mutex_unlock(&port->lock); - - return 0; -} - -static int tcpm_altmode_vdm(struct typec_altmode *altmode, - u32 header, const u32 *data, int count) -{ - struct tcpm_port *port = typec_altmode_get_drvdata(altmode); - - mutex_lock(&port->lock); - tcpm_queue_vdm(port, header, data, count - 1); - mod_delayed_work(port->wq, &port->vdm_state_machine, 0); - mutex_unlock(&port->lock); - - return 0; -} - -static const struct typec_altmode_ops tcpm_altmode_ops = { - .enter = tcpm_altmode_enter, - .exit = tcpm_altmode_exit, - .vdm = tcpm_altmode_vdm, -}; - /* * PD (data, control) command handling functions */ From patchwork Mon Jul 6 13:33:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234873 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4781281ilg; Mon, 6 Jul 2020 06:36:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKwyc09Gm6gBFgFGCBR/y0t5UCDNc0jiq6dO98qFe317OkyKdiyiM4Ub48Y9fFvwqeROqK X-Received: by 2002:aa7:d845:: with SMTP id f5mr54527802eds.162.1594042570356; Mon, 06 Jul 2020 06:36:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042570; cv=none; d=google.com; s=arc-20160816; b=ICaI/r3XBaRaT/IPo0W9nHOmKENMTxWhNNdEj3luqzkjFvNBy0xhclmGnuT7EmsRrQ 2bEBlYdU/109p1NqhLa1F8GAGizUdVruZ6prdgZZp7BD2/aePkBgK3uQdEMG3zOmCsSg 12e2y46e7rdhcj7LLqqL32op6Sy76d9RNpMuUczLf15Jjb0pBIhenD5qitTGWLPBnX+h TGvNXwH3Ja1zuSGSmmbxrwHXvNcnEoysNm98pQZLL1NrA8pmu0gxgpdKz+4vVqYwA1Jb J5L7TMOyf3tdwhQCCX/eIx23CY2Li0bs04vnvdMSkpeJWj+UtUEU1OfvmL1fTotg/meR dzSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ji1N62aOzIlUoLXMMPXkjOjy05RAsl1PzqHcrZ4EBKA=; b=vDnzAKYgljCo8LvkWDI34IcSPX46rVgC4dr4doGVsln3LqY9RL2a8jOheUiCAziV3u 56G4Qk+UBmQoO9GOHe5JMPZQ+TvBL/OwqOb2vxJBr3+6gmPJva/CBdlD9DJ3iaEQTppD NoqR/WkAbD/EygeNCaiIl49tLb4u002k9kfFsBcOuRpUlya1kUu2LD3ngIwEXBnKzyJq pjtBHFtgGJIqNfHSq0V0xJdmyyTwltGpahjzeAx3I0rBvw5g2++Z/IO5ync1uVTn7guW Sj7nFAsQrd1yGnLPFltScdYNkrI+jwymkdR87i+LkgfiFLXJ314oY03L7dfQq30nHpgt YHRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I8l3xiex; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ef10si11913429ejb.519.2020.07.06.06.36.10; Mon, 06 Jul 2020 06:36:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=I8l3xiex; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729177AbgGFNd6 (ORCPT + 5 others); Mon, 6 Jul 2020 09:33:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729280AbgGFNd5 (ORCPT ); Mon, 6 Jul 2020 09:33:57 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0FB1C061794 for ; Mon, 6 Jul 2020 06:33:56 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id l17so39372868wmj.0 for ; Mon, 06 Jul 2020 06:33:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ji1N62aOzIlUoLXMMPXkjOjy05RAsl1PzqHcrZ4EBKA=; b=I8l3xiexa/B1JIJEy1ir1PTxhlP/Lj9nM5zUnk6opUF/S6bgIchyQgbqNywo7zJNiU CoQXFx15q77CxSXe0ZRx0B6u3hwF7yxGPD7hJYpfn2bPzbIVajT32LzABpWqvW/U963W rUfVYKYz0ltiAGwB2k/N9DNXTj1wqtMBeV3wSCHJspqZ6qVlC/PJj7n8N2Tb7Ciy5Hs1 YD5+rf7z0Dd+Kbwx1fUXzNmr9b19aJ2JgHb6AopyQqJZZVptVhkZMnlql+lUz0ue0xbF 8kR979vuUk/grhSLXPoSlAHDyv5f75q8fcqNYTPokp9FBt6qc7wkfcTDvRW9v3MCYpNU OHKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ji1N62aOzIlUoLXMMPXkjOjy05RAsl1PzqHcrZ4EBKA=; b=OoAoaCstiaLKagXRNOMCorkaBTlPZdHs3rwBTMopCyoLw+NPziSrrybdv9xgeOpwMX f/m0aTZR2IaRdPuuVD3bZ7Km3FMeeEAjPr+MKagu2GTASxwyfqYl88x7SQBnTZJmbA54 nSrCF0UjQZiPDp0advBdMheDWbZwSGyw0hTWOTft6AkxsEeGILcGvLVnL209GtpcnIBi jiiMTLv3AyU8jceM7d0hI/BkOihoPMklXh80QaY3Pc6SVSRdwSb4gj0cfbLqyr8nVugr gN8KsyaR86R6Lfw8yOObfc/byOhtASV78ZSJlgQuBh/GOZ8no3znzDOY3gGhwNwuj80T d8fA== X-Gm-Message-State: AOAM530tljfWy4DpZbEGP3bj5JwEoMoTkypBEh2yE9sxPZyJ9dzvZcnm V5p6pWLdUADFXNA7dX5EYWUIrA== X-Received: by 2002:a1c:7306:: with SMTP id d6mr39593585wmb.113.1594042435462; Mon, 06 Jul 2020 06:33:55 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.33.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:33:54 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Cristian Birsan , Felipe Balbi , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches Subject: [PATCH 09/32] usb: gadget: udc: atmel_usba_udc: Remove set but unused variable 'pp' Date: Mon, 6 Jul 2020 14:33:18 +0100 Message-Id: <20200706133341.476881-10-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Commit e78355b577c4b ("usb: gadget: udc: atmel: Don't use DT to configure end point") pulled out all functionality dealing with 'pp'. Fixes the following W=1 kernel build warning(s): drivers/usb/gadget/udc/atmel_usba_udc.c: In function ‘atmel_udc_of_init’: drivers/usb/gadget/udc/atmel_usba_udc.c:2106:22: warning: variable ‘pp’ set but not used [-Wunused-but-set-variable] 2106 | struct device_node *pp; | ^~ Cc: Cristian Birsan Cc: Felipe Balbi Cc: Nicolas Ferre Cc: Alexandre Belloni Cc: Ludovic Desroches Signed-off-by: Lee Jones --- drivers/usb/gadget/udc/atmel_usba_udc.c | 3 --- 1 file changed, 3 deletions(-) -- 2.25.1 diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c index d69f61ff01819..a10b8d406e62b 100644 --- a/drivers/usb/gadget/udc/atmel_usba_udc.c +++ b/drivers/usb/gadget/udc/atmel_usba_udc.c @@ -2103,7 +2103,6 @@ static struct usba_ep * atmel_udc_of_init(struct platform_device *pdev, { struct device_node *np = pdev->dev.of_node; const struct of_device_id *match; - struct device_node *pp; int i, ret; struct usba_ep *eps, *ep; const struct usba_udc_config *udc_config; @@ -2128,7 +2127,6 @@ static struct usba_ep * atmel_udc_of_init(struct platform_device *pdev, GPIOD_IN); if (fifo_mode == 0) { - pp = NULL; udc->num_ep = udc_config->num_ep; udc->configured_ep = 1; } else { @@ -2144,7 +2142,6 @@ static struct usba_ep * atmel_udc_of_init(struct platform_device *pdev, INIT_LIST_HEAD(&eps[0].ep.ep_list); - pp = NULL; i = 0; while (i < udc->num_ep) { const struct usba_ep_config *ep_cfg = &udc_config->config[i]; From patchwork Mon Jul 6 13:33:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234874 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4781278ilg; Mon, 6 Jul 2020 06:36:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsf4GmAmUtuC6ZV6limtCLALK+oXVoIkgPBvCJxsLZVJwaAnu/4YralAGA/fvf1PyRB5mC X-Received: by 2002:a17:906:f298:: with SMTP id gu24mr42785706ejb.302.1594042568968; Mon, 06 Jul 2020 06:36:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042568; cv=none; d=google.com; s=arc-20160816; b=bKXplrLRFMYEpn/pZV8n1KJ+M8tqZU5jDSeyF63NVIJLYqiMD/jGQMpEqqyrj0ULSZ QtqGPTfP1TURP04ntV/DhK8lp0Fk+rY+5ouJRoou7iTrKbJKui7dWLKFXn3ByLHTFlFS WkJBs7DPYw/3LwwHZ/l2rQyKw/6xj2AeYDLjDJCxgfZX8kCuwR3lKmpl7HboZWqS2CjS z8xmh+asQq8HKOIcikpjaZc7NfPy2hIEBQCU2SJ9iVc6/xJRbAQp5BpcaneYWbOMl4JS uUpvv1lvfopodolQKwbEgwX2QNXQtDfgPzb4XIKYdMRSSoYfpBZIUlkGQKhXHq/VhcNQ fWsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=n7/LG8QKfAsUZ5xCCuI2vnf7Sj+c5EJvPq+Icl9Ejy0=; b=nm5vRMiQI6VUvVwzikw5mFIRIDJ9hDsGBMtz6xZttBr0fosWtCYvd9+XamP1xyGSju dGwiTexgEXQOOcU1aQA5rjWRSJnojweD6zkfmXVz3HMIDFxaW+ZGblTSeqLLKaYt3W0Y Iv9Efmt5vl5ToEiJSW0FYv1pbge/nxpXoQ2s5SN8OQslRVlCnv3URM4xG63IgjVyqII8 xRQxRopd0mN4mrbjtTvsJ9goOhWzYO5mqOLMllhhtfxdrtk/KgyQsOfN7lBvxmmLnL6N q9CWfPrKU5o1QoDFwS2sBuxC0QT9/iPoe0BZ1z4RWdApxt9fGtZj84/AsxFJS3OoNNpM 6FNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=os0d0dx8; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ef10si11913429ejb.519.2020.07.06.06.36.08; Mon, 06 Jul 2020 06:36:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=os0d0dx8; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729569AbgGFNgH (ORCPT + 5 others); Mon, 6 Jul 2020 09:36:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729284AbgGFNd6 (ORCPT ); Mon, 6 Jul 2020 09:33:58 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 328F5C061794 for ; Mon, 6 Jul 2020 06:33:58 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id f18so32880708wrs.0 for ; Mon, 06 Jul 2020 06:33:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=n7/LG8QKfAsUZ5xCCuI2vnf7Sj+c5EJvPq+Icl9Ejy0=; b=os0d0dx8lY4PrV0VCx4VZCbRVDM3s7vVVnY/vA+18e1qU3P3/R/bJTVXFEoxZBax3b H1evzJuHhO3Vf9lGtD/CevHBEjo0+SNdxVktW9IoKWmB/6rtywuxMeCHzwvvtwgP0gZv iDOnInpllmtroWuWZ0seJrk6D1D3YOVkjFObAGw+RXxVOq6bTk9TABngguksuBbbeMSb E+fx0zxFxP07AGEaRcKKn+ANTY3M6cY1izjCqRv23X6tLJUCdKZ3+bll9J/WTLpLQIvX SNlAaXxAnaPkVju6B1V7ZJ03U6SKfOX+L1LAEHgGxR58QOar2re6Pj23qdjIRBLb/rre aXJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=n7/LG8QKfAsUZ5xCCuI2vnf7Sj+c5EJvPq+Icl9Ejy0=; b=kGV7R9cOf1UlCpK3I3ld7jBGzcQdgEpO7vtDFOKgkuEGlRzWX4Fmb4W6rW2uJXF7ey drRtM/fTCx9lqins2BjSGA/fGF+R5gnrJ9hPeZd1JuqknDCKa737kfKncHnrJxsaMzaz 2VY0m5mhpDbfi9YiAcfRKtww7/jD1bFumuRHUp54X7cqceK99VjIj0kSdsk394Yq9dAj 0tL6BO9iKrlJX3UkzpMaozYBOjJPfHETPHYbb4HcT1o7ciudNokMvozc+IDMKH5MaEIG cM5+LWRSeOPE+TskaY65LFete2Jj94s5KDdqNbNBWKVYZs+MA6Fr+MZV2dsQPdv6DPrX ZPLQ== X-Gm-Message-State: AOAM531/lOOZtL5p9ILeJJIPhYcUA7++qPkkdhMN2EGAYwvFI4XcGrkL lCQ3jCcbPY+4oH1KOb0smtv0+Q== X-Received: by 2002:a5d:4a42:: with SMTP id v2mr45407084wrs.33.1594042436907; Mon, 06 Jul 2020 06:33:56 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.33.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:33:56 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Felipe Balbi , Al Borchers Subject: [PATCH 10/32] usb: gadget: legacy: nokia: Remove unused static variable 'product_nokia' Date: Mon, 6 Jul 2020 14:33:19 +0100 Message-Id: <20200706133341.476881-11-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Looks as though it's never been used. Driver was introduced in 2010. Fixes the following W=1 kernel build warning(s): drivers/usb/gadget/legacy/nokia.c:65:19: warning: ‘product_nokia’ defined but not used [-Wunused-const-variable=] 65 | static const char product_nokia[] = NOKIA_LONG_NAME; | ^~~~~~~~~~~~~ Cc: Felipe Balbi Cc: Al Borchers Signed-off-by: Lee Jones --- drivers/usb/gadget/legacy/nokia.c | 1 - 1 file changed, 1 deletion(-) -- 2.25.1 diff --git a/drivers/usb/gadget/legacy/nokia.c b/drivers/usb/gadget/legacy/nokia.c index 978c1a34a9320..2e15f9a32ce9f 100644 --- a/drivers/usb/gadget/legacy/nokia.c +++ b/drivers/usb/gadget/legacy/nokia.c @@ -62,7 +62,6 @@ FSG_MODULE_PARAMETERS(/* no prefix */, fsg_mod_data); #define STRING_DESCRIPTION_IDX USB_GADGET_FIRST_AVAIL_IDX static char manufacturer_nokia[] = "Nokia"; -static const char product_nokia[] = NOKIA_LONG_NAME; static const char description_nokia[] = "PC-Suite Configuration"; static struct usb_string strings_dev[] = { From patchwork Mon Jul 6 13:33:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234872 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4781253ilg; Mon, 6 Jul 2020 06:36:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzg7JDTMYE7EZUvG6vMnI6PxV8y8X40xoNMyg6THlumRnvq8H4yMb7nF551NU6GZXnrtkc5 X-Received: by 2002:a17:906:c7c3:: with SMTP id dc3mr29240906ejb.376.1594042568405; Mon, 06 Jul 2020 06:36:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042568; cv=none; d=google.com; s=arc-20160816; b=B2ZHtAiBMvCDYjmNZswfqPOrVmRFg22Od4wm6Cs7HdGTdf0Vlp69snpQTU68JFeweL lnEFa/XhRrQA+5KemW1T5PjeVbu8T8h6wLLQ0Q5TblMoRWVOm6jKXycn/nJ9lKrmnEJp wo8Mvb8NYnHGggwbdaOnaqs/N9stUeG5RoP5dSbTdMThGU0wRboNtZ/EIuXItCEr0Ce9 TIGOj6ncsgZimnh25ce8EJTccbmPB0VvWYsT2ILytWdrzMyLLazVtPyvPuRmw36O+vwz YzdxETingINgPd5wNBNm/iecVJMoHiuPNoOguFXIDwybPKDtrZkrjD4oXJ/mf6cq2fgD gpgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=F3N+fzezv1MWYIkYTGHlx08nxeXYi/20m77vgS5T6os=; b=qrH4rrYu8N97uAWv3wQ/tZMMZM5Cc4WBIzsOZDo5ZxA7rymDMyeYhIyIGUhbDO0nKw 9E905G8oobJ1+TnLZjeNhH7aV2c1YA8gY6uAiBoEW5E2qWqSlvixKE7vBR/v5POxTEa1 BFag7Ur3jz7KsBPdyPmXjOSe1HFmwfae7wOFA8FWkDT8jybh0KGuRyByozIOY5XMrkY5 Lqu0cvuiUA6DruIclPhp2ZubEBwBBtSjfIL2LNInmKiFin+R51gK1FPaKjNCWg61hhLl V7R8AsAjvHg6nP6sV3YxxRpALCqyy+VhxHE1lHu1wj6QPvlurgafN3KhEjD2WzSv0sbn /SnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BpLIhIM9; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ef10si11913429ejb.519.2020.07.06.06.36.08; Mon, 06 Jul 2020 06:36:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=BpLIhIM9; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729566AbgGFNgH (ORCPT + 5 others); Mon, 6 Jul 2020 09:36:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729289AbgGFNd7 (ORCPT ); Mon, 6 Jul 2020 09:33:59 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57B60C061755 for ; Mon, 6 Jul 2020 06:33:59 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id l17so39373034wmj.0 for ; Mon, 06 Jul 2020 06:33:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=F3N+fzezv1MWYIkYTGHlx08nxeXYi/20m77vgS5T6os=; b=BpLIhIM9HO9QX/91QqPb0axOZ+f3MusDB+2c/VFHx/69xTyIJRCZQeP3ZiC1KHq3cQ MPMyfOETWx+kDYSAp2ES8FPPerVyUzUHVoDK4ZE3kx0lHJumW3So3ckLNKz1ZjU/aRgM 9UPBYbokmdIFpUzxdVL/M8Xe6mMwTbF2QrISRvdMpcpb/a4z6XCoUGhvmgYxiOia5lXw fF0G+NETlZp53qRczU0psHvtC9Do08Z+EKc5a0LRflRb6uiSioO1p6Oi7nnKQIyPsFsS iyd7IeCm1h4s1m2dHMRE4UnfHf2FurtJS8GyFbNTXVkCDhdfO9Xv5XIEDIGWp6x38Uyb stNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=F3N+fzezv1MWYIkYTGHlx08nxeXYi/20m77vgS5T6os=; b=JHbuNJDIQRm/W1C4n+V7MakFVYfSBUxn72pQgrKun1O7rGVn2eLVaKoMdnVr1kageO MDQCcm/UjdqtQ5q4cROPhNVkxvt9hIHHey36b6ux0DwT2MR4SNA+Efp1hIoYImcYQnTu VWUe6gXmBmD9mX9fKM7UsP4X6Zgrh/5ZHvl7zKiA0i5vPBl7RG09z9vDfazuYb7UFFgn kJyr0W6/dgczYNRqy7jPwkDxcR1XmFKs84nERH1EiLrPlmQJ6dFg68mJVBeL4LgxGFs6 lptWVOOJa6XvS4PR/Fq2CYN1/rfs14sbtfFD96+OoY4l8zgWlvWg80MFBDWUTNe8Jgqe 6CBQ== X-Gm-Message-State: AOAM533JrDSRMbMATOp46iFW5TNzRGvXcTkjDdGptJw1nzMIIVzmaTtX sWNHQND/Ii66xo+bdPHzEVCWXg== X-Received: by 2002:a7b:c013:: with SMTP id c19mr48981840wmb.158.1594042438048; Mon, 06 Jul 2020 06:33:58 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.33.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:33:57 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Felipe Balbi , David Howells , Michal Nazarewicz Subject: [PATCH 11/32] usb: gadget: function: f_fs: Demote function header which is clearly not kerneldoc Date: Mon, 6 Jul 2020 14:33:20 +0100 Message-Id: <20200706133341.476881-12-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org No attempt has been made to document the demoted function here. Fixes the following W=1 kernel build warning(s): drivers/usb/gadget/function/f_fs.c:2361: warning: Function parameter or member 'type' not described in '__ffs_data_do_os_desc' drivers/usb/gadget/function/f_fs.c:2361: warning: Function parameter or member 'h' not described in '__ffs_data_do_os_desc' drivers/usb/gadget/function/f_fs.c:2361: warning: Function parameter or member 'data' not described in '__ffs_data_do_os_desc' drivers/usb/gadget/function/f_fs.c:2361: warning: Function parameter or member 'len' not described in '__ffs_data_do_os_desc' drivers/usb/gadget/function/f_fs.c:2361: warning: Function parameter or member 'priv' not described in '__ffs_data_do_os_desc' Cc: Felipe Balbi Cc: David Howells Cc: Michal Nazarewicz Signed-off-by: Lee Jones --- drivers/usb/gadget/function/f_fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 diff --git a/drivers/usb/gadget/function/f_fs.c b/drivers/usb/gadget/function/f_fs.c index 490d353d5fdec..2d00ba0726453 100644 --- a/drivers/usb/gadget/function/f_fs.c +++ b/drivers/usb/gadget/function/f_fs.c @@ -2352,7 +2352,7 @@ static int __must_check ffs_do_os_descs(unsigned count, return _len - len; } -/** +/* * Validate contents of the buffer from userspace related to OS descriptors. */ static int __ffs_data_do_os_desc(enum ffs_os_desc_type type, From patchwork Mon Jul 6 13:33:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234871 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4781214ilg; Mon, 6 Jul 2020 06:36:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHCpHfuaHZZgq60jM3xiZyDsgiCKC0P7nIqJZUI0WGm5AYTM6Sc7CILfUIxvjfj3iLpe0W X-Received: by 2002:aa7:da06:: with SMTP id r6mr45312882eds.189.1594042566112; Mon, 06 Jul 2020 06:36:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042566; cv=none; d=google.com; s=arc-20160816; b=eCcmSmonfOWrMyuv44/owY+G32lT5bBRcQplpnO3CH9m/iw4FyQfSJpM5dhm/ztVRO GbqEInH2ATuiXAbuTQp5xxJ1zDx0hU8+Yr682LBKkJjW2BukxanFg5g+hlEifc2lSpwu eS6gtw76wRHak71jqSseDH8CwojJwkjHU++qjmiUTCbVp2ANFh5XE9jvrwzGUBrNEsaq bmOWL5YEqETUUXhNsjcGf6pMeG2FL09kxsO5pqLz49I4tsTi+D2LFhAGoAPUzCPgdIYN qgQ6N4wkQqlKBv3PvHbkoEVrR++AtTXSUnwldJcwucRcPimkYnys023VFcU6f2a6S8oK mDzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FTimBbBqnMIcQ4eF+VH5m9hye6WMpkC2MlXIy//Z9tM=; b=K/0bKe6WfNpxK4twtdoxoCbUatWbruds3Uxd+LKaBbGybhvhg7M6eaioZiwLWDs5mO 1ifje36m0foHP+JS53z6FGCwwqpnEp81Zu3dQgYgCPmG6EGWFCUSZz7naHBWQ1reCc0i P5uC7wT7BL/HqdIMKDZiy9uQNdgo7VD4isA8+LViJXzGpUrsi3BRNHvWX3iNd4siZ6+h rR2YrWjougO2AdTzdoSTnFTZTzbzfm1V2Pdc8hFLJrbGQSMpYbZfiXrYWrFSSP++CPsh p2NrYTtij1mkP6nVDnbEGaZElxB1jZBcB8hStKCkWKsksqVaBsCyaurnYUiHBchrMP+Y Fqmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bn951av1; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ef10si11913429ejb.519.2020.07.06.06.36.05; Mon, 06 Jul 2020 06:36:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=bn951av1; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729561AbgGFNgB (ORCPT + 5 others); Mon, 6 Jul 2020 09:36:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729297AbgGFNeA (ORCPT ); Mon, 6 Jul 2020 09:34:00 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69239C061755 for ; Mon, 6 Jul 2020 06:34:00 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id o2so42118614wmh.2 for ; Mon, 06 Jul 2020 06:34:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FTimBbBqnMIcQ4eF+VH5m9hye6WMpkC2MlXIy//Z9tM=; b=bn951av1tIBYht5lk9qvY08u0Jgt22BUCKc6vohyqII3OtrGaVeusFgOTPFhqV+i2k p06vfQqGi7JFF4w8LRU6xPFLkIdxuI9J0W8p4lHaQpIytn8kmIblmkWpEIO17UKu+gPf FXeWg/QFad9y2n/5Q8UzWgI3E11IBWoAiWlUX7yiymCFcvPQex79oxP8yohjP6Wsdjol SVkyuBtzjZ/SHYPWMfIDXcXPdKkuaWT6aAmYFvyBne/hm6iaMSsqC427PTvk+2Dq8+ki W7eZeeuLkAhkX4IudL6VGhPcZ6DO+hSxad4t9YaHQaSXU7OGASjpxkSL2XDydREO5DXp giBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FTimBbBqnMIcQ4eF+VH5m9hye6WMpkC2MlXIy//Z9tM=; b=KZ20z7Ug58gyTfqJDvbYXxQ6mQ+oMRDLvG5cVuYdIcCImktLRQICVie4GQHOZYdz9g j5Lwc0m8Opg0bAs0X829N33ZYGdRHpZa24OpY6fdmuBOVGbQX4+8BN7SnvfZhrHNaflV H8j/wJ6gRSRhze3FCzGWljWZc9Ji1YIdKmodh+IcfaSqLFNoZC/3pfodPj6DQnQfbY91 y3FSD74CMxshCZcNDbs3d7Q1C+jQfvI9B10y9m9F15B7wDk8fMbN1G6Aan4D9X0e/ooG vKvIZj5QP9w7bwaNLKjJ0r/2FA4SxCCs7Kxn89bl34cwGuIicHlYFz/mQAz3Y7EH53LY 3eIw== X-Gm-Message-State: AOAM53062RyxNkcKxkHjw+nBQ5S3IKcuEqmWDXVqDpO0d7rL1rmCwCJt xuhmi4rDmzXEc3CAc0Rf6jXUwg== X-Received: by 2002:a1c:dfd6:: with SMTP id w205mr52128827wmg.118.1594042439124; Mon, 06 Jul 2020 06:33:59 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.33.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:33:58 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Felipe Balbi , Vladimir Zapolskiy , Sylvain Lemieux , Kevin Wells , Roland Stigge Subject: [PATCH 12/32] usb: gadget: udc: lpc32xx_udc: Staticify 2 local functions Date: Mon, 6 Jul 2020 14:33:21 +0100 Message-Id: <20200706133341.476881-13-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org These are not used outside of this sourcefile, so make them static. Fixes the following W=1 kernel build warning(s): drivers/usb/gadget/udc/lpc32xx_udc.c:1929:6: warning: no previous prototype for ‘udc_send_in_zlp’ [-Wmissing-prototypes] 1929 | void udc_send_in_zlp(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep) | ^~~~~~~~~~~~~~~ drivers/usb/gadget/udc/lpc32xx_udc.c:1943:6: warning: no previous prototype for ‘udc_handle_eps’ [-Wmissing-prototypes] 1943 | void udc_handle_eps(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep) | ^~~~~~~~~~~~~~ Cc: Felipe Balbi Cc: Vladimir Zapolskiy Cc: Sylvain Lemieux Cc: Kevin Wells Cc: Roland Stigge Signed-off-by: Lee Jones --- drivers/usb/gadget/udc/lpc32xx_udc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.25.1 Acked-by: Vladimir Zapolskiy diff --git a/drivers/usb/gadget/udc/lpc32xx_udc.c b/drivers/usb/gadget/udc/lpc32xx_udc.c index 465d0b7c6522a..4a112670cc6c4 100644 --- a/drivers/usb/gadget/udc/lpc32xx_udc.c +++ b/drivers/usb/gadget/udc/lpc32xx_udc.c @@ -1926,7 +1926,7 @@ static const struct usb_ep_ops lpc32xx_ep_ops = { }; /* Send a ZLP on a non-0 IN EP */ -void udc_send_in_zlp(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep) +static void udc_send_in_zlp(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep) { /* Clear EP status */ udc_clearep_getsts(udc, ep->hwep_num); @@ -1940,7 +1940,7 @@ void udc_send_in_zlp(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep) * This function will only be called when a delayed ZLP needs to be sent out * after a DMA transfer has filled both buffers. */ -void udc_handle_eps(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep) +static void udc_handle_eps(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep) { u32 epstatus; struct lpc32xx_request *req; From patchwork Mon Jul 6 13:33:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234869 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4781148ilg; Mon, 6 Jul 2020 06:36:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRFelZ6T6jmp3dkGTisCjdLzFs2tsvZpkYLU1VHIHTIY5EKPxQbWZyqeOKvdl50+9sDRhc X-Received: by 2002:a17:907:7283:: with SMTP id dt3mr44849649ejc.195.1594042559869; Mon, 06 Jul 2020 06:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042559; cv=none; d=google.com; s=arc-20160816; b=Vh+Ept+qoS5aLbwdaIrs2SgqpmvTLLBAH9k7e/nQjyoJc7KCciTIKygIzN2HzL5p6z rDStxpQ9G2Tt6YbHskbAv8FLw5SNFPP1bnVACTxjgeTlJimmkha+0YuY1jetSXhPNcY/ +OblY3Hpfa/YIlJ3kkAIq4Kks8FOfElg0/vq/b1b+FbhD6TrtNUPGlHqkSJuNggEH9/e kt96j/Ni/aK9oZ8MHc/aG1T0Q5goyqn64n07Q6YxuN+Q/mMe0h2E1jXliDu+rbyS9vhl 6bA7qKnW29XZWkzlNKUphXwoJdzhZ8fHcyhm8BR8WSeb6vy/eyIMK2891XCtJ1n8Bnbi 8vKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fFhBoF9F+cplYOt0drBYrKvo/NCkeTyoUMk2XPNxJS4=; b=UtwO/XiUf1wqTyIisfVTQ7mrbFYyCCaL09Z13iwpP8Yk/Ctzq37IQ8/Vv86MPNpqxp G9yl+4AzCm16h20Q7J4Tsf/wChRC+GSSRPlvaOux8wILzL1rUJqLG1g2P0l4K8hBDxTM XChalaBDH7AzKOXykCXBBBqDIsZOFRH6K19wIHF5A7R4CbI5MV5iQ69AEAZlvUDQCLkw V9/IMaq0M/tyTL4juc6NDthIx9juFoNhYEMBusKmh137Mn4RXRLNvkab7Y/JEE+CSxNN +cV7Ix87gX7YbkEOcgrZmuhIY2/Vns+WFW9YabfgjEesXBE7ndSrHgaYfNBS4jiA+suU MIOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OmZFfKsZ; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o9si13297954edr.292.2020.07.06.06.35.59; Mon, 06 Jul 2020 06:35:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=OmZFfKsZ; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729538AbgGFNfs (ORCPT + 5 others); Mon, 6 Jul 2020 09:35:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729302AbgGFNeB (ORCPT ); Mon, 6 Jul 2020 09:34:01 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60021C061755 for ; Mon, 6 Jul 2020 06:34:01 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id o2so42118722wmh.2 for ; Mon, 06 Jul 2020 06:34:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fFhBoF9F+cplYOt0drBYrKvo/NCkeTyoUMk2XPNxJS4=; b=OmZFfKsZE3nw2Rx7QazBJNlNeA+U8z1Z2PcNhcqjoK68z1sVetkUL2vJdCbMgfCx+z GQ5OdTbXa+xGGweQRAIjQY+yIMbO16Ik2oUI+cRDjkln/G96vTY+Sv3Hmg9wjeMj9Moe wjup2WRBceFy+RvHDn6sGC88K+miXgtBtFdiQiKW7ax7JwncaSGkDlPgFdll46+6/YiB c2Hvox1thv7IHBF2cFtkUXRSO0tVbQdaKgKzefw5AxbQcMOI86AnSy5xCXNu/8SdAEfj tMQN++j0iRkOEy/9hGk3KCKGViLlrFbGp+lhcUlgAE3JBu5bqpBfe9atSyQizMIJsTA+ txEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fFhBoF9F+cplYOt0drBYrKvo/NCkeTyoUMk2XPNxJS4=; b=mTiS31Z0d69Bt5WZvVKcHcE5hi1ITgtO2GVSwv1y2TBNQOCNlIS4uD+Mkimy2U7Qck 8cbbSuEUrwlqbwQLvX0GNGu+AymWOPHeEZJYyZ0MKIyh7c0EuUMwv2cYa+E1hLHGPL2D H9dpRPkDxfmYIB6naOKqwDoITkfpkI/AZoppSp5ALOjQheassrlG7XmFl/A0M6TjwRuA ASN0kd6j/nOuSulc6v7b4aI7O7FXh4PyGsxNTbyyjdvClgkLbPbxBUCMFXqJTtgoKvLZ mKJDX+A0RGLQ3oqrOFroyEs+zHjcJMMAlrsJVjhBJDda2+QYPDJBg2O5ZKBYaCwkR1c+ uQZw== X-Gm-Message-State: AOAM533C/O/yAD24fpcMjZes6aL0gNZ71BG9qHJy0GJM3R+FUOCkWHpB S4oh5AJjPT4Mmx05tB9yFkKKZw== X-Received: by 2002:a1c:ed0b:: with SMTP id l11mr2416268wmh.121.1594042440115; Mon, 06 Jul 2020 06:34:00 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.33.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:33:59 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Yoshihiro Shimoda Subject: [PATCH 13/32] usb: host: r8a66597-hcd: Remove set, then over-written, but never used variable 'tmp' Date: Mon, 6 Jul 2020 14:33:22 +0100 Message-Id: <20200706133341.476881-14-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Looks like it's been this way since the driver's inception in 2007. Fixes the following W=1 kernel build warning(s): drivers/usb/host/r8a66597-hcd.c: In function ‘clear_all_buffer’: drivers/usb/host/r8a66597-hcd.c:478:6: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable] 478 | u16 tmp; | ^~~ Cc: Yoshihiro Shimoda Signed-off-by: Lee Jones --- drivers/usb/host/r8a66597-hcd.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) -- 2.25.1 diff --git a/drivers/usb/host/r8a66597-hcd.c b/drivers/usb/host/r8a66597-hcd.c index 0c03ac6b02137..63719cdf6a4e6 100644 --- a/drivers/usb/host/r8a66597-hcd.c +++ b/drivers/usb/host/r8a66597-hcd.c @@ -475,16 +475,14 @@ static void pipe_stop(struct r8a66597 *r8a66597, struct r8a66597_pipe *pipe) static void clear_all_buffer(struct r8a66597 *r8a66597, struct r8a66597_pipe *pipe) { - u16 tmp; - if (!pipe || pipe->info.pipenum == 0) return; pipe_stop(r8a66597, pipe); r8a66597_bset(r8a66597, ACLRM, pipe->pipectr); - tmp = r8a66597_read(r8a66597, pipe->pipectr); - tmp = r8a66597_read(r8a66597, pipe->pipectr); - tmp = r8a66597_read(r8a66597, pipe->pipectr); + r8a66597_read(r8a66597, pipe->pipectr); + r8a66597_read(r8a66597, pipe->pipectr); + r8a66597_read(r8a66597, pipe->pipectr); r8a66597_bclr(r8a66597, ACLRM, pipe->pipectr); } From patchwork Mon Jul 6 13:33:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234868 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4780921ilg; Mon, 6 Jul 2020 06:35:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkXfFO2qlncfICxDdeaIsFjXRAOaoOvi8TWrPLhzEKH43bF94GXi56tFN4BW7VPB0zD0gy X-Received: by 2002:a17:906:c285:: with SMTP id r5mr42283333ejz.153.1594042543163; Mon, 06 Jul 2020 06:35:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042543; cv=none; d=google.com; s=arc-20160816; b=d6VOLuAUuxpa2TBM0PeLzcKppQ8qBw3Vog/WH4mK5tphN6MOJ3zkuHZAM97Wtur5fz NqYSkv70+Z+oQZXrxS6jRy1cR+0maa1I/5E5eLLnOMMPAEEZXoBfOA+bAKEGYXzHClrT sYED/0DHpvIUCfCfvrMP2SdCSOdWygHjXCs7qQ2JWJ3yg3fVuI6Q519zLcmL2uuRhsJ2 92X00LhEQEqXxLDgWdwm4DK4nfN4e8leRdOv/Ngu6YCrDWIh4HORvH4C77QodpudJ5ni uA5SxKEXhIirKS42IpGYClgdWtJz0iCUBYvJ131RU3Gv8QaTaMrH66Jt4vvWdNWb4YYi Seew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KCHAGi+yis7rT4RcJ1xkGNsqK+uVMhPXLaq/wOq2nXg=; b=bKaH74QS7cDv+N4PyTZT6KBQTVdMxPtWt0CicB1FVzLKLxFjmyn+TAxJ+CaNbCDX9U o33taUhlp4LYQosi/mdOS2SLkVFWdxykxszWqAOtKOEg+A3IFbESdF2uBGc/0s2LB7YM AP2YAB3fxdNaZwh/k40oPpHqKANw43GrI0udkD5FDOjDPY2xD4QMRQRquzjHH4meU3Gt 71skE8pcf0xLUGs4sAzmWMXh6oXlm0124SVPHvReKvQqDChltHOz2sLMv1Sx0OEu3eOT dWH6m/ViuZ/g/1lyCk1h5CKe3Ug2UQVErh7OlzubIPqtHEPkF6g403BZoVw/XLmhJw+0 3BnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="d1ILBA/2"; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h14si13120789edv.119.2020.07.06.06.35.43; Mon, 06 Jul 2020 06:35:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b="d1ILBA/2"; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729314AbgGFNeF (ORCPT + 5 others); Mon, 6 Jul 2020 09:34:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729305AbgGFNeC (ORCPT ); Mon, 6 Jul 2020 09:34:02 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91BA7C061755 for ; Mon, 6 Jul 2020 06:34:02 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id f18so32881053wrs.0 for ; Mon, 06 Jul 2020 06:34:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KCHAGi+yis7rT4RcJ1xkGNsqK+uVMhPXLaq/wOq2nXg=; b=d1ILBA/20Tq+wf0tqPOsJ+Q7ruJ9GVdOks6k+ffLS4tTGE0XaURNCIQ3lPi3D8MqNy 6bfpQGGIvvkd7dqLML2B/x3dDVz1X2KSrKeKImRiplCftwatlzk4iTY1bSQWuRoNS6CN n+d6tzIzTcqwW84lCy7LOKRcFOHHbSATtvadCsaCKyNI8wsUmOMuAtEzSoIoYXzf4TsO Pa25MqF0q1O3Onbn/OmoYNR44areZTUJ7E38CrsTHRAwH9fameB3YKH/n/EwJedUzvzp PiJOKFvVHKVlf5cdnE+5q7vJa6crbxjM7PG0iwmBGNtpdFRf+AbWmusFYIrj9TqmKxao h3pQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KCHAGi+yis7rT4RcJ1xkGNsqK+uVMhPXLaq/wOq2nXg=; b=cpblXl8Pu1Htvqp1rsBfKrsw2b5PnrbWV0WTcru4D9Kh7B9uMl1L3LqPAu3+jnH+nd bdgH7FOZdyTSWT9FPYyuAyzmcqPHY5cl5HzwqwLKw7WKWRBOeo4rnbFQUSUu9hfu7VbV DGtzxZIzXMvQY5xR5OchDR80Wr18OA6gj/UyfYfNeJ2ag2ytCPO3QdjBm37vTA2Fk+ni F9iEW67v735eIVbGXJa7VvQAUlAA3exl51jAm5gQOd5Ti0tBW6+jYuMO2mycbqdU6m9c gyCY9fAIUyINmeatRzxO+rFv9BSIHBS2qxO6RyYAImah+27GX6p7iOvHrnBs+CUlgxbt 5Q9w== X-Gm-Message-State: AOAM532G0qOP7DvnLYMIaLOb0PKU4rHKfx0a9jmCh4EE2o4V3G5ghwID JRoX+kkwbUDYukDeSEFZS8c1Sw== X-Received: by 2002:a5d:5706:: with SMTP id a6mr13466028wrv.328.1594042441319; Mon, 06 Jul 2020 06:34:01 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.34.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:34:00 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Felipe Balbi , Chao Xie , Neil Zhang Subject: [PATCH 14/32] usb: gadget: udc: mv_udc_core: Remove unused static const variable 'driver_desc' Date: Mon, 6 Jul 2020 14:33:23 +0100 Message-Id: <20200706133341.476881-15-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Looks as though it's never been used. Driver was introduced in 2014. Fixes the following W=1 kernel build warning(s): drivers/usb/gadget/udc/mv_udc_core.c:56:19: warning: ‘driver_desc’ defined but not used [-Wunused-const-variable=] 56 | static const char driver_desc[] = DRIVER_DESC; | ^~~~~~~~~~~ Cc: Felipe Balbi Cc: Chao Xie Cc: Neil Zhang Signed-off-by: Lee Jones --- drivers/usb/gadget/udc/mv_udc_core.c | 1 - 1 file changed, 1 deletion(-) -- 2.25.1 diff --git a/drivers/usb/gadget/udc/mv_udc_core.c b/drivers/usb/gadget/udc/mv_udc_core.c index 2384b55f9d3e8..0fb4ef464321d 100644 --- a/drivers/usb/gadget/udc/mv_udc_core.c +++ b/drivers/usb/gadget/udc/mv_udc_core.c @@ -53,7 +53,6 @@ static DECLARE_COMPLETION(release_done); static const char driver_name[] = "mv_udc"; -static const char driver_desc[] = DRIVER_DESC; static void nuke(struct mv_ep *ep, int status); static void stop_activity(struct mv_udc *udc, struct usb_gadget_driver *driver); From patchwork Mon Jul 6 13:33:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234870 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4781154ilg; Mon, 6 Jul 2020 06:36:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIobIL35HvAFWDCLdVHa/XVI332Vgy07YlOcEhSIOEC/GrNwnIIAZon6oALiQAuC6fFj35 X-Received: by 2002:aa7:dcc8:: with SMTP id w8mr57448496edu.305.1594042560295; Mon, 06 Jul 2020 06:36:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042560; cv=none; d=google.com; s=arc-20160816; b=RgYNtBV2DOZp9Ewt1NhDvB4RwHky8dPD4MPE2vbPhTzqrBDvm07lGmlewyyRWA9bww qYwtC9Po+1oHBo+235Y3h0wGJE7ugWz8wfmAnmGSKqRMchql1FmQgQovW0JoJVkgtUON 5aTAqyRQ2BYJuwPmIOLp1N4bRAWrleUSkjqJ57cSsB15LEuuE3ENPUQZmGNC2nJmSV/3 4jlFmC2010DxKAhweTozoVPm6rCn+mqjE9irgL/6rBariPy79BWCkJF3BHNyikuEikK7 UlxId1i6MJFreJ/RbQU7CvjftVO9ogQGHnWYMqHt2A1efsZzlq6YtOTK6xGbW3rZVzlk haFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=sSBmUEMtRAkmV+CU8DDs33V6Fj7L3lkyKFBYAuPbnWo=; b=e1pHCMQjksBtpuUmg8/1HZpPdDrrQ327M0nOJu60eMPyqgQjdmID7mwMSizpunzygp d2o7aQ9O+UgIIdTnxyr71vX2Ah1u75JWaKbcXp0HaIeMhZ3O0h4TnVc3gftpaGk/8zhc HV4dCBKGzp3SU7Whq2Nk4XxJTM+ntz7Fjs/4bL/Mdf20/AEIadEST4mo/OAeeu6ynbtu ywZQJZvYD8o2oUFwtgOwA14Lxjmw7VJZxY9bSaXtOP9hHRsi38FmU4wIBDqM/7ZkoRGG Y1uPNXKBQc8edhI7fRX6bgG+yBbyh3BvdxrhChkoZHQG4Eceh29OCAWTp8RyRoBZ6FGq +5tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LmBVebwT; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o9si13297954edr.292.2020.07.06.06.36.00; Mon, 06 Jul 2020 06:36:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=LmBVebwT; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729532AbgGFNfs (ORCPT + 5 others); Mon, 6 Jul 2020 09:35:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729308AbgGFNeE (ORCPT ); Mon, 6 Jul 2020 09:34:04 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD2E7C08C5E0 for ; Mon, 6 Jul 2020 06:34:03 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id l17so39373340wmj.0 for ; Mon, 06 Jul 2020 06:34:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sSBmUEMtRAkmV+CU8DDs33V6Fj7L3lkyKFBYAuPbnWo=; b=LmBVebwTpb3hcf8Ha93SPa2Exe83aigE3ZaCUunazh7JTvq3EWJEWpqGePjMgFSTjb 48vX7pAPemaRg1gLv34mqX7sXrAi3nrEJ9sw6OthtRsStvw4ItfWxnkvnggDsy34E5w9 WqaT5ePM1xzwUTGIf+o6kze7UQ0iHA8TpdfyoA1ZsJFnmAtVIBK+7EYZrAfk4G5wpN3X DAZteStJ5xgL7d1H4sT7JSE2FDseqOLiRfTspauoOJoTD/bnthzve1DhYXa8UH4/DtPU ZUosrpWbfoqcwxEE3GUSHibRfFB/Wq9aZfcqyMgKtusOkeJUIQXfa9x+iX+fjUXlR0QD mQiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=sSBmUEMtRAkmV+CU8DDs33V6Fj7L3lkyKFBYAuPbnWo=; b=rB4CXPBlcZrfQLsrqeX/ut6WXtch7L+JO/km2EngBUZdAHj1du8VjaJ6uVNjww+fgx F3frtFCsyvV0o9E0y2m5fS16F0YEud58AxKvLNqZV4NC+zDsshmRGZh0Up/k8s11bJtI lrJOgzzBME4NcRnAx5tubkHcJXPSzBLc9fum7OmOIYaQ0Sy73s7iECAryuisq4XfBI+p 39BWNZishE1Wy7XQ/c6qF1eSEa8SugZGmeDoOOGfDWTaxzirbEIVnWxcbm0H5xYVAaHD TxHbkaKy0dtdA/qQPGvUmzH4KE8xfViOzoh4NMpBgQUv+PAvR/QSAHRTpsI+i+db/VHs Ap/A== X-Gm-Message-State: AOAM532nqqG9+Stoc6nGrjUFPKciP0T/dcPNxyGQJ2JySSdIeQ0CxmXw By9st+rU/27X9GDYGFYli4fXng== X-Received: by 2002:a1c:e914:: with SMTP id q20mr47371295wmc.145.1594042442456; Mon, 06 Jul 2020 06:34:02 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.34.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:34:01 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Felipe Balbi , Chuhong Yuan , LAPIS Semiconductor Subject: [PATCH 15/32] usb: gadget: udc: pch_udc: Fix a plethora of function documentation related issues Date: Mon, 6 Jul 2020 14:33:24 +0100 Message-Id: <20200706133341.476881-16-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Ranging from missing descriptions and formatting mishaps to over-documenting of missing arguments, likely due to bitrot. Fixes the following W=1 kernel build warning(s): drivers/usb/gadget/udc/pch_udc.c:239: warning: Function parameter or member 'request' not described in 'pch_udc_stp_dma_desc' drivers/usb/gadget/udc/pch_udc.c:315: warning: Function parameter or member 'irq_work_fall' not described in 'pch_vbus_gpio_data' drivers/usb/gadget/udc/pch_udc.c:315: warning: Function parameter or member 'irq_work_rise' not described in 'pch_vbus_gpio_data' drivers/usb/gadget/udc/pch_udc.c:482: warning: Function parameter or member 'ep' not described in 'pch_udc_write_csr' drivers/usb/gadget/udc/pch_udc.c:482: warning: Excess function parameter 'addr' description in 'pch_udc_write_csr' drivers/usb/gadget/udc/pch_udc.c:498: warning: Function parameter or member 'ep' not described in 'pch_udc_read_csr' drivers/usb/gadget/udc/pch_udc.c:498: warning: Excess function parameter 'addr' description in 'pch_udc_read_csr' drivers/usb/gadget/udc/pch_udc.c:662: warning: Function parameter or member 'ep_in' not described in 'pch_udc_ep_set_bufsz' drivers/usb/gadget/udc/pch_udc.c:977: warning: Function parameter or member 'ep' not described in 'pch_udc_ep_enable' drivers/usb/gadget/udc/pch_udc.c:977: warning: Function parameter or member 'cfg' not described in 'pch_udc_ep_enable' drivers/usb/gadget/udc/pch_udc.c:977: warning: Excess function parameter 'regs' description in 'pch_udc_ep_enable' drivers/usb/gadget/udc/pch_udc.c:1010: warning: Function parameter or member 'ep' not described in 'pch_udc_ep_disable' drivers/usb/gadget/udc/pch_udc.c:1010: warning: Excess function parameter 'regs' description in 'pch_udc_ep_disable' drivers/usb/gadget/udc/pch_udc.c:1030: warning: Function parameter or member 'ep' not described in 'pch_udc_wait_ep_stall' drivers/usb/gadget/udc/pch_udc.c:1030: warning: Excess function parameter 'dev' description in 'pch_udc_wait_ep_stall' drivers/usb/gadget/udc/pch_udc.c:1341: warning: Function parameter or member 'data' not described in 'pch_vbus_gpio_irq' drivers/usb/gadget/udc/pch_udc.c:1341: warning: Excess function parameter 'dev' description in 'pch_vbus_gpio_irq' drivers/usb/gadget/udc/pch_udc.c:1365: warning: Function parameter or member 'vbus_gpio_port' not described in 'pch_vbus_gpio_init' drivers/usb/gadget/udc/pch_udc.c:1510: warning: Function parameter or member 'dev' not described in 'pch_udc_free_dma_chain' drivers/usb/gadget/udc/pch_udc.c:1510: warning: Function parameter or member 'req' not described in 'pch_udc_free_dma_chain' drivers/usb/gadget/udc/pch_udc.c:1717: warning: Function parameter or member 'usbep' not described in 'pch_udc_pcd_ep_disable' drivers/usb/gadget/udc/pch_udc.c:2006: warning: Excess function parameter 'halt' description in 'pch_udc_pcd_set_wedge' drivers/usb/gadget/udc/pch_udc.c:2756: warning: Function parameter or member 'pdev' not described in 'pch_udc_isr' drivers/usb/gadget/udc/pch_udc.c:2756: warning: Excess function parameter 'dev' description in 'pch_udc_isr' drivers/usb/gadget/udc/pch_udc.c:2906: warning: Function parameter or member 'dev' not described in 'init_dma_pools' drivers/usb/gadget/udc/pch_udc.c:2906: warning: Excess function parameter 'pdev' description in 'init_dma_pools' Cc: Felipe Balbi Cc: Chuhong Yuan Cc: LAPIS Semiconductor Signed-off-by: Lee Jones --- drivers/usb/gadget/udc/pch_udc.c | 36 ++++++++++++++++---------------- 1 file changed, 18 insertions(+), 18 deletions(-) -- 2.25.1 diff --git a/drivers/usb/gadget/udc/pch_udc.c b/drivers/usb/gadget/udc/pch_udc.c index 3344fb8c41811..8afc31d94b0e4 100644 --- a/drivers/usb/gadget/udc/pch_udc.c +++ b/drivers/usb/gadget/udc/pch_udc.c @@ -229,8 +229,7 @@ struct pch_udc_data_dma_desc { * for control data * @status: Status * @reserved: Reserved - * @data12: First setup word - * @data34: Second setup word + * @request: Control Request */ struct pch_udc_stp_dma_desc { u32 status; @@ -304,8 +303,8 @@ struct pch_udc_ep { * for detecting VBUS * @port: gpio port number * @intr: gpio interrupt number - * @irq_work_fall Structure for WorkQueue - * @irq_work_rise Structure for WorkQueue + * @irq_work_fall: Structure for WorkQueue + * @irq_work_rise: Structure for WorkQueue */ struct pch_vbus_gpio_data { int port; @@ -475,7 +474,7 @@ static void pch_udc_csr_busy(struct pch_udc_dev *dev) * pch_udc_write_csr() - Write the command and status registers. * @dev: Reference to pch_udc_dev structure * @val: value to be written to CSR register - * @addr: address of CSR register + * @ep: end-point number */ static void pch_udc_write_csr(struct pch_udc_dev *dev, unsigned long val, unsigned int ep) @@ -490,7 +489,7 @@ static void pch_udc_write_csr(struct pch_udc_dev *dev, unsigned long val, /** * pch_udc_read_csr() - Read the command and status registers. * @dev: Reference to pch_udc_dev structure - * @addr: address of CSR register + * @ep: end-point number * * Return codes: content of CSR register */ @@ -656,6 +655,7 @@ static inline void pch_udc_ep_set_trfr_type(struct pch_udc_ep *ep, * pch_udc_ep_set_bufsz() - Set the maximum packet size for the endpoint * @ep: Reference to structure of type pch_udc_ep_regs * @buf_size: The buffer word size + * @ep_in: EP is IN */ static void pch_udc_ep_set_bufsz(struct pch_udc_ep *ep, u32 buf_size, u32 ep_in) @@ -968,7 +968,8 @@ static void pch_udc_ep_fifo_flush(struct pch_udc_ep *ep, int dir) /** * pch_udc_ep_enable() - This api enables endpoint - * @regs: Reference to structure pch_udc_ep_regs + * @ep: reference to structure of type pch_udc_ep_regs + * @cfg: current configuration information * @desc: endpoint descriptor */ static void pch_udc_ep_enable(struct pch_udc_ep *ep, @@ -1004,7 +1005,7 @@ static void pch_udc_ep_enable(struct pch_udc_ep *ep, /** * pch_udc_ep_disable() - This api disables endpoint - * @regs: Reference to structure pch_udc_ep_regs + * @ep: reference to structure of type pch_udc_ep_regs */ static void pch_udc_ep_disable(struct pch_udc_ep *ep) { @@ -1024,7 +1025,7 @@ static void pch_udc_ep_disable(struct pch_udc_ep *ep) /** * pch_udc_wait_ep_stall() - Wait EP stall. - * @dev: Reference to pch_udc_dev structure + * @ep: reference to structure of type pch_udc_ep_regs */ static void pch_udc_wait_ep_stall(struct pch_udc_ep *ep) { @@ -1331,7 +1332,7 @@ static void pch_vbus_gpio_work_rise(struct work_struct *irq_work) /** * pch_vbus_gpio_irq() - IRQ handler for GPIO interrupt for changing VBUS * @irq: Interrupt request number - * @dev: Reference to the device structure + * @data: Reference to the device structure * * Return codes: * 0: Success @@ -1354,8 +1355,8 @@ static irqreturn_t pch_vbus_gpio_irq(int irq, void *data) /** * pch_vbus_gpio_init() - This API initializes GPIO port detecting VBUS. - * @dev: Reference to the driver structure - * @vbus_gpio Number of GPIO port to detect gpio + * @dev: Reference to the driver structure + * @vbus_gpio_port: Number of GPIO port to detect gpio * * Return codes: * 0: Success @@ -1499,8 +1500,8 @@ static void empty_req_queue(struct pch_udc_ep *ep) /** * pch_udc_free_dma_chain() - This function frees the DMA chain created * for the request - * @dev Reference to the driver structure - * @req Reference to the request to be freed + * @dev: Reference to the driver structure + * @req: Reference to the request to be freed * * Return codes: * 0: Success @@ -1707,7 +1708,7 @@ static int pch_udc_pcd_ep_enable(struct usb_ep *usbep, /** * pch_udc_pcd_ep_disable() - This API disables endpoint and is called * from gadget driver - * @usbep Reference to the USB endpoint structure + * @usbep: Reference to the USB endpoint structure * * Return codes: * 0: Success @@ -1996,7 +1997,6 @@ static int pch_udc_pcd_set_halt(struct usb_ep *usbep, int halt) * pch_udc_pcd_set_wedge() - This function Sets or clear the endpoint * halt feature * @usbep: Reference to the USB endpoint structure - * @halt: Specifies whether to set or clear the feature * * Return codes: * 0: Success @@ -2750,7 +2750,7 @@ static void pch_udc_dev_isr(struct pch_udc_dev *dev, u32 dev_intr) /** * pch_udc_isr() - This function handles interrupts from the PCH USB Device * @irq: Interrupt request number - * @dev: Reference to the device structure + * @pdev: Reference to the device structure */ static irqreturn_t pch_udc_isr(int irq, void *pdev) { @@ -2900,7 +2900,7 @@ static int pch_udc_pcd_init(struct pch_udc_dev *dev) /** * init_dma_pools() - create dma pools during initialization - * @pdev: reference to struct pci_dev + * @dev: reference to struct pci_dev */ static int init_dma_pools(struct pch_udc_dev *dev) { From patchwork Mon Jul 6 13:33:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234867 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4780837ilg; Mon, 6 Jul 2020 06:35:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwY3mLnyQPbjVYb0PqphV3lF45KZO+bhWlgf4g3AENImq6O840u/tWAihdosGRX2Ai/9peO X-Received: by 2002:a05:6402:134e:: with SMTP id y14mr56425640edw.4.1594042537335; Mon, 06 Jul 2020 06:35:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042537; cv=none; d=google.com; s=arc-20160816; b=S0tL9bujT4PHgKxH/Nhr8z05/BO4m1XjpbcBAhikWSoS1jGdYhvjIYS68X1ogLZBIv /QAcr8KhW/ID9WvpZ8zoRgcmnrqHTuQf9pMnKOiovtSwK9XW/7Kk/0kCHPX7yxC4g1Cm 9N7EBPZznX7/mc2LpW4u0h5oi/8kqnXokj6Cqt2KS9jVXGvlt92Z0UDsyA/zXJ3Owm/6 c89YBJ0G2qot/lmk/u1PWcAaMBn3Wi2Z1hDrTzMUl/fUhO2DYcIPLLmAj25yW6lh8T1G e7oyw9TFqklZ5yXPM/cCFPZF7bpVK0RE5ktGocij7ITgVJNpC/M2ub76EKDiQzzr6zPX 8QRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GNre9OCmAxyss+/an4xQhs3AGuEV6paz8+9ZDHvC1J4=; b=RJ0BLEM18XqlEWdz1SjQnaUTFbgkxkgANNLkcny7c4DCVC4Kq7NWXahuBjOyDTQb/T xwVa66kQrIfMD1oKOhe6ymA3EuFwA5JeJtpakXjvNjltpguS2FHRxRgxa0rlz+mRaqZC jLsvupBmFdew7l6CYmLIHDm99szMC1prwnlw0pLsEg9H7isTsgyWLZT8GSj/1UxiO9df B7zIHalo8gxuk9RGTgQLc6tLNHsuK/3NtkNr1VltlpQZZlMv8fivY96Eb/Rq6GBC/525 M4Wq27PbDoTHTlZbMqHNwGeYdUoH6xdUxmPqSobl2COxytZlYIATkLCOsSIyatfqlMbd T1kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n9EIrN7G; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a14si13538081edn.360.2020.07.06.06.35.37; Mon, 06 Jul 2020 06:35:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=n9EIrN7G; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729321AbgGFNeG (ORCPT + 5 others); Mon, 6 Jul 2020 09:34:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729274AbgGFNeF (ORCPT ); Mon, 6 Jul 2020 09:34:05 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE7E2C061755 for ; Mon, 6 Jul 2020 06:34:04 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id s10so40899447wrw.12 for ; Mon, 06 Jul 2020 06:34:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GNre9OCmAxyss+/an4xQhs3AGuEV6paz8+9ZDHvC1J4=; b=n9EIrN7G3akIgWOBqzyERxZhfzrR9fJGgAr0I5uOS7PMKd2/If2vceE3yjXA1b/eZZ qN3X40tIDqUzGlEgMn0NMHgN6bPz+FRCzIjbeU5YntfppHpfycT/2OcjyBD9MbXMHH02 OAP80qDZ/zvXp0E2Jnb7TOliZnTx2ngHJYqDWJHlo/tMh8+1qQfVZkuz2a58o08kRx4M zF3huI5CGRipEwA6l9h/nCGNATepgZn8qDH7q91rmF3uOAt3E5xdsJAmRFnaRysZtFNy ShO/sIOYPlLSWlNUwKcP5X+GpzdLohe7Jl5tgxA/WU0feCd8kmHyPcohnDu2G/JQnpLS 2TVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GNre9OCmAxyss+/an4xQhs3AGuEV6paz8+9ZDHvC1J4=; b=A0k2wp6WZgSE4fhTjhbJop/fdETcQKrH2AUDmydcRImYygoKZ24ZvAh4Cxuq4TVG+H vL0hRl3WtRQEa1xOzElTfO9m4ULByiLb7iuk0G5S+aIBnX+EH+Z9/mlw9eFqNAHW3gKu 6eBU2+I11rPd2GzHXjS23CZQWDCgskCzwoH7k/hqaZD2xs/keEtbnukY5UoEat702Xes aaj5i6n3ecruwCLgaDXweNUFpPsVag3OzLTGZ7y18X1g3bpLAN3wTuDT2EjhI+ahhjyh zPktw51IVEUpTKQbAX595hrk9njLXGak9mwwjXkS8Qp8k5laK9wM+tsZUNirC5b47RsX zvYA== X-Gm-Message-State: AOAM531MkxY6JB3BdBXPhezC2f2sqIewsYR3G3hDGHX1OWKbA+n1yBk7 t+yWx3kJm3DanxxAT8ijLIw45g== X-Received: by 2002:adf:e74e:: with SMTP id c14mr51614270wrn.143.1594042443610; Mon, 06 Jul 2020 06:34:03 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.34.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:34:03 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Stephen Boyd , Jay Monkman Subject: [PATCH 16/32] usb: host: imx21-hcd: Demote function header which is clearly not kerneldoc Date: Mon, 6 Jul 2020 14:33:25 +0100 Message-Id: <20200706133341.476881-17-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org No attempt has been made to document the demoted function here. Fixes the following W=1 kernel build warning(s): drivers/usb/host/imx21-hcd.c:233: warning: Function parameter or member 'imx21' not described in 'copy_to_dmem' drivers/usb/host/imx21-hcd.c:233: warning: Function parameter or member 'dmem_offset' not described in 'copy_to_dmem' drivers/usb/host/imx21-hcd.c:233: warning: Function parameter or member 'src' not described in 'copy_to_dmem' drivers/usb/host/imx21-hcd.c:233: warning: Function parameter or member 'count' not described in 'copy_to_dmem' Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: Stephen Boyd Cc: Jay Monkman Signed-off-by: Lee Jones --- drivers/usb/host/imx21-hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 diff --git a/drivers/usb/host/imx21-hcd.c b/drivers/usb/host/imx21-hcd.c index 5835f99662046..b2716cb724719 100644 --- a/drivers/usb/host/imx21-hcd.c +++ b/drivers/usb/host/imx21-hcd.c @@ -224,7 +224,7 @@ static void setup_etd_dword0(struct imx21 *imx21, ((u32) maxpacket << DW0_MAXPKTSIZ)); } -/** +/* * Copy buffer to data controller data memory. * We cannot use memcpy_toio() because the hardware requires 32bit writes */ From patchwork Mon Jul 6 13:33:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234865 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4780765ilg; Mon, 6 Jul 2020 06:35:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/jQKNUry0AktIQrSqYeHwI92hurvEuChOW4oXxYuPRmQUC8NZl9bWOW986Hd0eoJgiQG2 X-Received: by 2002:a05:6402:1c86:: with SMTP id cy6mr42010917edb.30.1594042532179; Mon, 06 Jul 2020 06:35:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042532; cv=none; d=google.com; s=arc-20160816; b=LJhuT9NFy/lLUPkz+KTC4bSs+BY2wSSV4mn7zKL1rLUuJ8RR/pBAwP4nEMv8dQQ/nc Ix/x0dgfZNId33jYH3lhMkQNmqn74YlVFvR0O3ASQvuGsoq7C/rJ6XtCuLmNao/FNUvJ cvMgmS2nwsiec/ZVJOwO7H9exLUX9OjJd8MbEiuZG3H7bnJ9wDrXe3MPOD4JLbgD97af Heb1WUyXUdzbfoLVwjcBJNpmh7k2PVyLDNLgUo46/vMJEnZH7GmmURTJD3We0iyI1Yy6 1VdVV+ae/Bw6P7uc/eQpzLfQJnUaG63LaOdC9Q+l76GIDTPEAvP4tLUMOYAajhM1A1y5 8Gcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2XV6WS/bjGR5kvGNxTMlo6KlRGNUtCcJKS3bvPtDJNg=; b=BtSDDrLQ5pmWESvDdoLDcbbp7zAW2ebSnbiTsqkgS1YRIjdn9DdGAlOb8dZvEWKWzb sfyOPkBCsfP8IMjmf3X1OHTHYeIpkj5G2DmCcuMjphvGK0w7U2SXY/yrTCjIOriQDrAK b3wgxl6bJNy401ycHidflCxz3z97qKZgudv3RKCGcw64V/v7baW9Zed1wy1nWrjLLnMt OJTis0ViyPWkEz+ESxFVve4X/NHa18FmyjSV0aS4CbSUxhkzBt5w9GEENSDEa1l/P/x7 DX+qsILkmkP01oxtoibzVWR3/CCIqy5w+6S5z8hmPt04paDCW4ENLznSlfYBYmB0D0rF 7tEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fczPaGVo; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk5si6992246edb.116.2020.07.06.06.35.32; Mon, 06 Jul 2020 06:35:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=fczPaGVo; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729199AbgGFNeI (ORCPT + 5 others); Mon, 6 Jul 2020 09:34:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729318AbgGFNeG (ORCPT ); Mon, 6 Jul 2020 09:34:06 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59347C061755 for ; Mon, 6 Jul 2020 06:34:06 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id w3so29667701wmi.4 for ; Mon, 06 Jul 2020 06:34:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2XV6WS/bjGR5kvGNxTMlo6KlRGNUtCcJKS3bvPtDJNg=; b=fczPaGVofLQoIlvYv0yf39Kkx0ejpT8IQpmzlyEiDrJUrZ/MVqPYhOAJMwVAKoB1ZU 6J89HvSTdqwH4sVQ9ehrAlrY3rUMG4ReE6aDw3yaZbWeVDRbwD2ZN/LGf5R7IYcwl16l pUjsgPJLFd9N9yyj+ewLUNlIVcCseEtDtuxb+wQFF8GdHXhG4QBEmkxfd/G1ipCvMoRm jh5DxCSHMunlB+DcdKO4cvt+K41fR+0zlKIzEj8el/peWXv+2bbw3u3V69lc+c9I2loI xLGaaq388tf6iFV/oZSWojK8abf0KikizWybxZt7Q1cMFodxZXt0vZUlLJkj3kNY/f/5 TaaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2XV6WS/bjGR5kvGNxTMlo6KlRGNUtCcJKS3bvPtDJNg=; b=Id4WmpVA+GfeWAom+lzyApygMBfMFNuFyNGL7JhuI4fu64AOpi80l0aWXeSUMloB3j rbl5kjYFjvxPjjx550kx0XQRJjkulmbFyOxOMXT64ZOFG09N3+pbStiFVoH1WZShdkLQ e1VXUtuxLOH5XuKEQwPvVntcSsTgbNxpSgDBmL+urIQQzmvRhFL+HZQzxMM1FGLbHVun bNjAL3FzrxPh+RYSEapxS26ZIy3AnRVAsExyunuvZQ/Fcg7onqzTXGDQ6O92yK0tt/NU aX1Y3k01ZT6W2I4wntPobNN8hVw+7FDgVJWPMhYCWl+x3c4i/8r09O8wmzWUrT1SNUOD apmQ== X-Gm-Message-State: AOAM533GKD1Q+nlLuBEbuXspsQing8QuBs7DQdpg0GB4vz/KHKPEZ69L d9bPRq3cr1M2StDZVo2NVtoCKg== X-Received: by 2002:a7b:cc92:: with SMTP id p18mr51112164wma.4.1594042445108; Mon, 06 Jul 2020 06:34:05 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.34.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:34:04 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Alan Stern , Randy Vinson , Dave Liu , Jerry Huang , Anton Vorontsov Subject: [PATCH 17/32] usb: host: ehci-fsl: Fix incorrectly named function argument Date: Mon, 6 Jul 2020 14:33:26 +0100 Message-Id: <20200706133341.476881-18-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/usb/host/ehci-fsl.c:694: warning: Function parameter or member 'pdev' not described in 'fsl_ehci_drv_remove' drivers/usb/host/ehci-fsl.c:694: warning: Excess function parameter 'dev' description in 'fsl_ehci_drv_remove' Cc: Alan Stern Cc: Randy Vinson Cc: Dave Liu Cc: Jerry Huang Cc: Anton Vorontsov Signed-off-by: Lee Jones --- drivers/usb/host/ehci-fsl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c index 9e9c232e896fa..1ebe4d425277d 100644 --- a/drivers/usb/host/ehci-fsl.c +++ b/drivers/usb/host/ehci-fsl.c @@ -683,7 +683,7 @@ static const struct ehci_driver_overrides ehci_fsl_overrides __initconst = { /** * fsl_ehci_drv_remove - shutdown processing for FSL-based HCDs - * @dev: USB Host Controller being removed + * @pdev: USB Host Controller being removed * Context: !in_interrupt() * * Reverses the effect of usb_hcd_fsl_probe(). From patchwork Mon Jul 6 13:33:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234866 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4780824ilg; Mon, 6 Jul 2020 06:35:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwx+8ghKeMyBqiD8e3Fd4JWivQC3q32eeff2F/RvOlignRHskeMFQPg6amJoq/qeBf+X33B X-Received: by 2002:a05:6402:164f:: with SMTP id s15mr56465584edx.239.1594042536531; Mon, 06 Jul 2020 06:35:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042536; cv=none; d=google.com; s=arc-20160816; b=xpbhmNUNmO/Ieturql2y7V0Z35IbgebLdqB4s0aCw+omOLEXOO4792CPrcqFWarE7v zwJ4BbbOT0EcmGcADrI73FERHqF384yH3xd4ypB8V2Mq7BD59g4+DrKRmt4UZwN9eG0D qkaYYkWa+z2G0UK0vsCOuDRxH97s6lT2CAWRx5hEd9K6IiI0yHa/NYlc4KMbX4NGCTQ4 jpwoI1jdvc8l6cALyN88PiCbf3sy898og3S0O2a7v2LCzsUN5BQja6G8ZcNcg7RFPz8t MvEYfIP1vy5CqWtO1PniJ+XraWp1VfTcOdmU0u494tFUTRQbFCT3tFbc+w8TuyQGDcRD CLVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9AX8kUBEDyEZkkrAQRSTc56qB4suyJ5w028cqL1Y9nI=; b=NNP3deSICVJCB/eSiAVRuO9Uclp8SmdJTB4vVV/Kb283A9MT2iVgEELWS2uypgtocp GXdeymfMvHc3OHb+M8gGdrC/xWe4PF4tbc87yf0224MQFjeUeWa+uu3m0TLSdp6MI0bC eW9iVLv3IkSqDMSyK3nr+sZZ45Lltdeqt+USqbSPZKWBuAwMIYEygvIyFtGYtp0pG+uY EyVV+9wxhqOK6T2UWzb6XM9AgtKph1A9suc0GpQHeZmS09ElILarYlQB1yir3xfJmhbG vvcYx1jF4f0qDEUudn2HHqa6dRCnh3o5IwIWm682Yp5quw1sLinX/nNiFP8athwVv1jm PN3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X6m4FfX9; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a14si13538081edn.360.2020.07.06.06.35.36; Mon, 06 Jul 2020 06:35:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=X6m4FfX9; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729507AbgGFNfb (ORCPT + 5 others); Mon, 6 Jul 2020 09:35:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729326AbgGFNeH (ORCPT ); Mon, 6 Jul 2020 09:34:07 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 769F9C061794 for ; Mon, 6 Jul 2020 06:34:07 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id f139so42144418wmf.5 for ; Mon, 06 Jul 2020 06:34:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9AX8kUBEDyEZkkrAQRSTc56qB4suyJ5w028cqL1Y9nI=; b=X6m4FfX9HVkIRr8hUC5SaedwmejM6tHKMtWNuYYdOU9/56+ZZC56eTIFTX8DjtS4ei zSEhErkoaN6DfMdi+KsFgHeCmraKSYyUDTDBvwE/NCDhuOL2MzmazL5R1kxb0lRkL57E 0VCH1foQu1eLxq00OzM0aq/zolR4GeCqxx9kPmH0iG1YSvxUN+IFUnR+g7vO2/B1H963 +qy2O46U+JBmheOcj0HsXB/yrv+qOhS2qFnevyOLLYNtUuzADE+5fNDvPnKj35lP87aG DkkfR99J7Nsi0YY/wEHEgayT1PyA0037NW+/sIVocVBF9dVaHhoNijkk9NzyIV3eTstA gKwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9AX8kUBEDyEZkkrAQRSTc56qB4suyJ5w028cqL1Y9nI=; b=ssk/rfi3ZdqjI05RaA6rvsfoS0MI9QgJbterBP5UoAD+zMdnPVksavRwu1WhFkSE7T MWXjhGwA/AHraUaV9gqePbRGJJ16yTL1XKpxFBadHjcCr6MX+kx0lnJfLmhjH7Rr/maZ PPlTJ1yotRzHjOhcoPqCuuGygxb7zV57DhjiTi00S5b6jCdLqLE7cUywNw4UGBmrOovZ Xss5FeVjY3F9nn4mhLm3cDzi64IsT/G4+i9DzQhCns9xlk/wD/lxeNoIcTVKzvHdoy0w oqvQfy3KFA8SLLJBGaFtIsNLGF8r6OOFx4TIFfH4jYt5EotNYn+Z/o/jzfrht3MM8o/4 fnMA== X-Gm-Message-State: AOAM532xGTlUJfZVh2QVqbufXfyxux4HMq2CMEAHrCQqnOpABoUVq4Pf OPZwaH5oxJcNVdZb7KJ0+J3rMA== X-Received: by 2002:a1c:7306:: with SMTP id d6mr39594381wmb.113.1594042446244; Mon, 06 Jul 2020 06:34:06 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.34.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:34:05 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Yuan-Hsin Chen , Feng-Hsin Chiang , Po-Yu Chuang Subject: [PATCH 18/32] usb: host: fotg210-hcd: Remove unused variable 'hcc_params' Date: Mon, 6 Jul 2020 14:33:27 +0100 Message-Id: <20200706133341.476881-19-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The result is actually read into fotg210->caps->hcc_params. No need to popuate an unused varible with the unchecked return value from fotg210_readl(). Fixes the following W=1 kernel build warning(s): drivers/usb/host/fotg210-hcd.c: In function ‘fotg210_run’: drivers/usb/host/fotg210-hcd.c:5013:6: warning: variable ‘hcc_params’ set but not used [-Wunused-but-set-variable] 5013 | u32 hcc_params; | ^~~~~~~~~~ Cc: Yuan-Hsin Chen Cc: Feng-Hsin Chiang Cc: Po-Yu Chuang Signed-off-by: Lee Jones --- drivers/usb/host/fotg210-hcd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.25.1 diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c index f967adf2d8dfc..51dbbb0e768bc 100644 --- a/drivers/usb/host/fotg210-hcd.c +++ b/drivers/usb/host/fotg210-hcd.c @@ -5010,7 +5010,6 @@ static int fotg210_run(struct usb_hcd *hcd) { struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); u32 temp; - u32 hcc_params; hcd->uses_new_polling = 1; @@ -5033,7 +5032,7 @@ static int fotg210_run(struct usb_hcd *hcd) * Scsi_Host.highmem_io, and so forth. It's readonly to all * host side drivers though. */ - hcc_params = fotg210_readl(fotg210, &fotg210->caps->hcc_params); + fotg210_readl(fotg210, &fotg210->caps->hcc_params); /* * Philips, Intel, and maybe others need CMD_RUN before the From patchwork Mon Jul 6 13:33:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234851 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4779473ilg; Mon, 6 Jul 2020 06:34:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPSeq8EbFTOdn817mkRRlpX81WYtTRct26Bd350JACCfKxdDVc7X2UW6+bGK9x/srdZAHy X-Received: by 2002:a17:907:7245:: with SMTP id ds5mr45678850ejc.67.1594042451442; Mon, 06 Jul 2020 06:34:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042451; cv=none; d=google.com; s=arc-20160816; b=ZOfN+AGLjoProndp3eThzuQeAUg45mv7/VcPG51CIfJMfp8mWLPfw3++vyldh1c0Hf 9tDAMuW9kURxi+EBYXmxCo9i9ZhWGb5Y8GUbbLEZ7U3VZaYlU+gbf6uhIjmscOmfBHEC cQzqZTZeVinWTnosma1SyyNXVuX6sdGL//sKJHybnRWAmsCKRFx5DKbh22fw6F2EiajD dBfNzotsMIIgYwxN5Y3KJXmRtpuivXm07XeCD/Ja6wdipbM5k9evtphNp3xLRxN6CVxk dHIS+y1t2Z0qTdUO0GAyjiU0j3qa0hHDsqL0jyLV6+kUMp+rXE27kQS1Q4JsHJVGnVyA GXOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=d5p91PYLOlGL5eAhTI+TgOkI4utTlM6UStiViuCSA4I=; b=texWhdumBN3EDNmFxGME2LSmXZ2NnQeLm9cTcRNTfSEuFat+gzD1CXCKhW2YgVqTAp MtSAOTrgKZimhw6To360nYDpN4P7pghKXeOD3szYjjMSfYDl5vq/OWwmC+E+57oRwzkt ncUVgP/qy+nojhVhzn1B5N4qagpcJbHdZIpmv1UmqATs1s8g97lmwNpDPMcrAo2iV44p sJh5U+02cdZIKgZEjGO5QpSZovQbBq5TDF1dguikB+xv3p84ipITjf5R6JBEZZqFhq6q /P1fKpYwKhHpKcYzORrhHOEaU4lmgSKgbynxfstOC+FXOd3cLBuPWd+TIP/vCR8Y9kWO UKbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zWvdvBnN; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id uz6si12423914ejb.50.2020.07.06.06.34.11; Mon, 06 Jul 2020 06:34:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=zWvdvBnN; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729338AbgGFNeK (ORCPT + 5 others); Mon, 6 Jul 2020 09:34:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729329AbgGFNeJ (ORCPT ); Mon, 6 Jul 2020 09:34:09 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABFD0C08C5E0 for ; Mon, 6 Jul 2020 06:34:08 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id 22so39377323wmg.1 for ; Mon, 06 Jul 2020 06:34:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=d5p91PYLOlGL5eAhTI+TgOkI4utTlM6UStiViuCSA4I=; b=zWvdvBnN7uGI3YJYG8xAKLYiRJh1mm0+0r6YAQ/ht+c+2n5/aaoZ24CrC6+hTOq75q UZgksZ/ftaNvfFjflqPGT6LMkwCqQ9dhF/YRFHAvqu+DdxqoYp7Ex3s1nB1x0kw/i8Wy 2EWBhwE38eGBFN2TO5wcJ4Q22ru3uU3QZ8WgSOUDl0W5yggF2tD93sA22eOBatapWahz hIdy7n8K4yNPhE7VlJWZ1XdjDn1HYu1O7Ot1DZPO9MIdEvoyXtF65q5zuvF5LY1rfRHI zO4HmtSixQQmvk/yfC0Oeo3PAQMsM6lPTWYiYiuQvARvCD45XF9IVh8ATkXIOd6W0kfn nG5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=d5p91PYLOlGL5eAhTI+TgOkI4utTlM6UStiViuCSA4I=; b=V5PXigHN7QhIb+gTJ+FkiolrChckXSCG2fHzDjnNOTvj0dMyiufp9CmJl7CovghoXE d1jTME/qEC4fTZAor/OZrE6/tf5Fl/Xj7VI6l7vE0A8HCi+TiLT93SdaN+0C8Y2Zw9Lz S/VUFYGqvWwjnBt1QxNTBW++vMNgRIIP3GQvdfE43q6y7lIjYTtgDSMOfsjZajttvxF9 LUNrKZoTcncz0WuGsyjUHT3L9u/5R3IhsKzVsNn7oI4Su9YemzotEKNhjays5pT3yt/r Sz485yMjRbjHLCBnOcEughJt9pyw1koVb81pTvssKwfi/LsfOJLi1cTSSJJdWhJJsfuw /d7g== X-Gm-Message-State: AOAM532C3/15DEAVhL/Xv+keMZPEo3DDq5O0mJ5lWim7z228AeqgdySf pdiJiUn8u0exsUFatUU8TPdSdQ== X-Received: by 2002:a1c:8117:: with SMTP id c23mr47262716wmd.157.1594042447424; Mon, 06 Jul 2020 06:34:07 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.34.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:34:06 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Felipe Balbi , Bryan Wu Subject: [PATCH 19/32] usb: gadget: function: u_uac1_legacy: Demote obvious misuse of kerneldoc to standard comment blocks Date: Mon, 6 Jul 2020 14:33:28 +0100 Message-Id: <20200706133341.476881-20-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org No attempt has been made to document any of the demoted functions here. Fixes the following W=1 kernel build warning(s): drivers/usb/gadget/function/u_uac1_legacy.c:30: warning: Function parameter or member 'i' not described in 'snd_interval_refine_set' drivers/usb/gadget/function/u_uac1_legacy.c:30: warning: Function parameter or member 'val' not described in 'snd_interval_refine_set' drivers/usb/gadget/function/u_uac1_legacy.c:93: warning: Function parameter or member 'snd' not described in 'playback_default_hw_params' drivers/usb/gadget/function/u_uac1_legacy.c:153: warning: Function parameter or member 'card' not described in 'u_audio_playback' drivers/usb/gadget/function/u_uac1_legacy.c:153: warning: Function parameter or member 'buf' not described in 'u_audio_playback' drivers/usb/gadget/function/u_uac1_legacy.c:153: warning: Function parameter or member 'count' not described in 'u_audio_playback' drivers/usb/gadget/function/u_uac1_legacy.c:197: warning: Function parameter or member 'card' not described in 'gaudio_open_snd_dev' drivers/usb/gadget/function/u_uac1_legacy.c:257: warning: Function parameter or member 'gau' not described in 'gaudio_close_snd_dev' drivers/usb/gadget/function/u_uac1_legacy.c:286: warning: Function parameter or member 'card' not described in 'gaudio_setup' drivers/usb/gadget/function/u_uac1_legacy.c:303: warning: Function parameter or member 'the_card' not described in 'gaudio_cleanup' Cc: Felipe Balbi Cc: Bryan Wu Signed-off-by: Lee Jones --- drivers/usb/gadget/function/u_uac1_legacy.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) -- 2.25.1 diff --git a/drivers/usb/gadget/function/u_uac1_legacy.c b/drivers/usb/gadget/function/u_uac1_legacy.c index 5393e5c37a4ba..60ae8b2d3f6a2 100644 --- a/drivers/usb/gadget/function/u_uac1_legacy.c +++ b/drivers/usb/gadget/function/u_uac1_legacy.c @@ -23,7 +23,7 @@ /*-------------------------------------------------------------------------*/ -/** +/* * Some ALSA internal helper functions */ static int snd_interval_refine_set(struct snd_interval *i, unsigned int val) @@ -86,7 +86,7 @@ static int _snd_pcm_hw_param_set(struct snd_pcm_hw_params *params, } /*-------------------------------------------------------------------------*/ -/** +/* * Set default hardware params */ static int playback_default_hw_params(struct gaudio_snd_dev *snd) @@ -146,7 +146,7 @@ static int playback_default_hw_params(struct gaudio_snd_dev *snd) return 0; } -/** +/* * Playback audio buffer data by ALSA PCM device */ size_t u_audio_playback(struct gaudio *card, void *buf, size_t count) @@ -189,7 +189,7 @@ int u_audio_get_playback_rate(struct gaudio *card) return card->playback.rate; } -/** +/* * Open ALSA PCM and control device files * Initial the PCM or control device */ @@ -250,7 +250,7 @@ static int gaudio_open_snd_dev(struct gaudio *card) return 0; } -/** +/* * Close ALSA PCM and control device files */ static int gaudio_close_snd_dev(struct gaudio *gau) @@ -275,7 +275,7 @@ static int gaudio_close_snd_dev(struct gaudio *gau) return 0; } -/** +/* * gaudio_setup - setup ALSA interface and preparing for USB transfer * * This sets up PCM, mixer or MIDI ALSA devices fore USB gadget using. @@ -294,7 +294,7 @@ int gaudio_setup(struct gaudio *card) } -/** +/* * gaudio_cleanup - remove ALSA device interface * * This is called to free all resources allocated by @gaudio_setup(). From patchwork Mon Jul 6 13:33:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234863 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4780575ilg; Mon, 6 Jul 2020 06:35:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyN18bmap0bSoPqFgTmKphs7Kz80+aNN0y0dSoLnylL/rx7lSX3Uf4zUx8zv+DvVUf0Fts X-Received: by 2002:a05:6402:377:: with SMTP id s23mr57056753edw.200.1594042520311; Mon, 06 Jul 2020 06:35:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042520; cv=none; d=google.com; s=arc-20160816; b=q1c/CnKzmnlL+Gwtlv2Yhd4o1yJMDN3WZlyCkHZWzENTyWGCwL7My+eCR/nbQrZ9t8 z3lFCN2QJMVrSgvKAw/DYqQSLekqMIY3c9W7VQ2lqcNvoh4Mz9iLpx9mVTJoFdvX4P3G Qp8S3udAsqdWHsEqebKBk7uuBqFj/D+jYVnw535s/zoNp0gnPIAGT/pMimBOOPNWHgMQ mZxHZsAEXMLnr7V19Nb4FoV0GypEicEnzRVJ5ZGk9Mx1rSz6rlaXwNDWkgEmLD8wGotn 9CNYzgywzQFErQLi7JOEjHC8tsinJZC2j/gkOXqWxSMs2yiWNZeeCgFbIHyDOCyVbkeX q6qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=atQQd6B48grrwp+3FZv95LUICx56wwJRa1SpQXxMQxY=; b=lX88mZg6pr2xu7r3ZGFtCU/AQYVt1wFiWiF8WGtOiQDXhj9CS8w4Tc0y57hz/Zl2lD t54XO+y7xU5zEzgpd5s2qit6Fu2URFUfdmB9Tn02jFDGB/zMd+5xDdttoN5db42SvNKE ybXFwIeugYfil1ZtzWZIxonAWZBjt8LbVY1fxVqJ6Ly1kkfEWw+Tgthr6rKS4QHHQ+eF GjkGgEn3qEig8QcTDhM9Y+4J4PQ7B7gyg+rDQtjHNdIeF+oQFuwVZUW0plq6p5ZGXTTB vDiM0AYrUC6TimX8ynz1pbCaQlzbLq/w9n1gJFGrpfpUzlIEjlLI3tw3OWrnk2vWP+rT kGpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w6hRYUO7; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g15si9551351edy.200.2020.07.06.06.35.20; Mon, 06 Jul 2020 06:35:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=w6hRYUO7; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729341AbgGFNeL (ORCPT + 5 others); Mon, 6 Jul 2020 09:34:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729336AbgGFNeK (ORCPT ); Mon, 6 Jul 2020 09:34:10 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D10BBC061794 for ; Mon, 6 Jul 2020 06:34:09 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id 17so42074031wmo.1 for ; Mon, 06 Jul 2020 06:34:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=atQQd6B48grrwp+3FZv95LUICx56wwJRa1SpQXxMQxY=; b=w6hRYUO7YyVcZnrxkVQcL9i+DIcegwSxOpJpusHM7ek+/DIU5QwFI/PAYc6YFHkaCT k8FRF534bpubL0B0OmFF5oq6wY03Rw6yEomh35Tmx6FPDE/waGSczpU5Cgzrn5Uju7Cc bCaXLGQifZRD/R4nbrn64owZsuCBcCb1EC0ImDhAGAXd/cc+WlULEQCijrABf+IpaKDT 3EKntJe03seySO6FPX3ZDocV61TFxZ1D1a4x8qhefwdg2zdjfgFY86PiagDVLamwPJy8 Cryz85XcxwCCMuv2nwLw+AXH9YXajlbSNY8nVxl/zMp1+gxb+292tL9mvtsS+CABRwnw YPYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=atQQd6B48grrwp+3FZv95LUICx56wwJRa1SpQXxMQxY=; b=XeDxVn4Jxf40Yo2IaX/7zmE9EBPTT1GY4vXIrwYXHptikC6GB4bx6bNgxAUzEU6Vje +Uq7pwyjAn+xTTW+EIFVSVcz0QHllixRE0sFGrksU/EgDia+0uOHJLgw2DYnK5CpLNps 803XM4TiH8jXt57/GJGCcgXY1dEHrPIW4S+KmAjVb1r07RPwt3wRIRqdOVzvvj/Zu/dR Y5M9xKh9kKcgXzsxFVPFI6ZoaOTz+PtGkUqK0+Vm0zBgorfG/LxJA5Vh2qHakxV6BlyY EoYQZkFaW9Q6b1uKSWgeYtX6x6IotE29wBLT5oKbahV9L+65QzLwsm5XmInNkXy7skDB QtWg== X-Gm-Message-State: AOAM533bzH6alN79gsfaQBb7GRa34RA28KIdKwbOmzdps4CvVvif6rno DHPHn9A8zNsTFPCGGcyELjRnjA== X-Received: by 2002:a1c:ed0b:: with SMTP id l11mr2416931wmh.121.1594042448527; Mon, 06 Jul 2020 06:34:08 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.34.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:34:07 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Chuhong Yuan , Hauke Mehrtens , Felix Fietkau , Michael Buesch Subject: [PATCH 20/32] usb: host: bcma-hcd: Demote obvious misuse of kerneldoc to standard comment blocks Date: Mon, 6 Jul 2020 14:33:29 +0100 Message-Id: <20200706133341.476881-21-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org No attempt has been made to document either of the demoted functions here. Fixes the following W=1 kernel build warning(s): drivers/usb/host/bcma-hcd.c:180: warning: Function parameter or member 'usb_dev' not described in 'bcma_hcd_usb20_old_arm_init' drivers/usb/host/bcma-hcd.c:268: warning: Function parameter or member 'bcma_hcd' not described in 'bcma_hcd_usb20_ns_init' Cc: Chuhong Yuan Cc: Hauke Mehrtens Cc: Felix Fietkau Cc: Michael Buesch Signed-off-by: Lee Jones --- drivers/usb/host/bcma-hcd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.25.1 diff --git a/drivers/usb/host/bcma-hcd.c b/drivers/usb/host/bcma-hcd.c index 652fa29beb273..b1b777f33521e 100644 --- a/drivers/usb/host/bcma-hcd.c +++ b/drivers/usb/host/bcma-hcd.c @@ -168,7 +168,7 @@ static void bcma_hcd_init_chip_mips(struct bcma_device *dev) } } -/** +/* * bcma_hcd_usb20_old_arm_init - Initialize old USB 2.0 controller on ARM * * Old USB 2.0 core is identified as BCMA_CORE_USB20_HOST and was introduced @@ -261,7 +261,7 @@ static void bcma_hcd_usb20_ns_init_hc(struct bcma_device *dev) usleep_range(1000, 2000); } -/** +/* * bcma_hcd_usb20_ns_init - Initialize Northstar USB 2.0 controller */ static int bcma_hcd_usb20_ns_init(struct bcma_hcd_device *bcma_hcd) From patchwork Mon Jul 6 13:33:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234864 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4780621ilg; Mon, 6 Jul 2020 06:35:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwngnmNs6KbntCR1hstV+0r6ODRBW1OQJdyG4FtVRO1/l71+3958rXJK1rkreiF1i5420dS X-Received: by 2002:a17:906:4f82:: with SMTP id o2mr35583304eju.424.1594042523867; Mon, 06 Jul 2020 06:35:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042523; cv=none; d=google.com; s=arc-20160816; b=qiR+TGxEmvY5WIwdzV1k24f4+r6TsxasOKImrs4vRhH7mE+GQg7EWV+vXrGb0uB4Ez kcMwFqRlZnOE5l6KtUFMQtVI9+oOgzHFSe3xhQLgnkS2KL+PwMV56DyTDm87hjd+otha Gh3budmy/DyxOs3EJ+g/btkoDC7nb0Pn1UECD/bdevPLQbhsw6mJK4s2fuoeOsUf8cuw dqiQ+hzw5Q/btEcV1hCnVQaVUbyLkCt5iIt6MiKRA18al3U5UeF1DsskcfCs1rqIrOZn S8DmU2xp0XycmPEMRNRTBgZ3QiZUAbiTuSCEMSw0WtHCrYQ3fiqAB9hXJ3shRB66zVIj UX8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oDXPXE1ejSNiTZPmJzCEijdYryKHjxn03JTJMf6IP7Q=; b=YeU4yQQ9/lXK8yPjxG2+kYXMkGjBnReaTmHGVjlj5koEEgFlxzxKVk8IxwrIoSgXKW wOIx2P0YU72hybwtWb1DMxihijHqdeoNzEy4VgMLsPONArLiH8gRDyUljUoQ44TUG/S5 GBPRHxGpBYDoW6sTCX0zvLS6hAhi5ROvlJWvWDvBE79BYPN5CpAFgEHfXHH41QJ7goM+ z1gEjQ/3HQMfbxhhwSMRpeTPXbSWpDxYDESWaZDv8/idgtWEROS0uBhnJmna5JdxKb2o TYLjEmfOILvhMtK7Paq/rGZp9ACBprMBaNprKKkXojsFP+IDtnu0IlM1X43mYAY0u6O+ 7Owg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nrBdfUXO; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mh4si13058137ejb.339.2020.07.06.06.35.23; Mon, 06 Jul 2020 06:35:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=nrBdfUXO; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729489AbgGFNfT (ORCPT + 5 others); Mon, 6 Jul 2020 09:35:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729343AbgGFNeL (ORCPT ); Mon, 6 Jul 2020 09:34:11 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 084EBC061794 for ; Mon, 6 Jul 2020 06:34:11 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id g10so15697626wmc.1 for ; Mon, 06 Jul 2020 06:34:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oDXPXE1ejSNiTZPmJzCEijdYryKHjxn03JTJMf6IP7Q=; b=nrBdfUXO6LY8W3UqebH3OTR13trp34J0vuEI51RUElQ285ST0V0W0G2+PO4jsv+hxc iLQUwUgSA6VUbu9JTOnHYL/gAiz0ajtk6cAXF8AMBAsmzGLH6OCX7lVStmeEtWmNOokn aqQKVBO/ffzZ9ykuNxvhdS86TyGMm4i/2UFi+wW2xNk4ccagDL0o1j90UxuPFljjkjfI ZvywJxRPhH6jSNIidaJ1ghg7Mi8s1U56J14BPT8gLE+P9e0dXdBExlvcO33c1B9NM2Ht tquR7H/k+Mz3WARXMH1/ra6tRevWfrzSNRlIwGgwDOvIVGWMlhLrf5xgRhr+0xutyrWT fg2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oDXPXE1ejSNiTZPmJzCEijdYryKHjxn03JTJMf6IP7Q=; b=Lf3x4TApkytSXXm1H1uMhw8CQzYg0OUML7fW7pc0YdSTKFwLz3g0xWXVoFJUSZG2yn Gaqb1NstJUO0BqAc0mcmU0xC0G+a92THul/qqXyeErV99EVRiChyXpIkbXh1shXqvOLX 4yjiTWU6dX5Hc7bXl6i6m0R6Fpc6CT7y61B1hhaA9XPTS2NyPYtosQU68iFfuk92Ojji PApcBBgir2mCVuOrhto3Bc2RpfuRHqOt1iJofexl69tZMKXuiMw8jPOb8UhzoHEqq12A 8L/Xe4/ovOZ2uVjTmAedaMFFf7tirwz1tzd7YnG/gE/E9bzdHsemat4s8KPWw1a59As3 NJgA== X-Gm-Message-State: AOAM531OprLuS0dGDQ4YFwC6cVCKP348IBED38PiPrfnKt2pjQ624ib7 OKhEDgxVbJKKqWR0YxI6O3U4Dw== X-Received: by 2002:a7b:cb98:: with SMTP id m24mr49126433wmi.98.1594042449766; Mon, 06 Jul 2020 06:34:09 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.34.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:34:09 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Yuan-Hsin Chen , Feng-Hsin Chiang , Po-Yu Chuang Subject: [PATCH 21/32] usb: host: fotg210-hcd: Demote obvious misuse of kerneldoc to standard comment blocks Date: Mon, 6 Jul 2020 14:33:30 +0100 Message-Id: <20200706133341.476881-22-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Only 2 functions attempted to use kerneldoc in this massive file. Fixes the following W=1 kernel build warning(s): drivers/usb/host/fotg210-hcd.c: In function ‘fotg210_run’: drivers/usb/host/fotg210-hcd.c:5013:6: warning: variable ‘hcc_params’ set but not used [-Wunused-but-set-variable] drivers/usb/host/fotg210-hcd.c:5569: warning: Function parameter or member 'pdev' not described in 'fotg210_hcd_probe' drivers/usb/host/fotg210-hcd.c:5666: warning: Function parameter or member 'pdev' not described in 'fotg210_hcd_remove' drivers/usb/host/fotg210-hcd.c:5666: warning: Excess function parameter 'dev' description in 'fotg210_hcd_remove' Cc: Yuan-Hsin Chen Cc: Feng-Hsin Chiang Cc: Po-Yu Chuang Signed-off-by: Lee Jones --- drivers/usb/host/fotg210-hcd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.25.1 diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c index 51dbbb0e768bc..633df2e927bb3 100644 --- a/drivers/usb/host/fotg210-hcd.c +++ b/drivers/usb/host/fotg210-hcd.c @@ -5557,7 +5557,7 @@ static void fotg210_init(struct fotg210_hcd *fotg210) iowrite32(value, &fotg210->regs->otgcsr); } -/** +/* * fotg210_hcd_probe - initialize faraday FOTG210 HCDs * * Allocates basic resources for this USB host controller, and @@ -5656,7 +5656,7 @@ static int fotg210_hcd_probe(struct platform_device *pdev) return retval; } -/** +/* * fotg210_hcd_remove - shutdown processing for EHCI HCDs * @dev: USB Host Controller being removed * From patchwork Mon Jul 6 13:33:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234862 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4780530ilg; Mon, 6 Jul 2020 06:35:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0sMNQonxfgpkRwDwqm/Yl/2YyTy3T1DCRdMKD/TLo814wqBGXJjNaQ4VrTH9ju0RM+ynE X-Received: by 2002:a50:f109:: with SMTP id w9mr53740139edl.277.1594042516948; Mon, 06 Jul 2020 06:35:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042516; cv=none; d=google.com; s=arc-20160816; b=mJgXbByZgMfbCWwsE+RP+cyFTG9MU72Z1gWNdKrwEwDcysewHNOvBWX8FbMSnYf1mj VYO1iN+oddoEDLNtCQoOvttT5uoGRpF8C9g97pgqX8sgphvAkwalt7e0WWnMoplaA2kZ oet9P25JFKhNUYMkUH4xrLs4mOGINN/0kukm5BSAOmmtQtvOmG695ncbwgajTr0yXoBk 6fhnPwRipt62YFRoRrLMMFCuHGN/Gzl5WZdEJx3/SuuUR6jIDlm/tB2K5vZ/RxDWxPtH bGPiMqWthU3JnyZTFIsBxj+Zhdj+FWDpMQR6LnbZ+IewcLQ4yoTrxSjlu8shr2npKMoD Ozlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OciwYyOFlkXAJUScx7SVNAsT2ixoj+EcNyfWn6Xsafg=; b=K1m9PqTzEZ4nqfI50ME4AVWScuJ4QTtQ6qEGbNIYq8lObDYBM4p8os7wDGNLmVRj19 KTp0dGFbSUYjdacuFx4jfDfpxqQnZSSm6f+pUybMoHTlzLGgmgKzHsQrzy1G5irovHyf o2Ro4iU1yYVBKwbXQmsrLYxRbKoLXyE6h/uwslGz+/A2B50vxpOnwqqYT09rVvYaPiFi 7ueg7Fk0MSwF73U6D/Kfk07pVI8zwM5tWLeX5vPbzqR/IlKFEO0JK56sfSnD6I0+sMvw GS50BjinlzdUvfiuWMENV7P66PgrER39Lbf9pJ1vyWmJ43PNvlUliNSUs1cGJ5mR2Soq 7/xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VcXzc+ei; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g15si9551351edy.200.2020.07.06.06.35.16; Mon, 06 Jul 2020 06:35:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=VcXzc+ei; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729485AbgGFNfP (ORCPT + 5 others); Mon, 6 Jul 2020 09:35:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729346AbgGFNeM (ORCPT ); Mon, 6 Jul 2020 09:34:12 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 318C5C08C5DF for ; Mon, 6 Jul 2020 06:34:12 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id o11so40974975wrv.9 for ; Mon, 06 Jul 2020 06:34:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OciwYyOFlkXAJUScx7SVNAsT2ixoj+EcNyfWn6Xsafg=; b=VcXzc+ei6oAKh0w9DGfsZ7yETc5sXN+3CKC6KObuvLUoH3M6ejWS+WNh038+jerj1h KI4cAa0tpwKF8qImVnIfbBVmuIpuZXmutsi83s3amfRemr24wtyYXdFrVYFykResp+mG qSAP9l84fi+Dt0Fnu3Cb2A14nb4o0z0JBuqtUyrjUfF6KCeBfoBEAO5gWLv/tqgaBMBI YLCG0Yb6MCy94d4x5KSxVAJ+aVCnKF9vdxqfslNV7uGTtNVTyuugED/g2wBXF3lcN4ep 1swxoIWib4nm7mySMmzgcmGIskZ388OV4ojyM0vWXISGi3/m8ZetblrkAo0WynFU/xn3 tkUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OciwYyOFlkXAJUScx7SVNAsT2ixoj+EcNyfWn6Xsafg=; b=fMSUgTEM8GljCjDL1N9NrxNPa6RLly/dcJV+15FSHHLsRymLI2WYRqJ2E69FD5EKYs 91AqSNjtqwB4xeYy9M9VuIAUWhFIDxS998TLdxeiYmHvhrZ5o7G4yRziCuWGQgzidhzg QTxORo63CVFKbaL4xRbmYZHEcSP3V8iPkUaY46C3RDRWVcDjYaS1yc1l/+PtSo4cbf2Y AVyHkoeTeGE9qaf5O+duw0iAN3GIXjMiVVYJlmQA6CtjECVHU5NgdOTxp1Yyn+tI79YS TkndHw1Ewc0v3BPK/BE6KPwsDQkYCtYm2NtzC4Mk7Nz/OU52fvGrdYAjiZrUXi0EGs3M UjWQ== X-Gm-Message-State: AOAM5339Lz7D45GP0ZZKniyrBXzJUQJarDCHHdw10OTINxNcxC3B/WXp KWIKYp2bc8D9Q2sTtD2MgqXFtg== X-Received: by 2002:adf:e44c:: with SMTP id t12mr21898286wrm.103.1594042450943; Mon, 06 Jul 2020 06:34:10 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.34.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:34:10 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Felipe Balbi , Jason Yan , Yu Xu Subject: [PATCH 22/32] usb: gadget: udc: mv_u3d_core: Remove unused static const 'driver_desc' Date: Mon, 6 Jul 2020 14:33:31 +0100 Message-Id: <20200706133341.476881-23-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Looks like it's never been used. Driver was mainlined in 2014. Fixes the following W=1 kernel build warning(s): drivers/usb/gadget/udc/mv_u3d_core.c:35:19: warning: ‘driver_desc’ defined but not used [-Wunused-const-variable=] 35 | static const char driver_desc[] = DRIVER_DESC; | ^~~~~~~~~~~ Cc: Felipe Balbi Cc: Jason Yan Cc: Yu Xu Signed-off-by: Lee Jones --- drivers/usb/gadget/udc/mv_u3d_core.c | 1 - 1 file changed, 1 deletion(-) -- 2.25.1 diff --git a/drivers/usb/gadget/udc/mv_u3d_core.c b/drivers/usb/gadget/udc/mv_u3d_core.c index 5bb0568b934e1..5486f5a708681 100644 --- a/drivers/usb/gadget/udc/mv_u3d_core.c +++ b/drivers/usb/gadget/udc/mv_u3d_core.c @@ -32,7 +32,6 @@ #define DRIVER_DESC "Marvell PXA USB3.0 Device Controller driver" static const char driver_name[] = "mv_u3d"; -static const char driver_desc[] = DRIVER_DESC; static void mv_u3d_nuke(struct mv_u3d_ep *ep, int status); static void mv_u3d_stop_activity(struct mv_u3d *u3d, From patchwork Mon Jul 6 13:33:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234861 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4780513ilg; Mon, 6 Jul 2020 06:35:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzM6peXMdkJMyTCEqAbaCbZOxZmk8Izgdon9HWW9YbA/u+tqP9RvRyPZtVOLe4/Hq2dGwJ X-Received: by 2002:a17:906:a84d:: with SMTP id dx13mr36577992ejb.246.1594042516386; Mon, 06 Jul 2020 06:35:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042516; cv=none; d=google.com; s=arc-20160816; b=p5E0FprdXj365yRRTeW2q5Q0E4tVtUMZf/CrrWWSF6QplD2sqXDIh9FFnj6uDm4kE0 YpooxmhWTCKnc+DX2BvO/W9ikw+ZEmVnUymapv0p4UZIem4SX1WjxCBJwc4fO7B9TKTU tuyG+jJd9ZyponKZ21xuQEJODdTSRJu3IJMkiIRX6u5iAME/Di5T+L7LX27UXsuM/dq6 rYdcHlttsoKHIrOZNtAI72x67H8xNVkXgP0vEuy5ONbvFZpthxPFu77wjP2aPuKJNYaB e4+Fu0Qg8rbUkVSPFliaRSQEINrO51+gE8iJEotBFqO6egsgLkZ+R4ZAu51S0ZDau4Qt hYuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3O86wjxqNkOu1v6Uq0UsZIVMC/nMKC8xbmSovx4mwRU=; b=M5RywkdnjabQV+u8q9mXe5U3d+KO30OuBRmmhtNJJpFqXkiTlS0YekdFmcjw+Znbd7 4B1SIpeZ+xpw6mAKKwR3w4Kq0aGzD2LO94LTiqL1or4/TUP8bekUH6NMb0mXkxN1N3el fkTX2MGj85SaSsoMFwFiBvwnAdr3yAASSbBrZAD6sLBuornHlH+tYXOqXPLvvucsgaq+ uiBeO7f5MNVOPSXCt0JNTNuUlyYkU0ZnkOy5dwHLprlci+yGJDgeV+tqUfqmsycQa3AD Df5M5UQny8b3kLiZPu9Hm/dDJwUYhy3t3Rrc1dogYJbu/cYkEU5um676ymkb5/JPTkmA Lklw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xDhKb4d1; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g15si9551351edy.200.2020.07.06.06.35.16; Mon, 06 Jul 2020 06:35:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=xDhKb4d1; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729482AbgGFNfN (ORCPT + 5 others); Mon, 6 Jul 2020 09:35:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729197AbgGFNeO (ORCPT ); Mon, 6 Jul 2020 09:34:14 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E590C061794 for ; Mon, 6 Jul 2020 06:34:13 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id 22so39377634wmg.1 for ; Mon, 06 Jul 2020 06:34:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3O86wjxqNkOu1v6Uq0UsZIVMC/nMKC8xbmSovx4mwRU=; b=xDhKb4d1kq4g63PE6Kw+d0pJTKLnw/IIJQRWCvGGBRKLAySHr3nXCYdnP0FF+KYdgl vilMW0c0k6s1Ego/Dne9r8otV3SFOpks3w1DdJX6EPTI97pwdrKlIb2UKkbKdM3aDVlj oSrJ9yzAacAEyGyCdl7WGdOS1ZgDlhAHAlm1LeHkd9CpJeixRsVwXY0hZ/8oKIB1aA7R tQf8xNsPpdj7GOKICfWv8NpWcwtVpUjJFXZFlcmBUynkOisE2Sqp7YJSGA42CjzUdB7j d48tqL2Z+IA4acMLvxU18EamPKiWgdTtUL2LpLPFNEyrurJ1mT7m8OpdBkl5rzIdpn3b 0snA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3O86wjxqNkOu1v6Uq0UsZIVMC/nMKC8xbmSovx4mwRU=; b=spwTB8Z3vtqPRSIo1u99v9fuInSBKTXt3LCGxPltWRHG8fwiHQgcHgwGsG6AbMjkFm k6GMPh8XBEL6us0kslX15d+lmq+h8SCieGTaRAzUH6iBPfGz65lwtdXITMf5c7Ralx2A jWCl1Gm0D/aT06CoWS8Hl3lfkQI97c2UNe2KTBWFV4k1DWtHqhZLxp5A9NgKypHRJXtb OJmKJ7VBJlD13Xowok/WjizqaY9R4DHQiMrSX3oyOFDJbPzIcJiXMpVhYv/UqgbOvoYZ l2kASdDqlNNNVYYF3Swk9PJ5JnbytXxZJvqBCl2Xj7FBM4uA/oTpQd5j2UmUDAT4zaYk 1ltA== X-Gm-Message-State: AOAM532lq1rF0/ueTjoBAJbCoROhZjKhPfmNAWKixTEa8huzb0BO3PW7 mypji6FfeCb9MN5050SOYBDaCg== X-Received: by 2002:a7b:cc92:: with SMTP id p18mr51112738wma.4.1594042452163; Mon, 06 Jul 2020 06:34:12 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.34.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:34:11 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Felipe Balbi , Jassi Brar , Christophe JAILLET Subject: [PATCH 23/32] usb: gadget: udc: max3420_udc: Remove set, but never checked variable 'addr' Date: Mon, 6 Jul 2020 14:33:32 +0100 Message-Id: <20200706133341.476881-24-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/usb/gadget/udc/max3420_udc.c: In function ‘max3420_handle_setup’: drivers/usb/gadget/udc/max3420_udc.c:626:5: warning: variable ‘addr’ set but not used [-Wunused-but-set-variable] 626 | u8 addr; | ^~~~ Cc: Felipe Balbi Cc: Jassi Brar Cc: Christophe JAILLET Signed-off-by: Lee Jones --- drivers/usb/gadget/udc/max3420_udc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.25.1 Acked-by: Jassi Brar diff --git a/drivers/usb/gadget/udc/max3420_udc.c b/drivers/usb/gadget/udc/max3420_udc.c index 23f33946d80c4..52884bae4af11 100644 --- a/drivers/usb/gadget/udc/max3420_udc.c +++ b/drivers/usb/gadget/udc/max3420_udc.c @@ -623,7 +623,6 @@ static void max3420_set_clear_feature(struct max3420_udc *udc) static void max3420_handle_setup(struct max3420_udc *udc) { struct usb_ctrlrequest setup; - u8 addr; spi_rd_buf(udc, MAX3420_REG_SUDFIFO, (void *)&setup, 8); @@ -647,7 +646,7 @@ static void max3420_handle_setup(struct max3420_udc *udc) USB_TYPE_STANDARD | USB_RECIP_DEVICE)) { break; } - addr = spi_rd8_ack(udc, MAX3420_REG_FNADDR, 1); + spi_rd8_ack(udc, MAX3420_REG_FNADDR, 1); dev_dbg(udc->dev, "Assigned Address=%d\n", udc->setup.wValue); return; case USB_REQ_CLEAR_FEATURE: From patchwork Mon Jul 6 13:33:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234860 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4780480ilg; Mon, 6 Jul 2020 06:35:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzglYF6fSusFsUZFi0n8B8avT03Ua245xJDNggprFNYhGQf4uufZOt0gWMNb6UaBl/oOaAa X-Received: by 2002:a50:f08c:: with SMTP id v12mr54917092edl.119.1594042514655; Mon, 06 Jul 2020 06:35:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042514; cv=none; d=google.com; s=arc-20160816; b=a0ZwEFHJfHH6PAaCZ0cR/jA2lYun5rOU+cWsloc+9S7iPdIUPY3L5xoWmWE1VGJr2Y I3ZQ1lJLKYTo0sMKzyFU0zJkese6X81LRODqd04kPpki4fG5tpYru8IwuTgNo+cAIfmu heUMyX7KejeI8tQfegSI7zghl0lSn5L6eIBdEXn2Vf4RpWGrbR5HKNGu1twZOoIwSPn+ K/0pV8GcHLXwrIiPa0ZVJHIghS+XOPydtYOwpSvO+oag5+odCkckoYGvORQMl3hmieDS kxprlfsNDwdoFi+kCHDrXibEIOU+sfUBGgxR04tqnuHpEiZiREHpv1oiphf4r2d8eNwD jXDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wF0TEpLE3+8aSfCpSueulEs3qt7dUTbs4ZXmnn02trY=; b=IZ/A1uz905yFr0GxYjUZgkXyKQVALznEmiCW/QJxPX13CsMYa2P44pJvPpA3vwrATA J82MdPbysyrgIlCbngTuJCwO+qXcHgdSFWWAdOFdePu1BogOhg5ubzOVn8SZHj6Tw1vk KvzCmY5QP31E69YovZOg9HDNd1uQMMQsC/h4yHp7xE2NraVu71M5HPxlhnSFAKPrGoWt hrIszd1zBJooWQyrdTBmIsyY5F/WFGU88u5abYaZrQg4f6kjxdVF5jPz/jIW4W6eaUcD pRRjdp2hnjV78efvyNRAdpHYZNGjACE+o9MOEhvqJ8GTqGaXv7AoCGljf2sc9w3uYi1B NrVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Fw8KkupQ; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g15si9551351edy.200.2020.07.06.06.35.14; Mon, 06 Jul 2020 06:35:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=Fw8KkupQ; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729479AbgGFNfM (ORCPT + 5 others); Mon, 6 Jul 2020 09:35:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729162AbgGFNeO (ORCPT ); Mon, 6 Jul 2020 09:34:14 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79B12C08C5E1 for ; Mon, 6 Jul 2020 06:34:14 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id g75so39364227wme.5 for ; Mon, 06 Jul 2020 06:34:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wF0TEpLE3+8aSfCpSueulEs3qt7dUTbs4ZXmnn02trY=; b=Fw8KkupQWP1sjuNARANgDth/I4E8Dw60dO13hOJ8P5eNzx1H61J9+oaoJEz4UW+eLB x1QdMZF9StP7c7hyy5JUC2MkPAqAt8qlfDb0usPVJ896zJWoOIBxIxiB9t3WJWOp41wc QWQfUyGB9r0pZlKQ/l7gJrP8c9Azan7WlFLNpgl++8vrM1xNTg4t8bQ7iLn1cUPL5RBW AG42p5PbmHJ8Frm71710QTtIrNhkU5qAvSTsYC97K1PrCm5ql9h7VGbzShVHn/cTrI73 fL7PPdPg+3dvqO2vSDnwUP0ahpRMP1oWeMlfwjY87k/1h79BGuI02uv9lh8MDmd3wbOb XMdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wF0TEpLE3+8aSfCpSueulEs3qt7dUTbs4ZXmnn02trY=; b=h9SPXPCJLZuHBDA02/zVYab4h9nD6+nrnskiGpOtTASFfFXUS9Y/bq1tFBtFA8bv6S 9atk3EYulhKgMrKN86Ztd19DyJ0MmRcTWi/g6wXqUXEEBMEcPMu3uvPCqioFkSZPk2HC Uj0WhD5HfvCafC63fAI2sxOckGAitNdSgdHMHxKSqfFzsfKyZXcE+MgATo5Pj5X2lN3t YlwtbHXs3VRnesffxicSpt4aw3c61720xtHtjWjRQhaWvk2Esokg+0DW/9un+bS6U2sD nQfVASSAJ3yx+d3CY0rTCW1DXW3uGnB9vNdGNYM1/babupFzNueEHRIC3sDS/vNFGF/s UcYw== X-Gm-Message-State: AOAM530VS9ur3BhqYOVZylzotsc7kPivfdp3rXFJ+bYDM1oRVOfrilAb JQrEEd06ruFRrAx7rV7OYcY2mQ== X-Received: by 2002:a1c:c3c5:: with SMTP id t188mr51930563wmf.53.1594042453242; Mon, 06 Jul 2020 06:34:13 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.34.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:34:12 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Heikki Krogerus Subject: [PATCH 24/32] usb: typec: ucsi: ucsi: Staticify and stop export of ucsi_init() Date: Mon, 6 Jul 2020 14:33:33 +0100 Message-Id: <20200706133341.476881-25-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org It isn't called from anywhere outside of ucsi.c. Fixes the following W=1 kernel build warning(s): drivers/usb/typec/ucsi/ucsi.c:1005:5: warning: no previous prototype for ‘ucsi_init’ [-Wmissing-prototypes] 1005 | int ucsi_init(struct ucsi *ucsi) | ^~~~~~~~~ Cc: Heikki Krogerus Signed-off-by: Lee Jones --- drivers/usb/typec/ucsi/ucsi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.25.1 diff --git a/drivers/usb/typec/ucsi/ucsi.c b/drivers/usb/typec/ucsi/ucsi.c index d0c63afaf345d..affd024190c91 100644 --- a/drivers/usb/typec/ucsi/ucsi.c +++ b/drivers/usb/typec/ucsi/ucsi.c @@ -1002,7 +1002,7 @@ static int ucsi_register_port(struct ucsi *ucsi, int index) * * Registers all ports @ucsi has and enables all notification events. */ -int ucsi_init(struct ucsi *ucsi) +static int ucsi_init(struct ucsi *ucsi) { struct ucsi_connector *con; u64 command; @@ -1078,7 +1078,6 @@ int ucsi_init(struct ucsi *ucsi) return ret; } -EXPORT_SYMBOL_GPL(ucsi_init); static void ucsi_init_work(struct work_struct *work) { From patchwork Mon Jul 6 13:33:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234852 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4779585ilg; Mon, 6 Jul 2020 06:34:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyj+4gFrN6Dstaxnw3EJSaFUGyaxEMxJdR9PaGC/19O8g4XlG69yJbZgyjqVePzOiWySWvI X-Received: by 2002:aa7:db53:: with SMTP id n19mr26651231edt.338.1594042458476; Mon, 06 Jul 2020 06:34:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042458; cv=none; d=google.com; s=arc-20160816; b=wXVnh7p4KbkFLrdLrDj9N2X7R+AummBQ9H8NzxkJlWXzPmHHH9MwAsfQ6Q6CXhhVDd FFiaeBTfclaLt+zXLKCprSlL/vAx23HCLpRbk3xYZyYVk0DpsFHmdcOVu8lI0KdaXAAH Lze9JvWl0uU+EbVInJyiBLUDQ78S0Fllsz46n3OSiVFKJ2k4bzEj0gLSom9fgzNQDL2B fCN89FdmaDqcBxS4bDf6jBexTRNAlOjnG3cPQSKooGmZ9Hw1zLcxd1U3fyBKNtb/xJOU aB2LXfveZuCua9Ip1hcgvAIYtrlEdbS1Q87uoJpS/ZeZ2VuW/STZsIIPeN7WIYWOqIAL 01fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tuuvgBdpWU3P+bBrTu/2KsiGO4ss74gkTJhNI/l0mkY=; b=Xwo/T7hwBXQ/vu6c/BYOGkojDzwJ56jfZdTMSDWd6+ZD2NaufvYG/Jm/jVanYVodYh BOsMMn3VdfZa+YiZmdSq4D4cwCu3K80Fk6o98TnFdwUlZSMQy82vrurgptIV7YSwniOG mgAIOJlK/PsDSFIdKKWuXULdaq9A3caK/1VvzNFmWR71xJgPJ8lMhiPYuguqPs9Gg1E0 8mdgKFoob8Rgo5FV89oc0+QnJCP3jgqQtSQdkejOXF5MPVNFzdcnU83Ax36uJUnsI9z5 NNO6wxmgZNs36KPdpq7dI5FVomqrkEg2/bVQFW1rtCYXXetZ/Sm6oNu3Y8/OC0B/oEPn cXvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tDxm68x6; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id uz6si12423914ejb.50.2020.07.06.06.34.18; Mon, 06 Jul 2020 06:34:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=tDxm68x6; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729204AbgGFNeR (ORCPT + 5 others); Mon, 6 Jul 2020 09:34:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729354AbgGFNeQ (ORCPT ); Mon, 6 Jul 2020 09:34:16 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BB7EC061794 for ; Mon, 6 Jul 2020 06:34:15 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id l2so40630820wmf.0 for ; Mon, 06 Jul 2020 06:34:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tuuvgBdpWU3P+bBrTu/2KsiGO4ss74gkTJhNI/l0mkY=; b=tDxm68x6EEuzSyF8zb1P7MNnLA1RLSLV7ALNXgP2jbhLbdEirodV/LE4bXzaJbsPRg SUs25JhonwmI4Zqrwaw4zG1N8CYo4lAXlnF26lpK/OFRkQCBCsW93WEi1lCMj5UWQUmj QMnuck2Ci0chN7EEaR5qWLPh9Nag2b7j1MCcb9/mrCXgV+WBZ7ijQZzXPdT8Hjg0PTNS goxdYPMOU0X2sc2aE1VXEpQk/0hLVxQjbMvmUCXhN28efa29/LuSc8kkdAhJT0CG2LUK rVz1fvRtUKDbzGwTdNfqJrgIE5j/IDqenQl2BErSZqG2pPSnQFEsUwi3TsrnXUWaGjxc gQXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tuuvgBdpWU3P+bBrTu/2KsiGO4ss74gkTJhNI/l0mkY=; b=jdRt0SXtbxxxi5a+nWNt5eKHNNlYBfsq0aGX4F9cnWZ60K1C4gBKnmLeU43tKVywaC EjZvUQ5XhSZNvUp8mfOKLEBNCMT1yctHhjpd2Vpd2gj6wQC7T5lPLwueK1xOUydPdHYT 222B/MwAAqbcytllClnu8FYiJxtnt3SsTS1dBhkov6mQr5h/5UVFJIrdh81I/mMP4KZr nDW7nBNXlVajsDRAFOcTDkbc5/glnUIacJqlwkR3DkjYAuFE3OmVPgj0QO8f+TjdirRr /GRqN/UmSy+neEDnzQ7IBzR4Ii4ruAlOm9P5TI+9q1omPbqUQEdzbOBVvJgYJ4ys65WQ AD2A== X-Gm-Message-State: AOAM530ebmRGEAJ4l4Siagl0DZ7OhTHJ5gADPxMyn0sWrCZtfAQKZsIW yJ8MZX0y04wTfNovnO7RX1UH0Q== X-Received: by 2002:a1c:49d4:: with SMTP id w203mr50012638wma.13.1594042454380; Mon, 06 Jul 2020 06:34:14 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.34.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:34:13 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Sumit Garg , Daniel Thompson , Douglas Anderson , Petr Mladek , "Eric W. Biederman" , Yinghai Lu , Jason Wessel Subject: [PATCH 25/32] usb: early: ehci-dbgp: Remove set but never checked variable 'ret' Date: Mon, 6 Jul 2020 14:33:34 +0100 Message-Id: <20200706133341.476881-26-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org 'ret' hasn't been checked since the driver's inception in 2009. Fixes the following W=1 kernel build warning(s): drivers/usb/early/ehci-dbgp.c: In function ‘early_dbgp_write’: drivers/usb/early/ehci-dbgp.c:915:13: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] 915 | int chunk, ret; | ^~~ Cc: Sumit Garg Cc: Daniel Thompson Cc: Douglas Anderson Cc: Petr Mladek Cc: "Eric W. Biederman" Cc: Yinghai Lu Cc: Jason Wessel Signed-off-by: Lee Jones --- drivers/usb/early/ehci-dbgp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.25.1 Acked-by: "Eric W. Biederman" diff --git a/drivers/usb/early/ehci-dbgp.c b/drivers/usb/early/ehci-dbgp.c index 775cf70cfb3ed..b075dbfad730f 100644 --- a/drivers/usb/early/ehci-dbgp.c +++ b/drivers/usb/early/ehci-dbgp.c @@ -912,7 +912,7 @@ int __init early_dbgp_init(char *s) static void early_dbgp_write(struct console *con, const char *str, u32 n) { - int chunk, ret; + int chunk; char buf[DBGP_MAX_PACKET]; int use_cr = 0; u32 cmd, ctrl; @@ -951,8 +951,8 @@ static void early_dbgp_write(struct console *con, const char *str, u32 n) buf[chunk] = *str; } if (chunk > 0) { - ret = dbgp_bulk_write(USB_DEBUG_DEVNUM, - dbgp_endpoint_out, buf, chunk); + dbgp_bulk_write(USB_DEBUG_DEVNUM, + dbgp_endpoint_out, buf, chunk); } } if (unlikely(reset_run)) { From patchwork Mon Jul 6 13:33:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234859 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4780347ilg; Mon, 6 Jul 2020 06:35:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJWHHliD8ZtShpyY7XxV56v84XMEronYyuJHu2CYda3ejrO/VlC6KF608k6T939k/vo/I8 X-Received: by 2002:a50:f109:: with SMTP id w9mr53739228edl.277.1594042504915; Mon, 06 Jul 2020 06:35:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042504; cv=none; d=google.com; s=arc-20160816; b=ndnvNdq+s0FcjmtkmGuh1wMpfQI2i/eWWUCVR5Rui3FLEzMBsWmOuAGKgFYlVMwU/4 ihvmZz0SAsm6vDemVPfNaLmZbpGnnEcDVoUJ++3Nrr5J4Y3HfnZUot7dyoZVTOBmLKFi oo3691WYFKnOEvOHzDB6PZe151C01lNRfEhsZhyXZh/zUUvjnVQfPEc6MuVgqVtgpdIH Tv7kViQ9lm/n2QcTqJxEvvMD/3/gejuaRB/FTiH8TGJCvjoM3HhU+fc/FL7FF18K9cJd SBWUbiqaMqK9oYJaKI5NehxIQ1sMIai3gDHrpWLw+QoDoe09ARlsomfcVO5aYKtNJpc5 Fo2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hOxuOAzmvEV55alflVuCU5810VX9tcA35muYC7R0MbA=; b=gPCS5+97XOyVRkvnqJwO53YRJlqdfYx77zApk3FvUSOidnkaK/0aq72me9MFnfXI2E 4MHLee3FNg7UtsKORPGY06/5UxFn/q6quVAh8rtYStMbKzA5QDqVt8Sksx2Vr/7QVZRp NOdb5MYzlt/qMLRWQlnq6y037nVG2SHguh1GBwHnvRD0EKN83l28Fg9hhainndYVrfFU TUlgFleAsMP5MGGq2QTmb36Do2X0IhXW/dhEnbroOHL6NhRr5nMYs1TiaZJTdSayLnc+ NfPpiJNWPnvpM49VXVp0klVcOijVyoyNTB1AvZiIQG8+dHucKYB3yQg1MiOexjA4cB3D YVZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w5P2aU6D; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g15si9551351edy.200.2020.07.06.06.35.04; Mon, 06 Jul 2020 06:35:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=w5P2aU6D; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729365AbgGFNfA (ORCPT + 5 others); Mon, 6 Jul 2020 09:35:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729358AbgGFNeR (ORCPT ); Mon, 6 Jul 2020 09:34:17 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C649CC061794 for ; Mon, 6 Jul 2020 06:34:16 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id z15so29659570wrl.8 for ; Mon, 06 Jul 2020 06:34:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hOxuOAzmvEV55alflVuCU5810VX9tcA35muYC7R0MbA=; b=w5P2aU6Doeac9XeMuviG7stwJdgM6WsIR+NBZVf+lZt+//ND6hJ0DXWizpA/m6bvwD B2u0ApOKmiuQOBKM1YTtRRJXFMhrqsqF5Ykg3yCIhM78pF2i9vIJFL96Ve0I6gQrZww+ hipLqHTD9shzTQ0ixY1kUN5YsF9v2aMQynbFnVU+Qu+aWu0Ikiy2sbwjO0WWC78XIlyu Jukm9EtNycZtWgB8LT/DwQWNu306tPsdPdKJ6yBLniVQ1uduG5/SYh+Cis1o7XDA4U9y bpXkmFKaaIGenZXim6OybyyfkysmnYGI7GTOso3LNOgCj400PgZI42jXMSjLkXY+Bfio 7O8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hOxuOAzmvEV55alflVuCU5810VX9tcA35muYC7R0MbA=; b=ECbqtyOw05Q0FM87VwP6x71SG7B7mQPaL7Njjknm3nydP8GZu9cWfGb5a/my5omfqM +PkRaZLxim4CcUIy6BhGkaCnNKJMoMWREkoapc1NFEQvVZra5nROr29P5fyPI/IUCyNl X8/VBsGHrzpjgL2b8jKnzRK0e/9biZdWIgCUzb0GuPKtJ9OxE+e86u/2Ns9KWw1O8558 D/P/gJ2pvohKea8ydEHvWVK3cBr73xAIqU47SYV9Oocu0kYe1iDuA8A3s2qKDfQabR3S NzniR0zWYFr3OsHiKRVeencxEowSJTmCJfgttHcIronr+QI2HIT6w4+2J/ExGZr0+xv/ ou1g== X-Gm-Message-State: AOAM5300Tgk37QMHDlPfy9Ssn8MimDp0DVNjwMGy3q2Lwv2EgIt+zReQ R8tB//kKMYCUqNIQrxeSYkmTKg== X-Received: by 2002:adf:8024:: with SMTP id 33mr52421656wrk.117.1594042455545; Mon, 06 Jul 2020 06:34:15 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.34.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:34:14 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Jann Horn , Lu Baolu Subject: [PATCH 26/32] usb: early: xhci-dbc: Supply missing 'xhci-dbgp.h' headerfile Date: Mon, 6 Jul 2020 14:33:35 +0100 Message-Id: <20200706133341.476881-27-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org If the header file containing a function's prototype isn't included by the sourcefile containing the associated function, the build system complains of missing prototypes. Fixes the following W=1 kernel build warning(s): drivers/usb/early/ehci-dbgp.c: In function ‘early_dbgp_write’: drivers/usb/early/ehci-dbgp.c:915:13: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] 915 | int chunk, ret; | ^~~ drivers/usb/early/xhci-dbc.c:600:12: warning: no previous prototype for ‘early_xdbc_parse_parameter’ [-Wmissing-prototypes] 600 | int __init early_xdbc_parse_parameter(char *s) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/usb/early/xhci-dbc.c:653:12: warning: no previous prototype for ‘early_xdbc_setup_hardware’ [-Wmissing-prototypes] 653 | int __init early_xdbc_setup_hardware(void) | ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/usb/early/xhci-dbc.c:910:13: warning: no previous prototype for ‘early_xdbc_register_console’ [-Wmissing-prototypes] 910 | void __init early_xdbc_register_console(void) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Cc: Jann Horn Cc: Lu Baolu Signed-off-by: Lee Jones --- drivers/usb/early/xhci-dbc.c | 1 + 1 file changed, 1 insertion(+) -- 2.25.1 Reviewed-by: Jann Horn diff --git a/drivers/usb/early/xhci-dbc.c b/drivers/usb/early/xhci-dbc.c index 04ba11fff0edc..a9932c1ff20f7 100644 --- a/drivers/usb/early/xhci-dbc.c +++ b/drivers/usb/early/xhci-dbc.c @@ -21,6 +21,7 @@ #include #include #include +#include #include "../host/xhci.h" #include "xhci-dbc.h" From patchwork Mon Jul 6 13:33:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234858 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4780255ilg; Mon, 6 Jul 2020 06:35:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKDXlrL1SO5aEedaXq1D7hq2hOmZz3il1eiH6b6s3FVMhms7LgBZU0H/9wann2CxZJgFUI X-Received: by 2002:a50:bb48:: with SMTP id y66mr51306957ede.147.1594042500201; Mon, 06 Jul 2020 06:35:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042500; cv=none; d=google.com; s=arc-20160816; b=CElDH8+p53Fk3k809va7G0caEYTrwmYIVWB7t4otfFDXBKuLztvpkBxhBXKwfvawSY Ng3gr84XB65khG5OUqb4W0qT/zYV5BBAHR3Nmdbdn9MnjIXAmi+HMaxSbcjVJypW7ScX nZfMQ+bjC5o9QDfdVOcXCzm8/DNVHYODjdT7HNF1NLa2w0o+viOgVlxxxkub3JopL5mN ztznHPqyzrpK/qIytCJshQKiRia5Pn/4y3K3SGtMx5pNA26coo3mQj4+Bf61ZE638chx TsXz+GByMRpEIVvEJVYhe7yKLQa1VUrDofzy4Or69RDFFi5+Hw3Sk3HmcZCtjZlR6ebQ 9sNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nPVZRZLDqwpPhO4RC/GUsbLkf95aQVfMZw3d44goLsA=; b=pYx/0z1NjiqV8DutW0Os/01VJthzeve9G/hKN6ADZyJbK74XY6+r3vMlkX0uawKiuH COS+842mbllA0VUaky7o60M0IiDioZlf1IAxknJfQcKxpLzepnMFjAeIqKkb/SnkncSm q9dD6E4D7jVels6moBubPsEB017NNUuQcRJ01NXEX9aCCP7BRFklQ6cvC9SRVPdqz40B Hk9oBvkcL6mnWaLWz6wNgnR1u9CBXP5I8HLa3EsOTecnMUX4cfLgAUUZ9vbRl3YqOGOU TguDIbgW8JKeIynVNdT/Bch0vC9nKPKdJhODW2CM6J1aqYZXy78xoWi8bkW/1ZMMqW+2 nWfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e7KtGYdj; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g15si9551351edy.200.2020.07.06.06.35.00; Mon, 06 Jul 2020 06:35:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=e7KtGYdj; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729458AbgGFNe7 (ORCPT + 5 others); Mon, 6 Jul 2020 09:34:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729365AbgGFNeS (ORCPT ); Mon, 6 Jul 2020 09:34:18 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F7ABC061755 for ; Mon, 6 Jul 2020 06:34:18 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id 17so42074750wmo.1 for ; Mon, 06 Jul 2020 06:34:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nPVZRZLDqwpPhO4RC/GUsbLkf95aQVfMZw3d44goLsA=; b=e7KtGYdjynUM1W1lVC4D+RIRR4fBD8poghJ6q+calXuw04pQafBm+5FCXwnEGJDTjX BDzvFqtTHsd9hwMREut6OdZzkcQHEC0l2dZjb9VdPRyWH2aZ5LABMONQ2vCB9wK9tp1E zEM6m4tqjYBKq8REuplcACGfj3pwaKAES50KYRAyjwak7AC03Z7nKSoYgGR4tClPuoiM +CxlNKfmQVhp8aKa3Hs4YubZpnJHKn5GFtivVZFBW6CY5w0GlhBeXoh2rigyRtBmRuKn ZF7+SX/Ys14HAbuDA36aa4fev+VbZ5zLdYDDq0g5UecpKwPDPbJBaNBfdLa8wx3hwrnU bMsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nPVZRZLDqwpPhO4RC/GUsbLkf95aQVfMZw3d44goLsA=; b=pG4m/jxmCdGY4tHk6qZQ5qN1/kH5/4RmItWikNyPHHXL85KsCm4yUXa1SZQCR0ZJNp Qvr7FkJ6++zqrPFb6N9eYiNizOjuDRVfMlfxftdoxjPvVKlu15wcVg0do276/T0FuHbm ePwuiPXxNOAu7pdiV1YkNnQFBc4tp8oHl7HVAwfyxXKwduGpyZXb23O2Vr3/QLWQx9UN S70zVW6fIyLiy22uvlp5eUy53DDM8063wDZxNPbexPCU3yOunsrztd6WAJvLqdrBlzl8 BwrRg7EpFf6HM56P57c74ckhRc3p1DpYYsafTEzr/ZQkI5LWnxLUMRWOWiGViLQKNsoy 585g== X-Gm-Message-State: AOAM533vUVEMTYOXiyPINlrHgh0X+/dNJJDZwPKLQfSmVdYzp7wEYz7a p0CWr+xqkdLYFhqyM0rtr0wpLQ== X-Received: by 2002:a7b:c013:: with SMTP id c19mr48983261wmb.158.1594042456784; Mon, 06 Jul 2020 06:34:16 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.34.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:34:16 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Lu Baolu Subject: [PATCH 27/32] usb: early: xhci-dbc: File headers are not good candidates for kerneldoc Date: Mon, 6 Jul 2020 14:33:36 +0100 Message-Id: <20200706133341.476881-28-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Demote xhci-dbc's file header to a standard comment block. Fixes the following W=1 kernel build warning(s): drivers/usb/early/xhci-dbc.c:10: warning: Function parameter or member 'fmt' not described in 'pr_fmt' Cc: Lu Baolu Signed-off-by: Lee Jones --- drivers/usb/early/xhci-dbc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 diff --git a/drivers/usb/early/xhci-dbc.c b/drivers/usb/early/xhci-dbc.c index a9932c1ff20f7..c0507767a8e34 100644 --- a/drivers/usb/early/xhci-dbc.c +++ b/drivers/usb/early/xhci-dbc.c @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 -/** +/* * xhci-dbc.c - xHCI debug capability early driver * * Copyright (C) 2016 Intel Corporation From patchwork Mon Jul 6 13:33:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234857 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4780184ilg; Mon, 6 Jul 2020 06:34:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsp717P5zLBWlTX9mAUIA5U+B//c6Ye2hhi8XqYuu0MGfPp09Hbpr22vnHlKNQUyHwnxQS X-Received: by 2002:a17:906:9408:: with SMTP id q8mr42224657ejx.496.1594042495334; Mon, 06 Jul 2020 06:34:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042495; cv=none; d=google.com; s=arc-20160816; b=B7/qlE+bPDGH40p0pSlRJ8eQHJd5QDMfzh3ewy2D9s1OqmXHsd1Org9A2Opz429T0T RGMtN8UEvfWXptdJGHbKUJeM5OjXbR+ZOMmbYGrAVfW7gt6QhEHBTiV+8v6yAyG4FmmB AIiSYd58yWj1ooPu2rvXap3SA1JVt4vdvTRxYa7j+uq3B9QQnChpbxMu1PK7aaBm0KoI mHBT95tQTvuBgMlRcVmoC2VnyodNBXdFO1bKjlpcsr/anJe2X12qWWWItiQEGF7KapVf enbSoJuEb8vT1m10+/BpjaLU1xwDUATT9Jn371tQKYvykLmKWN2zeEBtbFb1vLl61p1s +6kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mWltuWttrG3KiDQZY2idnG8bvke04NKb60bkJdZCmM8=; b=SoTMcPzoYQdQCzk3ftTQrxvk5IMKSaiEKWHMocZ+MKjTLDxwbVzt1XwUndzMU35O6Z EldIuB7mwBQQ0zNsvp2MhxJoUPbHKXZIuKetxdQyODF6YY/0Bc8cCsnN3MkdNidbJOky gOH7woHQulL9u6b4sG3Bar37E7vIU6qvAOgR7/4htvrgESbZXaKManMZa4mkSbG4xma9 jEGAi6BXnC6gYiJsfWW4x53B1RoeIRukO24/BtS/iAWLsQA6+3BLdz4ZgO1V15k4YM89 wPLr3cWYcCFU6us7haAAmxri4ABxqYFMxR6EFXT8Ii2n2NS0Q6A4gLH4cFYaPO4tky1c umeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FiUwhiwO; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k19si12281812eji.419.2020.07.06.06.34.55; Mon, 06 Jul 2020 06:34:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=FiUwhiwO; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729227AbgGFNey (ORCPT + 5 others); Mon, 6 Jul 2020 09:34:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729368AbgGFNeT (ORCPT ); Mon, 6 Jul 2020 09:34:19 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C958C061755 for ; Mon, 6 Jul 2020 06:34:19 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id s10so40900548wrw.12 for ; Mon, 06 Jul 2020 06:34:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mWltuWttrG3KiDQZY2idnG8bvke04NKb60bkJdZCmM8=; b=FiUwhiwORfJUq6xcQw08ePbp4jFq9zkCsBOJbY5wttUElOMB2DgHr2Ko3zvst7bvYB Ui9P6o+mRZcelsc5C9tXcPKLLoFC/iS6qar8Ip5fBxVFMZRZJVsSsyS5ef/QT9kTop8z UGOpptvK9HXjs+3AGo+o6Ivd4xWy7PRMnw7Zkoe+bSm8NQQJFGxdnxnaHaktnGlOtkIN yfyBY5qfjjE8G+G03wwUI6G05iBnT19J8s7Ok43KhKvri0eGH7E8GHp4zy+syeBHiNS0 n72Yictau5/AGSpOoyLakFPr6cSNAGIFJ5miYw5mNg249KRRQV1WtpJcuWU6y6G34G+9 pVRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mWltuWttrG3KiDQZY2idnG8bvke04NKb60bkJdZCmM8=; b=pmxkYqv7+4pqkCCH9ediv0pobxMMC050NVCqbW04Zpf9B3R4pQKA4Id4ddMd6/dEPf 6g4h5/0i3shiHWv17vi1P9nz/ViBnyErLTZ+kM3uvTNx3eRRkgxhDiAvutwWWHy8TpUr lQBHTTCf6WBzrOPdqmCnSQYiRCTt/FmpWEguLgkrGCsx4EZPI6Ojw4uj+Ie8lyF/IXKO swNksBjjuGUMXlF/gkV+TrhvNBbqoU62P0dW2WjIdeAYwwZf9Xd3KFlHyIc1Pif7keyj iB23fH5kgMg8EP+HKEvt6x0S6m32Val2zFENmcKAv8GxIgGUHFGZ4lIv3sf/Ajsv9wPD 7T+A== X-Gm-Message-State: AOAM53294MRV6WdcQSxmta3JxIOLkckATe4OOGjG7pDkjkMB9TDcWY7h 3JIFeQ+oiRU4XDPUaLg+rXLqJA== X-Received: by 2002:a05:6000:1290:: with SMTP id f16mr21627350wrx.66.1594042458073; Mon, 06 Jul 2020 06:34:18 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.34.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:34:17 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Tony Prisk , Alan Stern , Philipp Zabel , Steven Brown , Hauke Mehrtens , de Goede , Michael Buesch Subject: [PATCH 28/32] usb: host: ehci-platform: Do not define 'struct acpi_device_id' when !CONFIG_ACPI Date: Mon, 6 Jul 2020 14:33:37 +0100 Message-Id: <20200706133341.476881-29-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Since ACPI_PTR() is used to NULLify the value when !CONFIG_ACPI, struct ehci_acpi_match becomes defined by unused. Fixes the following W=1 kernel build warning(s): drivers/usb/host/ehci-platform.c:478:36: warning: ‘ehci_acpi_match’ defined but not used [-Wunused-const-variable=] 478 | static const struct acpi_device_id ehci_acpi_match[] = { | ^~~~~~~~~~~~~~~ Cc: Tony Prisk Cc: Alan Stern Cc: Philipp Zabel Cc: Steven Brown Cc: Hauke Mehrtens Cc: de Goede Cc: Michael Buesch Signed-off-by: Lee Jones --- drivers/usb/host/ehci-platform.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.25.1 diff --git a/drivers/usb/host/ehci-platform.c b/drivers/usb/host/ehci-platform.c index e9a49007cce4a..006c4f6188a52 100644 --- a/drivers/usb/host/ehci-platform.c +++ b/drivers/usb/host/ehci-platform.c @@ -475,11 +475,13 @@ static const struct of_device_id vt8500_ehci_ids[] = { }; MODULE_DEVICE_TABLE(of, vt8500_ehci_ids); +#ifdef CONFIG_ACPI static const struct acpi_device_id ehci_acpi_match[] = { { "PNP0D20", 0 }, /* EHCI controller without debug */ { } }; MODULE_DEVICE_TABLE(acpi, ehci_acpi_match); +#endif static const struct platform_device_id ehci_platform_table[] = { { "ehci-platform", 0 }, From patchwork Mon Jul 6 13:33:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234856 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4780003ilg; Mon, 6 Jul 2020 06:34:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxr6EJpMGuKk6YDkXkmBAms481Z4FxxzbZu7AbcDFnoeYqU4uzTMxzBroJlx2PLFMekHamd X-Received: by 2002:a17:906:1e85:: with SMTP id e5mr35152645ejj.76.1594042483885; Mon, 06 Jul 2020 06:34:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042483; cv=none; d=google.com; s=arc-20160816; b=gTsnJXLiWm6KTMs+4y90iRibjde5eW+/+Ult+Zxpt8pzjVgJChm4vF5udrDSFef06F Rk7TkpXqRw468yUT2vU98wmerZfzyCx5iMV1SPR/KEaY7JvU6hoN3SixVliIzRCuiEzA cboKIzftoIaHwitwul2nlIYRhE7NBcOzkZsj1PySvSRY2i9JzVd2+A/mY3HlRRY8sw3i NJCnCeBicqXjAUaNk6evMDcWgiGcjPza7BKFe02FOvvDg8RIJnD3ZSN3kxS2NOGmuaDB vM+uchgzIX1+by8Gs4JydB0Zf7Gthy1+1X3WDetqGuTsb8lfGgi5NLf5WleCFqXobEMM zrNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wUFrKyBE/rqHQUVcokgEiKeaeYpvOr+KJ0Q9vYwpje8=; b=q+ZJmpqNNNRMhtykJBhkRMCRHnhb0Sd4lULiT+B9GxhPAotlHAFrvPLjgQSkB+arjj Y/V0JbVmAF7EDTNYFwnw0BEDRthKuKdMog3JGOA/RyOGkvlHrjauQN/cklyDusPMfL5B VTRRuqT7GmV6mzzSewIgQxKsBaMrndHJiCHDPOdp0FzrRMm39Ofs/CbFX5qg7QVj446n csKlvE09n2EWKSiPfgtiOHtwzrR28GDXwI7jBkoKAgMRpii6+dl/0npDqrqsQAvYNwo/ cGND1TmM8uAscp4iPx0yXzSQcSl4I3sMVjqGIms7nJepvsp8VonaZjqquyfWDq3pwvUL e5/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uusCAAiM; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ch2si13482567edb.80.2020.07.06.06.34.43; Mon, 06 Jul 2020 06:34:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=uusCAAiM; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729425AbgGFNej (ORCPT + 5 others); Mon, 6 Jul 2020 09:34:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729383AbgGFNeW (ORCPT ); Mon, 6 Jul 2020 09:34:22 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82153C061794 for ; Mon, 6 Jul 2020 06:34:22 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id f7so37936610wrw.1 for ; Mon, 06 Jul 2020 06:34:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wUFrKyBE/rqHQUVcokgEiKeaeYpvOr+KJ0Q9vYwpje8=; b=uusCAAiMYRyZu2CfIvDS4HCRjCXdZtQhAdbkpOMuxK8zvkQgvAiWP7osHCg5j0Lxi5 16z2up3T4hzLGYGUj30PuZuH/B1ZOaCs7UsgLTYfLAopJ+wzvauVq5wsuRkhS9mODBVO xu3HpYfIRTGCABdG6OuYwyuSubTIL9fv8KfITH2PVNH6p+KU2u/VSZ88VFCHVaBSnUEE qCSCG4xa+6MOhyRfi5aRon2mI3zyyZNLPzHx0yYiSZHLP1iZQY77tCT0GZB2yW+6Np0Z oepj3m1na2bZFY8S7xZRfDmdzIbt82vIVRQ30dBiAEz2EguVEQm+DlN2OGXrSjBKXDOb Soig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wUFrKyBE/rqHQUVcokgEiKeaeYpvOr+KJ0Q9vYwpje8=; b=D3HSVrawI3Xsgd4N49Jm++FeCmxco74wRM9lQSiOcNWHAyihmYdxaYyLi/wNMpO+br vdRt8DaCd3Gvc90hvu6q2y1900UfArQBC8+5bs7P1wrjpHSghaq/0Wfv7yNXrJW1yBfb H9+edcWNi2YgYPnEOTK4EzodvuqGqjaETZEClfPPS7yuQhOzC78m5W8UrawT0iVpeohc a0hHPwCG3nrjsz3P+CvyKsvgJnIkG770lRod4y00UNEU0Z9gsfdNpmWbgOAfrUFBAMiX KagbbwMUl/vtRrHLnaucDWQU39BhTKAUZ6CNmuv9AYvQRL3N0QArP/XDIT7fxg7kn8jE JvzA== X-Gm-Message-State: AOAM531XDjmWcnjI0vmW9Dr+xdC9ymMDSjgAKw5JUUTB8+h2JLeoz8r+ OnZkLyIes7YMJT71CNxUYVUZVA== X-Received: by 2002:a5d:470b:: with SMTP id y11mr50993618wrq.101.1594042461212; Mon, 06 Jul 2020 06:34:21 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.34.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:34:20 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Shlomi Gridish , Jerry Huang , Peter Barada , Anton Vorontsov Subject: [PATCH 30/32] usb: host: fhci-tds: Remove unused variables 'buf' and 'extra_data' Date: Mon, 6 Jul 2020 14:33:39 +0100 Message-Id: <20200706133341.476881-31-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Neither have been used since the driver's inception in 2009. Fixes the following W=1 kernel build warning(s): drivers/usb/host/fhci-tds.c: In function ‘fhci_flush_bds’: drivers/usb/host/fhci-tds.c:472:6: warning: variable ‘buf’ set but not used [-Wunused-but-set-variable] 472 | u32 buf; | ^~~ drivers/usb/host/fhci-tds.c:470:6: warning: variable ‘extra_data’ set but not used [-Wunused-but-set-variable] 470 | u16 extra_data; | ^~~~~~~~~~ drivers/usb/host/fhci-tds.c: In function ‘fhci_flush_actual_frame’: drivers/usb/host/fhci-tds.c:527:6: warning: variable ‘extra_data’ set but not used [-Wunused-but-set-variable] 527 | u16 extra_data; | ^~~~~~~~~~ Cc: Shlomi Gridish Cc: Jerry Huang Cc: Peter Barada Cc: Anton Vorontsov Signed-off-by: Lee Jones --- drivers/usb/host/fhci-tds.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) -- 2.25.1 diff --git a/drivers/usb/host/fhci-tds.c b/drivers/usb/host/fhci-tds.c index f3308ce250438..d98fd9e1af0bc 100644 --- a/drivers/usb/host/fhci-tds.c +++ b/drivers/usb/host/fhci-tds.c @@ -467,17 +467,15 @@ u32 fhci_host_transaction(struct fhci_usb *usb, /* Reset the Tx BD ring */ void fhci_flush_bds(struct fhci_usb *usb) { - u16 extra_data; u16 td_status; - u32 buf; struct usb_td __iomem *td; struct endpoint *ep = usb->ep0; td = ep->td_base; while (1) { td_status = in_be16(&td->status); - buf = in_be32(&td->buf_ptr); - extra_data = in_be16(&td->extra); + in_be32(&td->buf_ptr); + in_be16(&td->extra); /* if the TD is not empty - we'll confirm it as Timeout */ if (td_status & TD_R) @@ -524,7 +522,6 @@ void fhci_flush_actual_frame(struct fhci_usb *usb) { u8 mode; u16 tb_ptr; - u16 extra_data; u16 td_status; u32 buf_ptr; struct usb_td __iomem *td; @@ -538,7 +535,7 @@ void fhci_flush_actual_frame(struct fhci_usb *usb) td = cpm_muram_addr(tb_ptr); td_status = in_be16(&td->status); buf_ptr = in_be32(&td->buf_ptr); - extra_data = in_be16(&td->extra); + in_be16(&td->extra); do { if (td_status & TD_R) { out_be16(&td->status, (td_status & ~TD_R) | TD_TO); @@ -552,7 +549,7 @@ void fhci_flush_actual_frame(struct fhci_usb *usb) td = next_bd(ep->td_base, td, td_status); td_status = in_be16(&td->status); buf_ptr = in_be32(&td->buf_ptr); - extra_data = in_be16(&td->extra); + in_be16(&td->extra); } while ((td_status & TD_R) || buf_ptr); fhci_td_transaction_confirm(usb); From patchwork Mon Jul 6 13:33:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234855 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4779905ilg; Mon, 6 Jul 2020 06:34:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+fz2R0MFqcWyT4o8tMEMdY9Qd+seg5UHkKRvMvZEKugQ3q/wmLIoAoRvmXAnnzpup30tk X-Received: by 2002:a17:906:ca4c:: with SMTP id jx12mr40045970ejb.231.1594042478217; Mon, 06 Jul 2020 06:34:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042478; cv=none; d=google.com; s=arc-20160816; b=sc7OGmkkTMb+464MQbe5Hu8U/NW3iNt7litMilH8TyCKL5JC3RtEKgPhFN7PyCeUDN SfC5rnGSOrvlDTPbjjRKi4T78/iRAMJ+wcSpkd2CzJbfD+YEvrqlI8BNF5+9jfnPui2y cFAlMTb6v5wTDaorMWxdt418m63LTcdtb54IvPwtFKDUjaAbVc/Zt7oRRZCmgdptUqVB gRSIBIobLqBNWOtN4bZbg9Qoj/jCNaRn4krPBo8KNm2gjmd8MaFMM0FA/a8SwHZqOvDx T4Swp0yyx5CYfwLfUZOMymziuvjZNw/lLrV5bCUzkDajlO0yAUmeZpnV1DwY6kVNrujq vv9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fYphPHtOnqXpEOjqEtrG2eQ5inMeigGW8H35HCVLb4A=; b=LFDXHVKbXS0BaP4eCdE+On/9ZcrY1fpfaD0XrV45Jm4S2agIuQv52nxSuD4JjnPgYk PxFEqMxyLKBoRveVQPFCCUmWWjuiAL3VItiABere2G26BKB80jEtURXOUceW8gSnGRXE fLUic4aWY1d62X5sbpxyrJKHSZWRNaMQfuAJa2Y2aN/3eHiWM9hm1SzP1SYZxE3D+LSx edH2OhYU46X7/QsQiwGEbxhwQter/9kotnQF7HwfPufpJavsaggKtiOJho/gBBirE8jv JE8XAKGD0rcadfLeeo7scCSFqMdz+ChF15QKvK2ezUlj7eSFFSq5tM9Jw3Dg8dSvyJ8D e1jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pIQ9uuVn; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l17si13978647ejc.174.2020.07.06.06.34.38; Mon, 06 Jul 2020 06:34:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=pIQ9uuVn; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729413AbgGFNed (ORCPT + 5 others); Mon, 6 Jul 2020 09:34:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729391AbgGFNeY (ORCPT ); Mon, 6 Jul 2020 09:34:24 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 996A6C061755 for ; Mon, 6 Jul 2020 06:34:23 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id 22so39378299wmg.1 for ; Mon, 06 Jul 2020 06:34:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fYphPHtOnqXpEOjqEtrG2eQ5inMeigGW8H35HCVLb4A=; b=pIQ9uuVnn+fW6hJfQP519yESrX2DO/yRDUtbTlObfQ7JiXoQk1gUB8izw+sRf4uiP8 0qRPMoy8V3fOjyBkwCzS9AG6yUdgQccA81mMdgPqR8VCUf9uNV6P4+i3drgluWiyuTmT MQEXMjrNdksYTFKqr2MlVEY2y1S2VnIj7ZkoLfXk5UAfT4JD5GUm5dHUV+1okA6gW4No 9O2oZmH1/5mtvpALvC7xYtm7gHR72y8RzKnIJ29P1F/sxS16DaKnI1wHAtggBbdw+i3T am7aikxGnPnMayMpGLeH64fpGjUAHyfWf/ZsNROTefX8AI4c+3cIjlt2iV9Amf5+79BV DbAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fYphPHtOnqXpEOjqEtrG2eQ5inMeigGW8H35HCVLb4A=; b=JaQx5lIdPK4bHTXecc15umCCL2b2bEuiET5GNQYhmxlbzB21zejOE07aeAGFXQdCFk +q83PfLvH1URpC6qB7gWiQz6Fu5OA01YcEM8YMcnaJTdaGMELoUrRRl4r0jJ8l9IiM2z SqqmQ8zlwJ52oXj9VrQKN662lkFmp8KnVGa3gWAX15e7n37zJfXUikwARIPCCBlgx5SN Jzw7dgWyiI75PWYwK71qboy3Wv+nTPtvWcKaEDhQ8QivvYN0h/G35F/Iui13H2a2TZSk HL6Q/nJ334grqi208PlsjEgAWQiPcF5L4ubb2U8pjkI0s9qCtRyTigFj/qnoVfkth3xn kpHQ== X-Gm-Message-State: AOAM531yhmHYRKF0ME39TzsWqqMRFluYZDddlfTalJ2Lcdb+KXXGS+GA Kr180J1+xCA+08TwkcJiSPOolw== X-Received: by 2002:a05:600c:2219:: with SMTP id z25mr6860737wml.154.1594042462367; Mon, 06 Jul 2020 06:34:22 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.34.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:34:21 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Shlomi Gridish , Jerry Huang , Peter Barada , Anton Vorontsov Subject: [PATCH 31/32] usb: host: fhci-sched: Remove unused variable 'td' Date: Mon, 6 Jul 2020 14:33:40 +0100 Message-Id: <20200706133341.476881-32-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org 'td' has been completely unused since the driver's inception in 2009. Fixes the following W=1 kernel build warning(s): drivers/usb/host/fhci-sched.c: In function ‘fhci_queue_urb’: drivers/usb/host/fhci-sched.c:704:13: warning: variable ‘td’ set but not used [-Wunused-but-set-variable] 704 | struct td *td; | ^~ Cc: Shlomi Gridish Cc: Jerry Huang Cc: Peter Barada Cc: Anton Vorontsov Signed-off-by: Lee Jones --- drivers/usb/host/fhci-sched.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) -- 2.25.1 diff --git a/drivers/usb/host/fhci-sched.c b/drivers/usb/host/fhci-sched.c index 3235d53074038..63c646c8f7d62 100644 --- a/drivers/usb/host/fhci-sched.c +++ b/drivers/usb/host/fhci-sched.c @@ -701,7 +701,6 @@ void fhci_queue_urb(struct fhci_hcd *fhci, struct urb *urb) u32 data_len = urb->transfer_buffer_length; int urb_state = 0; int toggle = 0; - struct td *td; u8 *data; u16 cnt = 0; @@ -770,7 +769,7 @@ void fhci_queue_urb(struct fhci_hcd *fhci, struct urb *urb) usb_endpoint_maxp(&urb->ep->desc)) == 0)) urb_state = US_BULK0; while (data_len > 4096) { - td = fhci_td_fill(fhci, urb, urb_priv, ed, cnt, + fhci_td_fill(fhci, urb, urb_priv, ed, cnt, usb_pipeout(urb->pipe) ? FHCI_TA_OUT : FHCI_TA_IN, cnt ? USB_TD_TOGGLE_CARRY : @@ -781,7 +780,7 @@ void fhci_queue_urb(struct fhci_hcd *fhci, struct urb *urb) cnt++; } - td = fhci_td_fill(fhci, urb, urb_priv, ed, cnt, + fhci_td_fill(fhci, urb, urb_priv, ed, cnt, usb_pipeout(urb->pipe) ? FHCI_TA_OUT : FHCI_TA_IN, cnt ? USB_TD_TOGGLE_CARRY : toggle, data, data_len, 0, 0, true); @@ -789,7 +788,7 @@ void fhci_queue_urb(struct fhci_hcd *fhci, struct urb *urb) if (urb->transfer_flags & URB_ZERO_PACKET && cnt < urb_priv->num_of_tds) { - td = fhci_td_fill(fhci, urb, urb_priv, ed, cnt, + fhci_td_fill(fhci, urb, urb_priv, ed, cnt, usb_pipeout(urb->pipe) ? FHCI_TA_OUT : FHCI_TA_IN, USB_TD_TOGGLE_CARRY, NULL, 0, 0, 0, true); @@ -798,7 +797,7 @@ void fhci_queue_urb(struct fhci_hcd *fhci, struct urb *urb) break; case FHCI_TF_INTR: urb->start_frame = get_frame_num(fhci) + 1; - td = fhci_td_fill(fhci, urb, urb_priv, ed, cnt++, + fhci_td_fill(fhci, urb, urb_priv, ed, cnt++, usb_pipeout(urb->pipe) ? FHCI_TA_OUT : FHCI_TA_IN, USB_TD_TOGGLE_DATA0, data, data_len, urb->interval, urb->start_frame, true); @@ -808,12 +807,12 @@ void fhci_queue_urb(struct fhci_hcd *fhci, struct urb *urb) ed->max_pkt_size = usb_endpoint_maxp(&urb->ep->desc); /* setup stage */ - td = fhci_td_fill(fhci, urb, urb_priv, ed, cnt++, FHCI_TA_SETUP, + fhci_td_fill(fhci, urb, urb_priv, ed, cnt++, FHCI_TA_SETUP, USB_TD_TOGGLE_DATA0, urb->setup_packet, 8, 0, 0, true); /* data stage */ if (data_len > 0) { - td = fhci_td_fill(fhci, urb, urb_priv, ed, cnt++, + fhci_td_fill(fhci, urb, urb_priv, ed, cnt++, usb_pipeout(urb->pipe) ? FHCI_TA_OUT : FHCI_TA_IN, USB_TD_TOGGLE_DATA1, data, data_len, 0, 0, @@ -822,12 +821,12 @@ void fhci_queue_urb(struct fhci_hcd *fhci, struct urb *urb) /* status stage */ if (data_len > 0) - td = fhci_td_fill(fhci, urb, urb_priv, ed, cnt++, + fhci_td_fill(fhci, urb, urb_priv, ed, cnt++, (usb_pipeout(urb->pipe) ? FHCI_TA_IN : FHCI_TA_OUT), USB_TD_TOGGLE_DATA1, data, 0, 0, 0, true); else - td = fhci_td_fill(fhci, urb, urb_priv, ed, cnt++, + fhci_td_fill(fhci, urb, urb_priv, ed, cnt++, FHCI_TA_IN, USB_TD_TOGGLE_DATA1, data, 0, 0, 0, true); @@ -844,7 +843,7 @@ void fhci_queue_urb(struct fhci_hcd *fhci, struct urb *urb) */ frame += cnt * urb->interval; frame &= 0x07ff; - td = fhci_td_fill(fhci, urb, urb_priv, ed, cnt, + fhci_td_fill(fhci, urb, urb_priv, ed, cnt, usb_pipeout(urb->pipe) ? FHCI_TA_OUT : FHCI_TA_IN, USB_TD_TOGGLE_DATA0, From patchwork Mon Jul 6 13:33:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234854 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4779799ilg; Mon, 6 Jul 2020 06:34:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvuh7ZzI2bfOOTeGb6fq6JPZh6uupZsfg5LpLwT+9gk6l+kRJpcp8XukX4A9MkhJ/CEDvm X-Received: by 2002:aa7:c504:: with SMTP id o4mr54986931edq.311.1594042470536; Mon, 06 Jul 2020 06:34:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042470; cv=none; d=google.com; s=arc-20160816; b=wT6VEbuQjhW1hnXOtne8XDT8Hc7VPHanANksZSWJz/0wZZOMQaFkYHExEXZWcugogS xIQt/02WyAAwed9XahUcxk5WHwKf8bfDanxKQVxw7aiSdUsp68v7KsCsocwINR+SI06k tlkp72Wy7+M5lWDSRBdId0nFxq6R/iTjxHOe9naxvFFFMK1a2OcwS5sZxq6o0/zt5cBd LBydZ6bt04yXOQ4X59sxoAtClP/qczDY7BHXFjelo3T8fBFhiYgoK1MMyxBnNFmeFjk/ KrosH8NG2b5AqcX5whKBohUJU8G6jJPMDdQEEEnxQ8TWq+98W9acN96pP8NGByQrENuj E1Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+aWkOnJjbe/7IK7NRoDvxRwORV+t2eCxVhOYLY5eRmU=; b=bwTGQV0XsmDxAr+FbYaOvRq+NJIqOStmna3yGmVIm7SqeX63sqHrv31z/MDsWPjzMn Uz9ZpaI/ajszei7ddfVKvV9Rk/DWZBGfAcCUsdt80pi9gWzvGk16yIOitTOxTj/v7gY/ ylrNbCN3ef1EXYmFN+CBtrXHe2wwnXy+RWVW3YC6uurRKYwgp+I6A6PitWyKqS9jQOkr tl1xYIJ1sglrAh2Z4FPMAAnN3wZl/jvz+xcTLIjxsj9oKmrVA31yR1Iyt0LHt//VLWG+ M712itvYGEXO3l86+vsRFGmkdG4YAxaS07xdW1FcKERJE1et4ABVx8iFhQP0DKvw+rNy bwZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="gbx/6YjT"; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dt17si17323176ejc.457.2020.07.06.06.34.30; Mon, 06 Jul 2020 06:34:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b="gbx/6YjT"; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729377AbgGFNe0 (ORCPT + 5 others); Mon, 6 Jul 2020 09:34:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729395AbgGFNeZ (ORCPT ); Mon, 6 Jul 2020 09:34:25 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C44CC061755 for ; Mon, 6 Jul 2020 06:34:24 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id r12so40881770wrj.13 for ; Mon, 06 Jul 2020 06:34:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+aWkOnJjbe/7IK7NRoDvxRwORV+t2eCxVhOYLY5eRmU=; b=gbx/6YjTbDOXIW4LuH0gXQ/axZ6vtr5Q+IM30lN6HSd2IbKna7uTyK10teMAt6y0Lk 0xliIWmuFyYSKC28K8Txu3/u3lIpSijGtDQGknnxxqv2omOKry0M4wAsRTesMW1jTCkw /Ba0dcFpT+psH9sKfyWZCtE7LsLorCxeXUV4QsTez0/QuWDq2MrS6syfLhb7J2VnpAbZ q2Q119ypezf9Whp4PGxmTQ+bdWH+i0HCBUEBAsa0C1SfsMKNGakHeNCRHHdN1ynTWw5y 33tnFoqLPdDQh4A3ja91qaZ+9hK40F/VuKoKaVKroSwGPK31KwufTLIdetqfGKmilXP3 l4yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+aWkOnJjbe/7IK7NRoDvxRwORV+t2eCxVhOYLY5eRmU=; b=ts9vygYj6MnzG50a7GhXMoUePW+UR08oWsh9cuozkTtxAY/Nn811GBs1RvDTqTJmDX FJOxAB/90DFRCW2AmxeQoawByqqw70qbMHiDIhWo/YwE2ukF6w118Q0MDjzUQHhBdka/ /ul1yfcYsHU+ZvPB9RbfbtD1bl6BVW7KkEH5UKD+nP+6alU+O1KHyA8l7Q4WTrkFhjry KCBDd8QhvQZRilGc+8ywJWGgmCKzHu9SDCPSjfeY2SyLOEbCQnWc1jw5ZLw+vYVI82qq f4mTObGzmlZe92tyQgHfBrUmdAz7ZRxw4FN4en1DKmGhEYimgqxKhwdMDBB8teoMRFnQ 9WCA== X-Gm-Message-State: AOAM5331u7Rg3jhFrYxwd4oj9EQza5ODfLicLFDdpUpi9lrqP9h10EiY fXFacIHwcH/CZ3uRh4Gn/Oh2uw== X-Received: by 2002:adf:8024:: with SMTP id 33mr52422302wrk.117.1594042463436; Mon, 06 Jul 2020 06:34:23 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.34.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:34:22 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Mathias Nyman , Andrzej Siewior Subject: [PATCH 32/32] usb: host: xhci-plat: Do not define 'struct acpi_device_id' when !CONFIG_ACPI Date: Mon, 6 Jul 2020 14:33:41 +0100 Message-Id: <20200706133341.476881-33-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Since ACPI_PTR() is used to NULLify the value when !CONFIG_ACPI, struct usb_xhci_acpi_match becomes defined by unused. Fixes the following W=1 kernel build warning(s): drivers/usb/host/xhci-plat.c:457:36: warning: ‘usb_xhci_acpi_match’ defined but not used [-Wunused-const-variable=] 457 | static const struct acpi_device_id usb_xhci_acpi_match[] = { | ^~~~~~~~~~~~~~~~~~~ Cc: Mathias Nyman Cc: Andrzej Siewior Signed-off-by: Lee Jones --- drivers/usb/host/xhci-plat.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.25.1 diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index f6b4089bfc4a5..3e15b70a6fc99 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -454,12 +454,14 @@ static const struct dev_pm_ops xhci_plat_pm_ops = { NULL) }; +#ifdef CONFIG_ACPI static const struct acpi_device_id usb_xhci_acpi_match[] = { /* XHCI-compliant USB Controller */ { "PNP0D10", }, { } }; MODULE_DEVICE_TABLE(acpi, usb_xhci_acpi_match); +#endif static struct platform_driver usb_xhci_driver = { .probe = xhci_plat_probe,