Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3574160rwl; Mon, 27 Mar 2023 16:35:41 -0700 (PDT) X-Google-Smtp-Source: AKy350a+VRKXU9VNieRW+2rj0eLYmVm4+FjgdV5z82V8xo3L+luGsrwbEmHBohlXsD4JKThcVm9F X-Received: by 2002:a17:906:2f96:b0:932:8cd:1021 with SMTP id w22-20020a1709062f9600b0093208cd1021mr13309597eji.33.1679960141257; Mon, 27 Mar 2023 16:35:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679960141; cv=none; d=google.com; s=arc-20160816; b=AxuES7BKtb02HP7/KVITU+L8d14kWaVRronAcF6KDktlspNEh5qDevXS5xTnccKgeN 1gLw3CymS7Lb/m0x5pnaTrbPMQgvB3PFk8kolpFGnzlYv6hgKYgTUDP9KD8Kb8S8znz0 fOOhErSYauhygfKJAPKYcGP0+CyW5LK3VVWS4Ss3lyWeGaSfnRny5zwav35RCtsWrUW+ q86ZMbeiWkmjuCxAGJ+4pDj6uWdChq+t9phnVpRQoW6XNMeaOJlqzHRhTfE1OZvxET2r M+ostKeiV5d6lkuIXAfE68Jtpt/1m3dvaYFdGXMU7m/Hcwe6O4y/7szuyvdzD0RzIyKI qO7A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ATSF4wL+BzdBMa6MQ9WEbv1t9xTPovSyTP8ALVjMP/g=; b=OFNdT5nhda5IFmdKRmf0mP91zf1NZ6knCedMZdawJHrZTgWtSfZB2MND5fTpsLSAT3 7zsZZi9mtJjR0bEX9AYmhdAa7pP7jC8L0Qw5mE1IscFKpau4X/Ktnb/X8HRHX7pSrQzH WTq6JBg5sbQiCAx0yyNl4IAm+lnJKjzeg13gM3j/C9n3PqaXPsFMMUtZLE1UgqbTXv3Z iEdrZwZ6ZrnoybU8tCD9boHCJIL2NtwHSwD67PwRSZAlZw2Syoe45VzOLtScq/UjIcjm ukqrhtpCBSyUmlh3I8tEvd2E4OAyIopjrzXH36PVrldlmnj7yK2VeFZwD+lZOw1xyXBJ VWkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@usp.br header.s=usp-google header.b=jjeTndIj; 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=QUARANTINE sp=NONE dis=NONE) header.from=usp.br Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j12-20020a170906474c00b0092ff0294c61si29508066ejs.710.2023.03.27.16.35.16; Mon, 27 Mar 2023 16:35:41 -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=@usp.br header.s=usp-google header.b=jjeTndIj; 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=QUARANTINE sp=NONE dis=NONE) header.from=usp.br Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230347AbjC0XeY (ORCPT + 99 others); Mon, 27 Mar 2023 19:34:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230017AbjC0XeW (ORCPT ); Mon, 27 Mar 2023 19:34:22 -0400 Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 364322129 for ; Mon, 27 Mar 2023 16:34:20 -0700 (PDT) Received: by mail-oi1-x22b.google.com with SMTP id r84so6413123oih.11 for ; Mon, 27 Mar 2023 16:34:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usp.br; s=usp-google; t=1679960059; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ATSF4wL+BzdBMa6MQ9WEbv1t9xTPovSyTP8ALVjMP/g=; b=jjeTndIjow57RXIs03XG4zTCjcQS7/ijT5BWQdjbh4qY+GsQ5sYgm1M7PfuUXOSubb RrcSC2LSZIQfp0531wAMUZRsj1uVKqOISsBGGNSY5U6pNoa1kNuv43aD/NYjC6A0KQAw NT3ZDNcHFzDJJVeOAgZLF9F0vKbnjWCpGSlH6vBP4QDYysI59nc8P7J+kUnT8x4lBZJp FYbdsN9mU0vDTXG1HHo3ScuOB+bDR2fxQyorBOuoG76lU68szVA2oeX+KQjILaM4guk7 /vn8xua0wWVLPjP/ShDuq9R6Lij2bknq4mBHwqNGQM7y9Z7y1F/u1tIdneevves42NeF BK+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679960059; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ATSF4wL+BzdBMa6MQ9WEbv1t9xTPovSyTP8ALVjMP/g=; b=Om+YlFIoMN5Vk5wG+HpF8jphXCTJrt/JVEPv6QuLTshYXVliAjajMxgrhjC4G06esL HH5y2vWcv8t/YGij8Zzqvad7uHI7dpXQRNOAkgZYladE4WYUlA6zzCcs8+HAthwyWsUH P1yBJbbai66EWUmS2A/yFQcgKFA5OKbuWyx/e4MjpNq4tmgtCfiC0M+p0EXCB5CV5GJc DpMQ1EMhTnRFENXoQ6WCxBVAR++zGoCIVpGGl1KD6su6sANVoydcGgUs5G2K7DMpC14j WLql2mOHkhz9T0y2Ap1t8jeuHytcMhZLAZBdHoP0XhaGY4E/UIB/TjhX2LhgdogpCz7C OX6g== X-Gm-Message-State: AO0yUKULKCq1uXbxMHx/TR8HEacpPmWRZxoUTnExJ6rQcmlPcSQubh2w Re5K6y+N597Vnj0WF74wqhZwug== X-Received: by 2002:a05:6808:b22:b0:383:f572:2646 with SMTP id t2-20020a0568080b2200b00383f5722646mr4940712oij.5.1679960059520; Mon, 27 Mar 2023 16:34:19 -0700 (PDT) Received: from ARCHaio.localdomain ([2804:1b3:a2c0:c911:919f:bd20:4f2a:8383]) by smtp.gmail.com with ESMTPSA id b186-20020aca34c3000000b00389295e8424sm1643409oia.45.2023.03.27.16.34.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 16:34:19 -0700 (PDT) From: Caio Novais To: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Harry Wentland , Leo Li , Rodrigo Siqueira , Jack Xiao , Hawking Zhang , Le Ma , Mario Limonciello , Yifan Zhang , Mukul Joshi , Jun Lei , Wenjing Liu , Alan Liu , Caio Novais , Joshua Ashton , Guo Zhengkui , Nicholas Kazlauskas , Zhan Liu , Wayne Lin , Charlene Liu , Martin Leung , Tom Chung , Alvin Lee , George Shen , Qingqing Zhuo , Roman Li , Wesley Chalmers , Aurabindo Pillai , Jingwen Zhu , Melissa Wen , Felipe Clark , Sung Joon Kim , Dillon Varone , Ethan Wellenreiter , Taimur Hassan , =?UTF-8?q?Ma=C3=ADra=20Canal?= , Brian Chang , Gabe Teeger , =?UTF-8?q?Andr=C3=A9=20Almeida?= , Chaitanya Dhere , Jiapeng Chong , Ryan Lin , Hamza Mahfooz Subject: [PATCH 01/12] drm/amd: Remove unused variable 'r' Date: Mon, 27 Mar 2023 20:33:42 -0300 Message-Id: <20230327233353.64081-2-caionovais@usp.br> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230327233353.64081-1-caionovais@usp.br> References: <20230327233353.64081-1-caionovais@usp.br> MIME-Version: 1.0 Content-Type: text/plain; charset=y Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Compiling AMD GPU drivers displays a warning: drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c: In function ‘amdgpu_mes_ctx_alloc_meta_data’: drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c:1099:13: warning: variable ‘r’ set but not used [-Wunused-but-set-variable] Get rid of it by removing the variable. Signed-off-by: Caio Novais --- drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c index 82e27bd4f038..e0130536f778 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c @@ -1096,14 +1096,6 @@ uint32_t amdgpu_mes_get_aggregated_doorbell_index(struct amdgpu_device *adev, int amdgpu_mes_ctx_alloc_meta_data(struct amdgpu_device *adev, struct amdgpu_mes_ctx_data *ctx_data) { - int r; - - r = amdgpu_bo_create_kernel(adev, - sizeof(struct amdgpu_mes_ctx_meta_data), - PAGE_SIZE, AMDGPU_GEM_DOMAIN_GTT, - &ctx_data->meta_data_obj, - &ctx_data->meta_data_mc_addr, - &ctx_data->meta_data_ptr); if (!ctx_data->meta_data_obj) return -ENOMEM; -- 2.40.0