Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp13289924rwl; Wed, 4 Jan 2023 06:15:19 -0800 (PST) X-Google-Smtp-Source: AMrXdXsGyNyZ4u2dvFdL/SppQrcCaU7k/wVPw713UWsMfI+tpWK0zDgov9SMmiNH5RWhxxzUq1MN X-Received: by 2002:a17:907:b608:b0:7c1:4623:400e with SMTP id vl8-20020a170907b60800b007c14623400emr45821363ejc.16.1672841719410; Wed, 04 Jan 2023 06:15:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672841719; cv=none; d=google.com; s=arc-20160816; b=AgR71mohAcFcWYmz8oan/wGywC0MhOWBiBmNrQBjvSHZPITTmll4AdpnYYpDWAUYZg Yeu2WndIkCGbvqWPYN9B9kZeCrn1iKS/Zodtcaiyl4PoIoPQRpDNNs2KLLcEKqaH3ItR KP+8EuWJpMHygIDBHvAgL3lXYUrPeQcGZmERl5xTku2ctPH6JXwyRDaZ8XDd5F56giKe j38cwVstPfFpVLnksu/+uTTZgZKRh4arwt2xrf/G0blIQfxy5021oWTRo0vw3zq7S+kB zYwobCXynRQTobmzhANcUPeFqOTHBgXKXv59tnwnCGpWTRft43aqIyKiK2PKQ2DPFi79 Cm9g== 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; bh=3apLs5SUEYCS8chIsKhmtTxwRF+eOByUathcApBcwhU=; b=Ftr8y1x76ePSHvp6DIS3HkR8/3CJRdAnYX6oExLN1yABZpXeAkkzUv+QMZj40+ER1e 8zWS/T5nGDBu28Or3F6lthnfAEP47ITyvge+6Sh9Ska+EQfj31LQBCxinEbfOcop654B 8Fb7qf8jydqA3CT+UdYBdQ+mkMqGnXhRyte7AfC/8h90tuZAkhqsYY54tSqxAovsu3I6 V+QX4Jggy7SgwR15c5dR/B2JT1wR3QZbr6cWkyNkdx1j0EfZi7J9fSVobnVLAKh2to+U YWB9IRozyWofSJ8Lxt//KLixxgzoK/JRq58SK1KxCIRx/1/QgqboNL36BMBsXwmia5Bl pYIg== ARC-Authentication-Results: i=1; mx.google.com; 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 sg35-20020a170907a42300b007c110cdf37bsi30707060ejc.529.2023.01.04.06.15.05; Wed, 04 Jan 2023 06:15:19 -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; 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 S239464AbjADNcR (ORCPT + 57 others); Wed, 4 Jan 2023 08:32:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239445AbjADNbV (ORCPT ); Wed, 4 Jan 2023 08:31:21 -0500 Received: from mail-qt1-f169.google.com (mail-qt1-f169.google.com [209.85.160.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63A6E3D9DA; Wed, 4 Jan 2023 05:27:06 -0800 (PST) Received: by mail-qt1-f169.google.com with SMTP id c7so27127172qtw.8; Wed, 04 Jan 2023 05:27:06 -0800 (PST) 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=3apLs5SUEYCS8chIsKhmtTxwRF+eOByUathcApBcwhU=; b=tREeZoatX4hC/sEGfSkC1T1RW1lXCIzjWw+rj9cIsb9iu8R8hZTL2c+vcMs+mEgx+r 2HASgJVSloNieaOSRBx6DCScq/wFT7yT0giPVLl95oOgwNzK2xQRWm22i/VWaJY1Fogl Z7AKmlIq2i8zjj6Q/CW8vbB8ztiG9V+w0ANKO0bVbGVcwdJCoSUcWJOg2+DaQWAo0kd6 1SKd6TMi2W7pL2YzdHFr3HGSHrocdGEqnKSFpFP0MQ7bsqXX+XPf7NKAUfVdQD/LAVYF 7zKugAyV0elP7apZoW9LsUjzzFYj9T1kaFkV5PIl+aqC1F2lCbSmLDoAVtY5BKFdK0Pe ubIA== X-Gm-Message-State: AFqh2kobJKjg+4uKtGowr/HMaFm4VeFeVzVF8+JVpcSPGwG+bM8ATn+Q t50nxYqVvrRtlq73k0kpC/8fl2i2Lu4LKw== X-Received: by 2002:ac8:7457:0:b0:3a8:2122:7c28 with SMTP id h23-20020ac87457000000b003a821227c28mr69960797qtr.47.1672838825357; Wed, 04 Jan 2023 05:27:05 -0800 (PST) Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com. [209.85.128.175]) by smtp.gmail.com with ESMTPSA id g14-20020ac87d0e000000b003a7eceb8cbasm20494228qtb.90.2023.01.04.05.27.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Jan 2023 05:27:05 -0800 (PST) Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-43ea87d0797so476160087b3.5; Wed, 04 Jan 2023 05:27:04 -0800 (PST) X-Received: by 2002:a81:1b0a:0:b0:37e:6806:a5f9 with SMTP id b10-20020a811b0a000000b0037e6806a5f9mr5542429ywb.47.1672838824691; Wed, 04 Jan 2023 05:27:04 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Geert Uytterhoeven Date: Wed, 4 Jan 2023 14:26:53 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] clk: microchip: mpfs-ccc: Use devm_kasprintf() for allocating formatted strings To: Conor Dooley Cc: Michael Turquette , Stephen Boyd , Claudiu Beznea , Conor Dooley , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 Conor, On Tue, Jan 3, 2023 at 6:32 PM Conor Dooley wrote: > On Tue, Jan 03, 2023 at 05:45:30PM +0100, Geert Uytterhoeven wrote: > > In various places, string buffers of a fixed size are allocated, and > > filled using snprintf() with the same fixed size, which is error-prone. > > > > Replace this by calling devm_kasprintf() instead, which always uses the > > appropriate size. > > > > While at it, remove an unneeded intermediate variable, which allows us > > to drop a cast as a bonus. > > > > Signed-off-by: Geert Uytterhoeven > > Reviewed-by: Conor Dooley > Tested-by: Conor Dooley Thanks! > I half wonder if this should actually have a fixes tag too. Since it > used what came after the @ in $full_name, it'd be possible to create > (an incorrect) DTS that would lead to a clash between pll names & > therefore probe would fail. > The tag would be: > Fixes: d39fb172760e ("clk: microchip: add PolarFire SoC fabric clock support") But I don't change any of that in my patch? /me confused. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds