Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2060982rdg; Sun, 15 Oct 2023 09:13:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHdzOMT7WcCsCL3AZDx1FizcoFcz9+RcoT39CySypG3rIsYuskLYKdnu0JpsywfUreSEwnS X-Received: by 2002:a17:902:6f02:b0:1b5:561a:5c9a with SMTP id w2-20020a1709026f0200b001b5561a5c9amr21175943plk.39.1697386416893; Sun, 15 Oct 2023 09:13:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697386416; cv=none; d=google.com; s=arc-20160816; b=j9DUBB5xTwX3vHlnyBK02lR4X7Z+umJIu2j8VuLkEU5OhnrxnmkMV5po6X8xd+s43o Tm7S/ml6KWMbRw5IDcKDPPrRqDIINwuFlLz6QhHQYrH8l7pg8piFK9z+QgjWvI0DSmlY bacbcPHPSVQ5uTy94fObzt2V4bCbIYL+QHeLW4JNSoVjY34JecA+hrjAxdDIWfu/Ntvl QK1gncxnwEpR9ffX23c7M2KXzZIAI+1JYXVvDRTLNq9E7lgIIuzi1iF+2qVKg7SnYGH/ Mc3SKREz+lUliA4JQWr1YRUk0vYZUNfK047eH76vYRtKqJe/Rb1uefxsDY/a4lCO8XR+ Ohag== 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=3RpA57WhR5ad8cdcdoIfLSZj5+o2Fh/wm81jJ6WMUIc=; fh=ECW3Z6FvxGJZn3ai54LiXSyNlnWFwJY8ScLa+kzyBzM=; b=BEeukV4Sgr2dyTcMFtIzt1HbYi3c7PVF/PjmA7+6cvSrAo9OXo5M0efke+g8naVVyv MXeeDSMk0UiZklGnCuE9MuOjUFr6eVwaE/zilSc6p3MN0VC38ikXgUJ6Q3m3am87ZLi0 SMvy7ShxlI1il5upLP5sSAkyNOD0LO7KLE92VDDWawP5ZpfJRM/x8mGSQIILgclaleRc GibqmmYLA0mn83p2TRBI1tVkTzuaDEBWcEqtPAcMBnJkVJCmHYe8wTiiOiicA4c133fi GyfaeejC1r+BQnHc0mNcIdgLCaBgqe1zeMO9T6VkcchfYylOfWCWWSVYwVmw5l0Plydn Igdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=i+aXD3jK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id u7-20020a170903124700b001c9ad75c067si9216972plh.149.2023.10.15.09.13.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 09:13:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=i+aXD3jK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id ECB8D8096FE8; Sun, 15 Oct 2023 09:13:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230010AbjJOQNW (ORCPT + 99 others); Sun, 15 Oct 2023 12:13:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229522AbjJOQNV (ORCPT ); Sun, 15 Oct 2023 12:13:21 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F02A6A3 for ; Sun, 15 Oct 2023 09:13:19 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 38411C433C8; Sun, 15 Oct 2023 16:13:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1697386399; bh=1M1k5UESPxlG1NghWMG6kdrgsF3T+29Q+UCFG4pZ4SU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=i+aXD3jK1RJIEnCg/GnrjLl8R0Wabm1jzf0iWWFrkQbFxGRTufCMFWvlUiNaZZYGK xjfzuUMdtS6Oc5PDUKghjp17lzhO/BhS/v1eBG7N1hG5T6gsNOdFS5L0Cre3K+cOvc Br49Lug56ehkc/QMvzZ9+DxV91b6um6U8Pe/EiBo= Date: Sun, 15 Oct 2023 18:13:14 +0200 From: Greg Kroah-Hartman To: Calvince Otieno Cc: gustavo@embeddedor.com, outreachy@lists.linux.dev, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: wlan-ng: remove unnecessary helper function Message-ID: <2023101552-delay-dish-e2ae@gregkh> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Sun, 15 Oct 2023 09:13:34 -0700 (PDT) On Sun, Oct 15, 2023 at 04:12:43PM +0300, Calvince Otieno wrote: > The function prism2sta_inf_handover() is called by the parent > function prism2sta_ev_info() to print a literal debug information > string using pr_debug(). The debugging utility function can be called > directly within prism2sta_ev_info(). > > Furthermore, to make the debugging more module-specific, the netdev_dbg() > function is preferred over the generic pr_debug() utility function. > > Signed-off-by: Calvince Otieno > --- > drivers/staging/wlan-ng/prism2sta.c | 30 ++--------------------------- > 1 file changed, 2 insertions(+), 28 deletions(-) > > diff --git a/drivers/staging/wlan-ng/prism2sta.c b/drivers/staging/wlan-ng/prism2sta.c > index 57180bb71699..b5e95a3207fe 100644 > --- a/drivers/staging/wlan-ng/prism2sta.c > +++ b/drivers/staging/wlan-ng/prism2sta.c > @@ -90,9 +90,6 @@ static int prism2sta_getcardinfo(struct wlandevice *wlandev); > static int prism2sta_globalsetup(struct wlandevice *wlandev); > static int prism2sta_setmulticast(struct wlandevice *wlandev, > struct net_device *dev); > - > -static void prism2sta_inf_handover(struct wlandevice *wlandev, > - struct hfa384x_inf_frame *inf); > static void prism2sta_inf_tallies(struct wlandevice *wlandev, > struct hfa384x_inf_frame *inf); > static void prism2sta_inf_hostscanresults(struct wlandevice *wlandev, > @@ -922,30 +919,6 @@ static int prism2sta_setmulticast(struct wlandevice *wlandev, > return result; > } > > -/* > - * prism2sta_inf_handover > - * > - * Handles the receipt of a Handover info frame. Should only be present > - * in APs only. > - * > - * Arguments: > - * wlandev wlan device structure > - * inf ptr to info frame (contents in hfa384x order) > - * > - * Returns: > - * nothing > - * > - * Side effects: > - * > - * Call context: > - * interrupt > - */ > -static void prism2sta_inf_handover(struct wlandevice *wlandev, > - struct hfa384x_inf_frame *inf) > -{ > - pr_debug("received infoframe:HANDOVER (unhandled)\n"); > -} > - > /* > * prism2sta_inf_tallies > * > @@ -1724,7 +1697,8 @@ void prism2sta_ev_info(struct wlandevice *wlandev, > /* Dispatch */ > switch (inf->infotype) { > case HFA384x_IT_HANDOVERADDR: > - prism2sta_inf_handover(wlandev, inf); > + netdev_dbg(wlandev->netdev, > + "received infoframe:HANDOVER (unhandled)\n"); > break; > case HFA384x_IT_COMMTALLIES: > prism2sta_inf_tallies(wlandev, inf); > -- > 2.34.1 > > Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree. You are receiving this message because of the following common error(s) as indicated below: - This looks like a new version of a previously submitted patch, but you did not list below the --- line any changes from the previous version. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/process/submitting-patches.rst for what needs to be done here to properly describe this. If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers. thanks, greg k-h's patch email bot