Received: by 2002:a05:7412:8d23:b0:f7:29d7:fb05 with SMTP id bj35csp497402rdb; Sat, 16 Dec 2023 19:09:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IEAMLS5lbxR7z738FUHAkdlYzv7ZRXE/JxACJwcO3eDC6dBYpF9oVVyGTRwOJrY6MO+X6tC X-Received: by 2002:a17:902:da85:b0:1d3:673f:d28d with SMTP id j5-20020a170902da8500b001d3673fd28dmr7007867plx.0.1702782572808; Sat, 16 Dec 2023 19:09:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702782572; cv=none; d=google.com; s=arc-20160816; b=qsINmEj/sSl2Nl2s4mGjI8d7igDBdvDuXHrKLorc+szh75M01wgF7SfdFffO0pVXYP IKQIpeYTOHdqjFrMta7jm9LwWp49jRny/HfV3HG8cSw1LNx2Wqo1LQ6DX4npYv8r3kPU F9+dpxB0DwDXzWu3yqMRQoh4W0XI2hjiUSj3Mkc5ZhpJa/9/57X18JSr6/XBsmnE9gVs ELAFr1r6jgl33ZUVyaWOJ/QY+KNKTZkTYDCTIPYv6GfT/Uo+qyQAP5io95+gFdTIA5X0 fpug2Q7a5Vw0YTFIMbO8ra8yhHOuJqbuZYdc0CDazxTo6qCBkgMjLGohezuyPw+HLM+L Rfvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=1EYrUdsjmxHgO0jc3Qc76TYV2jlq9cGuy8R/Rh9fQFg=; fh=cHsY80w8aJKYuFgd/aqKe/NEV3qDdhuWags4PzrE5m8=; b=rGGO7BHrn7wwZXlkO7CKilfLqPuZHmmFSEWAoH7P0YTe6iT7DdIPYuRcYKkJZ3jtmP YDmfSbXXMoMFgS20zeoazkVzYmyuFECAcgp3Za3Juqxdqbda/H751cQ865WwUGKxuqzI rg+dt9gjfBZFUrg9M8xh0nCrzq1LtBv55qpnUZ5zjjaGUPcqvhprXNdafcaj86rjjueI 1wXwbuoyFVhLL1KiGQftuUQZLZMcRfBPIkBahxuhLFHVjHOM1xlZUecqxx58hskFg9pW uhhc26jc63vrjP+C5U98B+i4pgesmXRNV6srFgT/8VSSEfDMPPKbmUBumLbH2jMXDesJ SW/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-2443-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2443-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ix14-20020a170902f80e00b001d39f3bb359si1523547plb.282.2023.12.16.19.09.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 19:09:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2443-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-2443-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2443-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C19E6283A46 for ; Sun, 17 Dec 2023 03:09:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8948B139B; Sun, 17 Dec 2023 03:08:55 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C05911FA1; Sun, 17 Dec 2023 03:08:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f54.google.com with SMTP id 98e67ed59e1d1-28aea039fb4so2267537a91.1; Sat, 16 Dec 2023 19:08:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702782533; x=1703387333; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=1EYrUdsjmxHgO0jc3Qc76TYV2jlq9cGuy8R/Rh9fQFg=; b=OpCX7+DvelKyvrQtF85g2G59SfM7UTXW5KrU4ixF109mi7Qs/jX3vg3QPkCEXMVgr5 +gEcM3UNgQe+BmM5KfCrSqqmamtGhCYNMffjBtWX2qKa7pTnlbS42GaKKyPfHxNKyPBv y1i0j3iZc/+T6HNM+Gog5xNflSugPO1TkP+HJBQGl3fd5rEX24qnePI7TgtjV8SvYLgk TR7asVw2nRpvirhNBhY+Ya7VEzN4dm64oY8yQfzwFneks8yhUruo4HOGxL4q57P6wafA f0mKhm4goa6aHQrjRnIBEk11VssE2FhRiGT3nUtzMtqPl2own6CVS2OEkbv1hLtl240n ci3g== X-Gm-Message-State: AOJu0YxyJbO37rDagwAFYEqdIlMwJlrDnK0KGRDCK7AQJTVT7wcwXi5D Uvg+EqApAy75/yq9IwdzXUA= X-Received: by 2002:a17:90a:9318:b0:28b:70b:1939 with SMTP id p24-20020a17090a931800b0028b070b1939mr6900001pjo.6.1702782532941; Sat, 16 Dec 2023 19:08:52 -0800 (PST) Received: from localhost (fpd11144dd.ap.nuro.jp. [209.17.68.221]) by smtp.gmail.com with ESMTPSA id l2-20020a17090a598200b0028ad7a2867asm8158604pji.17.2023.12.16.19.08.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 19:08:52 -0800 (PST) Date: Sun, 17 Dec 2023 12:08:50 +0900 From: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= To: Christophe JAILLET Cc: Xiaowei Song , Binghui Wang , Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH v2] PCI: kirin: Use devm_kasprintf() Message-ID: <20231217030850.GA1150418@rocinante> References: <1bad6879083a7d836c8a47418a0afa22485e8f69.1700294127.git.christophe.jaillet@wanadoo.fr> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1bad6879083a7d836c8a47418a0afa22485e8f69.1700294127.git.christophe.jaillet@wanadoo.fr> Hello, > Use devm_kasprintf() instead of hand writing it. > This saves the need of an intermediate buffer. > > There was also no reason to use the _const() version of devm_kstrdup(). > The string was known be not constant. Applied to controller/kirin, thank you! [1/1] PCI: kirin: Use devm_kasprintf() to dynamically allocate clock names https://git.kernel.org/pci/pci/c/9f5077ef8f81 Krzysztof