Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp435267rdb; Thu, 19 Oct 2023 08:31:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEJ0LLrOz+5qYuQtq6Zs1dDvlAZGQnzpFQS8Lg+yx30rwmJbxHO6vpjtRBJVlkQleTW9le+ X-Received: by 2002:a05:6871:b22:b0:1e9:960f:894b with SMTP id fq34-20020a0568710b2200b001e9960f894bmr3038068oab.46.1697729491339; Thu, 19 Oct 2023 08:31:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697729491; cv=none; d=google.com; s=arc-20160816; b=vFOJLcxyjjg8R12TGjCqkhEHLO05Hixj+DgdwSQo7PnEMk735YSWAwJc1hyERkFbtw zOPa7PkrdarZxyUWYnp3iRRoc9nWH+OlKEx0yh8EtkCC087crg31dzvC4SA5nVG3uFQw q4mfGl32tWIMV3BcW5wYt6F0IaUkOMwa0xXLGNlKOp9r3HK7ogSYolMmhgcUayvQYi2n dldUmWGgtJw/3+gu1VJ2dmtdQfCe1roR+h1H92bHfqdcXvkL5r4CJD/T4iWbyP+AMitG EQ5+fW8Q6nzBR/PadzgrjqwYIxI55Ni1I4A27YK++o4FbOxWMsfphD8Xr+37P5Ec2ChL Pb7Q== 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=JZi54iB1ZsX0w3yPbe+wpcJOuGUQxaxO44gnVbplGhc=; fh=wVuq3AW0HT/aMdDb+pDHg6+Kt738vUUFQONOvA0GD6I=; b=ZsK5Z7cN8UB1iXvuTI1NKes9QLtv/LtbZ/KgrKN2C6gAYkfqlhSIySSedwWVRsNoTh HMytv84zUWCj1vb/fNVu26/rg5T1i61T+md6AY+rDxrrVRYSdcjYCyV+JlCc5ZDXs92m akF2S74LqrmkSBkqZA6saNUrmVhuyG6R3y6y2enJQJIekOttr2YcaCjQRNkWzh3SvJYv 81u44XH71yKXm8V96y9TexZ2EqxOUYmRsTp4TdFNxkyrrFX210A2YFau70wthBooDdCv mhb+urW1rTc42GPths71gO9mRsVo2w4JWrWKXKraz/kMgVvHexlkieVElSHdsMKEtgbc cpOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UmNCDDyU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id q11-20020a65624b000000b005accbb92b70si4265406pgv.676.2023.10.19.08.31.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 08:31:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UmNCDDyU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id AC09C81C366B; Thu, 19 Oct 2023 08:31:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345812AbjJSPbW (ORCPT + 99 others); Thu, 19 Oct 2023 11:31:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345747AbjJSPbV (ORCPT ); Thu, 19 Oct 2023 11:31:21 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBA0C121 for ; Thu, 19 Oct 2023 08:31:19 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B2B7C433C9; Thu, 19 Oct 2023 15:31:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1697729479; bh=eFIqv6PT8zFfTS2Wvhm/KJywp22U/mEaQLbVWOOiAG4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UmNCDDyUIYcCrJMG7idhPxGRpIvOAwchg9u02JNpbMkQNdDnD6nufLI9vlCbNLYlj z02/7uT8fz7vYP97lXebp4v+4yXsr6l9Su54GV1YwZI1zJx3uO+QkSR7zG8EcasXLl psLjXbmANIHQBeAa0d2omrSs4pLcVC0h1g6WfwKw= Date: Thu, 19 Oct 2023 17:31:16 +0200 From: Greg Kroah-Hartman To: Calvince Otieno Cc: gustavo@embeddedor.com, outreachy@lists.linux.dev, Florian Fainelli , Broadcom internal kernel review list , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: vc04_services: remove empty functions Message-ID: <2023101938-canopener-evasive-3590@gregkh> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Thu, 19 Oct 2023 08:31:29 -0700 (PDT) On Thu, Oct 19, 2023 at 12:46:23PM +0300, Calvince Otieno wrote: > The functions vchiq_debugfs_init(), vchiq_debugfs_deinit(), > vchiq_debugfs_add_instance(), and vchiq_debugfs_remove_instance() > are declared and defined but contains no code or statements. > They do nothing. On the contrary, they do a lot! Try building with CONFIG_DEBUG_FS disabled and see what happens with your patch applied (hint, it breaks the build badly...) To be fair, the "empty" functions should be moved to the .h file, not the .c file, so if you want to do that, it would make more sense overall. thanks, greg k-h