Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3767142rwb; Fri, 9 Dec 2022 20:44:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf7DXW6oXige0lIMG91upX2Xol3J1OOUdSHjFE0+xW11h1buFKzxFkB8dVCMEhACzDOxw7A6 X-Received: by 2002:a17:907:7621:b0:78d:f455:30ff with SMTP id jy1-20020a170907762100b0078df45530ffmr7299345ejc.39.1670647447301; Fri, 09 Dec 2022 20:44:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670647447; cv=none; d=google.com; s=arc-20160816; b=ukjFhWg6pQJmrflI3jk6VBfhKq/ivMUA8uF+pbPUr6LLzDvOlAOAX9hLwfwbnc0A8S Bj1o2AmlLuxW3FJMBh7IqXc5F/uukVP2BmZCAM127FB2Bn3S6VNz5mRyOpoq8t788J0C GO37U2WnUgcg2m4QdZl/QnVa6qgIEG8d3ZE8IR9cluOP6dt4BtlHnvXT0p4+g+afZ9CC JPEgL1pza2D+dy3KF4oly56jrG3pqm8Cyx6pxC6uOIeQ96kJ7ndQlh+Xr6qgn1yeTeTK /cr27BW4dsswoKWoYSf0cDt4w4PnPPFYgCvFS7VMUisSOHIedV3syY1g4rzWDDneu8qJ vtFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Ulh9++McEWHTOB6P5Ka9efyv+3TP8QPl365askkEGq0=; b=CUYcsDJGfdAGzVG57F5H3o8gUGMj8XNzoNCJ6M04I9nfb1cWvbGQNMmGBIbtthLjFu rJzYDd93RyuQKolh23iQe/Wmc5QqljJxnE/jzEfxJ5Cms7d1x7lLEE2Ao40OFg/scyoV aq3XPAxp2hEEloBh6YAMOUx38nePeHBWSrnsl0fq1Ck54odJtGEvrfrbYKw3Z/zGNn8f 9/s6rAMCZfBwqoeBgMsjQrZ0k524r2QMaU6YO3LzG9/J2kj2zMwbu88z90KS8QDcXeKH r6NzsPEPY0iGDxT5fC4t8spRY46zUg2LyseDdby8Ul5nB0RZ48UAQaohC67FFZ/t5vNY sYpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@thingy.jp header.s=google header.b=mvrQxKId; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb39-20020a1709071ca700b007708400bee5si1514023ejc.1003.2022.12.09.20.43.36; Fri, 09 Dec 2022 20:44:07 -0800 (PST) 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=@thingy.jp header.s=google header.b=mvrQxKId; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229816AbiLJEOL (ORCPT + 76 others); Fri, 9 Dec 2022 23:14:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229563AbiLJEN7 (ORCPT ); Fri, 9 Dec 2022 23:13:59 -0500 Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 212632FBFC for ; Fri, 9 Dec 2022 20:13:57 -0800 (PST) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-3e78d07ab4fso76697817b3.9 for ; Fri, 09 Dec 2022 20:13:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thingy.jp; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Ulh9++McEWHTOB6P5Ka9efyv+3TP8QPl365askkEGq0=; b=mvrQxKIdQOElepQpJg4WS4ziBVtlbOrqfbO4vOBulo9R1mBEsanZDv0fE32SVgrfkS 2rE22wEBnTwI/hCNIj9UF3eIEZ648J4344ps9vRQYcO6Nv01JmEibNn1PJ8gRH4ZBYYe rVX4sVNuPaqB4S9Pb+DDF1aahut0DIf9+pcbA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ulh9++McEWHTOB6P5Ka9efyv+3TP8QPl365askkEGq0=; b=srpCItiK+mjfhd2JXtOBAijxFeLXzQk+akJVmovMz0DxzphUOCiYyrKtLv4ffueWAF OT1rrE19fc8r0lq+ZrcMCSnvZnKIk/M3AIZ0GqFvQfQtBW6vAgaGn3j5ATtatrFcSdN3 l/gglyVrhJRq0wonlvSNqcAwbodH8vjftWRihPasSq6zD04dFPkMVW9kjpLhkaTIzWRn M5VkgJxx4ji2FSP54niyvI6Z1weOEKw4Zpf/v5INhkAe9D0s4EX3+3qtEDYSyJMJg9Ej JkcY7uRoeeRqkvubMU4unLIOAXFTxw8Bu7ehfo0udZq7hF8vM9zoLDptdOtBhxAF/ViB z0nA== X-Gm-Message-State: ANoB5pmkmlgexeryvGx5yz5eapRTqyyn8Lw9thKZie1cuA4LG9ZBZiO9 OkGIQbwr5VqPg15Eeacrpc/sGJnKh9TA677LTS/C5w== X-Received: by 2002:a0d:d988:0:b0:3eb:447b:6840 with SMTP id b130-20020a0dd988000000b003eb447b6840mr17744763ywe.307.1670645636141; Fri, 09 Dec 2022 20:13:56 -0800 (PST) MIME-Version: 1.0 References: <20221202184525.gonna.423-kees@kernel.org> In-Reply-To: <20221202184525.gonna.423-kees@kernel.org> From: Daniel Palmer Date: Sat, 10 Dec 2022 13:13:45 +0900 Message-ID: Subject: Re: [PATCH v2] rtc: msc313: Fix function prototype mismatch in msc313_rtc_probe() To: Kees Cook Cc: Christophe JAILLET , kernel test robot , Romain Perier , Alessandro Zummo , Alexandre Belloni , linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, Nathan Chancellor , Nick Desaulniers , Tom Rix , linux-kernel@vger.kernel.org, llvm@lists.linux.dev, linux-hardening@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Hi Kees, On Sat, 3 Dec 2022 at 03:45, Kees Cook wrote: > msc313_rtc_probe() was passing clk_disable_unprepare() directly, which > did not have matching prototypes for devm_add_action_or_reset()'s > callback argument. Refactor to use devm_clk_get_enabled() instead. I didn't know devm_clk_get_enabled() existed. Learned something new. :) Really nice that it fixes an issue and gets rid of a bunch of lines. Anyhow, the change looks good to me, I build, boot and "does RTC still work?" tested this so: Reviewed-by: Daniel Palmer Tested-by: Daniel Palmer Cheers, Daniel