Message ID | 20240204062324.3548268-1-dawei.li@shingroup.cn |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-51457-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp220075dyb; Sat, 3 Feb 2024 22:26:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IEcc/VLrSnZOLM95drwzF3U8xswM/dFXZ4g1gpUKBegt4xdWHZCyVCtPNqNQVj9SILIcXLx X-Received: by 2002:a37:c24c:0:b0:785:3f73:5f30 with SMTP id j12-20020a37c24c000000b007853f735f30mr6669988qkm.33.1707027994141; Sat, 03 Feb 2024 22:26:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707027994; cv=pass; d=google.com; s=arc-20160816; b=suW+Z6ep9lxXEkLXswTkaar7aUgPPbdwnOQoSfHoD5zKXrjI4tutRsvdiyb0lCzx2h AfmeGa0gtS6XQHlH5rMMxpXSZTKOkS58gE/Raux7sSjGRnqWW5/3T+twUNYDkQI5qfWt Q+jW83iEhYRAOI1Ofy47l1WoA2/FjINEMUzhe+snQQFiLjSIJqSGOjlMIQpNeVTPcIwf gZvgKoAzEVAz14eFTUBh4CurtHAn8/lvZSlthEjaAgBEA3lCs4rjWkBO6yVd9x0zMbN1 9hEFu2J1xUohM2Owz5xgvsJfcEb8DGbuz0RV8y5L8xn/2W2WKvAzoXFie5ybz3B0+D9y zRsg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=CFcPlX8Z9+Gxbpuh4GYDreN0YcpAIXbAohWKMPwgkoA=; fh=VpcWbNSl6c9AoWWtBhpgvilPnvfSU5gHAYTt/zCgd9c=; b=RO5h85Ek2VwMX9q2HRr+1GyVpV1Kow6NU2eS8xk46zS/KTR+gr4VtSb0LANjSHUDtK jRoTJCn3au5/6s5SwGPN6YBYStGJNXl2EA1JM6gWWoRX+FkOZf1dSezdaPeMYGZFGMoO Kyr54wFB/ipDDKCH1HLVsD0xXLcxB6MTRSLoc3L996i354RPEFb9icp/Ksg3Q+TnIfyR /Jfk5Dn8hPSLYK5FJbMWRcvRR3GT8x/6g3+y/5Dfo6hk7NtvCi2uzgczHWOdyQS40arY 05dPXUey/McPd48Xcahc1VSegdfC2Uw8fMmJ+jDH7pLdRF65BtfbtoT/Ry283uXk0b5I rTsQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=shingroup.cn dmarc=pass fromdomain=shingroup.cn); spf=pass (google.com: domain of linux-kernel+bounces-51457-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51457-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=shingroup.cn X-Forwarded-Encrypted: i=1; AJvYcCUph/igcpoCjzIln/yPRBSBBiOYT0U5XQARR8C958i/OEl5h3yN0I5iHgNSO+Cg2UNYVNQeW8/V4WJ6TtpiAxiQtpTPGw== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id i16-20020ac85e50000000b0042bec9f9ef6si5799318qtx.570.2024.02.03.22.26.34 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 22:26:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51457-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=shingroup.cn dmarc=pass fromdomain=shingroup.cn); spf=pass (google.com: domain of linux-kernel+bounces-51457-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51457-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=shingroup.cn Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E6E601C21698 for <ouuuleilei@gmail.com>; Sun, 4 Feb 2024 06:26:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C7F479EF; Sun, 4 Feb 2024 06:26:21 +0000 (UTC) Received: from smtpbg154.qq.com (smtpbg154.qq.com [15.184.224.54]) (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 4C3E87491 for <linux-kernel@vger.kernel.org>; Sun, 4 Feb 2024 06:26:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=15.184.224.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707027979; cv=none; b=MPY+pv29RGzuvNka0ngkQx/BxjUc4b53vLP/GFIWAipgl9pxOfkI9Np4J1GgKdFb4QKXCJJixN+RCugv9DyeQzN6t9uaeM5Ok+dHj7vlQW9OrIeYzDWH3teCRizy0re66jO/9V/6J9dNQ3/x9LpgZ/ho8YqhE+KycEL6XVsg9bM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707027979; c=relaxed/simple; bh=FvXiW/Km2ZCnkZUgKfDz+WjFqNfSZw/AmUKlVAVwPkI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=YlViFzSoi68EFcJ2gwyA8J3DVQuFc5uduO/oA5+r4s7lj40x+aAZDQ2OyIE1FpmkAavAa4duoYSO1qeLZb1+ZVj/2ykuAjAVOdgFg2XKxg+DKLesBAPi61EZuCWD2h2nopRL5lfIDlixIY6AH+HgkwlHXqB7m8vkc5m+442oFNY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=shingroup.cn; spf=pass smtp.mailfrom=shingroup.cn; arc=none smtp.client-ip=15.184.224.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=shingroup.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=shingroup.cn X-QQ-mid: bizesmtp78t1707027847tyom9dyz X-QQ-Originating-IP: Ka/QNVr2vrA2kmjPDU3Wg7k4Bllgbh8TG5NwRdiB4MI= Received: from localhost ( [183.209.108.228]) by bizesmtp.qq.com (ESMTP) with id ; Sun, 04 Feb 2024 14:24:06 +0800 (CST) X-QQ-SSF: 01400000000000504000000A0001000 X-QQ-FEAT: wF64VgvUy+UdrqGKLNHU0vjclAVKvv9/AylJB3CPALc9Oo2FoK+6YtD66T0Ei UxJKDP9R8WMiZEnTg+mLfcJT/sFJl5Sy7BNzBN4/1NcukkXs5elfyJHTzBYFyi/bfIYKKs6 m0CFCkkKtRGFTyxQAL2TO5z7MWqiwknzAbXQPxS73t/R5WO1xTja602A1v7ayVBup5OdCR0 U7iCYB7/YOi/b062aiwsMAEWfELezdKtzo6hd07MKsaTROqZk+SAUqg0SiaXLbYaxEjA7R0 EgDEO9AvCiUdsii4MeJtc01uHrR9heaNS7b2Dp0HfmFQYaGZujRu9ub8fENGEF3sruA3JKj UMXPcqm/niWKbkIAEx5R/sC6XVhyD3uIwudjRIjAVtG8jqUr0PIcdSrH+nVY1n7i5QSkvLB X-QQ-GoodBg: 2 X-BIZMAIL-ID: 12034591885683203316 From: Dawei Li <dawei.li@shingroup.cn> To: lucas.demarchi@intel.com, ogabbay@kernel.org, thomas.hellstrom@linux.intel.com Cc: maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Dawei Li <dawei.li@shingroup.cn>, kernel test robot <lkp@intel.com> Subject: [PATCH] drm/xe: Declare __xe_lrc_*_ggtt_addr with __maybe__unused Date: Sun, 4 Feb 2024 14:23:24 +0800 Message-Id: <20240204062324.3548268-1-dawei.li@shingroup.cn> X-Mailer: git-send-email 2.27.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:shingroup.cn:qybglogicsvrgz:qybglogicsvrgz5a-1 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789948586152888512 X-GMAIL-MSGID: 1789948586152888512 |
Series |
drm/xe: Declare __xe_lrc_*_ggtt_addr with __maybe__unused
|
|
Commit Message
Dawei Li
Feb. 4, 2024, 6:23 a.m. UTC
Kernel test robot reports building error:
drivers/gpu/drm/xe/xe_lrc.c:544:1: error: unused function
'__xe_lrc_regs_ggtt_addr' [-Werror,-Wunused-function]
544 | DECL_MAP_ADDR_HELPERS(regs)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/xe/xe_lrc.c:536:19: note: expanded from macro
'DECL_MAP_ADDR_HELPERS'
536 | static inline u32 __xe_lrc_##elem##_ggtt_addr(struct xe_lrc *lrc) \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
<scratch space>:54:1: note: expanded from here
54 | __xe_lrc_regs_ggtt_addr
| ^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Declare __xe_lrc_*_ggtt_addr with __maybe_unused to address it.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202402010928.g3j2aSBL-lkp@intel.com/
Signed-off-by: Dawei Li <dawei.li@shingroup.cn>
---
drivers/gpu/drm/xe/xe_lrc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/xe/xe_lrc.c b/drivers/gpu/drm/xe/xe_lrc.c index 0ec5ad2539f1..f70e60a2f8a3 100644 --- a/drivers/gpu/drm/xe/xe_lrc.c +++ b/drivers/gpu/drm/xe/xe_lrc.c @@ -614,7 +614,7 @@ static inline struct iosys_map __xe_lrc_##elem##_map(struct xe_lrc *lrc) \ iosys_map_incr(&map, __xe_lrc_##elem##_offset(lrc)); \ return map; \ } \ -static inline u32 __xe_lrc_##elem##_ggtt_addr(struct xe_lrc *lrc) \ +static inline u32 __maybe_unused __xe_lrc_##elem##_ggtt_addr(struct xe_lrc *lrc) \ { \ return xe_bo_ggtt_addr(lrc->bo) + __xe_lrc_##elem##_offset(lrc); \ } \