From patchwork Sat Feb 26 12:48:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Conor Dooley X-Patchwork-Id: 12761303 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 19108C433F5 for ; Sat, 26 Feb 2022 12:50:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=YI2FFqa9SubhOguQIBdaz6MTlX1wthJihcEoSQQItVA=; b=O5wRs4jzUfa1CF ZHySRNK/gu8DXEHEi1lolwfjrVzvslfnosd04PMWS8iRSTUH7Gg5V/6gCQH1NUxmYP/V19tmGmjyr ulTfSdjVI/xQzQQEahnjXD3+mZ+ltZkTytjPy+KVfHp3D0IRelsV5zdQQrGrErt0SVXaZGa/cWu6e Xn+r22RgdNcZjwqAPIysbBCIZHHR20Ik8iJaeL2X+d8irCRVNq8sgOFCBMjwZuijx4aHPQkprp073 22zhYYo6msNmvuoqNnNLQzLlBnjREuy0A1MiVHuXyySyO3kRlFumIXooTNzDjuhgNo6PFA3oKjsP8 /VIUIPWfwg5setcEUyrQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNwVh-0082jk-Sp; Sat, 26 Feb 2022 12:49:18 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNwVe-0082iV-E9 for linux-arm-kernel@lists.infradead.org; Sat, 26 Feb 2022 12:49:16 +0000 Received: by mail-wr1-x42e.google.com with SMTP id s13so8344374wrb.6 for ; Sat, 26 Feb 2022 04:49:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod-ie.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HKu7Nq9ada9Q0GKmhF6FBkxxAo4IU+EPX6BvNCYFox8=; b=6x5jrcANK5bD433NpXdRCtV2c9jgfqOJGU64yg75fTDWaDeT/J8OqFELBHUX9vT1Se oK42PtAp4iyPsW1+RThNiQceWnDxFQocHUI1YQNNpacxdjF0NeFt7XnYroEuh7qhCYKL XA7xgflUsxVRJdDBtLzeDqiOnTf/JiY+lkAwam377yZwG9iFHu7hNyXIHWvdNBU4VAsU iEmgA3dKOh7X7T6iMGC/wkno8gU5rOnUK+ay+Cthnj8xrqr5tbwQF+drdgMdj5aWqLRm LPWx8+QuuDiXMBSSkBEcmKsWsWcKXr42pXfjS0E96N1QdZ2DGd6Ws75zyf7h4EXCySEx gcrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HKu7Nq9ada9Q0GKmhF6FBkxxAo4IU+EPX6BvNCYFox8=; b=DKWy8sgUelK1+9H+G6d4ycWanyW+7zEq2rf5utT1eD3ePfsFf+JtTujgawIVfO461y zgHAl+wk+NR00/c+/4JE81lyiRgo82DpUbO+W3soVpCIIZ0gjU0TrKXoW50YcHdi0JAd Ru3scn1m+NtImCNeluapv8bygxrNYssB6xCnnC+MrYyodzDMv6ZmcPdqDR3d1Ew+dkGi 6E/ZsPnmmHoIrFuUvQOr9LVgQltx+W1xSH7yiFU5qCAnNdS283LE2l7XUE9gNKds2Cia Wk1cK+MO9jmJ65K0ICu0+QbJO8fWpuRLNdopzRjwj10w7vHq0dNJCi21ZRasFq3J/Int PxOA== X-Gm-Message-State: AOAM5303K4AuBmkXK9NY8Qrd2v3Q3nB+uDZ0Xzffu5vbeiSv4VGI7Xny HMdk3N6/9617FasqHuvLjsuD0w== X-Google-Smtp-Source: ABdhPJxM8vLs9v8y3p3R9aQurSHHEe5oH3GDF05PcnuiNTk/vV5hbRaFoSBOSeClmdHZ3ck3kCKnoA== X-Received: by 2002:adf:9f0f:0:b0:1ed:c016:dfe5 with SMTP id l15-20020adf9f0f000000b001edc016dfe5mr9200390wrf.675.1645879748687; Sat, 26 Feb 2022 04:49:08 -0800 (PST) Received: from spud.. ([109.76.226.172]) by smtp.gmail.com with ESMTPSA id p4-20020a1c7404000000b0038140136ff6sm5027696wmc.5.2022.02.26.04.49.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Feb 2022 04:49:08 -0800 (PST) From: Conor Dooley To: conor.dooley@microchip.com, nicolas.ferre@microchip.com Cc: arnd@arndb.de, olof@lixom.net, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel test robot , Conor Dooley Subject: [PATCH] soc: microchip: make mpfs_sys_controller_put static Date: Sat, 26 Feb 2022 12:48:27 +0000 Message-Id: <20220226124826.1564871-1-mail@conchuod.ie> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220226_044914_705981_38318B47 X-CRM114-Status: GOOD ( 10.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Conor Dooley dsafsdfd0054 ("soc: add microchip polarfire soc system controller") incorrectly exported mpfs_sys_controller_put. Remove the export and make the function static instead. This fixes the "no previous prototype for 'mpfs_sys_controller_put'" warning spotted by the kernel test robot. Fixes: dsafsdfd0054 ("soc: add microchip polarfire soc system controller") Reported-by: kernel test robot Signed-off-by: Conor Dooley Signed-off-by: Conor Dooley Reviewed-by: Nicolas Ferre --- drivers/soc/microchip/mpfs-sys-controller.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/soc/microchip/mpfs-sys-controller.c b/drivers/soc/microchip/mpfs-sys-controller.c index 2f4535929762..31f3f29fc1ae 100644 --- a/drivers/soc/microchip/mpfs-sys-controller.c +++ b/drivers/soc/microchip/mpfs-sys-controller.c @@ -73,13 +73,12 @@ static void mpfs_sys_controller_delete(struct kref *kref) kfree(sys_controller); } -void mpfs_sys_controller_put(void *data) +static void mpfs_sys_controller_put(void *data) { struct mpfs_sys_controller *sys_controller = data; kref_put(&sys_controller->consumers, mpfs_sys_controller_delete); } -EXPORT_SYMBOL(mpfs_sys_controller_put); static struct platform_device subdevs[] = { {