Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp1959574rwe; Sat, 15 Apr 2023 08:57:25 -0700 (PDT) X-Google-Smtp-Source: AKy350ZXkWKHncrdB9OWVwVQBzkOrVxjVChN2qgExvie8sbhn7xQcRd4Xk2lgScwq/WypTOMRK8O X-Received: by 2002:a05:6a20:8014:b0:de:13c4:5529 with SMTP id e20-20020a056a20801400b000de13c45529mr7898064pza.62.1681574244884; Sat, 15 Apr 2023 08:57:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681574244; cv=none; d=google.com; s=arc-20160816; b=eLWYiiiHEHaRVhRfGanqCjibePkmQ/Pq6roCm0ONKfeLAZx1tKLcd3Ha8hoQQQCDgq iFV+pxW+OZnWTSHflOzSlFJNYykOObdj1xl1dw5ahd5QBsHO+KBwq9yej/4GkaVLYXjM f2ihvzW/xXSWayJfJM4AMIAHU8KTO6VBo2DIh2XQLq5d4ojNkpzRqAOy3jjyYdKEMcgt cauXDjXgZLa4Z31bEF7VTObewQIZ20w9o+9XmZ3ZH7X1G7Mmus+Zj+xWhddTkNibra77 qNMaYbYFR4hjcOA2QPoRbZlpezTliarEhZi9dNDIZvxlTzEZ4sTqFJckooq1AXSxNLU+ UVmQ== 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=CCq4rv0pHVWqx6v87S4qVBMiqMNC1vK/9JB6y6GlelM=; b=XuUt+AmkKE58nuXtRiUCdgH9c+9i6+g2J9Kbs5wrYTWpRUNl+oQ5oR4+BgXFoRl6ja IomiB/mZMyCux9krbGFUljPtZ+zJxrlX7HyQwQQOMzzc6r8DPJXbTftWuWsnbfnjmth0 7mqhxqCXsmGTlFkHcCb008qFluxswCiBOz9UL3/S/tE2WYdxr7zMl84lA+GD5OkiILFW 31WOJBJgxaS9OLFX4Aww7TorkLGCHSSL08KXQrA4GkdGHPkacqV6bfZqWEb4D5ESimRq cXAb/Bq/ItER6t3tlvyq7E1BtyMaUEyT0m1DSE9D3urd1qTDGAa5rV+NkclLIqv4riU2 Q6Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eYnrCKeE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x190-20020a6386c7000000b0051410c79705si7353821pgd.867.2023.04.15.08.57.11; Sat, 15 Apr 2023 08:57:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eYnrCKeE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229796AbjDOPzV (ORCPT + 99 others); Sat, 15 Apr 2023 11:55:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbjDOPzU (ORCPT ); Sat, 15 Apr 2023 11:55:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38D262117 for ; Sat, 15 Apr 2023 08:55:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C866360ABD for ; Sat, 15 Apr 2023 15:55:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE274C433D2; Sat, 15 Apr 2023 15:55:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1681574118; bh=JM4wxjnVSczW3VmgopWsX+Y1VdqAfX6CX1UeUSvMeT0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eYnrCKeEuvQRpYnsElDqahySK2DGXl1FQgscc2wYdryRKCNsLFz213nhkl0NvzSmP BA4hgMIpbdJA2b5HwTxNSTzGgc9iqxIVw7qYtFR8QnvHE8sT3qOYUUQ5SIzLQXs6uq RgaA5Ld2ZSEo4mT3IjoqKD+/R/5WZ4t6TxaLvnIo= Date: Sat, 15 Apr 2023 17:55:15 +0200 From: Greg Kroah-Hartman To: Yogesh Hegde Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Philipp Hortmann Subject: Re: [PATCH] staging: rtl8192u: Remove functions rtl8192_wx_get_sens and rtl8192_wx_set_sens Message-ID: <2023041559-peroxide-turmoil-9239@gregkh> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 13, 2023 at 08:50:12AM +0530, Yogesh Hegde wrote: > Both of these functions depend on the function rf_set_sens, which is > declared but never defined. Hence calling this function will cause an > oops. Because there is no definition of the function, priv->rf_set_sens > will always be NULL. > > As a result rtl8192_wx_set_sens and rtl8192_wx_get_sens will always > return -1. > > Hence, > * Removed function definition rf_set_sens > * Removed usage of variable priv->rf_set_sens > * Removed functions rtl8192_wx_get_sens and rtl8192_wx_set_sens > * Cleaned up the variables sens and max_sens used in these functions > > Suggested-by: Philipp Hortmann > > Signed-off-by: Yogesh Hegde > --- > drivers/staging/rtl8192u/r8192U.h | 3 --- > drivers/staging/rtl8192u/r8192U_wx.c | 40 ++-------------------------- > 2 files changed, 2 insertions(+), 41 deletions(-) > 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