Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2886785lqz; Wed, 3 Apr 2024 11:18:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWWvSUmLgWhENIQCU/O/egAN6qnyqIUPgFrP09FCfDzinOv4QqbZB2THJ7j8eJXlEPmL1vy0dySK1wd0KP0W9Yum1rDPSDBlBktY+5Rhw== X-Google-Smtp-Source: AGHT+IHQqln7E1wIFn7cSlBlClgX54V1YgKDtZdMns1XGWoPqCBKTrKFPCkqE+XjOxKBeRHV1ykf X-Received: by 2002:a05:6a20:7d91:b0:1a7:2437:1205 with SMTP id v17-20020a056a207d9100b001a724371205mr523911pzj.58.1712168303329; Wed, 03 Apr 2024 11:18:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712168303; cv=pass; d=google.com; s=arc-20160816; b=ByZ5KqrWAMARePalLP68rglr5SURAfbBgA9RkO+LNPX/C9sGmj3MZZsiwjQ3DbfI+C AiltKpVacUyNx7r7Eqon1zqkjGPJsr/GNdnx4vxM+dJDuVPh/20yhWwMEQp+8Kma4jmk 6G0VDgOEvG1uiNhj3vqqnBA7CuRYz00DCf/rOs06Z73HfVgHCsnHrQm0ERTJ1l0UWF14 /N57QYxoxVgwjr1tbpeZUe0VzloU9YCTNDfGvAFgmWPs/dWOAjLFaxiTlEn8VcOevCFf +Syfx4zIlTcYiJa34HX8mu7M96n2JxYAQb4sfE6gU0OyA6TPzYMyz30dypjQ4zjW3SfC L5dQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=1APjlHfzOecG1+WX28svcfah1YKVlpOiaaSUK6P8vJw=; fh=NRe7H5cc11McyxFxzqX+K5p+h82XEYIroLMdLPBEL5g=; b=uLGJzTvTGGYmHSIHaaKkdrGCsA+BuZ5mtUG+K/OgmrPVwGims7FieGV2XxF+66tjO/ a4tDLTS1jN6qtx5wbDNkvy74BHQ8WJIO9lef/2B8d62D8JAXZD0zF0v2aJvrekWIkaP8 /8Q8jpIMDMyMpYdKAEZbneKT2pu8hk5HYD443hGNdsHuarsdvKOEUzbjqLX7Vib/XHzK GudrCVzdJtFj7oZzwNqaImYCx/9pd74vVt3+jZnCl3QpLyR/K3vqAkIJV16Sm3/12u+G jDe+QQ5XVzT2Wj7UISio3YvtVwQ+w2K3Mnxnu8r2TeM+i5wWnyEoMCg7RsjZ8pZwlAtf UJcw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FGadNGHx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-130288-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130288-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id q3-20020a056a00088300b006ecda62e84dsi861365pfj.217.2024.04.03.11.18.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 11:18:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130288-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FGadNGHx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-130288-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130288-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 5052CB2F9AC for ; Wed, 3 Apr 2024 17:23:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B9529157460; Wed, 3 Apr 2024 17:17:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FGadNGHx" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D9730156F4B; Wed, 3 Apr 2024 17:17:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712164649; cv=none; b=IoBX5al+b9kNXeUCB4ZPJhPmUrVo0E3JlQg8UZ+0qoTZI6T6xNawxb3yR8dwRn0Y75mKG4iGL67SZwBemyfLSy1+eh2IhcTOFJuT76phNajKCrREHMXt7Bvwx7kTJKJ0+v1noq7GTfqPvu6jbbOhieH1vbDjS1M5rg0ftzj6ZfY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712164649; c=relaxed/simple; bh=Ju0dCUBj7c1xHR7bdmc+deBQzJoteCBjACIm80EKbcM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=P7i0BrL6uw8KWYDmpK+YUkDsG+VbhPiQt6JtKsA7K1H91NX0W/YJUSL+GKp90WzwmyZVjTWlpSoZsigejA/u3EiXMRMNF2BNUDL0YTF3rNxyIB/UTm3romueATCrWjiaAtYPw9gpogUBz4EGjLK0jrED6XAdFmyZ3SvjXbQG2Xo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FGadNGHx; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75F02C433F1; Wed, 3 Apr 2024 17:17:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712164648; bh=Ju0dCUBj7c1xHR7bdmc+deBQzJoteCBjACIm80EKbcM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FGadNGHx0XMTKC88wNKWzFds6VitESNtZiXw4r4OQdweBKZPGmDNAUvP9YecU4skn +TNysV4tei5fW8IS9uJ4dy+UgxzKJ2UaiQRM4Y3F21SwlG6gLxrCdeZYUs+jhKqXMK BWkEndMgZFoM2+7Xbw+OID7xOkOCiQmBHFwtK1bcXxqhlZvK8CMQfCl0fbTTxlBYKQ 2CJ8BsEA3of66HnSSEjnnWTbVctlJVVTGtwhxitb4+Co2TJynMiCIsgncCWsCPPjVz eqnve55d/4Jjbxmp5v9nQW1qMwRVrm0NYyKs2493Xc69imgueoxIIwuUnE+sIHPtym cxNJzhJ3+I9WA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Colin Ian King , Greg Kroah-Hartman , Sasha Levin , nathan@kernel.org, u.kleine-koenig@pengutronix.de, linux-usb@vger.kernel.org, llvm@lists.linux.dev Subject: [PATCH AUTOSEL 6.8 14/28] usb: sl811-hcd: only defined function checkdone if QUIRK2 is defined Date: Wed, 3 Apr 2024 13:16:16 -0400 Message-ID: <20240403171656.335224-14-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240403171656.335224-1-sashal@kernel.org> References: <20240403171656.335224-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.8.3 Content-Transfer-Encoding: 8bit From: Colin Ian King [ Upstream commit 12f371e2b6cb4b79c788f1f073992e115f4ca918 ] Function checkdone is only required if QUIRK2 is defined, so add appropriate #if / #endif around the function. Cleans up clang scan build warning: drivers/usb/host/sl811-hcd.c:588:18: warning: unused function 'checkdone' [-Wunused-function] Signed-off-by: Colin Ian King Link: https://lore.kernel.org/r/20240307111351.1982382-1-colin.i.king@gmail.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/usb/host/sl811-hcd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.c index 0956495bba575..2b871540bb500 100644 --- a/drivers/usb/host/sl811-hcd.c +++ b/drivers/usb/host/sl811-hcd.c @@ -585,6 +585,7 @@ done(struct sl811 *sl811, struct sl811h_ep *ep, u8 bank) finish_request(sl811, ep, urb, urbstat); } +#ifdef QUIRK2 static inline u8 checkdone(struct sl811 *sl811) { u8 ctl; @@ -616,6 +617,7 @@ static inline u8 checkdone(struct sl811 *sl811) #endif return irqstat; } +#endif static irqreturn_t sl811h_irq(struct usb_hcd *hcd) { -- 2.43.0