Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp840664pxb; Thu, 21 Apr 2022 11:29:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7h0rKdnv5ok8kocKDUqEiWx75QnQPiZ+v1Wf9XmFLvmy8vLVwb86pGQZQGOZI3j+N9i/E X-Received: by 2002:a17:906:4fc4:b0:6da:b4c6:fadb with SMTP id i4-20020a1709064fc400b006dab4c6fadbmr777690ejw.282.1650565759122; Thu, 21 Apr 2022 11:29:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650565759; cv=none; d=google.com; s=arc-20160816; b=xJTitAleStDsTEs11Xdwir9dBZi+fD4T8t8z2/VRAWlNGewqFtFY8m8cQYWTbJphEd KX0lmhStael8+KOR36gNPzHlZZxL+GVS9KUNM2EgvN9VgG9fjZvR9yNAU6qaiV9/9Z69 WowYUqfY6UQ2GwIbgQCb4V6ePOjyBLb6Zu3fNfVxdY8JZLwOunv8DPIcgoc9Z0Wgw2ri K/UtWX21fy50UM+J9Hf9cFtc3NOL4tVK2MgRxgBvUNknM1WFeyxN03OVeBu9U93ad/Qi xxRkZDKSxoNgd8aojHwm6O4HuetrHQ3fCvRZ2I9SiS0I/+24AX9++Mk49Omhy5feVM5B WyRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Lzr/tLJis5P/dk+s+4vmxnC64YXF01y4SDZNMzGoqIM=; b=BvlF1TWI3XHmcOdPWY0mxV6Em1KYceLgLN9jip7LXCCin5HsDAyCusVITnIbw3DNIx w7muayQ3BAh6LoimG3HgSx7aKIYh8+1iTYQ0AlJpSNOMQ3yDZR5AQC56XPJeunkJZPLp tlXw3tmYhlHclk9UkZnb+GBr0qqcBPMqHV2nG1rFpzh8CTA9qAtTrurh34/MTOilkifi HwyzRrcPwUpXCKf6wIUIIj2uoXl3BOWYRyUXHEBYe+Vn5Smy031USjfWL9wK6skjAtFB N446vcAIfCUAB2lss26fjyYRnhlEFD8/qFP1gOxiDkYl2dXMKneqEy/htMhJF6Ln1RyR LW+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="QQ14/D4C"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gy21-20020a170906f25500b006e894c98ceasi4349865ejb.473.2022.04.21.11.28.51; Thu, 21 Apr 2022 11:29:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="QQ14/D4C"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236403AbiDRNtS (ORCPT + 99 others); Mon, 18 Apr 2022 09:49:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244067AbiDRN3z (ORCPT ); Mon, 18 Apr 2022 09:29:55 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 121E540A15; Mon, 18 Apr 2022 05:54:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6443DB80EC3; Mon, 18 Apr 2022 12:54:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98CE2C385A8; Mon, 18 Apr 2022 12:54:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650286443; bh=EWN/7L55u75adv+qjP3MgLPwUeZ7+C3NKYz1XAHFdGc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QQ14/D4CYfUgk1hj1njF8zFhod47O1Uqy8VwOFh0Yw5N4eP5ncAND6/KGlInG+k/P vOOXviHkilbbiqttZSWxWP1ooV7Ig2L0HTm2XEBXxV0OeY5ORdCT+3y+PyPViKKOsy If/m49eNTxsIMByXCZjQjdnha/HgPsN09XHDv0wo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Stephen Boyd , Sasha Levin Subject: [PATCH 4.14 137/284] clk: loongson1: Terminate clk_div_table with sentinel element Date: Mon, 18 Apr 2022 14:11:58 +0200 Message-Id: <20220418121215.306895356@linuxfoundation.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220418121210.689577360@linuxfoundation.org> References: <20220418121210.689577360@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jonathan Neuschäfer [ Upstream commit 3eb00f89162e80083dfcaa842468b510462cfeaa ] In order that the end of a clk_div_table can be detected, it must be terminated with a sentinel element (.div = 0). Fixes: b4626a7f4892 ("CLK: Add Loongson1C clock support") Signed-off-by: Jonathan Neuschäfer Reviewed-by: Philippe Mathieu-Daudé Link: https://lore.kernel.org/r/20220218000922.134857-3-j.neuschaefer@gmx.net Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/loongson1/clk-loongson1c.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/loongson1/clk-loongson1c.c b/drivers/clk/loongson1/clk-loongson1c.c index 3466f7320b40..e3aa502761a3 100644 --- a/drivers/clk/loongson1/clk-loongson1c.c +++ b/drivers/clk/loongson1/clk-loongson1c.c @@ -40,6 +40,7 @@ static const struct clk_div_table ahb_div_table[] = { [1] = { .val = 1, .div = 4 }, [2] = { .val = 2, .div = 3 }, [3] = { .val = 3, .div = 3 }, + [4] = { /* sentinel */ } }; void __init ls1x_clk_init(void) -- 2.34.1