Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp178639rwl; Thu, 23 Mar 2023 14:30:40 -0700 (PDT) X-Google-Smtp-Source: AKy350Yw53ALMtrOex97wimBx6K3wYAkiOAvbL11vyRcuvt3IPMzDRcGR1UAwFuGG7mCJzTRK8fW X-Received: by 2002:a17:903:124d:b0:19f:3aff:dcfd with SMTP id u13-20020a170903124d00b0019f3affdcfdmr7315094plh.6.1679607040009; Thu, 23 Mar 2023 14:30:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679607039; cv=none; d=google.com; s=arc-20160816; b=QlIcBprJRP0FeLTThYqVyqAJe7x0laTqJR4MCAN1JXg/ZM2pSsZvROcp0PUu6tl4jy WTsd0osUyYrS7B0kHS5iqN7Q1z5kVh1cP3KQe6M5+IaJ02JqOfFmwTWjEimyLYgfxhn0 CLYGlbRzViCAvtD+Zg+No6kvrkQeOXx6y1GDWmKqFEfimeMiQz7oOpBgueSf4yS98uDN wiPDa9+lNIvuINhKxelK5xIFi11m9R7uiTne8Z6n+eWhejB2T7VEqC/vIPd6iRzzF1FM 46xlS3GwYiEyJQUVNLV+8Nq1B9+aKWlGS1b+LJBmRQXq8ReX+Hv2kBAHnqbEX2d3Yuwj Iy4Q== 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=6KV3+ggucumc5QD34On/pnyUwkWX5K53u9B57Btq2Dg=; b=BN0iA5AqU5jxxcykwNQhQCKFTTazqxrgBU1uwHywRjuB5jW5JPqClxvHyX3nt64+ce CX+vGbx0eC8dpp75SkAfO63IOhiSNutuzCWdRxI8LSPejQ17Ao0Q0/qbg3Np1juRO6gO AtiZ+TL1ZDzGeNcowuxbNFv3KZ9D7Vbfr3NGyeoMWfFAEpqSImhvluFRD6YAPjHTbck4 CXiwbN4JEK4SrjT/OY1bZjb5fRcL4NZs6pjK+gKu/ruxCiTXbdaItvdtwhF2cjHoSnEe GJRHeuGV/8Xtncael4JIcKlhNsURqqPuVLTYKZvo8+MZzpSnWhI7DwOsgE7ovVKOkW7i ELlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IEetVWzj; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m16-20020a17090ab79000b0023d1b2a6e1asi2659588pjr.80.2023.03.23.14.30.05; Thu, 23 Mar 2023 14:30:39 -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=IEetVWzj; 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 S230498AbjCWVRt (ORCPT + 99 others); Thu, 23 Mar 2023 17:17:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229870AbjCWVRs (ORCPT ); Thu, 23 Mar 2023 17:17:48 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CABE2596B for ; Thu, 23 Mar 2023 14:17:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679606220; 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=6KV3+ggucumc5QD34On/pnyUwkWX5K53u9B57Btq2Dg=; b=IEetVWzjHoylUEe6lDHwGyDq3+yWeUxDFt8xBwKg2Y/wkQ3gvDrIumkb7WbsESZ2Bh4qlk XbbP5wZI9iQZ0njN714kAhtDxptxkaKWFu1PpiOMr9c4BMdKczB0Dz21Yvr2XmOm1ecl7W qSzSiBcDPuA4zUDPzSZFmX7U8GofB2g= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-82-E6GKyu8GMSKQeWR3nRE_2A-1; Thu, 23 Mar 2023 17:15:40 -0400 X-MC-Unique: E6GKyu8GMSKQeWR3nRE_2A-1 Received: by mail-qv1-f72.google.com with SMTP id w2-20020a0cc242000000b00583d8e55181so35464qvh.23 for ; Thu, 23 Mar 2023 14:15:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679606140; 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=6KV3+ggucumc5QD34On/pnyUwkWX5K53u9B57Btq2Dg=; b=HAQff4dI5gIgMzLa6gnR0IvQdLDTFBHWoxBCA1U3T+8baEE4elTXtjWFRTMe5lprVm NuXhzNdfokYDOCwQaES6upxluKspixi6xJe5+zkPFQtLe3Am22RK6Okx/2XpvgncyJv5 DcogkxfEfFxb3mXYwUtc8IlK7CJN+/5IkRx+gp0TxTCkyRec/DIQ8NWV4/9Sl/OApyZF ARdxdwm6oLXhB2bzM9udTSJ7fDYVXOwcR1lqJfrDiPwVsAiGI5cZkAuqMFga3pslCqmh x2zG0zYHTOau9jKOtwRVmGZDH1gSholah11i9UOQNWVwDmZn1jBr6fNnv11/Zb55mbnc h20A== X-Gm-Message-State: AO0yUKU8phj5TgPo86JGYnkgbfZHxcZMkBOPoPOuQtTZB9JqV/f0TrkV O6JpMZgJLRQEwNdyRB9awRbKOuSohMcrWHsY+HR/j8mE6/xO/+th2RLEP11advQEZAGAUyh6Tfp 2BoijpPZg1WfcV8NxCEH8IBqv X-Received: by 2002:ad4:5ca7:0:b0:557:a5c5:7e01 with SMTP id q7-20020ad45ca7000000b00557a5c57e01mr11200936qvh.25.1679606139887; Thu, 23 Mar 2023 14:15:39 -0700 (PDT) X-Received: by 2002:ad4:5ca7:0:b0:557:a5c5:7e01 with SMTP id q7-20020ad45ca7000000b00557a5c57e01mr11200902qvh.25.1679606139628; Thu, 23 Mar 2023 14:15:39 -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 c23-20020a379a17000000b007436d0e9408sm8694926qke.127.2023.03.23.14.15.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 14:15:39 -0700 (PDT) From: Tom Rix To: juergh@proton.me, jdelvare@suse.com, linux@roeck-us.net, nathan@kernel.org, ndesaulniers@google.com Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix Subject: [PATCH] hwmon: remove unused superio_outb function Date: Thu, 23 Mar 2023 17:15:35 -0400 Message-Id: <20230323211535.2637939-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=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=unavailable 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 clang with W=1 reports drivers/hwmon/vt1211.c:198:20: error: unused function 'superio_outb' [-Werror,-Wunused-function] static inline void superio_outb(int sio_cip, int reg, int val) ^ This function is not used so remove it. Signed-off-by: Tom Rix --- drivers/hwmon/vt1211.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/hwmon/vt1211.c b/drivers/hwmon/vt1211.c index 4a5e911d26eb..fcd4be7a5a85 100644 --- a/drivers/hwmon/vt1211.c +++ b/drivers/hwmon/vt1211.c @@ -195,12 +195,6 @@ struct vt1211_data { /* VT1211 logical device numbers */ #define SIO_VT1211_LDN_HWMON 0x0b /* HW monitor */ -static inline void superio_outb(int sio_cip, int reg, int val) -{ - outb(reg, sio_cip); - outb(val, sio_cip + 1); -} - static inline int superio_inb(int sio_cip, int reg) { outb(reg, sio_cip); -- 2.27.0