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=-0.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 C51ADC433E0 for ; Mon, 18 Jan 2021 17:13:17 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6F44622C9E for ; Mon, 18 Jan 2021 17:13:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6F44622C9E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 11A418D001F; Mon, 18 Jan 2021 12:13:17 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 0CA978D0017; Mon, 18 Jan 2021 12:13:17 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id ED3DB8D001F; Mon, 18 Jan 2021 12:13:16 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0114.hostedemail.com [216.40.44.114]) by kanga.kvack.org (Postfix) with ESMTP id D30F28D0017 for ; Mon, 18 Jan 2021 12:13:16 -0500 (EST) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 81CFE8249980 for ; Mon, 18 Jan 2021 17:13:16 +0000 (UTC) X-FDA: 77719541592.20.field62_4414a842754a Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin20.hostedemail.com (Postfix) with ESMTP id 5D8B6180C07AB for ; Mon, 18 Jan 2021 17:13:16 +0000 (UTC) X-HE-Tag: field62_4414a842754a X-Filterd-Recvd-Size: 4062 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by imf47.hostedemail.com (Postfix) with ESMTP for ; Mon, 18 Jan 2021 17:13:14 +0000 (UTC) IronPort-SDR: B5DD5mWbt9flkJAXWJ8R19IEc0IyzxGy/Olq38EC35JTGVhOA1eJ/B3ZwanJuj8LWckJDExPaJ KT4diOPCwk3g== X-IronPort-AV: E=McAfee;i="6000,8403,9868"; a="242898275" X-IronPort-AV: E=Sophos;i="5.79,356,1602572400"; d="scan'208";a="242898275" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2021 09:13:12 -0800 IronPort-SDR: LzA/uh7JspkW3LdbsSeABYObh+4WRAiQX2209NaAyRjhwUCi4zb+QwtkGd47mDVIzHIo/KmNdU VK3n3lxAiA1Q== X-IronPort-AV: E=Sophos;i="5.79,356,1602572400"; d="scan'208";a="402103087" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2021 09:13:09 -0800 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1l1Y6V-002OAi-1j; Mon, 18 Jan 2021 19:14:11 +0200 Date: Mon, 18 Jan 2021 19:14:11 +0200 From: Andy Shevchenko To: Timur Tabi Cc: Andrew Morton , Linux Kernel Mailing List , Linus Torvalds , Sergey Senozhatsky , Petr Mladek , roman.fietze@magna.com, Kees Cook , Steven Rostedt , John Ogness , linux-mm , Akinobu Mita , Alexander Viro , Vaibhav Jain , Dan Williams , Linux FS Devel Subject: Re: [PATCH 1/2] [v2] lib/hexdump: introduce DUMP_PREFIX_UNHASHED for unhashed addresses Message-ID: <20210118171411.GG4077@smile.fi.intel.com> References: <20210116220950.47078-1-timur@kernel.org> <20210116220950.47078-2-timur@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Mon, Jan 18, 2021 at 09:57:55AM -0600, Timur Tabi wrote: > On 1/18/21 4:03 AM, Andy Shevchenko wrote: > > On Sun, Jan 17, 2021 at 12:12 AM Timur Tabi wrote: ... > > Any user of this? (For the record, I don't see any other mail except this one) > It's patch #2 of this set. I haven't got that one. > They were all sent together. Apparently not to me. > http://lkml.iu.edu/hypermail/linux/kernel/2101.2/00245.html > > Let me know what you think. Makes sense. Hint: use lore.kernel.org references as they are much better in terms of provided features and patch representation. ... > > > DUMP_PREFIX_NONE, > > > DUMP_PREFIX_ADDRESS, > > > - DUMP_PREFIX_OFFSET > > > + DUMP_PREFIX_OFFSET, > > > + DUMP_PREFIX_UNHASHED, > > > > Since it's an address, I would like to group them together, i.e. put > > after DUMP_PREFIX_ADDRESS. > > I didn't want to change the numbering of any existing enums, just in case > there are users that accidentally hard-code the values. I'm trying to make > this patch as unobtrusive as possible. But isn't it good to expose those issues (and fix them)? ... > > Perhaps even add _ADDRESS to DUMP_PREFIX_UNHASHED, but this maybe too > long. > > I think DUMP_PREFIX_ADDRESS_UNHASHED is too long. What about introducing new two like these: DUMP_PREFIX_OFFSET, DUMP_PREFIX_ADDRESS, DUMP_PREFIX_ADDR_UNHASHED, DUMP_PREFIX_ADDR_HASHED, and allow people step-by-step move to them? -- With Best Regards, Andy Shevchenko