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 6280EE95A8F for ; Sun, 8 Oct 2023 05:04:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344371AbjJHEyG (ORCPT ); Sun, 8 Oct 2023 00:54:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344352AbjJHEyA (ORCPT ); Sun, 8 Oct 2023 00:54:00 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 800E4BD for ; Sat, 7 Oct 2023 21:53:52 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64CE8C433C8; Sun, 8 Oct 2023 04:53:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1696740832; bh=iHUP7w1yj6B3J67wHuveEb6hh0Uh72axIwrx7bDqPIY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ehtsUKT1V6Gpejv28as1A34jPVJbPEyGD+ZGm+6GjheNHGiQ4de6LwXqePdRdT/qd OKXwMZWAVnA766zElWJ+ekdiimlVAtHX5SbyZpABJqqWErmjCYi6LFKRXAfLI1dvtq 9a1lk3hjYxvN/QfIm02UbtaG1emNhrcKNXPkYrsM= Date: Sun, 8 Oct 2023 06:53:49 +0200 From: Greg Kroah-Hartman To: Yury Norov Cc: linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Andrew Morton , Andy Shevchenko , Brendan Higgins , David Gow , Hans de Goede , Herbert Xu , James Seo , Jason Baron , Kees Cook , Kefeng Wang , Marco Elver , Mark Brown , Ming Lei , Petr Tesarik , Rae Moar , Rasmus Villemoes , Thomas Gleixner Subject: Re: [PATCH 1/2] lib/bitmap: move bitmap allocators for device to linux/device.h Message-ID: <2023100855-railroad-wrecking-25af@gregkh> References: <20231007233510.2097166-1-yury.norov@gmail.com> <20231007233510.2097166-2-yury.norov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231007233510.2097166-2-yury.norov@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 07, 2023 at 04:35:09PM -0700, Yury Norov wrote: > The allocators are simple wrappers around bitmap_{alloc,free}(). > So move them from bitmap to device sources. No, they belong in the bitmap.h file, as they are devm_* versions of the same functions in this file. They don't belong in the device.h file. > Similarly to other device wrappers, turn them to static inlines > and place in header. Why do these need to be inline functions? thanks, greg k-h