Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1902759rdg; Sun, 15 Oct 2023 02:25:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFep3huj8fkhwI+PCmaKih1VfStTPxZkma8RKBibwmOxrKbuSa2xZ08IA2QnSKt7fXGEh1S X-Received: by 2002:a05:6358:788:b0:142:d097:3725 with SMTP id n8-20020a056358078800b00142d0973725mr36036842rwj.9.1697361914631; Sun, 15 Oct 2023 02:25:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697361914; cv=none; d=google.com; s=arc-20160816; b=mnx81tXIZoFMNZsMnQQqT4Mdu+Z/rL7ywYSH3XddR5JtRPX8Os3mnh4Zlcisv8eyVb B61G2DgOU68s8r46b0MBtTiGdv0KQJDln5TSGcYMHri9/jrjTwM7WD7yiyaURdZKBi/q Dt2ORJYHFb9cFW74WZntecJtlRtNPuaAdWp9qck1BVUXefBg685LgM1g8P/yOqGzFhU4 SORZsnf3y7OkgoKTBg7nL5IJuM7ux4r7wHy/uGnjATa/vOxxhyh+wcUw66QlWSHhxAPP oyWoZjeXVVakMQWgAtuNoqUkr8vzf5UJ65mrn3XQcA2OiavwFgUSS/ZjCr69SBQ7+WGz N3ig== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=vL1AxwIhCpOiThYfvq5JmxWwVjjAQ2rjQuR4fkvNrTA=; fh=7XuIO59+8jiTyToRBeRFeOOcB/07o6/kQcL/wnUwL00=; b=YHSuPIBdJO8WhdmWraemVBEa3R155dSR66IEOo+xHRYX0Gjq3lsgLtwRN5xFyyTkct ehIn/9Gocd45qpffgFXKo8w0o9ENPh4KJTReM+yOGixCBNaO7TilDI8YRkzuD6nOtyDc BNKG7uppGV7CL+DzIMpz5cAzQIlYbSm4yyAjwWSWdG2J+T3zVm+eOZg9yV2SE6+q3UGd Lh3nZdiGze5PksOr1LuXMa0J/bdedfmuswpFJU692PHZK2Ur//P3K+muyW22v7eaeAON 2GY2SEVU3sp1wXeB7fdS2kISh/KqbqbHTB3MLdrtd2rwtki4nAsVnG90wMNszA2few5r PclQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=io6+Y4+T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id c25-20020a6566d9000000b0056fa1ac3722si8549448pgw.698.2023.10.15.02.25.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 02:25:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=io6+Y4+T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 91505803460E; Sun, 15 Oct 2023 02:25:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229646AbjJOJYt (ORCPT + 99 others); Sun, 15 Oct 2023 05:24:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229561AbjJOJYs (ORCPT ); Sun, 15 Oct 2023 05:24:48 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49ED3A3 for ; Sun, 15 Oct 2023 02:24:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1697361883; bh=urG4oh7ObZeYy796+eJBTOzvZ+QqH/SVTyJ2zZ6fxs8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=io6+Y4+TXg3IBuIBwLGU1ltfzSdN84NFAuELISXW/8mT9o2gIBOYM8Hp1tkCIIQ+E LulG1P+6C1jSP4VujEK9FgLKe2FpmwE8akAJOR0LGH9hKqXIQYCGeuD3HMXtPsHhqz 44+TRGTS6Q4NgqOsup8JHaztxUDQViGTVQ29i7Vs= Date: Sun, 15 Oct 2023 11:24:43 +0200 From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Calvince Otieno Cc: Dan Carpenter , outreachy@lists.linux.dev, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Luke Koch , Bagas Sanjaya , Simon Horman , linux-staging@lists.linux.dev Subject: Re: [PATCH] staging: wlan-ng: remove unused functions Message-ID: <5dd59334-428b-4e27-8d19-7b8514bb5ef5@t-8ch.de> References: <62778e4d-cc2e-4310-b334-52b54cfe7e79@kadam.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=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 morse.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 (morse.vger.email [0.0.0.0]); Sun, 15 Oct 2023 02:25:11 -0700 (PDT) Hi Calvince, On 2023-10-15 10:39:20+0300, Calvince Otieno wrote: > On Sun, Oct 15, 2023 at 10:38 AM Calvince Otieno wrote: > > On Fri, Oct 13, 2023 at 12:02 PM Dan Carpenter wrote: > > > > On Fri, Oct 13, 2023 at 09:52:50AM +0300, Calvince Otieno wrote: > > > The following functions were defined in the prism2mgmt.h file but neither > > > declared nor used anywhere. It is recommended that they be removed. > > > > > > - void prism2mgmt_get_grpaddr(u32 did, struct p80211pstrd *pstr, > > > struct hfa384x *priv); > > > - int prism2mgmt_set_grpaddr(u32 did, > > > u8 *prism2buf, struct p80211pstrd *pstr, > > > struct hfa384x *priv); > > > - int prism2mgmt_get_grpaddr_index(u32 did); > > > > > > > Could you look up when the functions were deleted and add that > > information to the commit message? > > > > These functions were removed five years ago in commit 123412341234 > > ("delete functions"). > > > > regards, > > dan carpenter > > I am not able to locate exactly when these functions were deleted. > I have checked the commit history of these files prism2mgmt.h and prism2mgmt.c, > but, I can't find any commit relating to the removal of the above functions. you can use the "-S" argument to "git log" for this quite nicely: $ git log --pretty=oneline -Sprism2mgmt_set_grpaddr drivers/staging/wlan-ng 1e7201836c576883d5bd708810cc72ab1392756f Staging: wlan-ng: Delete a pile of unused mibs. And fix WEXT SET_TXPOWER. cbec30c4c00c9f5a7357f5c5dacb63ae2378afb4 Staging: wlan-ng: Delete a large pile of now-unused code. 00b3ed1685089ff52169a715de11106ed37df087 Staging: add wlan-ng prism2 usb driver This shows all the commits that touched the drivers/staging/wlan-ng directory and added or removed the string "prism2mgmt_set_grpadd". You can check which of these three commits dropped the function and then repeat the procedure for the other two functions. Thomas