Message ID | 20200625163614.4001403-5-lee.jones@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=ghf0=AG=lists.infradead.org=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 36F50912 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 25 Jun 2020 16:39:06 +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 0D9D620775 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 25 Jun 2020 16:39:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="N0SSPVuG"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="r5KaDOmo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0D9D620775 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.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:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=SuZqDCSEocQwIw8Y9wNYbkF5KtZLs4wbnzfgY1PqvXU=; b=N0SSPVuGgGVI48J3qf34G2cOS 3LtYHjWRW+KuIWwGBKLYvNwXExLvpZUgEdFS9XT1l+Y9/hJKi+iAyBnwi71IN3gXkerKRux4x4gGk 3xXcfVHLi7yf8QNd8zYKqrJibijagX50PudR35Y+hf2TM42cpFTb3TTGW/mjpbn5Sq+IpdgpnlZnm chngypK2pru7/djtKwQTI2CiELjWZGA+k+r3WjBTTsRnOFWRajpGAiwnq3ssoCnMaIhF0n8g70VLR JojcWvfBqt2XbMd56TGSfxLxfjpuvaP/Qeq05a9aO7b7Bp3bbSYC8hs020EIFVfz8vFqLxjQuozbh INmT9ShRA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1joUs8-0006Mf-U1; Thu, 25 Jun 2020 16:37:09 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1joUrU-000677-RO for linux-arm-kernel@lists.infradead.org; Thu, 25 Jun 2020 16:36:29 +0000 Received: by mail-wr1-x444.google.com with SMTP id o11so6503692wrv.9 for <linux-arm-kernel@lists.infradead.org>; Thu, 25 Jun 2020 09:36:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KndlWInJvGoRF0jx06iGKO8/jC8k1E3YyL6CPU2WcSo=; b=r5KaDOmoHmUoBA//c0h6Z/tJW/Efnytw8+jeKagT/nqoHeq8C7tkhS7rx7VkcrRRvB gwcclc1o0/1iRx/qtLDmRbp9C6WFXPhmErGnQMUnM4ZNkJjAAJ5xW+Y/Ahv7D5IbrErW qqDCfL8XFK+6FMHPqWSAmMTaVxuPOrmaCF1a2JnomKonFUbMNx/43JboGkeTMkZNOCce JSOHxB7P/CeOhFRi0jNWvSFZyhHPHlQPHGzNMLIZObk046kNJ9fKNOpwEuX0NjZdutLX IuvpOxeFl7UoJa6lK2QXF3qC9Y9Bue92b7rPFZFgkxBonDp+G/+dF9pwLxA2NjX8l/PF vWAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KndlWInJvGoRF0jx06iGKO8/jC8k1E3YyL6CPU2WcSo=; b=mUznLw/JT/u3W/KkyUMx3tiVAY3Uyrw0j9shWgOSUaBV5IFctaMe+7Ao1V/SWX3uNH xTPEQTFDnDv2y3KptHztmfY8QxGUcEiZ7KvvCV07aqO3NEhzOBkV2fur4GgvD+BQqyF/ uCs0Ky3WcmUzIbUhlmv8xY2oTnfT5gPtBQbtMiG7akdFP2OpMe+65Tnf5VbQkQ5aUbJr bhzGSFM23It4sW8u2j/qrCwN/MWAC9uU0u1B5mBG0n/Z8qBVGrQhCzUSFV6Rl80YQvod ve7g64VWgikp1QzWmlqxZ3+4PAY9XkoI5eNJ2JJ/bu31la4E1GWl2TEgXCcUDH+pg6Bb gOQg== X-Gm-Message-State: AOAM533FsXpIPvitlFCvLk5iWpFjv0RzKGBNXJCnI9lCmZuGfD/M2qRZ 2PEmNRD53jj4AjmBG/MbSZYDzg== X-Google-Smtp-Source: ABdhPJy3yUyH7m9+jnH6hFEnfrBJRT4MVIZzAefQ4i4842f/fHklh/4aAb7/aJWNEGTQeJcFl9zbnA== X-Received: by 2002:adf:e648:: with SMTP id b8mr38605083wrn.386.1593102987753; Thu, 25 Jun 2020 09:36:27 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.144]) by smtp.gmail.com with ESMTPSA id a15sm36729089wrh.54.2020.06.25.09.36.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jun 2020 09:36:27 -0700 (PDT) From: Lee Jones <lee.jones@linaro.org> To: lgirdwood@gmail.com, broonie@kernel.org Subject: [PATCH 04/10] regulator: dbx500-prcmu: Remove unused function dbx500_regulator_testcase() Date: Thu, 25 Jun 2020 17:36:08 +0100 Message-Id: <20200625163614.4001403-5-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200625163614.4001403-1-lee.jones@linaro.org> References: <20200625163614.4001403-1-lee.jones@linaro.org> MIME-Version: 1.0 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:444 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Lee Jones <lee.jones@linaro.org>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org |
Series |
Fix a bunch of W=1 warnings in Regulator
|
expand
|
diff --git a/drivers/regulator/dbx500-prcmu.c b/drivers/regulator/dbx500-prcmu.c index f604c8db6d0e9..c3ad6aa6b5d37 100644 --- a/drivers/regulator/dbx500-prcmu.c +++ b/drivers/regulator/dbx500-prcmu.c @@ -110,13 +110,6 @@ static int ux500_regulator_status_show(struct seq_file *s, void *p) } DEFINE_SHOW_ATTRIBUTE(ux500_regulator_status); -int __attribute__((weak)) dbx500_regulator_testcase( - struct dbx500_regulator_info *regulator_info, - int num_regulators) -{ - return 0; -} - int ux500_regulator_debug_init(struct platform_device *pdev, struct dbx500_regulator_info *regulator_info, @@ -152,7 +145,6 @@ ux500_regulator_debug_init(struct platform_device *pdev, if (!rdebug.state_after_suspend) goto exit_free; - dbx500_regulator_testcase(regulator_info, num_regulators); return 0; exit_free:
There isn't any code present within the current kernel to override this 'weak' function. Besides returning '0', which is never checked anyway, the whole function appears to be superfluous. Consequently fixes W=1 warning: drivers/regulator/dbx500-prcmu.c:113:27: warning: no previous prototype for ‘dbx500_regulator_testcase’ [-Wmissing-prototypes] 113 | int __attribute__((weak)) dbx500_regulator_testcase( | ^~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/regulator/dbx500-prcmu.c | 8 -------- 1 file changed, 8 deletions(-)