Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4609046pxf; Tue, 23 Mar 2021 15:20:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnYIkwVEz/KZN49woqmoa11vxYHQ1tSO0fH1mTWdUDffl7tZM4W6p/xxtJiQ0gtnz/rfDr X-Received: by 2002:a17:906:16ca:: with SMTP id t10mr394224ejd.85.1616538023929; Tue, 23 Mar 2021 15:20:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616538023; cv=none; d=google.com; s=arc-20160816; b=cvOLqMx9n8cp3lvy7dlknU7+P5N23WPIgC5Fa7ai0ZoENLvMtC3YLYkpNFxCwsZwx8 V7SPghViq7RROUDpCyuvoN0mZPshwDCQCuCrvPRKgivgJPiEQmZZFAVmP1DmZi4+7qaM 8mrVFFpvptNSpNzfOKa3VN0KY6789/98dF/B4r2wh9ri4jKfpgwWvPYEqtvdkHl8DCVE IJqDMg0qFVRyTn1xoB4HQVFvqzXEDSlD72MXeQYOz1gwtil4rikKFDqQj5IyL3GdBO5Y e4oicYl0fKYUgqPaRDVmBF9TPAZMDojxG+cV5ZTzo+pH4z2e/TA3vuSdZe6If2YKVku4 x2ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=vfMZah0K8UP5R6bi3ZoMbEq+3WDbUSDtHxKNt9kk6c4=; b=qnvIVLbkKH2Frg/CGtJCgVj3UV35Ft9oOSeQDkB+mSYln3WKfystnlECyGc80APsWc FGMqph7oJ5g+it/pZWg6+8gxGtVVgkr0450thy4ifBsjw6gme3qy3Q4e2ohKclVlFXSK A+cqoKtEKr0b/MeTGC3gurc/yCtfs61RSJ7NnqJPRUxXwq4y1rWOAHrqzaf8ftW6LToz OutC5UdWcpCt0eSugtQq7wGwaYfuj1JMHrv/0YiK+pPee1+rA+4kux82c5IR6EeO1v1N xjNEssAuOa0vdNuT6Z8avVqkhtsJAab+y/pIFB+tQPi1wsVnwU1um28qx/sbr2mmv5Zv uPSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="kBSDOo/q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw18si240136edb.142.2021.03.23.15.19.59; Tue, 23 Mar 2021 15:20:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="kBSDOo/q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233910AbhCWWQK (ORCPT + 99 others); Tue, 23 Mar 2021 18:16:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233894AbhCWWPp (ORCPT ); Tue, 23 Mar 2021 18:15:45 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEA11C061763 for ; Tue, 23 Mar 2021 15:15:41 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id 184so27685610ljf.9 for ; Tue, 23 Mar 2021 15:15:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vfMZah0K8UP5R6bi3ZoMbEq+3WDbUSDtHxKNt9kk6c4=; b=kBSDOo/qv85giNSwvUUj9lnf2sjB8cEmkTdzqgaEhDZWbmpBgjJNcOKkEsHjQ32tMO MshlKI5rAqXl2nJsmQVfA/v0BpoVBzfKKHqIpk0h3OFpw+vv9NbgCfjfSruLQ+06fccv a3K0k/YU9pCBy1SkdYAZrH1Rj6XVpQ5KLFEvXV/2h0W6SFP9pqJ+EVsWNye4jSyVsHM4 rVyrISTevnZLr5ZEAZNZPetj9RYMKa/k3YQk3VZ+V42oXSbszjGCpXV3Y0nq2Meaw02I /y+0VyWAcnVzTNVGcCg1RyR5Yn6ixy2lCrLEMEcer80PnGFfEyXGQNhdvqZ0hRvuhMqy EEMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vfMZah0K8UP5R6bi3ZoMbEq+3WDbUSDtHxKNt9kk6c4=; b=fVOkYZf7YAMC3x4DIrlcj16ui4kiBcdj5h7BJJjMf/VDtBGiwpvSjR3TEQ/ceYmrUm FGkiJPkA5qbUcX0v0oIlzt7MvQgmzohaAMr4saPuWWt0EDvKwiGSIpn65x5mQgZTNsbA xEf+VRfzUymgl1rQZBAm3H3gBmQZQcv6CKMq2HC4PcsTT82KVd/Z8Rkd21z2/C/Twdpj /mKcj+jLdrVz805zjTEuNanVrpJZFkfs7dLWaHMNXqiRZevehFN3SdDwMBiJ8qILYB1/ XTaNYY10pluaDFPOHXOGELRr/oan6BhcjzpOF2IQ8SWMq0UP/Yv2JVqjn8R7ufht+eOS v2Iw== X-Gm-Message-State: AOAM533KoBkGg9WhdjlcoiovTma0jvQ+JVG8Nta/UI6nshbp+1CcmGI8 XMfkEjg1+8b6SzQLX7cjFMNoRgC7MVs7COqn8BzWQA== X-Received: by 2002:a2e:868e:: with SMTP id l14mr37001lji.479.1616537740161; Tue, 23 Mar 2021 15:15:40 -0700 (PDT) MIME-Version: 1.0 References: <202103201405.UV0ZEGEW-lkp@intel.com> In-Reply-To: <202103201405.UV0ZEGEW-lkp@intel.com> From: Nick Desaulniers Date: Tue, 23 Mar 2021 15:15:29 -0700 Message-ID: Subject: Re: drivers/gpu/drm/i915/gvt/gtt.c:267:19: error: unused function 'get_pt_type' To: Changbin Du , Zhenyu Wang , Zhi Wang Cc: kbuild-all@lists.01.org, clang-built-linux , LKML , Nathan Chancellor , kernel test robot , Chris Wilson Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 19, 2021 at 11:45 PM kernel test robot wrote: > > Hi Nick, > > FYI, the error/warning still remains. > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: 1c273e10bc0cc7efb933e0ca10e260cdfc9f0b8c > commit: 9f4069b055d1508c833115df7493b6e0001e5c9b drm/i915: re-disable -Wframe-address This in unrelated to my change. + Changbin, Zhenyu (authors of 3aff3512802) and Zhi (author of 054f4eba2a298) in case there's any interest in fixing this up. Otherwise I don't think these tiny helpful functions were meant to be used somewhere but are not, so there's not much value in cleaning them up. > date: 11 months ago > config: x86_64-randconfig-a016-20210319 (attached as .config) > compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project fcc1ce00931751ac02498986feb37744e9ace8de) > reproduce (this is a W=1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # install x86_64 cross compiling tool for clang build > # apt-get install binutils-x86-64-linux-gnu > # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9f4069b055d1508c833115df7493b6e0001e5c9b > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > git fetch --no-tags linus master > git checkout 9f4069b055d1508c833115df7493b6e0001e5c9b > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > > >> drivers/gpu/drm/i915/gvt/gtt.c:267:19: error: unused function 'get_pt_type' [-Werror,-Wunused-function] > static inline int get_pt_type(int type) > ^ > >> drivers/gpu/drm/i915/gvt/gtt.c:590:20: error: unused function 'ppgtt_set_guest_root_entry' [-Werror,-Wunused-function] > static inline void ppgtt_set_guest_root_entry(struct intel_vgpu_mm *mm, > ^ > 2 errors generated. > > > vim +/get_pt_type +267 drivers/gpu/drm/i915/gvt/gtt.c > > 2707e44466881d6 Zhi Wang 2016-03-28 266 > 054f4eba2a2985b Zhi Wang 2017-10-10 @267 static inline int get_pt_type(int type) > 054f4eba2a2985b Zhi Wang 2017-10-10 268 { > 054f4eba2a2985b Zhi Wang 2017-10-10 269 return gtt_type_table[type].pt_type; > 054f4eba2a2985b Zhi Wang 2017-10-10 270 } > 054f4eba2a2985b Zhi Wang 2017-10-10 271 > > :::::: The code at line 267 was first introduced by commit > :::::: 054f4eba2a2985b1db43353b7b5ce90e96cf9bb9 drm/i915/gvt: Introduce page table type of current level in GTT type enumerations > > :::::: TO: Zhi Wang > :::::: CC: Zhenyu Wang > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org -- Thanks, ~Nick Desaulniers