Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp829291pxb; Tue, 12 Apr 2022 14:38:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzabM3snMeeD8jfAElfV/pHvzUcItzpjnP2AYPvTZ5EtXlfTbY/bi9RH71E4mzir6ceW9vM X-Received: by 2002:a63:f412:0:b0:381:28f:85dd with SMTP id g18-20020a63f412000000b00381028f85ddmr32246181pgi.319.1649799494498; Tue, 12 Apr 2022 14:38:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649799494; cv=none; d=google.com; s=arc-20160816; b=vfWIjZbUE6C1s6+/iGiLMQXOEQffaMODcPgVo8ym9d9hLtIREd6NLYcQB4xAGnP2Eq snxvMG42AuvQOtyN2tSTwGtZoh2pcDfZ2MrO6uXFQwEwsX16h9+lWaSjFzhgVDBUEOrq aVKn8ih62g3rA5lqMeuZ2lP899uUpls3HhV/fnFTgFy4I5haAiPkXZ27DnuYgjuuj71Y T27n5+vcyHwcMot52kBrPHBwVhMuMFcB5l8x9lIc4GNdTOVWUHtcU6+vjNIoR0GFiwqj zjigBK/yzCZM4KtNsK8IteKTvaIiMOY+hovufJoOkydHSFtwF7vjO2UJWqj3Ta93xwYI QQtw== 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=CdME7k9LWIn8MAU0G/olWzi0ph3IEteHObQUWxKzw50=; b=qpmgALUh9gzZxKbKqetBo/VS9gizvAQBblwhyN0rRP9iUys+DNnEqDiAqfSen1WGvD 64HGaQYvmSYwMCRlFMhkg7Cdy40Ib/9fuoawf8nI4CW9eW9c6Icvt/Xeci+ZKGFEmXuJ bmD2LmBCqReBwHJIzrfaxXSaNqBes+Ixfr2UEkyko/D1HW20ucgS+geB0jlO+vF/exHQ xLYZVL5PQQLNb7lzWykrCkaAdAWOuZbyxcDrNSsP/WhkSel69TB/m8dCTRSnnYfGD7ir wBysu1wPv18mONU9nw/epIkz/csmWmaO8TbV2cHMxqjR3no+fnZvvkEhF+BCYvTKqZUD ZsNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=D0Flk52z; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j37-20020a634a65000000b00385d87195b4si3834319pgl.90.2022.04.12.14.38.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 14:38:14 -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=@linuxfoundation.org header.s=korg header.b=D0Flk52z; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EADE21226D7; Tue, 12 Apr 2022 13:42:41 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355674AbiDLP63 (ORCPT + 99 others); Tue, 12 Apr 2022 11:58:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357469AbiDLP5R (ORCPT ); Tue, 12 Apr 2022 11:57:17 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAB18388 for ; Tue, 12 Apr 2022 08:54:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 40D2ACE1F65 for ; Tue, 12 Apr 2022 15:54:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C0B4C385A1; Tue, 12 Apr 2022 15:54:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649778889; bh=dbQHjtWTndQ3IhJbJ7Bf8ue3XoQqen/tZP8psUGBdro=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=D0Flk52zzKTiOJtrDbgYOw3HQZfvDWYR5IKWnmBiBv05GWrNgJEFRwVa7lDxf2EDo SZIZG3XhBYGNiBN8PR23PBJWk6w73PpfhJ23BSXmSq0vypF4dM+TRah0cQD6APe0xP zZBeatO+KMyPwMoUvG1R1aTl//Qvq68wnbq4gPXw= Date: Tue, 12 Apr 2022 17:54:46 +0200 From: Greg Kroah-Hartman To: Bruno Moreira-Guedes 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: References: <20220401050045.3686663-1-codeagain@codeagain.dev> <37e5203d1efd310ea82cf91c18c6a07eea743ac7.camel@codeagain.dev> <20220412151432.zsdxrag7myyzgv6o@AN5Bruno> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220412151432.zsdxrag7myyzgv6o@AN5Bruno> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, 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 On Tue, Apr 12, 2022 at 12:14:32PM -0300, Bruno Moreira-Guedes wrote: > On Sun, Apr 03, 2022 at 01:05:44PM +0200, Greg Kroah-Hartman wrote: > > > >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? > > > > 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? > > > > 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 > 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? Yes, that would be a possible way, try it and see! greg k-h