From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B9D23C4332F for ; Tue, 12 Dec 2023 10:16:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232081AbjLLKQa (ORCPT ); Tue, 12 Dec 2023 05:16:30 -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> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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