Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp461104rwd; Thu, 8 Jun 2023 03:18:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ68C6RQg+c4QJx6I59K5eTjPCrgmiSGXWKsQwbFNeYXC0ZbyjPfGfeAcjSZTJA2HP2GJzpf X-Received: by 2002:a05:6a21:3a85:b0:101:4348:3e4e with SMTP id zv5-20020a056a213a8500b0010143483e4emr3085329pzb.42.1686219507385; Thu, 08 Jun 2023 03:18:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686219507; cv=none; d=google.com; s=arc-20160816; b=caMXbFUK9lOSBrFLK6pTL46hoPIYbeAUNvpbrRai301civURipV4O7ARbCJOxCdo1h 0KL1k+L2eahbpz+mCdlW0MD2pYy/DkpXzwWWd/NxYZtx6HnBRc+xNdBSbDkg2BeEh0BK hHu9tNgrF7W/dfGsXukcfaT3XZRWHNu54IG2twkKxmktmq7MbWg22sK21zYMM9N3WZ5Q vDpKYp8KamYwip7OeMlN0WTXlNOPpsnpVG10h3C/VmisADffD6caIjkPy36cV4hk9foI PGFbYIPQyjrbkmG3qCpTfEdhO7TKJNq+yrHYzvMi6YRu9LUCMCdiC5e3PyShiOrq4r25 KzOQ== 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=JodGdzWAkQDzujxM3bm4FSKShtDx7dEh1i0tt1xVWIY=; b=GdAECh3GFkug0X5bJIXGGCYXbfvypMnu2Q0ZbJM4qfYHuKS8OS9PRboazEBsivPgeY 5SNWArwjisH0YlddoufbJeH/rLPgDmzgoZ5P14JdmbSdee01EmpQlTaIl4qv1gFVzv4l iL8H/Kz3gpDKI6czqzhzcbKaUPpHbijuOj9iCNk9Wd+pWoOQ+5NNDBlsfZP0Yt93AjM/ o/DNOMl9tUi7ndQtMFMs3UyMCAGCRECSugsAHsnRan2P3XehFzCWCI/dNK0oXAz/tpVu aJB5ulttHiXBuHnV4PSauUVpKPW3tziOAaMjwEVA/IeSWjiqE2UXJwg4wLdma42hLUBo 8cLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=enpUwJ9P; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z72-20020a63334b000000b00543cc95d776si733376pgz.660.2023.06.08.03.18.15; Thu, 08 Jun 2023 03:18:27 -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=@gmail.com header.s=20221208 header.b=enpUwJ9P; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233955AbjFHKAJ (ORCPT + 99 others); Thu, 8 Jun 2023 06:00:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235913AbjFHJ74 (ORCPT ); Thu, 8 Jun 2023 05:59:56 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 378B42726 for ; Thu, 8 Jun 2023 02:59:43 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1b1bf83095aso1687195ad.3 for ; Thu, 08 Jun 2023 02:59:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686218382; x=1688810382; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=JodGdzWAkQDzujxM3bm4FSKShtDx7dEh1i0tt1xVWIY=; b=enpUwJ9PRdhzHjoORDXHXE/Oyp0MBfozoq0hN1FUx5LwSOnisf+D2DR6FGwrzpnQ7D J5UPNNwXyiaRaRIx2ZeEMhSEfeK0u3LS/A6hxXOAgDeo00mVPaWfxx9yeRUi8jjoIDGD /gShvKf4tAgC2ZMDo/Gc+cpGcD2rAIk3bj7kQkzCgom52mvMVdwykw08iPZxXDcp2jMj VAvv6e7FCEWKSq4nM3Iwdjt80sjs3uq6g+PKHh1noZgAVmau5BDC9If8M8k7udeq6b0a iv52k28kKEAlNcsBEN4uh3+yxYJgVZkXHeUxjWdJrdj9KI05hUnf8o2+7hrw7+XD0h+C IMYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686218382; x=1688810382; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=JodGdzWAkQDzujxM3bm4FSKShtDx7dEh1i0tt1xVWIY=; b=krIMFeYkhqWP/lxMPVXBmG9L9Gcs8dh6k0ApCGJZN7TVKBvxIzC1Ck5wUQVXelzFb4 txXI/8iQBu4LgETzmPeaylCnmppc0hwpBb6FUuuoSv9OOF6xbyoP9UlaE6ZkurWs/WFy lkBf7lrFeodrOcMbJW/G2DZ0IaiR6uBXTitPhgqyLXy55HLK7TOeHA1FyaGjmIxSHIQ3 9txsJlKTJcdjP8xVjwI50n9q56S5sYT/8LLyPmOgMKrjFCcCENI8pjdXR5OLZqI+afSa 3tPtUxprypt++FttBlc3p8ycbO/0CIMifvxpwY0B20eOtrzHTdfpkSkcyondd9Be/S04 0dRg== X-Gm-Message-State: AC+VfDxZaPRF7CwrLUoYslhSpJgr4/5LsOU0Ns+KriM0w0GpuQJMLIqM bIJHmKt375rajrrv1YGh1Mjt2OAXTn0= X-Received: by 2002:a17:903:32c3:b0:1b0:28a7:16d1 with SMTP id i3-20020a17090332c300b001b028a716d1mr4882353plr.10.1686218382556; Thu, 08 Jun 2023 02:59:42 -0700 (PDT) Received: from yogi-Zephyrus ([103.251.210.211]) by smtp.gmail.com with ESMTPSA id l14-20020a170903244e00b001a9bcedd598sm1062511pls.11.2023.06.08.02.59.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jun 2023 02:59:42 -0700 (PDT) Date: Thu, 8 Jun 2023 15:29:38 +0530 From: Yogesh Hegde To: Philipp Hortmann Cc: Dan Carpenter , Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/5] staging: rtl8192e: Remove variable SetWirelessMode Message-ID: <20230608095938.GA598514@yogi-Zephyrus> References: <01a162c5-f0de-47b1-97e7-8a451a89df80@kadam.mountain> <90813181-02a1-b54f-132b-c68e7b797bb6@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <90813181-02a1-b54f-132b-c68e7b797bb6@gmail.com> X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Wed, Jun 07, 2023 at 10:18:28PM +0200, Philipp Hortmann wrote: > My compiler does not compile this patch: > LD [M] drivers/staging/rtl8192e/rtl8192e/r8192e_pci.o > MODPOST drivers/staging/rtl8192e/Module.symvers > ERROR: modpost: "rtl92e_set_wireless_mode" > [drivers/staging/rtl8192e/rtllib.ko] undefined! > make[1]: *** [scripts/Makefile.modpost:136: > drivers/staging/rtl8192e/Module.symvers] Error 1 > make: *** [Makefile:1978: modpost] Error 2 > > Did this compile on your system Yogesh? No, while sending the patch I partially compiled it `make drivers/staging/rtl8192e` but when I fully compile it `make all` it gives me the same error. It is a mistake on my part. > But I think it does not work because this driver is divided into two > modules. > > To load the driver I am using the following lines: > sudo insmod drivers/staging/rtl8192e/rtllib.ko > sudo insmod drivers/staging/rtl8192e/rtl8192e/r8192e_pci.ko I was not aware of this and assumed that ideally the driver has only one (PCI) interface so all the files should be compiled into one `.ko` file and loaded. > So this line is required: > priv->rtllib->SetWirelessMode = rtl92e_set_wireless_mode; > as one name is used in one module and one in the other module. Yes, this makes sense now. Moving forward, Dan, Greg and Philipp what would be the best fix for this issue, 1. Patchset to combine both the modules into one module 2. Revert back this patchset to v1. Looking forward for your response. Regards Yogesh