From patchwork Tue Nov 10 19:30:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322853 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500075ils; Tue, 10 Nov 2020 11:31:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRnoMTltQ/s4eoysPKndPKrWCeRCI3hVzhb/BjkkuK1slo6kMqQdKtl6MQaERbbL35/7eX X-Received: by 2002:a17:90a:4483:: with SMTP id t3mr687656pjg.116.1605036682807; Tue, 10 Nov 2020 11:31:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036682; cv=none; d=google.com; s=arc-20160816; b=Ve9z/JTWhMhVyQJTClCJjBpyHBkUi+9OkNnzG/FhkTLM8FYT2XmTAndtW7JUUQZGS5 IT2SBGlgRq+LSy4A4dunYwbgJgJ60RVqeaPvUpAQ3YC4CKOuMCqF0m2FubStT1nTWbLh q+AcKOTLOy9oIfz6c55bVUqaW+FeYXHUULU7V2DZ2kBMT7kEICd+Dtr6gI2VC7Ty0Vwp xO8aHw1rzS7uwzCesNlFx6imxNxEOFni0L970jmCXMZ3zpVlzBs0Id8UeUTXZp/dd0iy ebHoaKCRkI893e5UEzc80H3lgsFEyLf5lhBKIWUYRWjJ8GvVjsa4Pj8khIV+kxdJlpwH A8uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:message-id:date:subject:to:from :dkim-signature:delivered-to; bh=3k57LBb0bUwiebq14W4mPvCW02gOknUTJewpVBAb3sM=; b=UyOpcv1KAewk8+Vh2//tFqKYsvoGnMt3i2K7cQAxQi5D0h+F3DlVlgXzlqyqHW/xgG m4mLgkTgpCwluLsYdGk/zjWwE0VxPXTD6Ey0LRaDziw3hLwdkz/ktlUEVZsLVC6h1T3m iiHN7FQwCijxM+6YRF8si09/X5T8t4l27RETIX4WCr4MbwazoKhx9GSuf+nzKFG6FKlo Hm8zKkKEGynRZ9CVwxRiD6UwnKyQGedHk2awftl8iwlY0uVfKU0D+8u6Dmp3LR9H501s 3MqiltRO0wyfe4u5xGDAHelDXAIaF+tK44TohLW2X8CCGYHYdLeiQA4b11y68Wpt6I7E v8Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=JUjEt2lF; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id 136si4887622pfb.87.2020.11.10.11.31.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=JUjEt2lF; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7C59289BD4; Tue, 10 Nov 2020 19:31:19 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by gabe.freedesktop.org (Postfix) with ESMTPS id 329D689BD4 for ; Tue, 10 Nov 2020 19:31:18 +0000 (UTC) Received: by mail-wm1-x331.google.com with SMTP id d142so4344357wmd.4 for ; Tue, 10 Nov 2020 11:31:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KIXfXFuPLwXB8GBq2vAXvcC0I8sjkpobgKWKDNLykA0=; b=JUjEt2lFTR0iG+Eax3c3Pz0DLhpVkOTbzfvPcFTnuFbl4T6oTJV0Zc7K8h38ORBupm LnUCDldwHm6asihRgXVog41ewvNS+DvA3Z4UVggb1yTKNJ0mxZ2g6LNqva90dcXt6X5J fobritNfiLBI98bcZgFSXqyHYfGz7U4rET2OCpyhknHb8S7tInueAF+1HOs6aKyLXmpd KMmeK10S1GMHx/K/meqnfS+1y0XTXMEh9SKSLUJT7uC0Y7gk7z/NrJNPEpQ3JVJXIqrb httUzSxj0LSNTTxrbGnPVL1yY++5MnASDBwRFeKz222eEdk/7LOFN4fcIUs5kJUoRqoK AguQ== 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:mime-version :content-transfer-encoding; bh=KIXfXFuPLwXB8GBq2vAXvcC0I8sjkpobgKWKDNLykA0=; b=afB+qo/DoH5np81y2fB1jLKt8j/lPl54NSx9FPijGSyBG5ctmGwQF16CGA/UN+k1Jx xO24oYCRpEbxfYBD1MKhuXU8MU8ddEVpU1Wp5U6AW7lZz+DOjZ7UdzeMN8pPgGzbP4lQ YRdnn9Hot5h8r7e94MqU0mQW2kq9v45gtWALBBpn2Agg6BQLu0LxSLTYR2l5Mm6hVZ2r NRwTJyGcjyJ2Dn7LT64LVz6F6aJzvb68O7t+5TGiYm9CJd1bPWuORcvf7vSX3Q6rdhi+ 1W6tlAGq1KwIWIggyJT1vJdROcz0YGMZC/mj7s3PZ8ialaFbTepI7wmfpJpYWAOl7JDM 4H0w== X-Gm-Message-State: AOAM531MNOs/Kaqc7Wd7sEAIzJ/QukmNB+9mwPrGc34H9tIFKqAWteM/ ir+EeWUrkuO0iUDFaa8nZKK29A== X-Received: by 2002:a1c:190:: with SMTP id 138mr665338wmb.113.1605036676569; Tue, 10 Nov 2020 11:31:16 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:15 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 00/30] [Set 4] Rid W=1 warnings from GPU Date: Tue, 10 Nov 2020 19:30:42 +0000 Message-Id: <20201110193112.988999-1-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Gareth Hughes , David Airlie , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, dri-devel@lists.freedesktop.org, Alex Deucher , Evan Quan , =?utf-8?q?Christian_K=C3=B6nig?= , linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This set is part of a larger effort attempting to clean-up W=1 kernel builds, which are currently overwhelmingly riddled with niggly little warnings. Exciting times (using Arm as the benchmark): Before these sets: 5031 drivers/gpu/ 3923 drivers/gpu/drm/amd/ 258 drivers/gpu/drm/radeon/ 95 drivers/gpu/drm/nouveau/ 77 drivers/gpu/drm/msm/ After these sets: 2236 drivers/gpu/ 1949 drivers/gpu/drm/amd/ 97 drivers/gpu/drm/nouveau/ 83 drivers/gpu/drm/msm/ 40 drivers/gpu/drm/radeon Couple more to go. Plan is to finsish off Radeon, then start targeting AMD tomorrow. Lee Jones (30): drm/radeon/evergreen: Add comment for 'evergreen_page_flip()'s 'async' param drm/radeon/evergreen: Remove set but unused variable 'mc_shared_chmap' drm/radeon/ni: Demote vague attempt at function header doc drm/radeon/si: Remove set but unused variable 'mc_shared_chmap' drm/radeon/cik: Remove set but unused variable 'mc_shared_chmap' drm/radeon/trinity_dpm: Remove some defined but never used arrays drm/radeon/kv_dpm: Strip out unused functions and their tables drm/radeon/ci_dpm: Remove set but unused variable 'dpm_event_src' drm/radeon/radeon_vm: Fix some function parameter documentation drm/radeon/radeon_sync: Add description for function param 'rdev' drm/radeon/radeon_ib: Supply description for 'radeon_ib_get's get param drm/radeon/radeon_dp_mst: Remove unused variable 'ret' from radeon_mst_encoder_dpms() drm/radeon/radeon_mn: Supply description for 'cur_seq' even if it is unused drm/radeon/evergreen_dma: Fix doc-rot of function parameter 'resv' drm/radeon/cik_sdma: Demote vague attempt at kernel-doc drm/radeon/r100: Fix some kernel-doc formatting, misnaming and missing issues drm/radeon/r600_cs: Fix some doc-rot and supply missing function param docs drm/radeon/evergreen_cs: Fix misnaming issues surrounding 'p' param drm/radeon/radeon_drv: Move 'radeon_mmap()'s prototype to shared header drm/radeon/radeon_drv: Move 'radeon_driver_irq_handler_kms's prototype into shared header drm/radeon/atom: Move 'radeon_atom_hw_i2c_*()'s prototypes into shared header drm/radeon/radeon_gem: Move 'radeon_gem_prime_*()'s prototypes to shared header drm/radeon/evergreen_hdmi: Move 'evergreen_*()' and 'dce4_*()' HDMI prototypes to shared header drm/radeon/rv770: Move 'rv770_get_*()'s prototypes to shared header drm/radeon/sumo_dpm: Move 'sumo_get_pi()'s prototype into shared header drm/radeon/ni_dpm: Move 'ni_get_{pi,ps}()'s into shared header drm/radeon/ni: Remove set but unused variable 'mc_shared_chmap' drm/radeon/evergreen: Move 'cayman_*()'s prototypes to shared header drm/radeon/r600_dma: Move 'r600_gpu_check_soft_reset()'s prototype to shared location drm/radeon/cik: Move 'r600_ih_ring_{alloc,fini}()'s prototypes to shared header drivers/gpu/drm/radeon/atom.h | 6 + drivers/gpu/drm/radeon/btc_dpm.c | 3 +- drivers/gpu/drm/radeon/ci_dpm.c | 12 -- drivers/gpu/drm/radeon/cik.c | 7 +- drivers/gpu/drm/radeon/cik_sdma.c | 4 +- drivers/gpu/drm/radeon/cypress_dpm.c | 3 +- drivers/gpu/drm/radeon/evergreen.c | 10 +- drivers/gpu/drm/radeon/evergreen_cs.c | 6 +- drivers/gpu/drm/radeon/evergreen_dma.c | 2 +- drivers/gpu/drm/radeon/evergreen_hdmi.c | 1 + drivers/gpu/drm/radeon/evergreen_hdmi.h | 69 ++++++++ drivers/gpu/drm/radeon/kv_dpm.c | 205 +----------------------- drivers/gpu/drm/radeon/ni.c | 9 +- drivers/gpu/drm/radeon/ni.h | 36 +++++ drivers/gpu/drm/radeon/ni_dpm.c | 2 +- drivers/gpu/drm/radeon/ni_dpm.h | 3 + drivers/gpu/drm/radeon/r100.c | 7 +- drivers/gpu/drm/radeon/r600.c | 1 + drivers/gpu/drm/radeon/r600.h | 35 ++++ drivers/gpu/drm/radeon/r600_cs.c | 9 +- drivers/gpu/drm/radeon/r600_dma.c | 3 +- drivers/gpu/drm/radeon/radeon_audio.c | 26 +-- drivers/gpu/drm/radeon/radeon_dp_mst.c | 16 +- drivers/gpu/drm/radeon/radeon_drv.c | 7 +- drivers/gpu/drm/radeon/radeon_gem.c | 9 +- drivers/gpu/drm/radeon/radeon_i2c.c | 4 - drivers/gpu/drm/radeon/radeon_ib.c | 1 + drivers/gpu/drm/radeon/radeon_irq_kms.c | 1 + drivers/gpu/drm/radeon/radeon_kms.h | 5 + drivers/gpu/drm/radeon/radeon_mn.c | 1 + drivers/gpu/drm/radeon/radeon_prime.c | 1 + drivers/gpu/drm/radeon/radeon_prime.h | 39 +++++ drivers/gpu/drm/radeon/radeon_sync.c | 1 + drivers/gpu/drm/radeon/radeon_ttm.h | 1 + drivers/gpu/drm/radeon/radeon_vm.c | 8 +- drivers/gpu/drm/radeon/rv730_dpm.c | 4 +- drivers/gpu/drm/radeon/rv740_dpm.c | 3 +- drivers/gpu/drm/radeon/rv770.h | 5 + drivers/gpu/drm/radeon/rv770_dpm.c | 1 + drivers/gpu/drm/radeon/si.c | 7 +- drivers/gpu/drm/radeon/si_dpm.c | 5 +- drivers/gpu/drm/radeon/sumo_dpm.h | 1 + drivers/gpu/drm/radeon/sumo_smc.c | 2 - drivers/gpu/drm/radeon/trinity_dpm.c | 44 ----- 44 files changed, 261 insertions(+), 364 deletions(-) create mode 100644 drivers/gpu/drm/radeon/evergreen_hdmi.h create mode 100644 drivers/gpu/drm/radeon/ni.h create mode 100644 drivers/gpu/drm/radeon/r600.h create mode 100644 drivers/gpu/drm/radeon/radeon_prime.h Cc: Alex Deucher Cc: amd-gfx@lists.freedesktop.org Cc: "Christian König" Cc: Daniel Vetter Cc: David Airlie Cc: dri-devel@lists.freedesktop.org Cc: Evan Quan Cc: Gareth Hughes Cc: linaro-mm-sig@lists.linaro.org Cc: linux-media@vger.kernel.org Cc: Sumit Semwal