Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1741592rdb; Sat, 3 Feb 2024 22:26:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IHNGWEyT+80WjcsuiZ93jeg0D2VT+TQ6y/RNJ66yYSybmBc1rs7uD+b1QSmfA8CIcDS273w X-Received: by 2002:a17:906:d14f:b0:a37:8bcf:11bf with SMTP id br15-20020a170906d14f00b00a378bcf11bfmr509188ejb.61.1707027997149; Sat, 03 Feb 2024 22:26:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707027997; cv=pass; d=google.com; s=arc-20160816; b=KWwsQSySvvsRx7YRdw6iSHTdVHv3vmLzppgju++3h2xyCvN7WEHp3kn91tTSjPdui9 AZLUWkAZIxuwX+9H8PiduPy3wom9SUGckZki2zYQbWtVBiStRIQn7g/UWAFnhuZVEVmr yb+zUtw+UTNNzAXJgYax5wrsx/1UGuULLdy0g5qu3yLCEmQjWm8qeOEoL+6/RcgDgk2v 4PLAcU2SWdywfFRbjV3DyQPbezVhvWRHrMG4aOuHAh632UEVlRIharIMbdf4ycO0XMGv G4ISCgXMUgVr8v9jvsXGnc6Ngy9t4CmaO0Y0Pq55FSyKC5fgoAnPDbffOKx44S4ZPDmj 3QMg== 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=rIis4QBIjKqFXgY7Qirspzqe0ids6vpuXiHpFxN7ed4=; b=ksNMIE8buHSY1v0Ev1/s24Iv44kfuiQyW8IY9tfQ0Lc1KJAAHw389O+6zK267tztMk qpPHrBHyo6X9df88rxsC40IdiefqYbI04Ih6qbYCggqBxgAboK+RVXOQndMNiM3bOX8S gybNZatERZD4rjZgRXABuJC/jdQysPiP91y4NPFyBOFGDoDiNRum3OpnZX1qKjNFULsx FGc+WjTudjVm5kLXk0D1iKlbPdsd4UudYFcuueWYVWziXmlFIw0aU9JF9MYrOJw+cNax Uxlnq+y6UAPXJtAcc4ZqB8LLTD7ajWlF3T3YOfwJ4bRx25dsSgnJ6t7szoHwJyHn1e0J I94g==; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51457-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=shingroup.cn X-Forwarded-Encrypted: i=1; AJvYcCV3FBBgR7z8g+4i++lJoocatfKZrLH0cN60AtAvTrtyvHBuitG211bjzTQe39+BJxtwKLUILgqIfZQ9hYRBsifVhbI1/Iv/OxXhtCX6zQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id x12-20020a170906710c00b00a3756e19930si1249892ejj.617.2024.02.03.22.26.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 22:26:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51457-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51457-linux.lists.archive=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 am.mirrors.kernel.org (Postfix) with ESMTPS id F174B1F21FE5 for ; Sun, 4 Feb 2024 06:26:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 261867493; Sun, 4 Feb 2024 06:26:20 +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 ; 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 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 , kernel test robot 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:shingroup.cn:qybglogicsvrgz:qybglogicsvrgz5a-1 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) \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ :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 Closes: https://lore.kernel.org/oe-kbuild-all/202402010928.g3j2aSBL-lkp@intel.com/ Signed-off-by: Dawei Li --- 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); \ } \ -- 2.27.0