Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp372874pxf; Thu, 18 Mar 2021 02:25:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzB3UU1JV/tYNB3UUn+Akctz4PphNzA7fcGzLfuWftdXrkIDuU9aKKnQiI39pFitovFPPns X-Received: by 2002:a05:6402:1283:: with SMTP id w3mr2405324edv.340.1616059515081; Thu, 18 Mar 2021 02:25:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616059515; cv=none; d=google.com; s=arc-20160816; b=ikmU2kDxrRStfIR87UQRHc94B2jmmiQohlisiyJi5uFZps5WPlJhCsjCAK9oc0B+2V eJAzC73X2oMSvUcdLwvnhjCTv7RPTi6/M56IogkZwe6dO4zfuM2eIJVC8ohccwk2EhHW w1WRXZwrhWpg99KU3pJEjb9XXNUe3nJ8hyDGt4mXSdb9C6DfqPR7kin9cgr7rG8lo1za 5C0ZyPLnEJHxjqwviTPiPnZokaRJPOtPrPrb2RdL5nz1yHtKxtvwp28jR409QtsCqNPI qkPX4wzgpbhAJnwYYyJ7sPZ33Gxt1W8JMpmBpjDSY35LNv5mhdVpbua2CTv8H1Y2eyRY Z3gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=sCpwNPo4QHWTUaaRm+g4xAnSxORZ/HqPz/T6hKjtxCg=; b=Nj1XajhDBP/XBt/T+dm/o+DymQdvh3PW6KPpIJxbDM7c+S52A1qn5DkCsdfmMN29vx kuIXuhT6QK51wOGK9dmK0JgnGpMqNLURsNpfZwi56svi4xxawerxN1SX8UXEwI4/CpdZ gKnp8v94Z4P7MZbAJEeGQRcbF27IQ0vDeMMa6hFL9+vLxenKaFy/4FMbrrZP+fWQQlBu +qxOh7wIGcmqnGMzwh1dXW43RN+8UZQJbJDjfIr8ySofDiKbRmUfo03Gv+1VaAAy8sqp pv7vaaRqU4Ea9/36xEwUAmJTV4Fcz+6mhU9+8BQ2oDTpw7zVp92s3ch7dHmLsb/4EPcD pI2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xvle20Fi; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s11si1110550edd.147.2021.03.18.02.24.52; Thu, 18 Mar 2021 02:25:15 -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=@linuxfoundation.org header.s=korg header.b=xvle20Fi; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229704AbhCRJXY (ORCPT + 99 others); Thu, 18 Mar 2021 05:23:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:60610 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229600AbhCRJXK (ORCPT ); Thu, 18 Mar 2021 05:23:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6A8B164E3F; Thu, 18 Mar 2021 09:23:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1616059389; bh=lG0HowW4e+FPMkk0A+FYgGzD8QLpys03bXXWgi/QB4M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=xvle20FiBO7Ol9vp6zjTQ4LcHBvTK5OIyn/fq/CtiW86hSDVlFv8+sdGSM9FstFMy Oemkq/KDu6dN/6zmhC9WJ0SGAtWd3phGMWGtGk3PHNN+aXZs59bDfUSs9UEnY3CPkF BgGGsm5Gv+orlgzUaf4CLQyqIcDhtOsJ1McmRzqk= Date: Thu, 18 Mar 2021 10:23:07 +0100 From: Greg KH To: Fabio Aiuto Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: staging: rtl8723bs: prefer ftrace Message-ID: References: <20210318091415.GA3683@agape.jhs> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210318091415.GA3683@agape.jhs> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 18, 2021 at 10:14:15AM +0100, Fabio Aiuto wrote: > Hi, > > some suggestions before diving in a new task. > The following checkpatch issue: > > -- > WARNING: Unnecessary ftrace-like logging - prefer using ftrace > #559: FILE: drivers/staging/rtl8723bs/core/rtw_ap.c:559: > + DBG_871X("%s\n", __func__); > > simply says to remove the line, due to the existence of the more > appealing ftrace facility, right? > > @@ -556,8 +554,6 @@ void update_sta_info_apmode(struct adapter *padapter, struct sta_info *psta) > /* set intf_tag to if1 */ > /* psta->intf_tag = 0; */ > > - DBG_871X("%s\n", __func__); > - > /* psta->mac_id = psta->aid+4; */ > /* psta->mac_id = psta->aid+1;//alloc macid when call rtw_alloc_stainfo(), */ > /* release macid when call rtw_free_stainfo() */ > Yes, stuff like this can be deleted. thanks, greg k-h