From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A8F122FC2E; Wed, 15 Nov 2023 14:39:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="HcUXgpgf" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700059141; x=1731595141; h=date:from:to:cc:subject:message-id:mime-version; bh=92KHP4Qa5zW5ZTPJVsL2RbZeqf/JLK4szg3HnuNixw8=; b=HcUXgpgfkXW2tD/5FzT2wvX+n2APvcGwDvqDNlSi87wmI++bNKvZdV3B fafd9fOi/TU9UAiNYp4YTGlSO/p9vwULPLjt0JK1OM00qXsspmlrSXlsb dpwvY3L95EYMHt+7jXRncg0iC7yH9/8SHta8fOabnAppmICihxbYvgRJS kQgHNZgSlVt4QJqlnaDcaF4W8Ye/EUXVpkSXwQUFAdwBMyLejn97+48hs +i9H9NuoWub/YD+H86+UbQaNztnfDmexiIZwYkAkWkhwxYrsHXPH11qzO gidB8a2MhMU8cwR1bMcJiXc6PmBBtTQQAoVl/O+I8i+j5f1EIWahAk5kS w==; X-IronPort-AV: E=McAfee;i="6600,9927,10895"; a="3966595" X-IronPort-AV: E=Sophos;i="6.03,305,1694761200"; d="scan'208";a="3966595" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Nov 2023 06:38:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.03,305,1694761200"; d="scan'208";a="6185962" Received: from lkp-server02.sh.intel.com (HELO b8de5498638e) ([10.239.97.151]) by orviesa002.jf.intel.com with ESMTP; 15 Nov 2023 06:38:56 -0800 Received: from kbuild by b8de5498638e with local (Exim 4.96) (envelope-from ) id 1r3H2b-0000PM-1a; Wed, 15 Nov 2023 14:38:53 +0000 Date: Wed, 15 Nov 2023 22:38:18 +0800 From: kernel test robot To: Jouni =?iso-8859-1?Q?H=F6gander?= Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, intel-xe@lists.freedesktop.org, Rodrigo Vivi Subject: [drm-xe:drm-xe-next 3/15] drivers/gpu/drm/i915/display/intel_fbdev_fb.c:13:25: warning: no previous prototype for function 'intel_fbdev_fb_alloc' Message-ID: <202311152257.LwV3M3aC-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://gitlab.freedesktop.org/drm/xe/kernel.git drm-xe-next head: 14d1d786caacdb3438d07ab86fabf2e36c8151cc commit: 9eb20bf3156f1a9e1c73e857be09c042deb2b5a0 [3/15] drm/i915/display: split i915 specific code from intel_fbdev config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20231115/202311152257.LwV3M3aC-lkp@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231115/202311152257.LwV3M3aC-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202311152257.LwV3M3aC-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/gpu/drm/i915/display/intel_fbdev_fb.c:13:25: warning: no previous prototype for function 'intel_fbdev_fb_alloc' [-Wmissing-prototypes] struct drm_framebuffer *intel_fbdev_fb_alloc(struct drm_fb_helper *helper, ^ drivers/gpu/drm/i915/display/intel_fbdev_fb.c:13:1: note: declare 'static' if the function is not intended to be used outside of this translation unit struct drm_framebuffer *intel_fbdev_fb_alloc(struct drm_fb_helper *helper, ^ static >> drivers/gpu/drm/i915/display/intel_fbdev_fb.c:68:5: warning: no previous prototype for function 'intel_fbdev_fb_fill_info' [-Wmissing-prototypes] int intel_fbdev_fb_fill_info(struct drm_i915_private *i915, struct fb_info *info, ^ drivers/gpu/drm/i915/display/intel_fbdev_fb.c:68:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int intel_fbdev_fb_fill_info(struct drm_i915_private *i915, struct fb_info *info, ^ static 2 warnings generated. vim +/intel_fbdev_fb_alloc +13 drivers/gpu/drm/i915/display/intel_fbdev_fb.c 12 > 13 struct drm_framebuffer *intel_fbdev_fb_alloc(struct drm_fb_helper *helper, 14 struct drm_fb_helper_surface_size *sizes) 15 { 16 struct drm_framebuffer *fb; 17 struct drm_device *dev = helper->dev; 18 struct drm_i915_private *dev_priv = to_i915(dev); 19 struct drm_mode_fb_cmd2 mode_cmd = {}; 20 struct drm_i915_gem_object *obj; 21 int size; 22 23 /* we don't do packed 24bpp */ 24 if (sizes->surface_bpp == 24) 25 sizes->surface_bpp = 32; 26 27 mode_cmd.width = sizes->surface_width; 28 mode_cmd.height = sizes->surface_height; 29 30 mode_cmd.pitches[0] = ALIGN(mode_cmd.width * 31 DIV_ROUND_UP(sizes->surface_bpp, 8), 64); 32 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, 33 sizes->surface_depth); 34 35 size = mode_cmd.pitches[0] * mode_cmd.height; 36 size = PAGE_ALIGN(size); 37 38 obj = ERR_PTR(-ENODEV); 39 if (HAS_LMEM(dev_priv)) { 40 obj = i915_gem_object_create_lmem(dev_priv, size, 41 I915_BO_ALLOC_CONTIGUOUS | 42 I915_BO_ALLOC_USER); 43 } else { 44 /* 45 * If the FB is too big, just don't use it since fbdev is not very 46 * important and we should probably use that space with FBC or other 47 * features. 48 * 49 * Also skip stolen on MTL as Wa_22018444074 mitigation. 50 */ 51 if (!(IS_METEORLAKE(dev_priv)) && size * 2 < dev_priv->dsm.usable_size) 52 obj = i915_gem_object_create_stolen(dev_priv, size); 53 if (IS_ERR(obj)) 54 obj = i915_gem_object_create_shmem(dev_priv, size); 55 } 56 57 if (IS_ERR(obj)) { 58 drm_err(&dev_priv->drm, "failed to allocate framebuffer (%pe)\n", obj); 59 return ERR_PTR(-ENOMEM); 60 } 61 62 fb = intel_framebuffer_create(obj, &mode_cmd); 63 i915_gem_object_put(obj); 64 65 return fb; 66 } 67 > 68 int intel_fbdev_fb_fill_info(struct drm_i915_private *i915, struct fb_info *info, -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki