From patchwork Thu May 25 15:52:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Clark X-Patchwork-Id: 99090 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp478384vqr; Thu, 25 May 2023 09:02:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ79uxZEUAwwLTrZjbhcJqcDotvuuC4eNcXFIMu9IoljXdaQXVf/KJwt7NDaTrY/eS4JkcXd X-Received: by 2002:a17:90a:f308:b0:255:2dde:17cc with SMTP id ca8-20020a17090af30800b002552dde17ccmr2117132pjb.47.1685030520536; Thu, 25 May 2023 09:02:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685030520; cv=none; d=google.com; s=arc-20160816; b=uVRIEkMi04N2RJF6GDoZf5p9HQ8TVundASG6CGuQjol7S4Rb+gqOXo4sttk8yOgw77 tE/vFWbbvjI0HwtZEfkz66xHNFclhH2M0z/CzVxWBwSiMo6638GC4x8g0j+HPYk3/Qcy 3yf24+FZyXrhT7VIvh+17e8jYVlPeHABdLScE/S9rDN/85EQ/2smff0ic/rHUBHN7mku mIVXQrou1obIFTARJ7smtipceciU8GSgS/U75dHUAKSAdkVawUIe+nYrcz+74ipUgCYh 94CdadgHZk1VIf4HlsJWJTNwfUUcqBvzRzP7cpx4iUyjmy7JymWpZKhN0kttQOzv0K7a CW5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=B028AMgHgIkluZU0zuRGNx2AL7YCJmhMQ1JhCo1iuVI=; b=ps/pxV1+q+YaMNOI4Z9RmKrZ8Wp0NpTZEw6WaA/5p7F9sQmxvcB1SPAMAT82LZW8mg IKl2Jih5mrJUa5+n9Tst+RzpEKUJaqp2fzAoB78a+XrPaB9WMfaqTOf87hHQ9l38f87/ 5nc/35QCypfkDBOY1eQvLLZbKdAAU5Xqr5ZYV2856Hs4q6p9E9uDWdAcCN5x7GazGrNA bjuadSltMLs8SzM7Pbrgz7/22UNx1gfppQv5rf6OT/bvI9zUssNS851GOsgWRhXiPPVJ UalmftKjOOzMz7M8oQDLdQTkHwwkXohphGWFB5YB1iaGlBn2hxp+JdJJ0On9rMK1VXId FLmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=aNjbFnxB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jx20-20020a17090b46d400b0024e1a6c7f82si979354pjb.80.2023.05.25.09.01.44; Thu, 25 May 2023 09:02:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=aNjbFnxB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241834AbjEYPwq (ORCPT + 99 others); Thu, 25 May 2023 11:52:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241871AbjEYPwm (ORCPT ); Thu, 25 May 2023 11:52:42 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 151FE1B4 for ; Thu, 25 May 2023 08:52:35 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-64d3fbb8c1cso2613063b3a.3 for ; Thu, 25 May 2023 08:52:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685029954; x=1687621954; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=B028AMgHgIkluZU0zuRGNx2AL7YCJmhMQ1JhCo1iuVI=; b=aNjbFnxBXnxByFTRM8dPMKH30Q/RAItyAVPrx2g23rtM7K5RWxj+jmeY6jXFFznBG8 pZqa5Xzxd1RRC2cPJg3QGgjGxOjLvyujqb9O9tcPfbR593fGXpYl3mOh5ZMS70oGFBGx /kODJQcTOcwHEpMnyoc86lxFHBYsH/DD5AKNjW9UO2OsMqqQ2MWgTe01bSRUdSQhsbPO HwPjvWfdCJ2EOfQB47cDxADCc6pqDUoGCx5AXuAzBnna+gSSbl1TzveMRSHPcwsOMc9C wHzrhMVQZe5ZakVsucQjfNI9Kib8KYriF/UaUAqKAv8sC9wrGskiyYSbQvyoaQHzfDNc wOTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685029954; x=1687621954; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=B028AMgHgIkluZU0zuRGNx2AL7YCJmhMQ1JhCo1iuVI=; b=WJHN4hzZTykcrgVZogZ/kKuz/VoqG7vkw28yW6N9NtUhiSNHw5F0UKY5YIUBSNGYtm gh1di4QAyTm+0uWwKF34W497NmYPVKpNEjGQqzVi4vkipjJG4G48q2Q06yL0g/WxYRUv 6+OnKn7jp09onn7bg1E1R9e0YmM6XO5Oo5ujiyyj0I3cKYyqDIQLvObbLwkpBnCUH6pA jjxdcledSRcl0wjVWC52t6fTsaiQqg5eOQVaxRHNSFFqfHCKZTPLIK3dS1Bs6bOzbd6z jla2mprW6OJ84MOhaEUlnu5RMZDpSWii/oreAY5Bcc8ihFF1eq1UN97YebS26CnUfbtw jGYw== X-Gm-Message-State: AC+VfDwWAyVOxPnTkB8Byqd5UhxyGCvVqTcHpLMTxRWK0BaSow46dy2w tQDIcCwancVYg7D6Xln6+v0= X-Received: by 2002:a05:6a00:10c4:b0:646:6cc3:4a52 with SMTP id d4-20020a056a0010c400b006466cc34a52mr8951192pfu.3.1685029954365; Thu, 25 May 2023 08:52:34 -0700 (PDT) Received: from localhost ([2a00:79e1:abd:4a00:61b:48ed:72ab:435b]) by smtp.gmail.com with ESMTPSA id a17-20020a62bd11000000b0063b6bd2216dsm1335974pff.187.2023.05.25.08.52.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 May 2023 08:52:33 -0700 (PDT) From: Rob Clark To: dri-devel@lists.freedesktop.org Cc: Rob Clark , kernel test robot , Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Guchun Chen , =?utf-8?b?TWFyZWsgT2zFocOhaw==?= , Lijo Lazar , YiPeng Chai , Srinivasan Shanmugam , =?utf-8?q?Michel_D?= =?utf-8?q?=C3=A4nzer?= , Jim Cromie , Mario Limonciello , Neil Armstrong , Dave Airlie , amd-gfx@lists.freedesktop.org (open list:RADEON and AMDGPU DRM DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 1/2] drm/amdgpu: Fix no-procfs build Date: Thu, 25 May 2023 08:52:24 -0700 Message-Id: <20230525155227.560094-1-robdclark@gmail.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766882563277802526?= X-GMAIL-MSGID: =?utf-8?q?1766882563277802526?= From: Rob Clark Fixes undefined symbol when PROC_FS is not enabled. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202305251510.U0R2as7k-lkp@intel.com/ Fixes: 376c25f8ca47 ("drm/amdgpu: Switch to fdinfo helper") Signed-off-by: Rob Clark --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index 1b46e7ac7cb0..c9a41c997c6c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c @@ -2795,21 +2795,23 @@ static const struct drm_driver amdgpu_kms_driver = { DRIVER_SYNCOBJ_TIMELINE, .open = amdgpu_driver_open_kms, .postclose = amdgpu_driver_postclose_kms, .lastclose = amdgpu_driver_lastclose_kms, .ioctls = amdgpu_ioctls_kms, .num_ioctls = ARRAY_SIZE(amdgpu_ioctls_kms), .dumb_create = amdgpu_mode_dumb_create, .dumb_map_offset = amdgpu_mode_dumb_mmap, .fops = &amdgpu_driver_kms_fops, .release = &amdgpu_driver_release_kms, +#ifdef CONFIG_PROC_FS .show_fdinfo = amdgpu_show_fdinfo, +#endif .prime_handle_to_fd = drm_gem_prime_handle_to_fd, .prime_fd_to_handle = drm_gem_prime_fd_to_handle, .gem_prime_import = amdgpu_gem_prime_import, .gem_prime_mmap = drm_gem_prime_mmap, .name = DRIVER_NAME, .desc = DRIVER_DESC, .date = DRIVER_DATE, .major = KMS_DRIVER_MAJOR,