Message ID | 20230517183350.314082-2-hamza.mahfooz@amd.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1344526vqo; Wed, 17 May 2023 11:39:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7MH/+iOyTx9CH1FAe08h1vodwDphDy9HLZZ25Sw9c/7eLsKurfhAr3B0tRd89SajukL1Ta X-Received: by 2002:a17:902:c943:b0:1ad:1be7:2a76 with SMTP id i3-20020a170902c94300b001ad1be72a76mr4227583pla.10.1684348746642; Wed, 17 May 2023 11:39:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684348746; cv=pass; d=google.com; s=arc-20160816; b=HyCnnsWRWlocH9+LU8WVN7PpBbsh5eXgWdTZxR4rzVyz93r5CX2In7YO9I9YQgSqUe 6hAAExwKJ8hCfzVCCu2gSTQZg1L2HEbsUKcujRUuVWwYXnB6Wgr1JXq8XCRHwqNi0IfP HL1oZFjkghtnruxWK6lJw2QL38tXqATNBMmfi5fdRqXqCC7kmmWhr8gsj5UY1l1PHgAk TuBpk91tz2PWLVvD4CToanBxt6PIZ7NFPyXRJysI9dRUFtjuKtH1YCMajsloEz6DG2Fy ewGgZ/2GGIvnelCrQ4xdo+TH09eHqD6nPyCNhZju1hKIr1m4piymSynJ2fD0idOd4Ucs C8PA== ARC-Message-Signature: i=2; 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=93aK1EtrxgRooQgtd6a2U+5yaty7/ZAr+872R7LmBKk=; b=ClMEAM0uR8jSzlG7zAqszdUxtl3ebQ3JzKYJu2cfXbANot6GrKvv3I7SL77E5uQzI4 sHSRrZs/iT3W0xv6hU78cfp3IS6OKoJCmWmBNwjB+Ff11Bk/asDDr0/R+lBZ5GPfz9Re IS/kkKMp5YBgIpznJYsV12KcCWbuxAqM+OAIO4ti3EpC/6+UskCqXoTicFm3wT+vWWej e5XisCWeaIwiI+Pi00loBOwMF4C35CGMbXQqjBiF1iT769i9q/MhDaPN+Y5LaoQacNbq wvA78eakTLkEjwgTvmnFV+ly+ctmmJ2eS7Xh2GYncazEdp7ypcTRYxkF8o4T8Dc/iMES pbdQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=ZalQOTki; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s8-20020a170902ea0800b001adbfba9c29si18311949plg.409.2023.05.17.11.38.51; Wed, 17 May 2023 11:39:06 -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=@amd.com header.s=selector1 header.b=ZalQOTki; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229675AbjEQSep (ORCPT <rfc822;abdi.embedded@gmail.com> + 99 others); Wed, 17 May 2023 14:34:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229683AbjEQSeo (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 17 May 2023 14:34:44 -0400 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2078.outbound.protection.outlook.com [40.107.101.78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 024FA5FC4 for <linux-kernel@vger.kernel.org>; Wed, 17 May 2023 11:34:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QZJbEAfW7UP/jdO/1IHjZWIYJKasiBcCgAU33ItkD9GS8/p+mE6UbR5Z5UINtaWxhfzAbs/Ksj4TAJbBL40vxd3YQbmcJ6GfdJ8Y8SiNo+Os71CDkdAafyIGh/ykUlDtVxznypKiSR8q3CWxfLQp4jEXovKkd2zmatOARKnFyCQ0CAOQzTK2g2o+fkGQDSytYomx5/Wx00ES9SBsjEI4fwWGczQJ8im/yD0ytnoy8v8Ayqy7B7worFKC27P2fZuXAXy0T6a4rXcIExryzHvsdAmPaxE7bJmkL6JgzIdAJnJ/YOCh2dqTOZqPiXzjQwDKwzL0W8U7NOClbwbs+cPzjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=93aK1EtrxgRooQgtd6a2U+5yaty7/ZAr+872R7LmBKk=; b=aZ1+ZO7Kg4ma1MfT9ud8Xpe1nay6kzvJnRGYtumHpV4mL1VV91WikzadwS/MkeJWm7DSK2LBtZgbBdMf+rmq81GVrHo7ZzINmLY9Y8LXP4S0rWli+IjR5cDMJltEb3JFg7mkRXsjq3LV4eYlV1I1I1lmXdIacIKYSCUzREtOsT11e6rFXInoW3vbbjSw3LbkhgvlheMPC+hta1l1Utd3ObqW8/edHmt1U3jOxRYfNg6iK/Z4l3q2lKnKOMPBKMdAWifsF4GHXUX8RTflpJK861KIdx75r9vGSUvOdfVCb/NpFygvyeH/chee47LEpy890craRqVfEGDNRKy2W7T4Nw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.freedesktop.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=93aK1EtrxgRooQgtd6a2U+5yaty7/ZAr+872R7LmBKk=; b=ZalQOTkiU9iCq0UIfq28hnmQt9o9lyH6V33efML/sm/7wSaUG1XzpMQpp6kTGaaHb8ulbJTq8+k5/zF74KR5K7crHQmC0px4LRfgDOqAhUXLo00BatgD2r78eBEiB4oZjpNgWBszQmd2xL40Wr8mqrLRGUwFO3HDq13/0CwriSs= Received: from DM6PR02CA0063.namprd02.prod.outlook.com (2603:10b6:5:177::40) by PH7PR12MB7843.namprd12.prod.outlook.com (2603:10b6:510:27e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.17; Wed, 17 May 2023 18:34:39 +0000 Received: from DM6NAM11FT032.eop-nam11.prod.protection.outlook.com (2603:10b6:5:177:cafe::fc) by DM6PR02CA0063.outlook.office365.com (2603:10b6:5:177::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.33 via Frontend Transport; Wed, 17 May 2023 18:34:39 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DM6NAM11FT032.mail.protection.outlook.com (10.13.173.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6411.18 via Frontend Transport; Wed, 17 May 2023 18:34:39 +0000 Received: from hamza-pc.localhost (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Wed, 17 May 2023 13:34:35 -0500 From: Hamza Mahfooz <hamza.mahfooz@amd.com> To: <amd-gfx@lists.freedesktop.org> CC: Hamza Mahfooz <hamza.mahfooz@amd.com>, kernel test robot <lkp@intel.com>, Tom Rix <trix@redhat.com>, Harry Wentland <harry.wentland@amd.com>, Leo Li <sunpeng.li@amd.com>, Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>, "Alex Deucher" <alexander.deucher@amd.com>, =?utf-8?q?Christian_K=C3=B6nig?= <christian.koenig@amd.com>, "Pan, Xinhui" <Xinhui.Pan@amd.com>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Qingqing Zhuo <qingqing.zhuo@amd.com>, Aurabindo Pillai <aurabindo.pillai@amd.com>, "Hans de Goede" <hdegoede@redhat.com>, Hersen Wu <hersenxs.wu@amd.com>, Stylon Wang <stylon.wang@amd.com>, Wenjing Liu <wenjing.liu@amd.com>, Leon Huang <Leon.Huang1@amd.com>, Mike Hsieh <Mike.Hsieh@amd.com>, Cruise Hung <Cruise.Hung@amd.com>, Nasir Osman <nasir.osman@amd.com>, pengfuyuan <pengfuyuan@kylinos.cn>, <dri-devel@lists.freedesktop.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH 2/3] drm/amd/display: drop unused function set_abm_event() Date: Wed, 17 May 2023 14:33:46 -0400 Message-ID: <20230517183350.314082-2-hamza.mahfooz@amd.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230517183350.314082-1-hamza.mahfooz@amd.com> References: <20230517183350.314082-1-hamza.mahfooz@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT032:EE_|PH7PR12MB7843:EE_ X-MS-Office365-Filtering-Correlation-Id: 9b8c87cf-fc6a-44f8-aea5-08db57055f82 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pP+TadWuvPixNfZ83s7z8uHTC/goFrxVn6wgGCEgw9cazOHw3DT9IykOL2N2EEaY/z6cobtlWrdqM+da+r0idZHL6XGwFge4pKEoTAU+0ddeHyYd+MP1jCmzWsI9HyGagq6sMVJ5MkZlZ23O9Lk6rE3uscGjr+7977A5Ef7d1JZkEfShb4q0mksy5D7uv4FTFqPdiumldhYOFDQW/JdCzweLVA1Hpv2dNDhs5p1jH31frDWn3CEE5HUhxjyDkYomfWozKfu+wceLoAISVZS0T1Jzw8/+iQJTLYANDCq/MPijTFHFCIX3ysJkMMQrKrtvZrb+rYu0PWiPBZ4dGNeVDFQCanQe3c4LWPiXddWHMJ+xrfDAH3mpOT2jJst7xyz7eeqchcxuQ+kAwNhMnhUeilin6q3kNavMynCSLPwaDBTcekgGCq7Z29FL7lErqsICpip0vk8AUxQSCymKfEHOEg3w2/FdwqWo3UMe+w2JtIvRX748KnrgRi1XsEjFkevetz0qrrRJxsORLkitfLW6LcEePPIcgnOgR5XCvfZDlVDFSil0XtV3Df+G79rbhCT/Dz/xeUBLxxoU59QRY+fTNZp0fE5DvPO4jIRe40Zjg5hoyLms0Z1/vBbDsVcXDXRPdl6pqor4DxUcOCdA1xT2jsPLGeQAE2npzXw6QzY1wpcefTBenDLFvjP97l3/FO80rtr/BTeM8T0iJ3hu6MyDH4Q2fcL+QxaYRzCmjLQaivnmx/Y5SB7MthXjhoRiCs16DO22EIkgJvhWcf7JNWOPEz2VsXwIswNcKvDBOD283TnPUJeTuEPwXOyjpQqzyznj X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(4636009)(396003)(136003)(376002)(39860400002)(346002)(451199021)(36840700001)(40470700004)(46966006)(54906003)(41300700001)(6666004)(82740400003)(316002)(70206006)(70586007)(6916009)(4326008)(44832011)(8676002)(8936002)(5660300002)(478600001)(86362001)(26005)(1076003)(82310400005)(40460700003)(16526019)(186003)(2906002)(81166007)(47076005)(356005)(83380400001)(40480700001)(36756003)(36860700001)(426003)(2616005)(336012)(36900700001)(16060500005);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 May 2023 18:34:39.1285 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9b8c87cf-fc6a-44f8-aea5-08db57055f82 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT032.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB7843 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766167671110130823?= X-GMAIL-MSGID: =?utf-8?q?1766167671110130823?= |
Series |
[1/3] drm/amd/display: drop redundant memset() in get_available_dsc_slices()
|
|
Commit Message
Hamza Mahfooz
May 17, 2023, 6:33 p.m. UTC
set_abm_event() is never actually used. So, drop it.
Fixes: b46c01aa0329 ("drm/amd/display: Refactor ABM feature")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Tom Rix <trix@redhat.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
---
drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c | 12 ------------
drivers/gpu/drm/amd/display/dc/inc/hw/abm.h | 2 --
2 files changed, 14 deletions(-)
Comments
On 5/17/23 12:33, Hamza Mahfooz wrote: > set_abm_event() is never actually used. So, drop it. > > Fixes: b46c01aa0329 ("drm/amd/display: Refactor ABM feature") > Reported-by: kernel test robot <lkp@intel.com> > Reported-by: Tom Rix <trix@redhat.com> > Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com> > --- > drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c | 12 ------------ > drivers/gpu/drm/amd/display/dc/inc/hw/abm.h | 2 -- > 2 files changed, 14 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c b/drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c > index a66f83a61402..2fb9572ce25d 100644 > --- a/drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c > +++ b/drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c > @@ -131,17 +131,6 @@ static bool dmub_abm_set_pipe_ex(struct abm *abm, uint32_t otg_inst, uint32_t op > return ret; > } > > -static bool dmub_abm_set_event_ex(struct abm *abm, unsigned int full_screen, unsigned int video_mode, > - unsigned int hdr_mode, unsigned int panel_inst) > -{ > - bool ret = false; > - unsigned int feature_support; > - > - feature_support = abm_feature_support(abm, panel_inst); > - > - return ret; > -} > - > static bool dmub_abm_set_backlight_level_pwm_ex(struct abm *abm, > unsigned int backlight_pwm_u16_16, > unsigned int frame_ramp, > @@ -167,7 +156,6 @@ static const struct abm_funcs abm_funcs = { > .init_abm_config = dmub_abm_init_config_ex, > .set_abm_pause = dmub_abm_set_pause_ex, > .set_pipe_ex = dmub_abm_set_pipe_ex, > - .set_abm_event = dmub_abm_set_event_ex, > .set_backlight_level_pwm = dmub_abm_set_backlight_level_pwm_ex, > }; > > diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/abm.h b/drivers/gpu/drm/amd/display/dc/inc/hw/abm.h > index db5cf9acafe6..d2190a3320f6 100644 > --- a/drivers/gpu/drm/amd/display/dc/inc/hw/abm.h > +++ b/drivers/gpu/drm/amd/display/dc/inc/hw/abm.h > @@ -59,8 +59,6 @@ struct abm_funcs { > unsigned int otg_inst, > unsigned int option, > unsigned int panel_inst); > - bool (*set_abm_event)(struct abm *abm, unsigned int full_screen, unsigned int video_mode, > - unsigned int hdr_mode, unsigned int panel_inst); > }; > > #endif Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
diff --git a/drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c b/drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c index a66f83a61402..2fb9572ce25d 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c @@ -131,17 +131,6 @@ static bool dmub_abm_set_pipe_ex(struct abm *abm, uint32_t otg_inst, uint32_t op return ret; } -static bool dmub_abm_set_event_ex(struct abm *abm, unsigned int full_screen, unsigned int video_mode, - unsigned int hdr_mode, unsigned int panel_inst) -{ - bool ret = false; - unsigned int feature_support; - - feature_support = abm_feature_support(abm, panel_inst); - - return ret; -} - static bool dmub_abm_set_backlight_level_pwm_ex(struct abm *abm, unsigned int backlight_pwm_u16_16, unsigned int frame_ramp, @@ -167,7 +156,6 @@ static const struct abm_funcs abm_funcs = { .init_abm_config = dmub_abm_init_config_ex, .set_abm_pause = dmub_abm_set_pause_ex, .set_pipe_ex = dmub_abm_set_pipe_ex, - .set_abm_event = dmub_abm_set_event_ex, .set_backlight_level_pwm = dmub_abm_set_backlight_level_pwm_ex, }; diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/abm.h b/drivers/gpu/drm/amd/display/dc/inc/hw/abm.h index db5cf9acafe6..d2190a3320f6 100644 --- a/drivers/gpu/drm/amd/display/dc/inc/hw/abm.h +++ b/drivers/gpu/drm/amd/display/dc/inc/hw/abm.h @@ -59,8 +59,6 @@ struct abm_funcs { unsigned int otg_inst, unsigned int option, unsigned int panel_inst); - bool (*set_abm_event)(struct abm *abm, unsigned int full_screen, unsigned int video_mode, - unsigned int hdr_mode, unsigned int panel_inst); }; #endif