Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2882183pxb; Tue, 13 Apr 2021 12:35:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHiTzWXeKFregGXmdcnt7gNjzMQyIXPz6CejezHiwMoNzgXSJeFylSQEfXO1JBO2xTWezA X-Received: by 2002:a17:90b:b03:: with SMTP id bf3mr1656101pjb.223.1618342517448; Tue, 13 Apr 2021 12:35:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618342517; cv=none; d=google.com; s=arc-20160816; b=cP9TeSjt6i3YnUhQvSTYdqe7EE27EPU19riYcn9pShhcckcJ81NbVusqzlXmlwMZQF wBEl6NcHRb/xvX3ih3aDmTPNKLA1Z8OfZAG7Qk03N7ypUH/XBO5D59UxOUEMgUZhU1n2 PseNYer1VIKeyp6e/RSSds7Z0KjI82NgNdPMNpTaMduyZ/fDTXKn/UQZ9rJn0fGq0SmB cF28Nmu8jOYDFqVdxhiREkuQPR1QcWoFfJM0fvxlMTpz/0jxK/tBo9c2PUO12/j6HoQc x5rYhrxuP/znWfIueaZyQ9T94wcR2TYEGkaXlajiifB6bzQxJZttp/DJno5H/g+/0vYO gUcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=KltcSRDP7X3Yfu3VWFhrzHyopiix35MMmWdtK3KZ1EE=; b=U6XXGvsKPkeJsvS2/DF/mds+/489qMA7gL8aLKJ1UIZArmy2nhUeenXffZP3qlABh8 l8XrDMP831yUgMI7XH+40hj9/l8iSc54pp7sbb3Olh3YJR1sXc8mk3CavfFk6ibXY2x6 /vLwVejmESdI5R3Ro/lLc+Q50d+MkLFfbP/+Bx+Pzdf6Acrot0Y8u3DBIWyG+3Qudfnw PRgT1wvIJ6mqGsY7zu02WEYCEqmeTgnH466lCYieb0O2STDd0oHJ1/SgXIn6H4sPSSV+ kaZRycFn/bZbuTnYTp0JLngs7hSpSgPUEG2PPRRnb4xdrxRG1tybix300UP21RjboRnr wFzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=CRgfq8FT; 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=fail (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 g5si17353464pgs.191.2021.04.13.12.35.04; Tue, 13 Apr 2021 12:35:17 -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=fail header.i=@gmail.com header.s=20161025 header.b=CRgfq8FT; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346307AbhDMOLZ (ORCPT + 99 others); Tue, 13 Apr 2021 10:11:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231910AbhDMOLM (ORCPT ); Tue, 13 Apr 2021 10:11:12 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4DCCC061574 for ; Tue, 13 Apr 2021 07:10:52 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id h4so7589831wrt.12 for ; Tue, 13 Apr 2021 07:10:52 -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=KltcSRDP7X3Yfu3VWFhrzHyopiix35MMmWdtK3KZ1EE=; b=CRgfq8FTkXFHrs5B9IshafQuRK7Z+orJ77vQ+QoJo4K+N8ZAyL9wGghM1YsYgBeapq Cihil2w6hTs3oJKbzuL2gs1ioGaMM0RKYeMI+7XOtvbIzrGRefF5sRf3s2JU35kvkNX5 bOkI4Z6jf0o+ELdBR94AAGImgB78ThNLe5tMBVQ1Dd/ZwETXxblZXNfjMbZYWjD8jzyf ZWaYQoTJhjS2bv0bTuSnefvOu7P0kNbJx6k+sa2uI6KFGnUIy+0LcDbohJ3+yOz88NMb 6cUTWILTIVOK2wgyzHrUncqOxbHu8ih5fl8WrOt9s2RK6UmMvlBpGnYLM4A9FWqED1sN iN+Q== 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=KltcSRDP7X3Yfu3VWFhrzHyopiix35MMmWdtK3KZ1EE=; b=O4h1C3cB2iyH1jS5gftOvKzRlkpzjFxSwyBYhg2O94jFyaRH1gVHrEE8mhteGqNBwk ig6trrP3IchUY8Gk8HzhOIVBBR0lYSPSEHbBNmH1pxq8Hvd0eZU/K+BNqEZelafgjxiG 5YL4kCUswiJFO828OHRCes/kHELsSs0DsqQZNGjJUBW14dvbA5iLz/0trWEySP0PYv/g EyXscUyOj5oRmKxmw1RoAFr/QDt7yatf4z1tXIrSxP5SAG33CSlYL4XqHe73QfjkeHjY lpxpDnjJeIf5jI1oEGZwzki+SyfrDE0CdgCjDYUSW1PzxqCSguRYgfNsMlhFl9o5oveZ 0hLg== X-Gm-Message-State: AOAM533adPwIupEfnHrcQbYCYL+0aXvCttYGyqMDdwV1nLrNWqwB9GZ8 Qhhf3AkBcMJRsow5LS1TzFLZzNqR0IIEDw== X-Received: by 2002:a5d:6d0f:: with SMTP id e15mr36634018wrq.218.1618323050179; Tue, 13 Apr 2021 07:10:50 -0700 (PDT) Received: from agape ([5.171.81.171]) by smtp.gmail.com with ESMTPSA id m15sm19392261wrp.96.2021.04.13.07.10.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Apr 2021 07:10:49 -0700 (PDT) From: Fabio Aiuto Cc: julia.lawall@inria.fr, joe@perches.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 3/7] staging: rtl8723bs: remove two unused functions Date: Tue, 13 Apr 2021 16:10:38 +0200 Message-Id: <4d241b4cbc0c081a1d31d615b5069a223b2b7e7b.1618322367.git.fabioaiuto83@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org remove dump_drv_version() and dump_log_level() function definitions and prototypes. These two functions incapsulate DBG_871X_SEL_NL macro which does a raw printk call (something to avoid in a driver). The DBG_871X_SEL_NL seq_printf usage is never triggered. So we remove dump_drv_version() which is no more used and dump_log_level() which was never used. Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_debug.c | 10 ---------- drivers/staging/rtl8723bs/include/rtw_debug.h | 3 --- 2 files changed, 13 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_debug.c b/drivers/staging/rtl8723bs/core/rtw_debug.c index d3ee7b7f6fde..324c7e5248f8 100644 --- a/drivers/staging/rtl8723bs/core/rtw_debug.c +++ b/drivers/staging/rtl8723bs/core/rtw_debug.c @@ -14,16 +14,6 @@ u32 GlobalDebugLevel = _drv_err_; #include -void dump_drv_version(void *sel) -{ - DBG_871X_SEL_NL(sel, "%s %s\n", "rtl8723bs", DRIVERVERSION); -} - -void dump_log_level(void *sel) -{ - DBG_871X_SEL_NL(sel, "log_level:%d\n", GlobalDebugLevel); -} - void sd_f0_reg_dump(void *sel, struct adapter *adapter) { int i; diff --git a/drivers/staging/rtl8723bs/include/rtw_debug.h b/drivers/staging/rtl8723bs/include/rtw_debug.h index 7747e90bd1cc..f1b37d511f27 100644 --- a/drivers/staging/rtl8723bs/include/rtw_debug.h +++ b/drivers/staging/rtl8723bs/include/rtw_debug.h @@ -192,9 +192,6 @@ #endif /* defined(_dbgdump) */ -void dump_drv_version(void *sel); -void dump_log_level(void *sel); - void sd_f0_reg_dump(void *sel, struct adapter *adapter); void mac_reg_dump(void *sel, struct adapter *adapter); -- 2.20.1