Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp398246pxp; Sat, 19 Mar 2022 05:47:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDt50+c2V8zzl41lowDNuH60fM/bfHgbaIXVvAfr8r1PUxs+G/5i016NOxhqlufrffrr/I X-Received: by 2002:a17:902:f707:b0:14a:fd51:3b5f with SMTP id h7-20020a170902f70700b0014afd513b5fmr4201188plo.98.1647694036107; Sat, 19 Mar 2022 05:47:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647694036; cv=none; d=google.com; s=arc-20160816; b=t2CBlBI2xiTkRpPsWRbal252BwXDY168NvKFxwH3UhVy+Ksj/UuQeLte1sQpszoooV DjIYDcVyGH4volDfXNNx2/4ZAFlbeZv3znoch7z/LcoGBy+beKiSH7d2EH7dftSY5MpM p9HHGJDR3f1rwGs3xopqp/ptlAy7Cu0QpwPGmvSkcrS4VqBGFfyfJF4sQiSd3UsBYKpF 2fgoy9iLNGfVlZpi2fcyAoDAfH2Y+ng+b4joR5ds+o2kHs2SjcQmQtzokRjh+j5VfFD/ VT5ord2QTHw79rAv9nJytCtpbtAJRZKxS3VTekXJF1F/jLkN0vQrYBpJeEmZ39/lLh8G 1Wqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=ekiD2sX45IwGk6wtsqdwxLttTAGZcGccRjZl1i6g1JA=; b=RbYyJRcABFBjhZDHc2sTTBES3Lw/q9KA6eL973+XkkpNlw/8YwAy2ndHN5Cx82sAse eHr/tSwyUaV4J/ZM/jobQTBGZaI3BrAjhd4s3SZFdwfXDo4U+1s/N+1xuZHdir7K1nJ/ gUU4sF0xtM35NYCQHbbN/eaXaBMSPCJBfPvu6cCHHaygpBTphHWDcIm5YJieJlUEAZfr GBaiLGRRcPaIwqsDXzmXe20a7Hfb7ResXG8okjukRYqjgvEOlFPG0t7oxjIn8LQ2YMed I4EZxhbPOtQdgCbB+zmu0Y/9RHIE9DGrybNAFmvJpsVsooMypAIv0t+HHIYOt5BsQu+A wSuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=dMDapo5g; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 j36-20020a634a64000000b003821f261ac6si6028088pgl.215.2022.03.19.05.46.44; Sat, 19 Mar 2022 05:47:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=google header.b=dMDapo5g; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 S234187AbiCRWrU (ORCPT + 99 others); Fri, 18 Mar 2022 18:47:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241343AbiCRWrT (ORCPT ); Fri, 18 Mar 2022 18:47:19 -0400 Received: from mail-oo1-xc2c.google.com (mail-oo1-xc2c.google.com [IPv6:2607:f8b0:4864:20::c2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C55422C6F3 for ; Fri, 18 Mar 2022 15:45:58 -0700 (PDT) Received: by mail-oo1-xc2c.google.com with SMTP id j7-20020a4ad6c7000000b0031c690e4123so11874405oot.11 for ; Fri, 18 Mar 2022 15:45:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ekiD2sX45IwGk6wtsqdwxLttTAGZcGccRjZl1i6g1JA=; b=dMDapo5gWo0mYQwoT0A/aOZqMdPyZSCOVsL5zPGffJvLJZp0AfN2E9xdlck/nSLv/N hEsSe5KNbjsmefIhgIIv1yDVHMP+6YIgd44fW9U2d/c1Akfns382n70WbM/10yIkuHjZ SUNIZp82WOT2MEcG49QwDBCrffF4++Gcu4CkY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ekiD2sX45IwGk6wtsqdwxLttTAGZcGccRjZl1i6g1JA=; b=01Oer/JL8tWB2+nDgr7sPAUTKqRPFCtJDaBGXTJKg1FFLxOswlCFh6pssjiusTk6vk 57l7zJLp5qlaZkS3qqrwvlTA2XFG4/kd1GbOj9FRSImLRMgKniv/XFIhLKCJ2twJ2UwH ldFTxtQ7CF5IQJ/eb4/K+Rm+uHD8mAckFoGzTJycsr9Pnh6D56YPBX2SCklxBHWo6J1T y0EqWDsXfIT1OsvcjZ3ivQIKsBdf+ctfezGyO00JdEhaombce3vAEsxQ/t//+Vf2N2D0 2eT/9WjrrLZVG28FmUWfIM/E3ZpMQsnVGP/gH8BMzZPMe2La/lp4MxMdhOagTMFXaulY h0iw== X-Gm-Message-State: AOAM532/+NTmc9+H6JupqhGRES/HvS7a6p6IknEaWbJAPEh9sp7E7Lde Umwr/OF8tjrwQ97CMk7aQ/lIhg== X-Received: by 2002:a05:6820:814:b0:322:b1b2:2456 with SMTP id bg20-20020a056820081400b00322b1b22456mr3591951oob.0.1647643557718; Fri, 18 Mar 2022 15:45:57 -0700 (PDT) Received: from [192.168.1.128] ([71.205.29.0]) by smtp.gmail.com with ESMTPSA id x12-20020a056830244c00b005ad233e0ba3sm4330223otr.48.2022.03.18.15.45.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Mar 2022 15:45:57 -0700 (PDT) Subject: Re: [PATCH 7/9] usb: usbip: eliminate anonymous module_init & module_exit To: Randy Dunlap , linux-kernel@vger.kernel.org Cc: "Michael S. Tsirkin" , Jason Wang , Paolo Bonzini , Stefan Hajnoczi , Jens Axboe , Amit Shah , Arnd Bergmann , Greg Kroah-Hartman , Eli Cohen , Saeed Mahameed , Leon Romanovsky , Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Jakub Kicinski , "James E.J. Bottomley" , "Martin K. Petersen" , Felipe Balbi , =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Sebastian Andrzej Siewior , Krzysztof Opasiak , Igor Kotrasinski , Valentina Manea , Shuah Khan , Jussi Kivilinna , Joachim Fritschi , Herbert Xu , Thomas Gleixner , Steven Rostedt , Ingo Molnar , Karol Herbst , Pekka Paalanen , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Borislav Petkov , "H. Peter Anvin" , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-block@vger.kernel.org, linux-crypto@vger.kernel.org, linux-rdma@vger.kernel.org, linux-scsi@vger.kernel.org, linux-usb@vger.kernel.org, nouveau@lists.freedesktop.org, virtualization@lists.linux-foundation.org, x86@kernel.org, Shuah Khan References: <20220316192010.19001-1-rdunlap@infradead.org> <20220316192010.19001-8-rdunlap@infradead.org> From: Shuah Khan Message-ID: <282f4857-7b4f-810e-af0e-e9ca8129c7fc@linuxfoundation.org> Date: Fri, 18 Mar 2022 16:45:54 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20220316192010.19001-8-rdunlap@infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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-crypto@vger.kernel.org On 3/16/22 1:20 PM, Randy Dunlap wrote: > Eliminate anonymous module_init() and module_exit(), which can lead to > confusion or ambiguity when reading System.map, crashes/oops/bugs, > or an initcall_debug log. > > Give each of these init and exit functions unique driver-specific > names to eliminate the anonymous names. > > Example 1: (System.map) > ffffffff832fc78c t init > ffffffff832fc79e t init > ffffffff832fc8f8 t init > > Example 2: (initcall_debug log) > calling init+0x0/0x12 @ 1 > initcall init+0x0/0x12 returned 0 after 15 usecs > calling init+0x0/0x60 @ 1 > initcall init+0x0/0x60 returned 0 after 2 usecs > calling init+0x0/0x9a @ 1 > initcall init+0x0/0x9a returned 0 after 74 usecs > > Fixes: 80fd9cd52de6 ("usbip: vudc: Add VUDC main file") > Signed-off-by: Randy Dunlap > Cc: Krzysztof Opasiak > Cc: Igor Kotrasinski > Cc: Greg Kroah-Hartman > Cc: Valentina Manea > Cc: Shuah Khan > Cc: Shuah Khan > Cc: linux-usb@vger.kernel.org > --- > drivers/usb/usbip/vudc_main.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > --- lnx-517-rc8.orig/drivers/usb/usbip/vudc_main.c > +++ lnx-517-rc8/drivers/usb/usbip/vudc_main.c > @@ -28,7 +28,7 @@ static struct platform_driver vudc_drive > > static struct list_head vudc_devices = LIST_HEAD_INIT(vudc_devices); > > -static int __init init(void) > +static int __init vudc_init(void) > { > int retval = -ENOMEM; > int i; > @@ -86,9 +86,9 @@ cleanup: > out: > return retval; > } > -module_init(init); > +module_init(vudc_init); > > -static void __exit cleanup(void) > +static void __exit vudc_cleanup(void) > { > struct vudc_device *udc_dev = NULL, *udc_dev2 = NULL; > > @@ -103,7 +103,7 @@ static void __exit cleanup(void) > } > platform_driver_unregister(&vudc_driver); > } > -module_exit(cleanup); > +module_exit(vudc_cleanup); > > MODULE_DESCRIPTION("USB over IP Device Controller"); > MODULE_AUTHOR("Krzysztof Opasiak, Karol Kosik, Igor Kotrasinski"); > Thanks for fixing this. Acked-by: Shuah Khan thanks, -- Shuah