Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp608244pxb; Tue, 5 Apr 2022 15:49:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgsRzuNeF0ji8T2txbvxNQCEsvrc1jmNMPUjOB5wBXOxIIsCFNakxYaWM9370s0XoRRlTW X-Received: by 2002:a17:902:f544:b0:154:5ecb:eb24 with SMTP id h4-20020a170902f54400b001545ecbeb24mr5638665plf.11.1649198991542; Tue, 05 Apr 2022 15:49:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649198991; cv=none; d=google.com; s=arc-20160816; b=OLbRaf9nUrANKOAq17qIVvF4JdZGR96Fcx0+YwqkBA59iZ+XtmjIGJJN1v/c8tzsXe dnt7HpvAteJKCzNUjz5eVCYPqjF8bsBmYtgpDzYpAKnVflnH3S+zb6z6Das5At2WVuHv Ulyw93jbd9peOg0MIAVYC7kBw/Dh9rzgiSYlz49mzgElyeY8yq/3ORDahJxIrPMZd0Tt P9n56OfYIJNySnrLn6ZpGUFa11oQnjJPiF2dmZZ1Q2LtDq57fm81THXmge7J6UglQv59 lkHW3osdM9Vttm92KouxAeRVvBWj2sHvTQeTvVVPuMJ4/aXBYl9PmUBNHeJFJZ3GGgYo oPLQ== 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=1zwvUiH9/lSc9GabF9xvbbYmtJl/FxnrbasRPMGHTqo=; b=iriT+AqMdnZIqSAITvfHlMIaE8XXs4u/TEfQNdLn+nHRZxln1i/JrRbcpAR76BRn+1 VgrcyLiRyGi8BMQiuMAcoV6LEn5kuw/dZBK9oqfWJptdcHSg3xNrcGi6mA5/WpnYKVD+ x94nPI8H5v56G7+1ATVLj/o1LRLeiEOf2QSChKV4BY0UPp3v8pGzOzugdHITlgOqjJyB wkcMfLw6IM2BOf7ao5hdV+UD297M62NwOjYk1TzH/7UV7PSQz8sOECD21yWgoW0pZgh6 5vnurTUejlZ19U/Tulv7RPvUeGV0otkzdXyRI7FwAXqz9MGVykQNgP0FWC209+SJnuYV bbMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ne4ATkx8; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id n4-20020a63b444000000b003816043ef5bsi15480609pgu.336.2022.04.05.15.49.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 15:49:51 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ne4ATkx8; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 223EF7CDE8; Tue, 5 Apr 2022 15:31:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348507AbiDENFr (ORCPT + 99 others); Tue, 5 Apr 2022 09:05:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343982AbiDEJQo (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 B3E4BDF82; Tue, 5 Apr 2022 02:02:42 -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 6EAC4B81B75; Tue, 5 Apr 2022 09:02:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5059C385A0; Tue, 5 Apr 2022 09:02:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649149360; bh=3A6/wr4Ruqir6XPiFN7OjrQqY55f8efY1tUO+dql6NQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ne4ATkx8HlCUQ/RgdxzQ/ZvniXOIV0zPYnC2gdAgrrA5wLbOZVa/GzIwnJOO3e8Kf FNVKaHP3U6b4gWfFKV0vwt2Oh6U3AfawftuCxlH2l8daWboWIPooKgxL1H1IIOTtFd HDrJWjA70Dq4ddJ/Mv7aukwolqvI7Eh+30SGkATU= 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?= , Stephen Boyd , Sasha Levin Subject: [PATCH 5.16 0687/1017] clk: clps711x: Terminate clk_div_table with sentinel element Date: Tue, 5 Apr 2022 09:26:40 +0200 Message-Id: <20220405070414.669389708@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=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 8bed4ed5aa3431085d9d27afc35d684856460eda ] In order that the end of a clk_div_table can be detected, it must be terminated with a sentinel element (.div = 0). Fixes: 631c53478973d ("clk: Add CLPS711X clk driver") Signed-off-by: Jonathan Neuschäfer Link: https://lore.kernel.org/r/20220218000922.134857-5-j.neuschaefer@gmx.net Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/clk-clps711x.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/clk-clps711x.c b/drivers/clk/clk-clps711x.c index a2c6486ef170..f8417ee2961a 100644 --- a/drivers/clk/clk-clps711x.c +++ b/drivers/clk/clk-clps711x.c @@ -28,11 +28,13 @@ static const struct clk_div_table spi_div_table[] = { { .val = 1, .div = 8, }, { .val = 2, .div = 2, }, { .val = 3, .div = 1, }, + { /* sentinel */ } }; static const struct clk_div_table timer_div_table[] = { { .val = 0, .div = 256, }, { .val = 1, .div = 1, }, + { /* sentinel */ } }; struct clps711x_clk { -- 2.34.1