Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3760361pxf; Mon, 5 Apr 2021 22:40:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2mmukK4UaCmXeefHjYwb4P5ri8Tdvk4WRxRy68noewCABAplk/B8+9/+W0E64mWE00NWv X-Received: by 2002:a17:906:9501:: with SMTP id u1mr32289920ejx.324.1617687611306; Mon, 05 Apr 2021 22:40:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617687611; cv=none; d=google.com; s=arc-20160816; b=nWww1t8qriTpHHXsQpBtMEHxA/tjBrNeL1/9sZieEowT3ggyZm+S8gV5z0eMv3s/rG 8GMBIvkwvj7bWcJvTS5w9YL6h11BiXgoqDlftQ1pU1GPkeK1y9l6U4450U0Ev/If4BFm oQtPjqwmYLnLsvqr2mCUTVP/WunXBsnqf3lj34ihvp9ScL5hgf8klvN8k+XIs/rjhQp5 T4w2vikGo+aGUdAa6iVkK9zbuThSbXREk1j5ww+WV4jElbPrz+cwd4nwcfpx38aK9PwG bvNojheEU15AJmGltF0D7GwCPAbTieOupsdkPMBYbjlcYxtfw9v7Y6EEYZb1fdDq6J5i 1SCA== 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=BCYHSEy1io8xFVxyrWex3dyAIrjV7+IJ4+JqgLgs0zw=; b=j7HcccXg3OW+cnk9svsAEV9tRro6ydbx4FbsPqQ4WdROGK4E2Ic3FakOHjbeL6efEj h3epPbmXCTjJmBfgfgeBzcjma5/UF++DhyiQbRezsUEgjs4FHZShfn8CmaoZFfOkdvlT HoxvciJYDGvts7O0ljUbqGfCro9VEHvqOcr++T15I9AK/59rTXGFXNhlj6H0CcpLO18k Rm8tINAm0bfSGQ1yV/IOKC3XTnRvaeD8JPHR9R9K5xmeStFMxPWWHtBg+PAxwwg2zeqf o+zdevtKPU3JV4iXlfJKQuwA05BZVtcSmdBwklL67v9VhgX9Meu+wPPjlT734UjGrg9l SSow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qQSyg2q0; 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 dr18si13896084ejc.538.2021.04.05.22.39.47; Mon, 05 Apr 2021 22:40:11 -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=20161025 header.b=qQSyg2q0; 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 S232033AbhDEQu1 (ORCPT + 99 others); Mon, 5 Apr 2021 12:50:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231820AbhDEQuY (ORCPT ); Mon, 5 Apr 2021 12:50:24 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC4FBC061756 for ; Mon, 5 Apr 2021 09:50:17 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id c8so11439688wrq.11 for ; Mon, 05 Apr 2021 09:50:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BCYHSEy1io8xFVxyrWex3dyAIrjV7+IJ4+JqgLgs0zw=; b=qQSyg2q01F6yDrjYTle1Kdz1JwLwHSzOH2mg1gKfm4peiSbjIz8afnseqJsgJ6Jalp ziN05anLcYWqatdTTRQKhcVjkX8Yn1bUqsxfFll/bViuuUFYLurJ2jaHUXzoUtKemEpe 0NfgIJRghUUWi28IoE3DgpDPXGikdNMUIY9HEQ4IXqf98r9uzAOAGCINdykQRA3RpIHJ BMsDBJTt/rZiE2QV3Q0nPqJfifv66+w2PK0RAxAFiQfqYe+mmhWxrMsLZn9s0fFS0XTb E9orE8CIF8jbfDYRYSRJ8V9HIqMv8JFKNhd8D6vrpV+Ul9S0H2ovDIBIbmjDdlI6Z8YE udxQ== 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=BCYHSEy1io8xFVxyrWex3dyAIrjV7+IJ4+JqgLgs0zw=; b=RUPbzz3ZAT4xaPalRAu8fa/rhqtBo5wRa1OENGTyvYebIV2mCRV2Qqocg860IJux/0 swwFs3o0RhqrAn61L9pQuZTR+5i5ocP9knHSn8CbxI1Tw/d5sA09R5v6FtGSyfQ8cud3 Eta9Kk09WQkYSA9ndfpvKPK6R0w7E/SW151OwRZXj2w0ewCnd7Cmv6GIsvJ5uU+EPw3a bGIaNZEkvaRLJEzTmtcmWDuUDTD6wjL9jTcbnhc1pq+Xr0wFSgaw7UcPNyCwAz8Ytn1m VNByKr3EyrYsleycN17rS0glLN6FZoXw5TFyqAxDM2baEvJVkUVRBBMHwSwBnbBoWG/J ezpA== X-Gm-Message-State: AOAM530BU19qPqTgT4WhZMLDRVKI3YC0N3QrqwKLe1/GcZ2Iva3snl57 lZ3FDp8Q8BTKUVQtM/8hlrw= X-Received: by 2002:adf:ea86:: with SMTP id s6mr6737473wrm.222.1617641416610; Mon, 05 Apr 2021 09:50:16 -0700 (PDT) Received: from agape ([5.171.72.58]) by smtp.gmail.com with ESMTPSA id h14sm34304597wrq.45.2021.04.05.09.50.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Apr 2021 09:50:16 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: dan.carpenter@oracle.com, joe@perches.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Fabio Aiuto Subject: [PATCH 03/10] staging: rtl8723bs: remove RT_TRACE log definitions Date: Mon, 5 Apr 2021 18:49:50 +0200 Message-Id: <163c0f17c88dc8977103a0971c50f4769ad78173.1617640221.git.fabioaiuto83@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org remove RT_TRACE log definitions. Remove all of the RT_TRACE logs in hal/ and os_dep/ file as they currently do nothing as they require the code to be modified by hand in order to be turned on. This obviously has not happened since the code was merged. Moreover it relies on an unneeded private log level tracing which overrides the in-kernel public one, so just remove them as they are unused. Suggested-by: Joe Perches Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/include/rtw_debug.h | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/rtw_debug.h b/drivers/staging/rtl8723bs/include/rtw_debug.h index d3c77798a5eb..6639d79cd7ec 100644 --- a/drivers/staging/rtl8723bs/include/rtw_debug.h +++ b/drivers/staging/rtl8723bs/include/rtw_debug.h @@ -131,8 +131,6 @@ #define _MODULE_DEFINE_ _module_efuse_ #endif -#define RT_TRACE(_Comp, _Level, Fmt) do {} while (0) - #define DBG_871X(x, ...) do {} while (0) #define MSG_8192C(x, ...) do {} while (0) #define DBG_8192C(x, ...) do {} while (0) @@ -216,22 +214,6 @@ #endif /* defined(_dbgdump) */ #endif /* DEBUG */ -#ifdef DEBUG_RTL871X - -#if defined(_dbgdump) && defined(_MODULE_DEFINE_) - - #undef RT_TRACE - #define RT_TRACE(_Comp, _Level, Fmt)\ - do {\ - if ((_Comp & GlobalDebugComponents) && (_Level <= GlobalDebugLevel)) {\ - _dbgdump("%s [0x%08x,%d]", DRIVER_PREFIX, (unsigned int)_Comp, _Level);\ - _dbgdump Fmt;\ - } \ - } while (0) - -#endif /* defined(_dbgdump) && defined(_MODULE_DEFINE_) */ -#endif /* DEBUG_RTL871X */ - void dump_drv_version(void *sel); void dump_log_level(void *sel); -- 2.20.1