Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp704546pxb; Tue, 5 Apr 2022 19:32:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzt3AE78m+nZE4H29ikXTIXSet/2kEfbMp2szA/Igf+kqlLhRMPZOCtSLeCdNsc01yI3nf+ X-Received: by 2002:a65:5083:0:b0:382:3b02:9799 with SMTP id r3-20020a655083000000b003823b029799mr5438603pgp.302.1649212373409; Tue, 05 Apr 2022 19:32:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649212373; cv=none; d=google.com; s=arc-20160816; b=gw67jC7H7m9M8eTpnZD1gtZOewbSg4gE6vqt4+lnYVegB3Syw7VkNUc3Wx6MZTLV+W tcn/3ceP/6FUWOFSFcKooduioQlXxbcfv04hQYP8K+H5zCQksqcGwdJK+/monOvgXj23 OfJzjOgsGplhf48WsYNAV5mSroDiG92J4pR2/jvJIyEMHtNm4E6K0JoN76p7NBBBASx6 Cd1iqCmDgZk3GVMIp3hxwVLgYVAoyKp+wUXn1emVYe7jDzriDI1KXN0wUfYx0LosmVbO n8OSouxtprTQf3RoTME9myIUYvaBE5x5smRy3UDYBPPEWszHfPGrGvRy+PjjUd8g7Fqx 2fsw== 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=0Za9mFc2w6J05rZiUcgYgI1MHOqbILjIUFo5n8+CaVA=; b=1KXSo7xAl2KutzPzZVuc6FbzooHSKbsiLi7Jb3/YuNoGjM5oE0XXrZK4B7ywpH/eO/ hyv3MRpdF2RMoBavrP0tsQ/cGJdxfqEHJjaenPtSmVyZNogoxrbSzn2PBcJIN6Wbis+c eofvoKh7HTAlaD4wP35dyPpy50L4QyJWJhz6OKB6m4Y/LlFhHSrNOlqTWwzbiUgsrg3y nomVYv0vVx35pe2HVzSdBA7JQHFAR5x6y/1xhwMPAQJm4msFPjFbkuiVam0y6UOeP+rH ky5HWLZfn7UEDXVQ48X2CXdUHWziNQT1JiMqadU4CWSvkMvuttE9TupTxpmfCpBjGL4Q QQAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=I18KW4rY; 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 qe11-20020a17090b4f8b00b001c685a30dddsi4260514pjb.33.2022.04.05.19.32.38; Tue, 05 Apr 2022 19:32:53 -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=I18KW4rY; 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 S1347553AbiDENFe (ORCPT + 99 others); Tue, 5 Apr 2022 09:05:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343979AbiDEJQo (ORCPT ); Tue, 5 Apr 2022 05:16:44 -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 205DFB87F; Tue, 5 Apr 2022 02:02:37 -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 CCD57B818F3; Tue, 5 Apr 2022 09:02:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33507C385A0; Tue, 5 Apr 2022 09:02:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649149354; bh=GJWTx2va9kVPJ+UsHarwUFYycQHMaT1jG3zkI1xGkhM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I18KW4rYUvw23p5lvi6PGujXZvDUWQAEQnj9nTLZVf/04ZQHCM3xvXqXJtWwl6e5d Y8nYC4tg6n6N7us48OK+R+KOUZSRwCd53muRVsLdByAyyRy6II5aQBKZQQV7O4KwDc HIc4ulpyQJ1lM+u6m3kQAjPNn843PjuKXJ4SFvlM= 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 5.16 0685/1017] clk: loongson1: Terminate clk_div_table with sentinel element Date: Tue, 5 Apr 2022 09:26:38 +0200 Message-Id: <20220405070414.610190784@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@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.1 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 703f87622cf5..1ebf740380ef 100644 --- a/drivers/clk/loongson1/clk-loongson1c.c +++ b/drivers/clk/loongson1/clk-loongson1c.c @@ -37,6 +37,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