Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1222595rwd; Thu, 25 May 2023 09:31:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6uRbueIwYEUhz3iwQ3vZKREh/1JvL1RRUHlGzh0P/cMyEQFMT4NIv0BZ5fU44rZzrcVXKR X-Received: by 2002:a17:902:ce8d:b0:1aa:d545:462e with SMTP id f13-20020a170902ce8d00b001aad545462emr2795723plg.13.1685032295196; Thu, 25 May 2023 09:31:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685032295; cv=none; d=google.com; s=arc-20160816; b=RH3TH3XDnvMLi1w0c8j+mhNe8sOnRE6A6ENPB/8OAgPEBQD5o6GQ90XDtzSdDwr1Gq b3S03IfrUbQ5PWTg27o0rhfO9+T/IjObdvXxXxEg/c5YFa+RqCF0ZDhSc8BCzJwldF7S UpqhOtoMtRoHFaIchMF9CIBNUHzeuQU8vpOGQqnx9nQBBVTkciq/l9RRqaDmCabG5WBs 0zNRI5jedxWAsYrb9JObzEF4H5sI+1jesrpbS6FkFSKezE6nkoGca+aHzqucX77acUEt 4XIwbSjDXWZ16Qrt291Yd5UM6/3eBomRAG+vGTesqrFF8SG4N2CV6K5RX9r2puMdmBCp jmRw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n19-20020a170902969300b001a6565a16c4si1743913plp.493.2023.05.25.09.31.22; Thu, 25 May 2023 09:31:35 -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 S241828AbjEYPwq (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=20K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Guchun Chen , =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= , Lijo Lazar , YiPeng Chai , Srinivasan Shanmugam , =?UTF-8?q?Michel=20D=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 Content-Transfer-Encoding: 8bit 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 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, -- 2.40.1