Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp586345pxb; Thu, 15 Apr 2021 01:33:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJys/5V1nalvNc8TwKHQsPufzqfopcP6ddgfm6rSj2kGFp1HP+jbJmKSspwSfHZqf0a+VUX9 X-Received: by 2002:a17:907:9116:: with SMTP id p22mr2282383ejq.516.1618475632731; Thu, 15 Apr 2021 01:33:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618475632; cv=none; d=google.com; s=arc-20160816; b=y8VoNBa7YD2CPALRSs3g9dhwXjCQYIiS6GmkxefkLmDpgaObWwwnbMKBl0R2oiTrrr KJhninpjCoNMf33ialFGTLBTClXjEw9nRNc0YXdziH3bPl8IyW/Y6ise8HeLAgsz5p4M pypEqSxS2cYoXE2SSIFdHcaFP8tLTvRtNq1VpSj5LFYN3XlpLq9LVU3UCbIaUtP4ugzZ IxPyLs2a62+0VW19y/fvjX2ETu3HtgR08auNgtGBKIGqsFTFFw0dXnwyXUyDEaQKKjvP vxTFxD6CXQq4pjyjocjUFy70M++mcmW/kDUIne/QOhGu/QEbh9F0R7PjgBRUE8bpobDT bEkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=fP/RQeZT17eOJS1NfFN1bMKMQdARathktzx5z+UvpL4=; b=IPROnDm+N/kae8jN3wrbd/v9CIY21XEUn6RKxCSqDwtswW3FOFcpfKfG+yrRtW0VwH PkZROeJzYOIiWJx3gGfhkIwouHvSusIFkT9AgHyO3sDY0LgYxjE82Y9Gn7BJ2pnWIhhG YjPHlQH1fNL/ch35/fOE0WTKdah9rdvPxCK6SDK6LrXaNQ2YM3CayCVHe+SBlLDMIcyB K4DqL0p433yrehjHuGN0wkAxF1L5TfdfGx0bSe/VL4KsKhoT/E3MrLRkkfacwIQ4LNn3 3rzLw+NP6990BJRyzMc1pS38ktIAKxk+doTggd0yLAiZNb/W+nZOPeaO+QkW4xg7IPiC XlEA== 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e13si1835956edn.457.2021.04.15.01.33.29; Thu, 15 Apr 2021 01:33:52 -0700 (PDT) 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231512AbhDOIbF (ORCPT + 99 others); Thu, 15 Apr 2021 04:31:05 -0400 Received: from out30-45.freemail.mail.aliyun.com ([115.124.30.45]:37696 "EHLO out30-45.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231251AbhDOIbF (ORCPT ); Thu, 15 Apr 2021 04:31:05 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04423;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0UVdbOP7_1618475423; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UVdbOP7_1618475423) by smtp.aliyun-inc.com(127.0.0.1); Thu, 15 Apr 2021 16:30:40 +0800 From: Jiapeng Chong To: bhelgaas@google.com Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] PCI: shpchp: remove unused function Date: Thu, 15 Apr 2021 16:30:22 +0800 Message-Id: <1618475422-96531-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following clang warning: drivers/pci/hotplug/shpchp_hpc.c:177:20: warning: unused function 'shpc_writeb' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/pci/hotplug/shpchp_hpc.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/pci/hotplug/shpchp_hpc.c b/drivers/pci/hotplug/shpchp_hpc.c index db04728..9e3b277 100644 --- a/drivers/pci/hotplug/shpchp_hpc.c +++ b/drivers/pci/hotplug/shpchp_hpc.c @@ -174,11 +174,6 @@ static inline u8 shpc_readb(struct controller *ctrl, int reg) return readb(ctrl->creg + reg); } -static inline void shpc_writeb(struct controller *ctrl, int reg, u8 val) -{ - writeb(val, ctrl->creg + reg); -} - static inline u16 shpc_readw(struct controller *ctrl, int reg) { return readw(ctrl->creg + reg); -- 1.8.3.1