Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp622330pxb; Wed, 29 Sep 2021 06:26:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyn/uJbUa/HOSD3UuD1j1PMes/oZ25kVLlbFu7L6djmM0QLwQIaHK5Wl6Gp8a7+xv0g1HB4 X-Received: by 2002:a17:906:3283:: with SMTP id 3mr13489165ejw.4.1632922002997; Wed, 29 Sep 2021 06:26:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632922002; cv=none; d=google.com; s=arc-20160816; b=JgWEfHXRs7zsUl26ae2SduFJww5+iqbhYnCm18ynxnvGdxm/HP05D9kGV7aU9gMslb 180CQ/EHo+fGdQOykpH5V7tp8vpLPP8lYiUiz+lOAToMOElcizDMz4D0T7FQpumA6Vd+ h1qp0VeJsOLuEFmC7VxEYaXBXLZmCpGnuyMJuAAmx8K/P66RqfVQbyDIcG6Y6oZh2XOs RmgxZwOsQ5O/fHJMd2qqzb+t+vYJpB7iiD7tcqfdbjr8sgT2JaE8ufzGdz8Y9uSgwbrl i64tKKWLLKH7qw9ROwQNO3xEsCwb5HseYw5EWP1StuUgyIVb7+95l2fGoNtwqG2hkJvf Tbzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=W5CDoiyQWe3fkMo95Qs0HrnoAnDkKKLh5LYjCOQ+FI0=; b=OqFMMIZ1u0nt1hUEVqZh980DHv/dtXDZeSIY28D2Z8EskkohsPLdsYACcjZyyXt+GL sI/IEKHAALkLWN2uDjYQy3OqOv/klcQ+YhNMmSbPa4C0vkYRqPJy7p2Hl0FbOSTctC/5 ej7qZRYrmbXuKPhR39Fi5lvflvX9JVkQ+KqcfSdz/UHUy8JP2PyhSWRJK/on/wLznmJd qg6hzShFAcFwUO8NtVBORxpTPlrU+NlaEJQNxzOhc/yHp1vGX4+KOmXIy69h4RO/yR6E V0bhNDebb/CKfkXJfShqts52KuLE2g7YKwVU50BcJFeohgICRKyTmbHK56OAIbLzUpqZ WjvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YBdn70PJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l13si2681427eji.536.2021.09.29.06.26.17; Wed, 29 Sep 2021 06:26:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YBdn70PJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344141AbhI2NYA (ORCPT + 99 others); Wed, 29 Sep 2021 09:24:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344061AbhI2NX7 (ORCPT ); Wed, 29 Sep 2021 09:23:59 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9379C06161C; Wed, 29 Sep 2021 06:22:17 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id i4so10776270lfv.4; Wed, 29 Sep 2021 06:22:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=W5CDoiyQWe3fkMo95Qs0HrnoAnDkKKLh5LYjCOQ+FI0=; b=YBdn70PJp+h6ggqq7zYZftlvdTqQ5wPr4nDDKavtdJz7WBlnJKF+beU6whg8AJ7/K9 ibeKWqouQxHFbRxs8aMfcmg/WKia7GqP2Bj4PQD87cdaQSLCyhc9/y6TLcgK0KwPNL2l uxZIS5nmLVgBrZrzzWEEfplGAqATQ6wDWEtq2PD1ts2annoYJp3QH9EKvG57etVegWqB j2jNViKe3Q55tPQNJBil+UKBgViC9cH+sheZNuwD9Y6+JeJb0U09N+Ri2ec+E3c+CtWA 2cHnb9i+5PnqV6NFTmf4DnuZZl295ZVgvVuD7ZWCAf4YhOpBc3MuKG98eI4IqeOIgsjW V/xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=W5CDoiyQWe3fkMo95Qs0HrnoAnDkKKLh5LYjCOQ+FI0=; b=fS2I84YiKyYG9E+FUwy3m72RHKgNboeoQOh4mxUfK+niPqtJvASKHF3dEixIpfulsS 4M1sD/7LFu/cM/svDocPLqHYq7s6bx3on8lGWBulWlTQSfaXmhtEyRPc47VIdhp34ULf S7vMT4Ybpa0O8llBwcpzMBoz3MH2/FhQlJQm5AF56A03GqmQYqpAFuviUn9cbm3h4xD1 eCdYPWycWVwtYFkfO6wU57vzxLtIBr0R9mhMXladD+P+h3ayxOIbCQ3ae3bREz69rJaa 5va06lwhCNdS/2fUBsNkPBmmk1YSr8J0b+v/HD1twDEg0CDiJHYfg5VFZdnAVw4r+x/i Me1Q== X-Gm-Message-State: AOAM533/3BvsGh45qfrsWrO9KpzCgYhMYxo+DLvkoQ+RjjHqwpOBkd33 fd+U1p3nektHR8FrYE5tXa0= X-Received: by 2002:a2e:7c0a:: with SMTP id x10mr6065532ljc.455.1632921736376; Wed, 29 Sep 2021 06:22:16 -0700 (PDT) Received: from localhost.localdomain (h-98-128-228-193.NA.cust.bahnhof.se. [98.128.228.193]) by smtp.gmail.com with ESMTPSA id z10sm283695ljc.117.2021.09.29.06.22.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Sep 2021 06:22:15 -0700 (PDT) From: Rikard Falkeborn To: Greg Kroah-Hartman , Loic Poulain , Wei Yongjun Cc: Oliver Neukum , Tetsuo Handa , Junlin Yang , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Rikard Falkeborn , stable@vger.kernel.org Subject: [PATCH 1/2] usb: cdc-wdm: Fix check for WWAN Date: Wed, 29 Sep 2021 15:21:42 +0200 Message-Id: <20210929132143.36822-2-rikard.falkeborn@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210929132143.36822-1-rikard.falkeborn@gmail.com> References: <20210929132143.36822-1-rikard.falkeborn@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 5c912e679506 ("usb: cdc-wdm: fix build error when CONFIG_WWAN_CORE is not set") fixed a build error when CONFIG_WWAN was set but CONFIG_WWAN_CORE was not. Since then CONFIG_WWAN_CORE was removed and joined with CONFIG_WWAN in commit 89212e160b81 ("net: wwan: Fix WWAN config symbols"). Also, since CONFIG_WWAN has class tri-state instead of bool, we cannot check if it is defined directly, but have to use IS_DEFINED() instead. Fixes: 5c912e679506 ("usb: cdc-wdm: fix build error when CONFIG_WWAN_CORE is not set") Cc: Signed-off-by: Rikard Falkeborn --- drivers/usb/class/cdc-wdm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/class/cdc-wdm.c b/drivers/usb/class/cdc-wdm.c index 35d5908b5478..03b25aaaa1dd 100644 --- a/drivers/usb/class/cdc-wdm.c +++ b/drivers/usb/class/cdc-wdm.c @@ -824,7 +824,7 @@ static struct usb_class_driver wdm_class = { }; /* --- WWAN framework integration --- */ -#ifdef CONFIG_WWAN_CORE +#if IS_ENABLED(CONFIG_WWAN) static int wdm_wwan_port_start(struct wwan_port *port) { struct wdm_device *desc = wwan_port_get_drvdata(port); @@ -963,11 +963,11 @@ static void wdm_wwan_rx(struct wdm_device *desc, int length) /* inbuf has been copied, it is safe to check for outstanding data */ schedule_work(&desc->service_outs_intr); } -#else /* CONFIG_WWAN_CORE */ +#else /* CONFIG_WWAN */ static void wdm_wwan_init(struct wdm_device *desc) {} static void wdm_wwan_deinit(struct wdm_device *desc) {} static void wdm_wwan_rx(struct wdm_device *desc, int length) {} -#endif /* CONFIG_WWAN_CORE */ +#endif /* CONFIG_WWAN */ /* --- error handling --- */ static void wdm_rxwork(struct work_struct *work) -- 2.33.0