Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5746951pxb; Tue, 16 Feb 2021 06:43:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJwa8OaNQYDP76vaWMHL4fugMEeZu+lw8Kpv02XKCCf+XJxWP5ey6mGgrQhl5n23KBqOqDKB X-Received: by 2002:a05:6402:1655:: with SMTP id s21mr20783609edx.171.1613486592319; Tue, 16 Feb 2021 06:43:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613486592; cv=none; d=google.com; s=arc-20160816; b=NkRS6p3U5HZyMTI7SZOmQnN7LAa4R2DjYPzfFunHQANxTCOZqPby9t3b5s+WJEdNtE q9/OTNha5XyA71oWkY61xJ1/r6Wv81rI0gqGQqza37WuT6FL0Mzi07utoPccN4T1/O7s B6+I4DdYj+rr4U+IYwvAcUzMC9M0txmluSdLTegGZX+dI79EmRVCE/9kfE7xPeCW2hgh JGiPjx17NGrNz5RvcXy2HwewnWWjFl7vH39UqoZj1XJjaumBfbTyya0pa6dHJvaqEpw/ X4ph1B1qCMyQ9jmXehUeJMcH/HYuLI4c6ghV5pxMiAcb5vbhVQbkxBD/gn5xJxpWHTzg h49g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=zFEmgM5nd9X4uA88XvE/RcCvbu2mvzrxdiV7SGrmahM=; b=Kgh78oPtPZC+gk+Uui2LVZHNbUzPef35T5Ty/fxxJYm/RQ0zRoqD4EmXR7iMRMr4hl xygzlYk2Xh4aBGciJ4MMYc0EYUGiLxS4jrevQpe3gpetQDuLYDQUfPmzCChZbz8ugSuh uxKB0FnxaTg2zpSksmZZ36wPL2jn0gr6wq2KlLkWVOvhcnqeqLIMN54j1rO/AttU3F2y ARsYwRZn2iWpbqPw+tzj82usaGTiL0S36VpbWZN0BYkTbFU0wauvVnF51sVoEsapHiYM JjHSM87M++2gPh/DdvED1k5WZW9lPT9CczpgrSasZCFwdXWeDhSpmh5H8zFkEHzLtYOm +e3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e13si13685598ejy.279.2021.02.16.06.42.47; Tue, 16 Feb 2021 06:43:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230410AbhBPOin (ORCPT + 99 others); Tue, 16 Feb 2021 09:38:43 -0500 Received: from mail-oi1-f175.google.com ([209.85.167.175]:45455 "EHLO mail-oi1-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230436AbhBPOgz (ORCPT ); Tue, 16 Feb 2021 09:36:55 -0500 Received: by mail-oi1-f175.google.com with SMTP id q186so7434470oig.12; Tue, 16 Feb 2021 06:36:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zFEmgM5nd9X4uA88XvE/RcCvbu2mvzrxdiV7SGrmahM=; b=YgKS8/7jlF/U851UY7AKnIQyQH5Al4r8Cyq94mX3oRrLCZGVkIlx/v9QVzRWFtvWsc NutUjYAiwBa5Dbox5rA9ZBS9Jkn1h8XAv4V/QOxx/Utx0YR+GifT/l+Jov1v0dU7VVkn IrQJ5YA4Q4cCuOuGwkjDEbuESIF83yZMtJvogYYEYSHDuAk4ccPgE5+rBGIkugHOXuok FuXnFNT2BrtVydkpqlAe70e/elHsKL+qbh4X/K3pIFexxmovU1k2kTCh0uF0bLL0v22x ZQAiRM76w5p6kKkEjH2jh6BaoAmY7J8ikviRSM1yJEVmXBrjUfouSd3gXQKah0dv1j2A aBFg== X-Gm-Message-State: AOAM530z/zyPc1pmZvpIZ/BGMmapBgT626aS6P/nhi6fLlmRzLa9Uv7d d089zcqjrYKArGoVUlFcP6YBQJCWwqo3m5infak= X-Received: by 2002:aca:3d85:: with SMTP id k127mr2769075oia.157.1613486173455; Tue, 16 Feb 2021 06:36:13 -0800 (PST) MIME-Version: 1.0 References: <1613443120-4279-1-git-send-email-chen45464546@163.com> In-Reply-To: <1613443120-4279-1-git-send-email-chen45464546@163.com> From: "Rafael J. Wysocki" Date: Tue, 16 Feb 2021 15:36:01 +0100 Message-ID: Subject: Re: [PATCH] PCI: hotplug: Remove unused function pointer typedef acpiphp_callback To: Chen Lin Cc: "Rafael J. Wysocki" , Len Brown , Bjorn Helgaas , ACPI Devel Maling List , Linux PCI , Linux Kernel Mailing List , Chen Lin Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 16, 2021 at 3:40 AM Chen Lin wrote: > > From: Chen Lin > > Remove the 'acpiphp_callback' typedef as it is not used. > > Signed-off-by: Chen Lin Reviewed-by: Rafael J. Wysocki > --- > drivers/pci/hotplug/acpiphp.h | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/pci/hotplug/acpiphp.h b/drivers/pci/hotplug/acpiphp.h > index a2094c0..a74b274 100644 > --- a/drivers/pci/hotplug/acpiphp.h > +++ b/drivers/pci/hotplug/acpiphp.h > @@ -176,9 +176,6 @@ struct acpiphp_attention_info > int acpiphp_register_hotplug_slot(struct acpiphp_slot *slot, unsigned int sun); > void acpiphp_unregister_hotplug_slot(struct acpiphp_slot *slot); > > -/* acpiphp_glue.c */ > -typedef int (*acpiphp_callback)(struct acpiphp_slot *slot, void *data); > - > int acpiphp_enable_slot(struct acpiphp_slot *slot); > int acpiphp_disable_slot(struct acpiphp_slot *slot); > u8 acpiphp_get_power_status(struct acpiphp_slot *slot); > -- > 1.7.9.5 > >