Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1990877pxk; Sat, 26 Sep 2020 12:18:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtDfKViXj8cEe/N/aJdw9ZMVAKzdwF6Y7b+PBizyfLzEvubzSri0r/nNKqMvg1wpeGZCWq X-Received: by 2002:a05:6402:10c9:: with SMTP id p9mr8086479edu.156.1601147913072; Sat, 26 Sep 2020 12:18:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601147913; cv=none; d=google.com; s=arc-20160816; b=gJfAn9kn7qqy5dGnNFoCsDsUyc++XiN9LPNcHMHNZ+nirLdhRRCeVUXAa5u/7j3YkI Zhjq+Q1u5VoKW5Bv3i0fL33QFvJyl/+FUFiY/JEsKjcrm1fYTeNuMJsRgsS/2G7Lz94s 2uoUPRwqlpaKuL8/X7NNfGzmmXMT2xOjg/BpHKbxLrB1NIe/NQBiRt06xUGKWrNFy5Tw We4v7cP0YY+spQKCm3i06/Zp0wbQ8uhn+3yA4lrT80UHe6RNDzvwc1NblstzEOlaY7hn iMEiE5RTFkDSMg97H6zCgCt9Przfy9sf2wDXCsUY5bel0H2tV+ydbYsUrTXcGx291xUP +14Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=ivqi9M74KTmZb/Mo+YZ7nMgjrvlLGbHv9ZLOCxDA+xk=; b=VWIz41tLBvJv7Wo2uFqpvuVQl4KZvk1zw+6d3ZSY9POCfUDzM90qlN2xIl9qcXHE9L bRTsQfm3MqXowavvxOCvbhZs+KpQ0s7E3+5uMT5Sje4gW2p4Ho/0wiZf2faKE5tYXM6y SWdKbT+N2/uAk1/ZWoBxFwD3iYbhbKuBnWQcnkrp8AuoD0vWmheG4YpTStZItFasPBGH yFniuwIOD/PaiiOyaEag3XfgwMIgxTgruB6CxWWEzGolQHdgWJu89k0lcRN4GGzb78Mg HheGaD6axeuhU793S2dzulp/N/51slbj/4TDIlFx/dQihEvknHxC+PVH7aUp6E2rlqAj Cgnw== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h27si4661116edj.263.2020.09.26.12.18.10; Sat, 26 Sep 2020 12:18:33 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730001AbgIZTRS (ORCPT + 99 others); Sat, 26 Sep 2020 15:17:18 -0400 Received: from mga01.intel.com ([192.55.52.88]:8561 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726183AbgIZTRR (ORCPT ); Sat, 26 Sep 2020 15:17:17 -0400 IronPort-SDR: fEsqAAZ8o8KYhvGNeXDfoU53sTzhn8SJL7ofJYUoCiCDnv6+LogUZyS92LYaTOXxp9HDaO34NC yw0PTa3iO6nA== X-IronPort-AV: E=McAfee;i="6000,8403,9756"; a="179945301" X-IronPort-AV: E=Sophos;i="5.77,307,1596524400"; d="scan'208";a="179945301" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.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 Cc: kbuild-all@lists.01.org, lee.jones@linaro.org, pavel@ucw.cz, dmurphy@ti.com, robh+dt@kernel.org, jdelvare@suse.com, linux@roeck-us.net 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-Type: text/plain; charset=us-ascii 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) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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] = {