From patchwork Sun Mar 19 14:23:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 71795 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp753346wrt; Sun, 19 Mar 2023 08:00:59 -0700 (PDT) X-Google-Smtp-Source: AK7set+63tHu9i0zJjankJmXWcHCdDftKLK6kyfO2SHfQ1ULAksxoG4vdKByF0S9+/OLCdpkwlur X-Received: by 2002:a62:4e46:0:b0:626:41b:259f with SMTP id c67-20020a624e46000000b00626041b259fmr10387223pfb.17.1679238059228; Sun, 19 Mar 2023 08:00:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679238059; cv=none; d=google.com; s=arc-20160816; b=wArWU87j+gYQcltrzdEzpBx/0OTPwd6Fj8R2HEQH3h8OCbi+59LqqkId4Z4/7UUl5W IMZLdnA8q3qMjL8jfKILneGdC+yR1w1S6gCevb25taFtr56/EvVaqduQjKMdz3Qyy0/e X7LvxNODD7EK5bbMavN19s4G+lO9kWA0I/z4xFai+dvBJ//rdAXAUIAer6Qy+GU4cOj9 0e7i1qVwoG+lSy6asUgg2G48wyd/k9hAzayA0Irke4/LXUBqYjvGbpMYYICLhdf/VotJ D4BAHMiI2dz0HgEqXQyTNp7ET0z0NoZlmJzH2wZ0MbEJ15fkd5cvRIkwpnw2wAoL0vJ4 bqPw== 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=T/hIkiUkQpnPgtTLze7otKxFbigf/WOsrX7aDGKl4Xk=; b=oFs405xUsKuFGt05T7qMYrwm/qcMD1KZ38hNO/LyvmLzfaAWCCF8I/qqh2P7ZvyIOk niC9hkIJnb3WmtLd+3pfMsZKvxlGRzwt7a6+TTmfw9Yz8mFpItkPHon4IQJIumx4ApHN vaPCQbMbgRSJlDJilr69xGtIKNSGMHyrEhQ5fNHvKP7j4jhcDpkPFA9u11j7Xl7d7mfM AhS4d7DtlqAy1BGb8fXLqfxXEVSMItXupjNtk3e5qjJwU16JMideJTSGoClqYF+cqhWZ AL+fBmHHdEGlA/JFO1iUv4fcKhrj0Y8r+TfKAS3SNnRhMCpCtR1GRwsvcbbnU70Xjadl 07AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KkUtUpdH; 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=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t6-20020a656086000000b00502e5477334si8153626pgu.687.2023.03.19.08.00.39; Sun, 19 Mar 2023 08:00:59 -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=@redhat.com header.s=mimecast20190719 header.b=KkUtUpdH; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230311AbjCSOYO (ORCPT + 99 others); Sun, 19 Mar 2023 10:24:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229605AbjCSOYM (ORCPT ); Sun, 19 Mar 2023 10:24:12 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1A015FF9 for ; Sun, 19 Mar 2023 07:23:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679235805; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=T/hIkiUkQpnPgtTLze7otKxFbigf/WOsrX7aDGKl4Xk=; b=KkUtUpdHXO+7h2eBPf4+EP3z7q5C3kTdJp6XlMJjmTD8ynbn5XbpDlum79DKB3MRAN2z1b F2ldkMFnTwCTi3MrjGS45/iwjZZE1SWhaIVcN5Sow8mOjZWIp87Tb+uTRX7tsrMprEkZtd CvbBwR9bn1IDMRJ7PQ21YgZnV7ad9/M= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-536-siGBLCgvPWqFEptQfvYPgw-1; Sun, 19 Mar 2023 10:23:24 -0400 X-MC-Unique: siGBLCgvPWqFEptQfvYPgw-1 Received: by mail-qt1-f197.google.com with SMTP id f36-20020a05622a1a2400b003deb2fa544bso1428618qtb.0 for ; Sun, 19 Mar 2023 07:23:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679235804; 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=T/hIkiUkQpnPgtTLze7otKxFbigf/WOsrX7aDGKl4Xk=; b=ayLvNYPyJNf4iUhpCLtlkH0OWDqy/lIONIVqri8Krz/uwnpwMWh4T0O8jkIw8tbv8o VHXfrOK7NuE0v21VfsWCn9pCgA4XsXyNKk9bBTzQoQ2AMaYKQqHPZj63mjpMY7cPGI+h V/2JD9PMhAdTsZqcayJAQKAqJCaoXZdCZ7O2GzffHMLZ9dpEA1xl1VvqTCC8Cc6aevoR 0m4J4KTUnQ+sjodnSYu0Q9evJ5ekiglf6PPMW7D3IcU2GwN03oUn4k7PxbV3LdLnyqeH zqoJYk9Ka40z/JHzHZrOVoEhf1wpYoqx80Tm04ir4DvIxNYF3/lGXutS7wnqj/BqVzfV m1pg== X-Gm-Message-State: AO0yUKU2CESkWiF7CmfqVP7UyeZIv8ohvnaEXwWDjd8g1mGmTf374wYR qMWTYe02/R001ir3YhTkhcXwB2jBa5KvDYQlTgB9GggmDkY6ARIhuPH64KtQAO0C2QKxAnhOvs+ ViB8wUfNDI1x17ZMcop47bSw6 X-Received: by 2002:ac8:5c81:0:b0:3b8:2504:e90a with SMTP id r1-20020ac85c81000000b003b82504e90amr14481139qta.3.1679235803805; Sun, 19 Mar 2023 07:23:23 -0700 (PDT) X-Received: by 2002:ac8:5c81:0:b0:3b8:2504:e90a with SMTP id r1-20020ac85c81000000b003b82504e90amr14481124qta.3.1679235803572; Sun, 19 Mar 2023 07:23:23 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id o8-20020ac841c8000000b003de4e646d63sm2103047qtm.32.2023.03.19.07.23.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Mar 2023 07:23:23 -0700 (PDT) From: Tom Rix To: patrik.r.jakobsson@gmail.com, airlied@gmail.com, daniel@ffwll.ch, nathan@kernel.org, ndesaulniers@google.com Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix Subject: [PATCH] drm/gma500: remove unused gma_pipe_event function Date: Sun, 19 Mar 2023 10:23:20 -0400 Message-Id: <20230319142320.1704336-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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?1760808727088470945?= X-GMAIL-MSGID: =?utf-8?q?1760808727088470945?= clang with W=1 reports drivers/gpu/drm/gma500/psb_irq.c:35:19: error: unused function 'gma_pipe_event' [-Werror,-Wunused-function] static inline u32 gma_pipe_event(int pipe) ^ This function is not used, so remove it. Signed-off-by: Tom Rix --- drivers/gpu/drm/gma500/psb_irq.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/gpu/drm/gma500/psb_irq.c b/drivers/gpu/drm/gma500/psb_irq.c index d421031462df..343c51250207 100644 --- a/drivers/gpu/drm/gma500/psb_irq.c +++ b/drivers/gpu/drm/gma500/psb_irq.c @@ -32,17 +32,6 @@ static inline u32 gma_pipestat(int pipe) BUG(); } -static inline u32 gma_pipe_event(int pipe) -{ - if (pipe == 0) - return _PSB_PIPEA_EVENT_FLAG; - if (pipe == 1) - return _MDFLD_PIPEB_EVENT_FLAG; - if (pipe == 2) - return _MDFLD_PIPEC_EVENT_FLAG; - BUG(); -} - static inline u32 gma_pipeconf(int pipe) { if (pipe == 0)