From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39968C2D0A8 for ; Sat, 26 Sep 2020 19:18:59 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D242721D95 for ; Sat, 26 Sep 2020 19:18:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="X9M6bUEj" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D242721D95 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=dsdKcTdf1tI9ek8VWiUrwyJKiNYgJCchUkYvR8cQ734=; b=X9M6bUEjmFaGBmJCJRM2aVJJx UcxLwk7PWtR6f+XPDF64mZ2tUvcfGfG0FEcUgbR/bx8/ZmSBmBdeHBkGw4D4lmV9EbQ9QgmSPl6uU podV6xfIqTHMRCzDpNUiy7XYkL6xgb5th+Wv8M5MjxGREy8e35SDj8v2yD6T7VraRYuY/up4i2qof LnZXLl4DU7w9YcmC1fK/Ee5TL5pPXTJvfB/ilSZNhgWrzBfpGNjm8MJk0x5dLPQGmupKpZBMOxwwm KygxdmXY0e0+WMUYvssKYUYl74YFdU4LoPwEWZHlJkH/in7gWKNs6zRDNCozhy5B3Q05E5pr9axYP +T9EO7Udw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kMFhE-0004Zw-91; Sat, 26 Sep 2020 19:17:24 +0000 Received: from mga03.intel.com ([134.134.136.65]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kMFhB-0004Yz-Rx for linux-arm-kernel@lists.infradead.org; Sat, 26 Sep 2020 19:17:23 +0000 IronPort-SDR: FgeuYu+rQ2AUXEN46PO40zvZGyhNsZOKL9Mk0AzfFKCJZsJ0O0w0hW02iYUdVUhKER2o8K7Tbe 6obBsfPkCPSg== X-IronPort-AV: E=McAfee;i="6000,8403,9756"; a="161851061" X-IronPort-AV: E=Sophos;i="5.77,307,1596524400"; d="scan'208";a="161851061" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2020 12:17:17 -0700 IronPort-SDR: HTD+MvfiSLLdySKVrqE+Vunpc6mhvWs1KOUtHm4m7rP0E6SKUaWeqV+StBi+6ZFIpQ1PE25/tX /jRDHWofLzUw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,307,1596524400"; d="scan'208";a="383964675" Received: from lkp-server01.sh.intel.com (HELO 2dda29302fe3) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 26 Sep 2020 12:17:14 -0700 Received: from kbuild by 2dda29302fe3 with local (Exim 4.92) (envelope-from ) id 1kMFh3-0000Ye-S0; Sat, 26 Sep 2020 19:17:13 +0000 Date: Sun, 27 Sep 2020 03:16:18 +0800 From: kernel test robot To: Luka Kovacic , linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-leds@vger.kernel.org Subject: [RFC PATCH] drivers: mfd: iei_wt61p803_puzzle_checksum() can be static Message-ID: <20200926191618.GA12056@2adff5953e79> References: <20200926135514.26189-3-luka.kovacic@sartura.hr> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200926135514.26189-3-luka.kovacic@sartura.hr> X-Patchwork-Hint: ignore User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200926_151722_031490_94981294 X-CRM114-Status: GOOD ( 15.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jdelvare@suse.com, kbuild-all@lists.01.org, robh+dt@kernel.org, dmurphy@ti.com, pavel@ucw.cz, lee.jones@linaro.org, linux@roeck-us.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Signed-off-by: kernel test robot --- iei-wt61p803-puzzle.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/mfd/iei-wt61p803-puzzle.c b/drivers/mfd/iei-wt61p803-puzzle.c index 5cba010ac9b963..f803222fc8e56f 100644 --- a/drivers/mfd/iei-wt61p803-puzzle.c +++ b/drivers/mfd/iei-wt61p803-puzzle.c @@ -118,7 +118,7 @@ struct iei_wt61p803_puzzle { struct mutex lock; }; -unsigned char iei_wt61p803_puzzle_checksum(unsigned char *buf, size_t len) +static unsigned char iei_wt61p803_puzzle_checksum(unsigned char *buf, size_t len) { unsigned char checksum = 0; unsigned int i; @@ -302,7 +302,7 @@ int iei_wt61p803_puzzle_write_command(struct iei_wt61p803_puzzle *mcu, } EXPORT_SYMBOL_GPL(iei_wt61p803_puzzle_write_command); -int iei_wt61p803_puzzle_buzzer(struct iei_wt61p803_puzzle *mcu, bool long_beep) +static int iei_wt61p803_puzzle_buzzer(struct iei_wt61p803_puzzle *mcu, bool long_beep) { unsigned char buzzer_short_cmd[4] = { IEI_WT61P803_PUZZLE_CMD_HEADER_START, @@ -341,7 +341,7 @@ int iei_wt61p803_puzzle_buzzer(struct iei_wt61p803_puzzle *mcu, bool long_beep) return ret; } -int iei_wt61p803_puzzle_get_version(struct iei_wt61p803_puzzle *mcu) +static int iei_wt61p803_puzzle_get_version(struct iei_wt61p803_puzzle *mcu) { struct device *dev = &mcu->serdev->dev; unsigned char version_cmd[3] = { @@ -420,7 +420,7 @@ int iei_wt61p803_puzzle_get_version(struct iei_wt61p803_puzzle *mcu) return ret; } -int iei_wt61p803_puzzle_get_mcu_status(struct iei_wt61p803_puzzle *mcu) +static int iei_wt61p803_puzzle_get_mcu_status(struct iei_wt61p803_puzzle *mcu) { unsigned char mcu_status_cmd[5] = { IEI_WT61P803_PUZZLE_CMD_HEADER_START, @@ -469,7 +469,7 @@ int iei_wt61p803_puzzle_get_mcu_status(struct iei_wt61p803_puzzle *mcu) return ret; } -int iei_wt61p803_puzzle_get_serial_number(struct iei_wt61p803_puzzle *mcu) +static int iei_wt61p803_puzzle_get_serial_number(struct iei_wt61p803_puzzle *mcu) { struct device *dev = &mcu->serdev->dev; unsigned char serial_number_cmd[5] = { @@ -496,7 +496,7 @@ int iei_wt61p803_puzzle_get_serial_number(struct iei_wt61p803_puzzle *mcu) } -int iei_wt61p803_puzzle_write_serial_number(struct iei_wt61p803_puzzle *mcu, +static int iei_wt61p803_puzzle_write_serial_number(struct iei_wt61p803_puzzle *mcu, unsigned char serial_number[36]) { struct device *dev = &mcu->serdev->dev; @@ -544,7 +544,7 @@ int iei_wt61p803_puzzle_write_serial_number(struct iei_wt61p803_puzzle *mcu, return ret; } -int iei_wt61p803_puzzle_get_mac_addresses(struct iei_wt61p803_puzzle *mcu) +static int iei_wt61p803_puzzle_get_mac_addresses(struct iei_wt61p803_puzzle *mcu) { struct device *dev = &mcu->serdev->dev; unsigned char mac_address_cmd[5] = { @@ -581,7 +581,7 @@ int iei_wt61p803_puzzle_get_mac_addresses(struct iei_wt61p803_puzzle *mcu) return ret; } -int iei_wt61p803_puzzle_write_mac_address(struct iei_wt61p803_puzzle *mcu, +static int iei_wt61p803_puzzle_write_mac_address(struct iei_wt61p803_puzzle *mcu, unsigned char mac_address[17], int mac_address_idx) { struct device *dev = &mcu->serdev->dev; @@ -630,7 +630,7 @@ int iei_wt61p803_puzzle_write_mac_address(struct iei_wt61p803_puzzle *mcu, return ret; } -int iei_wt61p803_puzzle_write_power_loss_recovery(struct iei_wt61p803_puzzle *mcu, +static int iei_wt61p803_puzzle_write_power_loss_recovery(struct iei_wt61p803_puzzle *mcu, int power_loss_recovery_action) { unsigned char power_loss_recovery_cmd[5] = { _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel