Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp34978pxb; Tue, 12 Apr 2022 16:04:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1qzapEEYAEzD5d8RTXLmQkzVFX1MYHKspXnQuHMTE+T275629wK4fYnmy+G362/MgNkyd X-Received: by 2002:a65:5c48:0:b0:382:2c7:28e9 with SMTP id v8-20020a655c48000000b0038202c728e9mr33067024pgr.472.1649804648781; Tue, 12 Apr 2022 16:04:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649804648; cv=none; d=google.com; s=arc-20160816; b=cr+bDk80E0nxQ+pw7IvB8vTI34nKKhpIS3ZNVTg6bKzXF6As5anBEM1f7mzLYtF2uj 5ePuCUUQt6rBbGVz1RnggjLIzIxdqy1bOIAYfbmaVzmR1S+A8nyOKKEhk3tJPCfF9fq9 K2Yvk1Epg81l/pcN2rh2EtC/v+yZ5wfxHDNYklwhxlf5usPPmULN0MYWwEn6Wi+qLXr1 /2hL3uT1fEerXC48FnO0x+K57/xVgsgROxy3h+79B2PMRTSpyPCLkFd5DcKEG3ifT+Y/ /p5ZBsQ46a1bncmjS+g4BbH4dYxBBtKp5nAROJH5nZ3W+44B/JetlMmBJN/8sv5DpKOC r4aw== 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:sender:dkim-signature; bh=5sXCut8TWVHUJUklXIfFZgNr0FAeWRkchT3uWz5fv5M=; b=QfRz1ko5tUqXb1BdJgu6fRq+5Ke9W5uo7hn0OfJ4mP6OhT4sGWb3y3xJzck7tkrsG+ +zgT9Uc4KdOs3lIqwG0jAAg1CzBxTo9OWmFWJRKFBJJSw7M1T6mfrejgHNr765OoPah6 dA85mpCobIct+vEDon20vf5QagAMz6Y3Szv9KjFfNKglk/E2HnTTl8BuIlPMsg3Dfrn5 6N/f6A+xTgaZj/VQCFfzY4TF0GdZ86ttrYTrRHT9p4H/TRmRyop/46V8w+vPKCrxq/m0 hXrt7vltk55Rb0Yra0qT+9sIGV3Ut7hFtIAi+ojL7+IrB5dTWFUY0wKOeka0fH/NFWQD HiYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeagain.dev header.s=smtp header.b=LCUSzEWk; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id cd25-20020a056a00421900b004fdb5bf7840si2784939pfb.138.2022.04.12.16.04.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 16:04:08 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@codeagain.dev header.s=smtp header.b=LCUSzEWk; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 361101EA2B8; Tue, 12 Apr 2022 14:46:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356889AbiDLPRO (ORCPT + 99 others); Tue, 12 Apr 2022 11:17:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356915AbiDLPRK (ORCPT ); Tue, 12 Apr 2022 11:17:10 -0400 Received: from m228-62.mailgun.net (m228-62.mailgun.net [159.135.228.62]) by lindbergh.monkeyblade.net (Postfix) with UTF8SMTPS id A9E5345AC2 for ; Tue, 12 Apr 2022 08:14:45 -0700 (PDT) DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=codeagain.dev; q=dns/txt; s=smtp; t=1649776485; h=In-Reply-To: Content-Type: MIME-Version: References: Message-ID: Subject: Subject: Cc: To: To: From: From: Date: Sender: Sender; bh=5sXCut8TWVHUJUklXIfFZgNr0FAeWRkchT3uWz5fv5M=; b=LCUSzEWkNMX40iTn6NwMmxFcoHJz6U2NdsjBAnqDYlhfnei91rLtS8HWFwrLaQ4BQDmOHc51 pZqskvV3KXHejWyl9cISr5OL/Q6oe67Di15xz0BHy3wOsC5EmEGPwSWmS4H98msRwh6XeWOO X4Edd4c60nfBllnH6fHtx7ZOwyag/21QiCYR1jAzDUtgX6gXLoEOwIXl7togZ4XqID0Q2q8c EtBSRsvo7H+Np/yeysQ+ydSJx9vrhF2QakJjuxPH4SCJ7BlKDpG3f3ql3d4dXotHAyhSM+8p HwTs+fWuYGn35pMdMTvLHb2g3ESCyu9EFLZB8j5nNdXBaKgXIhzkgg== X-Mailgun-Sending-Ip: 159.135.228.62 X-Mailgun-Sid: WyJkNDU4NiIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWM2ZCJd Received: from AN5Bruno (177.75.142.178.mhnet.com.br [177.75.142.178]) by smtp-out-n01.prod.us-west-2.postgun.com with SMTP id 62559763c172fc506669698f (version=TLS1.3, cipher=TLS_AES_128_GCM_SHA256); Tue, 12 Apr 2022 15:14:43 GMT Sender: codeagain@codeagain.dev Date: Tue, 12 Apr 2022 12:14:32 -0300 From: Bruno Moreira-Guedes To: Greg Kroah-Hartman Cc: Martyn Welch , Manohar Vanga , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev Subject: Re: [PATCH] staging: vme: Adjusted VME_USER in Kconfig Message-ID: <20220412151432.zsdxrag7myyzgv6o@AN5Bruno> References: <20220401050045.3686663-1-codeagain@codeagain.dev> <37e5203d1efd310ea82cf91c18c6a07eea743ac7.camel@codeagain.dev> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="uzroyt2mhu6e5h2z" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,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 --uzroyt2mhu6e5h2z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Apr 03, 2022 at 01:05:44PM +0200, Greg Kroah-Hartman wrote: >=20 >On Fri, Apr 01, 2022 at 03:21:50PM -0300, Bruno wrote: >> With my tests in my, I have found two other things that I think are >> remarkable to mention. First one is a missing `depends on` line for >> `VME_BRIDGE` in drivers/staging/vme/devices/Kconfig, not visible >> because they were in the same tree, but now unveiled. I'm fixing it, >> do you think it's best to add it in the same patch? >=20 > Make that a second patch, and resend it as part of a patch series since > your first patch here is gone from my queue. This patch is already sent, so I'll trim most of this message to avoid duplicating the discussions. There's only one thing I'd like some input first, if you don't mind. >> Do you think it would be interesting for a future patch to provide >> some output when drivers from the staging tree are present in the >> running kernel image? >=20 > If you can figure out how to do so, that would be interesting to see. I think I might have figured out. In "include/modules.h" and "include/init.h" I happened to notice the driver initialization is handled by some macros. After some inspection through gcc -E and looking how they are defined, I figured out a scenario (when MODULE is not defined) where the module_init() macro is defined as (among other things) an inline initcall function that wraps the driver initialization function. So I thought about implementing it by creating a -DSTAGING flag in=20 drivers/staging/Makefile, and then using this macro to make an #ifdef STAGING to add a similar inline wrapping function, except that in this case the function makes a pr_warning() before calling the initialization function. Do you think it would be a good way of solving that? >=20 > thanks, >=20 > greg k-h Sincerely, Bruno --uzroyt2mhu6e5h2z Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQTUrsHCxGmQ5vyKRAZtd3tyEY2kgUCYlWXWAAKCRAZtd3tyEY2 krH+AQCOA6xs+ZfEOtSqkDyDQo7guUekOMvEkl3nwrFWp7XxcwEA/U77ucSBvvUC Pjapi3KlYMIytoVGNTDlwkBkCxQP6w4= =Pzsg -----END PGP SIGNATURE----- --uzroyt2mhu6e5h2z--