Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp641430pxb; Thu, 15 Apr 2021 03:09:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaDBUgOjyn2bcZKYCgyH2E6WzJHAgNMwFt/Pf70k96d1OkdZsEp+f3FQ/oTQqE324/Bq/Z X-Received: by 2002:a05:6402:1a:: with SMTP id d26mr3171860edu.99.1618481383791; Thu, 15 Apr 2021 03:09:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618481383; cv=none; d=google.com; s=arc-20160816; b=CN8QkGi+Fz5F2fa9eFyPPab2OPjlaGYjbbmtftJYZfvHyhMMfIwk1pRv0pkiySSlfu 4ydlolxpbt+7T9t4eOretYfmgb0COV9bRUolAOZpz5GzjcBRo9LZSUJN9pxJ4ft82nFq 4wU+Omwk7a6/wE3AAuk8Oo/KbiAD4v6xY9K6+gJtgIecPtL32ql/LFs6TooTWRvM458D 0UgujLj3bLPObVAMGSW83EpBMszmvY2LXn8KX5BzZDaTDahItGsMEIav0Bz06GGviWEg JQAPFY8R3qqG+7UjLEQ0BEQyVsb/cyhqdrtGRkhBW2+C1wUggiZWEgBfG32udP4nnMBY oTtw== 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=873gk6pELNZLFerjSZqmlNlTvV/hjDYlASHgozHzVZ0=; b=gDv6VK53j+FBBEjjWMes8ncF9IKn6kw2lc58f15EWOdqvWr+y+MYN0ZnJxLV5I1lxv zdozsKGH4Y5JsGLtI1uTrLiTFOcdz4ZBbas2SdLnPPdqfKYobTY6jBNR/2jxwdZZVe7t AY3AvSMrwnBtq1KJe7HCijdmF/fogR0L8tSn7xkZcIH5qFOIxoLRT/durnplWQJXgW3f N+LthZ9hhvDEr8QfiFoYXVLHtYDmVKXFOVRcQAD/erZqDiFKY7uljyUX60WLP4Xoq+Ur IZPC+7kzP5IfwZO9Yc2aBjDRoq/F4RzJbR6Ku/ghhE0FDa/p262xortd2qzdg9rPVpH4 +WSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=n0oaecMj; 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 p17si1682974ejr.388.2021.04.15.03.09.20; Thu, 15 Apr 2021 03:09:43 -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=n0oaecMj; 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 S232459AbhDOKIH (ORCPT + 99 others); Thu, 15 Apr 2021 06:08:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232348AbhDOKIG (ORCPT ); Thu, 15 Apr 2021 06:08:06 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50E1DC061574 for ; Thu, 15 Apr 2021 03:07:43 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id y204so10759865wmg.2 for ; Thu, 15 Apr 2021 03:07:43 -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=873gk6pELNZLFerjSZqmlNlTvV/hjDYlASHgozHzVZ0=; b=n0oaecMjObdX0MGX9l3Q7lO0EHAoDhTwFPyj9xJhVjpEh5hulNm8WvA06vxCS68nzP xIThcU369Y17gZNQOX/7ZpQ+JI3zjR1MLdqT5NwFZKimsHgwFK7Tovj6WPQQi55UrWoB PU8KJUPuRkRvbIh1GhGJJDzQi+SJE0EXjKGayOt7M8XSH9Iv5y4YjUq3q9AgmJneFrUg nS1VE1k80xmSmTJHwEBCkeDr9rmpW71jqQ8qqH9vSrjj/np/LncAFEw8+lD9L8xJ0jn+ EyCVmSgZv3g4Y3tx6Kyeb2K8plaKFyrC/4QuOTFS8IXRGfSslw3Prz8pwUDdGZrTY1hi 1StQ== 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=873gk6pELNZLFerjSZqmlNlTvV/hjDYlASHgozHzVZ0=; b=fTdMSpiwplmEdlqWvufGOXE6sOqVTU5M0bjg/K5JlYzHT8r3cMLLZHPF9wcmrcnO8i CW3vnrpSR+boPeVR46iSlVCvSzmLH6/yNaH8nKDWgzRKhqXQFOrTpaJxQBWSq/ER2QmF C+vhTHsMqhLihAI4/kbvveMC1kqBEmF3vAjjLs3dXLtpbxa1UrFgOMJQuPpuVkfgd5Hy T/rVIHbxxvCqNGmEtyKf9ARvPeqX618ez5oxG1Kkq68iQ9dhW/4ygr/lEr6PKtOoJFaB 67B931b9nfNjMCwrqOThQbyfmUV28jBWIi3Vq22UNOcDzc3SqgBBvj9E/NpAW9FeNPOn 8zuQ== X-Gm-Message-State: AOAM533AdxbCeQOkPO/aRilJDXOblTsgjfKLD4Rh+hQ1uhs6/JbaeLZx 1LEGsqIgzmkGK38ULBGZGM0VCRYpG7A= X-Received: by 2002:a7b:c769:: with SMTP id x9mr2368517wmk.124.1618481261936; Thu, 15 Apr 2021 03:07:41 -0700 (PDT) Received: from agape ([5.171.72.223]) by smtp.gmail.com with ESMTPSA id n2sm2181383wmb.32.2021.04.15.03.07.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Apr 2021 03:07:41 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 5/6] staging: rtl8723bs: remove unused DBG_871X_LEVEL macro declarations Date: Thu, 15 Apr 2021 12:07:23 +0200 Message-Id: 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 unused DBG_871X_LEVEL macro declarations. DBG_871X_LEVEL macro wraps a raw printk call which is not recommended in a device driver context, prefer using netdev_*() log functions. Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/include/rtw_debug.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/rtw_debug.h b/drivers/staging/rtl8723bs/include/rtw_debug.h index 12873c3d801d..23f4cb4711d4 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 DBG_871X_LEVEL(x, ...) do {} while (0) - #undef _dbgdump #ifndef _RTL871X_DEBUG_C_ @@ -146,18 +144,6 @@ #if defined(_dbgdump) -/* with driver-defined prefix */ -#undef DBG_871X_LEVEL -#define DBG_871X_LEVEL(level, fmt, arg...) \ - do {\ - if (level <= GlobalDebugLevel) {\ - if (level <= _drv_err_ && level > _drv_always_) \ - _dbgdump(DRIVER_PREFIX"ERROR " fmt, ##arg);\ - else \ - _dbgdump(DRIVER_PREFIX fmt, ##arg);\ - } \ - } while (0) - /* without driver-defined prefix */ #undef _DBG_871X_LEVEL #define _DBG_871X_LEVEL(level, fmt, arg...) \ -- 2.20.1