Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4536576rdb; Tue, 12 Dec 2023 02:16:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IHr9s39KbrmIlGvB94u9ohzYe2Jlxl72peU1VEwamGXN7/s7E74hbi7f4AXMdnhN5TrYarD X-Received: by 2002:a05:6e02:1a21:b0:35d:59a2:929c with SMTP id g1-20020a056e021a2100b0035d59a2929cmr6732155ile.48.1702376205533; Tue, 12 Dec 2023 02:16:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702376205; cv=none; d=google.com; s=arc-20160816; b=LJQRNyAhGebUVReBdtJV/Y38qj/uZHo0mkXsVOCJKKe/Pm+CGvLFssJNNqZaE34zl3 GLyZK8LD1DcT56W+Hw1+CWXb9b4sjLMZLdZKzf6DCDrb9lhSDIpJMvdOd1JdnRp8XF67 QOoVyrACFJrc2BpfTQDi85nhhFvF+YVz6qh7YUmaPg/RQpqdGx56h1RmgTf3VaPNREWH 3XYH8OEljqJkOBAX6crfpkPbc2fc9VyRrUESCnmmmkdDjCQ5dw1bONmiRzIgiSdrX+h3 N5SmbGp1NPfqvTK8JW+tFAo0JJwErJNrbD61MfdalqoJ5WpG6ukoYZhG24e5iO09pp2n R0ig== 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=STNZbZiohRdPh68A6PGkVK46SbhTnEEYPJxkG/c4scg=; fh=oObktE8inDR3757qoJI5/N6nsb1++ccc1fh2x+vYAn8=; b=MGomoLHIEb8P0aKaOALHf/8oLVqM6nMAr3ZCLmka1OEcKx+3C5ieilHmm5Jv+h5xWH oymE4nIRzNisGSBs7ZoB2QjqNEUMbVngCgITKf0ZDnx1JRR2FtjoqeZIWmYw5a3EF8MV x1tYdYMTeQ+WbWJ1LYoryBnrpJudaXFg7LBPMiKuvaMrW22FsmoYNMu3zINqzXWle93F qEzwLoF4rouyi0fmG+CONR2weohzrYu+cwyhh+yud+l2ZJbva+Ld15Iii1mmXXKxNJIH bGFfJER9kRcmFWfQbVsWkyJxis+Eseaky40CncUe6WiPsyVY8ElmYDZbV8DmSCnHSzHR S9pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BEopNWgC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id l5-20020a656805000000b005c66072691asi7455450pgt.551.2023.12.12.02.16.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 02:16:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BEopNWgC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 333578063810; Tue, 12 Dec 2023 02:16:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231527AbjLLKQ3 (ORCPT + 99 others); Tue, 12 Dec 2023 05:16:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjLLKQ2 (ORCPT ); Tue, 12 Dec 2023 05:16:28 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15B09A6 for ; Tue, 12 Dec 2023 02:16:33 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14397C433C8; Tue, 12 Dec 2023 10:16:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1702376193; bh=QNcLcqvo2jYrSjQ/cTdC3kektegzfqa7FvSTeFHo/l4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BEopNWgCWiBewoT41V5fXjtJugYtBLvX1JVPMStxjPpXbBsNZ88/6rgT+f6UaxNTN pNmbw3i13OgeeqS0tSa1nB3HnUw37tpaQFVyoPsvAwhhUfZ0LSDZLWKngcuVsf9Xzh vgCVmIHOyd2gGNhjLFxdi9IJY8fojNMmzfYcmbng= Date: Tue, 12 Dec 2023 11:16:30 +0100 From: Greg Kroah-Hartman To: "Gan, Yi Fang" Cc: "Rafael J . Wysocki" , Javier Martinez Canillas , John Stultz , Jens Axboe , Andrew Halaney , Lobakin@kroah.com, Aleksander , Gan@kroah.com, linux-kernel@vger.kernel.org, Looi Hong Aun , Voon Weifeng , Song Yoong Siang , Lai@kroah.com, Peter Jun Ann Subject: Re: [PATCH net-next 1/1] driver.h: add helper macro for module_exit() boilerplate Message-ID: <2023121245-unspoiled-aging-214d@gregkh> References: <20231212094352.2263283-1-yi.fang.gan@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231212094352.2263283-1-yi.fang.gan@intel.com> 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,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 12 Dec 2023 02:16:43 -0800 (PST) On Tue, Dec 12, 2023 at 05:43:52PM +0800, Gan, Yi Fang wrote: > For the modules need a module_init() but don't need to do > anything special in module_exit() might need to have an empty > module_exit(). This patch add a new macro module_exit_stub() to > replace the empty module_exit(). The macro is useful to remove > the module_exit() boilerplate. > > Signed-off-by: Gan, Yi Fang > --- > include/linux/device/driver.h | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) Why would we take a macro that no one actually uses? Please submit this with a user, you all know that this is the case, how did it pass your internal reviews (hint, I don't think it did...) thanks, greg k-h