From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7AE7CC43441 for ; Fri, 12 Oct 2018 10:39:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 47D622087D for ; Fri, 12 Oct 2018 10:39:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 47D622087D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727753AbeJLSKu (ORCPT ); Fri, 12 Oct 2018 14:10:50 -0400 Received: from mx2.suse.de ([195.135.220.15]:49792 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726665AbeJLSKu (ORCPT ); Fri, 12 Oct 2018 14:10:50 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 35A33AD66; Fri, 12 Oct 2018 10:39:02 +0000 (UTC) Date: Fri, 12 Oct 2018 12:39:01 +0200 From: Petr Mladek To: Geert Uytterhoeven Cc: Andy Shevchenko , "Tobin C . Harding" , Andrew Morton , Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/3] lib/vsprintf: Prepare for more general use of ptr_to_id() Message-ID: <20181012103901.pvyxvxv7v57zo5il@pathway.suse.cz> References: <20181011084249.4520-1-geert+renesas@glider.be> <20181011084249.4520-2-geert+renesas@glider.be> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181011084249.4520-2-geert+renesas@glider.be> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 2018-10-11 10:42:47, Geert Uytterhoeven wrote: > - Make the ptr argument const, to avoid adding casts in future > callers, > - Move the function and its dependencies up, so it can be called from > special pointer type formatting routines. > > Signed-off-by: Geert Uytterhoeven I have pushed the changes into printk.git, branch for-4.20-vsprintf-hash-fixes. Note that I have split it into two separate commits. The first one adds the const modifier. The second commit does a pure move of the code without any "hidden" changes. I forgot to ask for this when reviewing v1. You might see the result at https://git.kernel.org/pub/scm/linux/kernel/git/pmladek/printk.git/log/?h=for-4.20-vsprintf-hash-fixes Best Regards, Petr