From patchwork Mon Jan 21 23:52:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Chancellor X-Patchwork-Id: 10775137 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 53790139A for ; Tue, 22 Jan 2019 09:19:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 43DBD2A578 for ; Tue, 22 Jan 2019 09:19:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 382CC2A57F; Tue, 22 Jan 2019 09:19:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F17932A578 for ; Tue, 22 Jan 2019 09:19:38 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2A1946EC26; Tue, 22 Jan 2019 09:18:58 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) by gabe.freedesktop.org (Postfix) with ESMTPS id 248B46E256; Mon, 21 Jan 2019 23:53:06 +0000 (UTC) Received: by mail-ed1-x544.google.com with SMTP id b3so17976431ede.1; Mon, 21 Jan 2019 15:53:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NB3Pnr4FGtpd9UY969+LPhME7MeKZH6Kn3tsP1O25mw=; b=e8fU6sq3e8T4lJYfC3zUkN3onBGc8TU1NjzRH2VazUrkzx/pdL0BIywBlgRG0M6oO3 2Y7sGi/L9E92djO8ZaximuRFTejIIt7NKvW30DWfyXTcqEG54sc2DONn7NX9A+XOM4NC sNjp5kGtXAGrXlPTCKxem9LPbonfQAnwbRHSwqDKUwE9la3jaAQGjGil0b21WsILFBve MEAsOmycdxd1YCmLH+RisiG4KNkf+pL3KTJG5reGBjCQAgRvPiIW3sblQbaKaXzq0Av5 oj6mrY17uSoiHz44C6oe9mH2O1bNmVvvqm+kPVEKi5k8nSMO6FSYO1nQohH194Q5pq5n d+lA== X-Gm-Message-State: AJcUukeiTzTNsX25lYSvUbxJwOL8lZGN4K4tbkOmf509ARU2zyyGa9op mARcfaVLAmnXwFipiCmrQw1K9FWQbc8= X-Google-Smtp-Source: ALg8bN6vXAGhxCRrpM1J45xfnfXXXqk+ly6s799uIcE9+ZDtv89sC4GarED32CCeWci4nEUTdM5Xpg== X-Received: by 2002:a50:a974:: with SMTP id m49mr29353186edc.220.1548114784490; Mon, 21 Jan 2019 15:53:04 -0800 (PST) Received: from localhost.localdomain ([2a01:4f9:2a:1fae::2]) by smtp.gmail.com with ESMTPSA id g5-v6sm5018346ejm.15.2019.01.21.15.53.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Jan 2019 15:53:03 -0800 (PST) From: Nathan Chancellor To: Oded Gabbay , Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= , "David (ChunMing) Zhou" Subject: [PATCH] drm/amdkfd: Fix if preprocessor statement above kfd_fill_iolink_info_for_cpu Date: Mon, 21 Jan 2019 16:52:15 -0700 Message-Id: <20190121235214.28455-1-natechancellor@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190121223516.24340-1-natechancellor@gmail.com> References: <20190121223516.24340-1-natechancellor@gmail.com> MIME-Version: 1.0 X-Patchwork-Bot: notify X-Mailman-Approved-At: Tue, 22 Jan 2019 09:18:50 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Nutter , Felix Kuehling , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Nathan Chancellor Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Clang warns: drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_crat.c:866:5: warning: 'CONFIG_X86_64' is not defined, evaluates to 0 [-Wundef] #if CONFIG_X86_64 ^ 1 warning generated. Fixes: d1c234e2cd10 ("drm/amdkfd: Allow building KFD on ARM64 (v2)") Signed-off-by: Nathan Chancellor --- Resending as I forgot to add the lists... drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c index 5d85ff341385..2e7c44955f43 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c @@ -863,7 +863,7 @@ static int kfd_fill_mem_info_for_cpu(int numa_node_id, int *avail_size, return 0; } -#if CONFIG_X86_64 +#ifdef CONFIG_X86_64 static int kfd_fill_iolink_info_for_cpu(int numa_node_id, int *avail_size, uint32_t *num_entries, struct crat_subtype_iolink *sub_type_hdr)