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 B9A2FCA0FFD for ; Sat, 2 Sep 2023 08:14:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351824AbjIBIO5 (ORCPT ); Sat, 2 Sep 2023 04:14:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbjIBIOz (ORCPT ); Sat, 2 Sep 2023 04:14:55 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0078010F6 for ; Sat, 2 Sep 2023 01:14:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1693642493; x=1725178493; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=0j1VkS4CMOs9wlRLInadKgPZrsA0NV4dlxpjSSZbcsA=; b=dgbPLQQJLZ5zVNfdqi9FJrZTWEpIIM+c2ccDZc2wNTO73tKbnyGhY+xI waONd0goIFqvel6GJjTxGLMFEDWk/bHV7z6cnjX4pNAo8E1Ia+FdbR/dj voUee75Q7Ui0gFtyJnaq0/L20haTt5gwTpQ/T9EmBEXDWZZcBDKJ4ME3B yGAOAW1bqlQld15BF1P1TyOip3f8z0ZDbFInpzpfLFYFcy4yxRm12N+pV rJpK6G+sK4eL+JH5HWzsMrw++b+JYEsbjc12KBu83MoOEJqxAq1y/1W7O MacMvc75zDY2Q1m7vvwZP8vUayLKZ1PugQL+kHY1ZEjQyhfxRJZGJ7Izm Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10819"; a="366587241" X-IronPort-AV: E=Sophos;i="6.02,222,1688454000"; d="scan'208";a="366587241" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2023 01:14:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10819"; a="810314863" X-IronPort-AV: E=Sophos;i="6.02,222,1688454000"; d="scan'208";a="810314863" Received: from adurango-mobl1.ger.corp.intel.com (HELO intel.com) ([10.249.43.44]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2023 01:14:48 -0700 Date: Sat, 2 Sep 2023 10:14:45 +0200 From: Andi Shyti To: Arthur Grillo Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, tales.aparecida@gmail.com, andrealmeid@riseup.net, mairacanal@riseup.net, Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Andi Shyti , kernel test robot Subject: Re: [PATCH] drm/debugfs: Add inline to drm_debugfs_dev_init() to suppres -Wunused-function Message-ID: References: <20230901-debugfs-fix-unused-function-warning-v1-1-161dd0902975@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230901-debugfs-fix-unused-function-warning-v1-1-161dd0902975@riseup.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arthur, On Fri, Sep 01, 2023 at 03:05:50PM -0300, Arthur Grillo wrote: > When CONFIG_DEBUG_FS is not set -Wunused-function warnings appear, > make the static function inline to suppress that. > > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202309012114.T8Vlfaf8-lkp@intel.com/ > Closes: https://lore.kernel.org/oe-kbuild-all/202309012131.FeakBzEj-lkp@intel.com/ > Signed-off-by: Arthur Grillo Reviewed-by: Andi Shyti Andi