Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1300916pxm; Wed, 23 Feb 2022 23:49:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJxw/FYMMNxDuo++3bvRnRhHTaL28iW4sInJdWa2DFxBAXYXuA0WNE8vKDlzW6iZjf+NJXEb X-Received: by 2002:a17:902:c1c4:b0:14f:b5fa:f945 with SMTP id c4-20020a170902c1c400b0014fb5faf945mr1510833plc.169.1645688976295; Wed, 23 Feb 2022 23:49:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645688976; cv=none; d=google.com; s=arc-20160816; b=Yq2ok50c81O85hzca7h85B7uPlzSF+fb5Ik790lGR1mUUfHN05pxcm4U/NS7ePaK7Z y6Dd31xlBrBv2DX8UWlfDKXULGvlPqDLdPFit2QHgH/GtVZbLj9GH7baKgbKRvCj/Bc9 TOZGcLqmntRJu0kTfylNtyZRrbqw168XhEBau2c3qHTj/XWFiG2W13ypiIcWk+o9f6zj bsmgjlJETQe65c+2sNTy5LuOqIEVltc5VwiZl2Hw/hHVnV42gmO+CdePA/N65MKYwMAL +UFJDz8Mpx/zZALD4XyBFJGveyvk4aRiZftojL2wX0BJMRJWDG200sSFyxzcJooEbMJ+ /ndw== 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=KnvCoIs0/c2vqX4LLgh+v4j+mtPNEusN76pBE10KU9A=; b=mTX3pUWA18F9vaO5A8R4TI9FdG9TsDF6gv1vUtgSUuM26Bf94hIttyQ0IxpeRL3N6Q b1o06lxA3ubayZrOKYHWYa1TZMx4z7pDgEkRjhNsFMK6KSQnVrBpxQBf4nURcIGu2dxs LaqGUZp1a7YkTHGBV++F/1b0pWp6urt+lbiZ6JP9jZrVB8Wh16RvpvPz/cLO6zE4zas7 D6JAYm53P63oCprC6l9D3LmwdNj1Inn07cTrBCjfZCtVbKZC6uXFE30xWvpIWAYPbQh6 MX6rptl+3uB7i/bkDSxtwlNBz8Uxge0FN5l+SZzKfJQCk7AUgwtuy9jqv9mcSXFg4bTN oaLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=adjXXIpK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b3si1681827pgr.229.2022.02.23.23.49.21; Wed, 23 Feb 2022 23:49:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=adjXXIpK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231295AbiBXGl3 (ORCPT + 99 others); Thu, 24 Feb 2022 01:41:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229838AbiBXGl2 (ORCPT ); Thu, 24 Feb 2022 01:41:28 -0500 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0331E17E36A for ; Wed, 23 Feb 2022 22:40:58 -0800 (PST) Received: by mail-pj1-x102d.google.com with SMTP id v5-20020a17090ac90500b001bc40b548f9so4892282pjt.0 for ; Wed, 23 Feb 2022 22:40:58 -0800 (PST) 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=KnvCoIs0/c2vqX4LLgh+v4j+mtPNEusN76pBE10KU9A=; b=adjXXIpKTM3UkYtOvwfXWKwU5zOSngzz1k+Q60tovu5Owx8jq56YeQL3zaMfC1yt24 evxsv84d1hmtBicGADAhC1420eZufOvqHQP7HyX5L9GiBriKe/DyxwpfqGUntv63l90D mWvlxh6P3SFF1v5DRVgcZ17jssHSPlQxsN4U0CcPKFYG12Jb3FZPEZ08viFYXR93W0ww hhCitFlAwq29wKVEypjEANHbQhXq+8Vi/3esXLnCDd9uxpz8mdyoPurRWeuDDOoyq3gq 90F6iBS6nhqcchg+U1ExJ2fgiH+Ns1pzbxI+7J9/FFkS7w37zEQKsM5riD2MoOS4yRha AuPQ== 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=KnvCoIs0/c2vqX4LLgh+v4j+mtPNEusN76pBE10KU9A=; b=wDgcSRMd3UEivEE3STuM/XSm7mHjS+mAotyxVlJ8sJm63hBRZieeSrcDaGNmUxcI5E U0mKcaL8uK2qYNdemBogGCFFmp8Dhqn+dcIc6/9gY97VVsvVXZVOv7GlvopODbiIrquK Mj+LaRhN0nmXNWmrReL+LNeNcAbVv9YAsLxWHAYCjCeqQkjDYbPukG19OLD2THfy16ki lTSHC2y+p3peFYNmxvtMPPguoxfc9buiaL2LZW9IsHQheVqhH4Que/dDagidtkYsWUPv zYc5EXSapZk6RImPBRJAJJJCBLmNqd/5gb+b1BsfCSW61cdJnBeM1ObeHpNDYeVUnoft rsfg== X-Gm-Message-State: AOAM533pgEChBqzVR5wC7ziHLk1w2/qiLN9kzuftAs1TBhi4GVgVZX5l Gspm92qgudM68IKNopEuBvU= X-Received: by 2002:a17:902:ce05:b0:14f:8ba2:2339 with SMTP id k5-20020a170902ce0500b0014f8ba22339mr1190889plg.152.1645684858284; Wed, 23 Feb 2022 22:40:58 -0800 (PST) Received: from tong-desktop.local ([2600:1700:3ec7:421f:47fe:f358:be6:4577]) by smtp.googlemail.com with ESMTPSA id j12sm1729109pfu.79.2022.02.23.22.40.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 22:40:58 -0800 (PST) From: Tong Zhang To: Greg Kroah-Hartman , Tong Zhang , Kees Cook , Shaokun Zhang , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: dan.carpenter@oracle.com Subject: [PATCH v2 1/3] staging: rtl8192u: fix broken debug macro Date: Wed, 23 Feb 2022 22:40:29 -0800 Message-Id: <20220224064033.1530924-1-ztong0001@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is an extra space in the debug macro, when CONFIG_IEEE80211_DEBUG is switched off, compiler will complain. drivers/staging/rtl8192u/ieee80211/ieee80211.h:470:42: error: expected ‘)’ before ‘...’ token 470 | #define IEEE80211_DEBUG (level, fmt, args...) do {} while (0) drivers/staging/rtl8192u/ieee80211/ieee80211.h:470:47: error: expected ‘;’ before ‘do’ 470 | #define IEEE80211_DEBUG (level, fmt, args...) do {} while (0) Signed-off-by: Tong Zhang --- drivers/staging/rtl8192u/ieee80211/ieee80211.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211.h b/drivers/staging/rtl8192u/ieee80211/ieee80211.h index 15207dc1f5c5..ab1e380688ee 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211.h +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211.h @@ -467,8 +467,8 @@ do { if (ieee80211_debug_level & (level)) \ } \ } while (0) #else -#define IEEE80211_DEBUG (level, fmt, args...) do {} while (0) -#define IEEE80211_DEBUG_DATA (level, data, datalen) do {} while (0) +#define IEEE80211_DEBUG(level, fmt, args...) +#define IEEE80211_DEBUG_DATA(level, data, datalen) #endif /* CONFIG_IEEE80211_DEBUG */ /* debug macros not dependent on CONFIG_IEEE80211_DEBUG */ -- 2.25.1