Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1971186imm; Fri, 7 Sep 2018 08:53:25 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZdZkDaAArIwc2t01NR76sTRxPS6KJ4atLEPfqD5lEo+Aju+7TzE8qUPL4pMQjhGK8sIEwQ X-Received: by 2002:a17:902:694a:: with SMTP id k10-v6mr8556507plt.166.1536335605169; Fri, 07 Sep 2018 08:53:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536335605; cv=none; d=google.com; s=arc-20160816; b=K9H2srla5Sw+nGKSLborBtqnrX6NHB67+bHQysZy5nheB1SMWbf1Bukp5c8E0oXLDF HFplWvs5Vt53jZwLbX8W3bqRrfAYQMx6/CR6QUsWDNBib7z9BiUab6KP6GK8+E/S0efU gA4WdxmpRKfD1SVgK2j2386RLEWAiMfB6OE9C0xTvgqv3YzZeySjHcardNPWqJ8n88zj e9tddxRU/0B4zjDBchi4NbyZ/Ixde0m8soRyW/ka7iKwkqJgpXefuNdRVV3jnY2zPgyY JrXSkLpRUuvaEiDEA+Bb7/uA6YX60GviVNOA8rXuKireSU6xgY4whSMO9PkkcVlJPLZi lBpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=atqB8qOhh8uEsMq6HeN1r3dmjeQqWH5gEcpluyDjcXg=; b=zJQ5r5BcC8BazDiJog3hEgVnRFvQmM6/1iyxMgFn/KhFztfuPEH5wWq1uLHA427P2i EBiRmC5xe1Kg/mxLGhQctMVjFSFA6b4qopTwBiUAdFuT/BDzYK2y2JRaTf7zFwXwcEPL W/H1Sl4TVmmOBbvG/8+u/K5g9I3VZOy7CccyjLktmYDweEEtzS0GwKOh3yRFkHNz3X23 B0jo+ri1bSFiZV14e6r5VjY6Ax7sDkapaIKHOBWCRCy9fMaVye24aNLmDz+Xv+4pSYuL a1smwDPuxpc2qUe8Q9a7Ok2EY8gCGqEY4CbCmd4VZOXYGz/ZHxL+nvasiYNKlbT8/wts hwcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DsAWOKfc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j124-v6si8808590pfg.157.2018.09.07.08.53.09; Fri, 07 Sep 2018 08:53:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DsAWOKfc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728136AbeIGTtu (ORCPT + 99 others); Fri, 7 Sep 2018 15:49:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:35248 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727705AbeIGTtu (ORCPT ); Fri, 7 Sep 2018 15:49:50 -0400 Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1CD982086B; Fri, 7 Sep 2018 15:08:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1536332910; bh=jMAdw4vIHnCmh6u4I1FZhYNHROFddJnv1Wr/nF14d/Q=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=DsAWOKfcXRJ+iMRk5esUUBdms9zr1tyPUrbbnznIMfCLR/wl+q1A4qn/26ViT+rqq op74sW49Hkk0GgYUn6FfrqJZkjUrC3axglcmTkcDtCNGkSf1S097holcDj3g7U51Wb gLrjkx7+rrM+44HE82qrxT+ynqV9+TIo2B2PTwAU= Received: by mail-qk1-f179.google.com with SMTP id z78-v6so9878681qka.0; Fri, 07 Sep 2018 08:08:30 -0700 (PDT) X-Gm-Message-State: APzg51CTx5FqYxGfvy8pK5xPJzYHL1fqIvCV7euGX7xmVOKfDQ5bSQ+2 ExXL9IRihk7dgMI/g0VZrhVp0szsosZO574Blw== X-Received: by 2002:a37:4453:: with SMTP id r80-v6mr6233077qka.79.1536332909323; Fri, 07 Sep 2018 08:08:29 -0700 (PDT) MIME-Version: 1.0 References: <20180828015252.28511-1-robh@kernel.org> <20180828015252.28511-12-robh@kernel.org> In-Reply-To: <20180828015252.28511-12-robh@kernel.org> From: Rob Herring Date: Fri, 7 Sep 2018 10:08:18 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] clk: Convert to using %pOFn instead of device_node.name To: "linux-kernel@vger.kernel.org" Cc: Eugeniy Paltsev , Michael Turquette , Stephen Boyd , linux-clk , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "open list:MEDIA DRIVERS FOR RENESAS - FCP" , linux-omap Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 27, 2018 at 8:53 PM Rob Herring wrote: > > In preparation to remove the node name pointer from struct device_node, > convert printf users to use the %pOFn format specifier. > @@ -492,8 +492,7 @@ static void __init _ti_omap4_clkctrl_setup(struct device_node *node) > > provider->base = of_iomap(node, 0); > > - provider->clkdm_name = kmalloc(strlen(node->parent->name) + 3, > - GFP_KERNEL); > + provider->clkdm_name = kasprintf(GFP_KERNEL, "%pOFnxxx", node->parent); Turns out xxx was a bad choice as the %p handler eats all alphanumeric characters. Looks like this has already been applied, so I will send a fix. Rob