From patchwork Thu Jun 25 19:17:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 11627245 Return-Path: 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 7B2FF90 for ; Fri, 26 Jun 2020 11:30: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 4F5E820724 for ; Fri, 26 Jun 2020 11:30: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="QLDA2lOn"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="FDSYeKQJ"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ChFks/XE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4F5E820724 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=bRGc5bwkmz7qGjBnc+MIWNGJyBPea0TrATQspkq3Sw0=; b=QLDA2lOnO5Qjm6dNN/0aJxIzg qH6uhbfZ++6wbRpMLNJfTJh0ioNaLODKBtkjQhRn683VNiXAmKbczpQ1QtwAPfeo4uWuU/d6WG74n FPhSD6BGZ4t64qpo4F8WuPISUkp7s/n25iPEF+zJNHSmJT5FCBoYty9e6/nZMUm6cKoBAFMU8spkD 2VpEjGH/JBMkRWxluhKI5gssf09/WTWh2HFP5FuzqGLE+eX+ES8l+SLODjoVavdvBQvR/zR/Aevc9 /NMRHCRXceVvk+aqZg7TSWUd+7LbX+d+bFf0duyT6AYweSYpax76DiX8ftMcFfU9vZtKMtv591jiM j4PSdXHaQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jomWZ-00039h-IB; Fri, 26 Jun 2020 11:28:04 +0000 Received: from casper.infradead.org ([90.155.50.34]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jolFk-0001XZ-79 for linux-arm-kernel@merlin.infradead.org; Fri, 26 Jun 2020 10:06:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description; bh=+r7WAzJKscpz2A7LfanwlEQFW/6BOounTqgY0FCqgHk=; b=FDSYeKQJgwpn8fz0v4SmhcdCH6 Ig66qh85meomH64N3bZrV5SnmAdcPLZ39KEM6Z4GrKeJCbZzIfZm1MbHOmjxbeYjn3Gnq/HsrkYLZ X7E5Yo3UQ66rFs7sGu0sxO6/NqOumUI4iwHxCrrGML7LC/HDjuj2PPUjFXfoObqZLvhLfwA76BI/b x4xJ4VmM7+tzHvHjXmJOHiwFeFLRMJ/b4I/seTag+JLKc/zxt2tTGF8/Uy8KdFWByR64oTYIqwftB ssI714GgeyCRAVAiidFnIam19xO1kbMNj9jGvLbXBKJBXKskFkroWzS3rzXKzR6ebzBKMX9KxtsOq yCN4CsGA==; Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jokkZ-0003RL-Dv for linux-arm-kernel@lists.infradead.org; Fri, 26 Jun 2020 09:34:52 +0000 Received: by mail-wm1-x344.google.com with SMTP id o8so8188420wmh.4 for ; Fri, 26 Jun 2020 02:34:23 -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=+r7WAzJKscpz2A7LfanwlEQFW/6BOounTqgY0FCqgHk=; b=ChFks/XEc7bzV0CTcMWfhB7IgCRQxU/ix22NfRn6vDTUiSMVowVLaUl6yu7QMlcVVZ HIpJw4xTHVybS62gdWM1VHFFBSK0dTQm5ovklGSePPlvX4kAkJhIkf4FubT+ZkZ9yhij CTVZrQko7ww3J9imShFnpURQHqUoLNB/YAfvXak+Efsy+I07bcLsAD++oVv9gQA5rUe/ 1Nm5+BIUSvod+52HYDbqpSQKJogjRpztt5k8ZN6oHSxjr2MOUuZLeddwge1f5DpitMgp toasWrca/RulM3TnAxEnjBxB38zyKS1zf5HDbx2hn5aZZWbfKiCM/W50ed83S/NIjsYg 8+2A== 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=+r7WAzJKscpz2A7LfanwlEQFW/6BOounTqgY0FCqgHk=; b=bKs7YYi++y2j3oa5jRVbcqOMr+anEOCvpmU9+/c8sEss8daC4hfCt9r8fZFpfmE8dI NgIvUschSUjH220hWgvG/WVmufMRrb0mieN79LhlsAI5niqgp+M7ma1Tdw4mElM540rB AKyqCerI+JUi9Wkgg1Jnr2oelavZ6UUM85C/clVhhnsNGll70HEe1E5N0W585ilgQbPq 1XWiXB47bTgpZxNcvAyhX2AESMniUxfBoOR340YbHTEsPLKsjA5Q8Sa3wHypWRmPyVJD AZTc0YJKX7A173NO8uBQR6ZkF36TkGiFDlvL6+R4cCklu3COpCe2nwVJpWTyd4/FIG3a gg7g== X-Gm-Message-State: AOAM531HiaeP+eZq3hvJy17hFIDoS1/OZOpltCZIc+jSXqUax1hlKX8v WmCK9YoEPOyx865i6yuyvHLMzxFkodjyTg== X-Google-Smtp-Source: ABdhPJxocm800/ZlJ2PBjWP1tsP9WN64x1zPnFXiyjxHxw49nomSN71rB9+UScUF2TFK7UoUqEPKzw== X-Received: by 2002:a7b:c348:: with SMTP id l8mr5484694wmj.54.1593112638103; Thu, 25 Jun 2020 12:17:18 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.144]) by smtp.gmail.com with ESMTPSA id p13sm22693983wrn.0.2020.06.25.12.17.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jun 2020 12:17:17 -0700 (PDT) From: Lee Jones To: lgirdwood@gmail.com, broonie@kernel.org Subject: [RESEND 04/10] regulator: dbx500-prcmu: Remove unused function dbx500_regulator_testcase() Date: Thu, 25 Jun 2020 20:17:02 +0100 Message-Id: <20200625191708.4014533-5-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200625191708.4014533-1-lee.jones@linaro.org> References: <20200625191708.4014533-1-lee.jones@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200626_103423_808061_81BAD9BF X-CRM114-Status: GOOD ( 11.98 ) X-Spam-Score: -2.1 (--) X-Spam-Report: SpamAssassin version 3.4.4 on casper.infradead.org summary: Content analysis details: (-2.1 points, 5.0 required) 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:344 listed in] [list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -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 Message has at least one valid DKIM or DK signature -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 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: Linus Walleij , Lee Jones , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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( | ^~~~~~~~~~~~~~~~~~~~~~~~~ Cc: Linus Walleij Signed-off-by: Lee Jones Reviewed-by: Linus Walleij --- drivers/regulator/dbx500-prcmu.c | 8 -------- 1 file changed, 8 deletions(-) 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: