Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp273453rdf; Thu, 2 Nov 2023 23:16:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHvAA2/2knoYkUob/IUn8KNvHCnukwpZM64VXvjwrGD5oDWy51NF1jdyhR5SWOQo7iDRS/I X-Received: by 2002:a05:6a20:3d06:b0:160:83e1:712f with SMTP id y6-20020a056a203d0600b0016083e1712fmr26116928pzi.23.1698992185100; Thu, 02 Nov 2023 23:16:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698992185; cv=none; d=google.com; s=arc-20160816; b=xMZcUL2p2ywBPeGHznFuk1Frje1SxJMq4ljFSdGlETOwIjwweHu8XwsW97rTUbDUaO QxmSMfuTs/d42RqNfb5mbYAglstq5sX7kSLZvTli7lsi1TAoVr2WJ+yaE2atHfTQUkB9 pQ+bKCe0XF0mJke5ND7zFuG0ayeMRZGdExnEmBE0v+HSxBxeifWpvFzDRZxYN7K6f7uX BY5ITdAhdIhpQG/GPWYtsCHo1N2KwNRcXqgwHnR20M96ME+ymiR1kPo5u8h/UR8ROJJe Rs3mzre1RfiOK2mpnDyHcqBQAfZIwy8I6QYszN30TwruBJspTKpaiJeciwg0d/rBGZRO IwtA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hYHyullC4OIb5ueKBUtHARoDjsv8sC0z5UpD23psbTg=; fh=J5fZGSGUmoD0NT+ZfFkgng7qPhvONoMGdVOrNctU85A=; b=pjRu+04xAtiQU35Y+oukkDWbq2vP9EqaOA3foIEsqA4cpYlr9Hm0MYvZwYQ+VkUaxK t5SZUOFa2abjfCTuuVjNivTyJ0qMnGij4Af4owpsnWt2D4sNC199E7fovcVTPkAXg4fj 4G57WknwIBshCMWScvj+lypJoUQFDkVYi0yI+xpUp69ahdHAErpmG3RmN9awNvgbwn7c 9r6jg7N+G5zpaGyhrEf+aV1GMQcI34A9tJf6kHhLakylC6u1uTvaKiYnJjW9+dJUSy6u r8/ZUSxKGMJWuePoruxvBeXM9R5kfcmJ9gckR1rW4gIv13ov8WTJP0tHgJs4Gs9IM3ku DDjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b=lKLQuGem; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codeconstruct.com.au Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id d2-20020a17090a114200b00262ff3a4545si1073115pje.169.2023.11.02.23.16.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 23:16:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b=lKLQuGem; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codeconstruct.com.au Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id D044B819BB50; Thu, 2 Nov 2023 23:16:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231179AbjKCGP5 (ORCPT + 99 others); Fri, 3 Nov 2023 02:15:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230314AbjKCGPs (ORCPT ); Fri, 3 Nov 2023 02:15:48 -0400 Received: from codeconstruct.com.au (pi.codeconstruct.com.au [203.29.241.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E45B41B4 for ; Thu, 2 Nov 2023 23:15:41 -0700 (PDT) Received: from localhost.localdomain (ppp14-2-79-67.adl-apt-pir-bras31.tpg.internode.on.net [14.2.79.67]) by mail.codeconstruct.com.au (Postfix) with ESMTPSA id A4F7D201C3; Fri, 3 Nov 2023 14:15:39 +0800 (AWST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeconstruct.com.au; s=2022a; t=1698992140; bh=hYHyullC4OIb5ueKBUtHARoDjsv8sC0z5UpD23psbTg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=lKLQuGemKmw5voq2rUsfzBHn00UX+Y/HnEtbLYNqvN9CseaRxwuOjIHs7hHv9nU17 1E7Egh94J5i3ygDC9uJZktBIr99HafQqZVBDpCnlta1lT6Pvp8sFgZSnkr2aFDP8za zc7oTfZAGpYs9YOf6/q+NZPBnGwPPKhrBVPn+5ULR+8x0FHqFxWxAgD24g5SaHzGW3 zRjkqz+W+5VxcdrECFjyv/Ds8UsXttu2lfr3OKqezPbOCEV/rWM/I/3QPG9SE3b7Ku tW3yISYZM6PmsEguqM8j2YhbfC2qvWaZAumTj9iY2XLk1MaPNvyZeMq2Ydf3+A7WuR yyZQ9zdtGTn+Q== From: Andrew Jeffery To: minyard@acm.org, openipmi-developer@lists.sourceforge.net Cc: Andrew Jeffery , linux-kernel@vger.kernel.org, Jonathan.Cameron@Huawei.com, aladyshev22@gmail.com, jk@codeconstruct.com.au Subject: [PATCH 03/10] ipmi: kcs_bmc: Make kcs_bmc_update_event_mask() static Date: Fri, 3 Nov 2023 16:45:15 +1030 Message-Id: <20231103061522.1268637-4-andrew@codeconstruct.com.au> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231103061522.1268637-1-andrew@codeconstruct.com.au> References: <20231103061522.1268637-1-andrew@codeconstruct.com.au> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 02 Nov 2023 23:16:18 -0700 (PDT) There were no users outside the subsystem core, so let's not expose it. Signed-off-by: Andrew Jeffery --- drivers/char/ipmi/kcs_bmc.c | 11 +++++------ drivers/char/ipmi/kcs_bmc_client.h | 2 -- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/char/ipmi/kcs_bmc.c b/drivers/char/ipmi/kcs_bmc.c index a429d9f8a7bf..1a827db8a465 100644 --- a/drivers/char/ipmi/kcs_bmc.c +++ b/drivers/char/ipmi/kcs_bmc.c @@ -68,6 +68,11 @@ irqreturn_t kcs_bmc_handle_event(struct kcs_bmc_device *kcs_bmc) } EXPORT_SYMBOL(kcs_bmc_handle_event); +static void kcs_bmc_update_event_mask(struct kcs_bmc_device *kcs_bmc, u8 mask, u8 events) +{ + kcs_bmc->ops->irq_mask_update(kcs_bmc, mask, events); +} + int kcs_bmc_enable_device(struct kcs_bmc_device *kcs_bmc, struct kcs_bmc_client *client) { int rc; @@ -178,12 +183,6 @@ void kcs_bmc_unregister_driver(struct kcs_bmc_driver *drv) } EXPORT_SYMBOL(kcs_bmc_unregister_driver); -void kcs_bmc_update_event_mask(struct kcs_bmc_device *kcs_bmc, u8 mask, u8 events) -{ - kcs_bmc->ops->irq_mask_update(kcs_bmc, mask, events); -} -EXPORT_SYMBOL(kcs_bmc_update_event_mask); - MODULE_LICENSE("GPL v2"); MODULE_AUTHOR("Haiyue Wang "); MODULE_AUTHOR("Andrew Jeffery "); diff --git a/drivers/char/ipmi/kcs_bmc_client.h b/drivers/char/ipmi/kcs_bmc_client.h index 6fdcde0a7169..814ad8e052ef 100644 --- a/drivers/char/ipmi/kcs_bmc_client.h +++ b/drivers/char/ipmi/kcs_bmc_client.h @@ -35,8 +35,6 @@ void kcs_bmc_unregister_driver(struct kcs_bmc_driver *drv); int kcs_bmc_enable_device(struct kcs_bmc_device *kcs_bmc, struct kcs_bmc_client *client); void kcs_bmc_disable_device(struct kcs_bmc_device *kcs_bmc, struct kcs_bmc_client *client); -void kcs_bmc_update_event_mask(struct kcs_bmc_device *kcs_bmc, u8 mask, u8 events); - u8 kcs_bmc_read_data(struct kcs_bmc_device *kcs_bmc); void kcs_bmc_write_data(struct kcs_bmc_device *kcs_bmc, u8 data); u8 kcs_bmc_read_status(struct kcs_bmc_device *kcs_bmc); -- 2.39.2