Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2222525ybi; Mon, 17 Jun 2019 00:42:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwt2Ch3K28zCekCmeJ2FO51vy69TxBQ5x7w8tralldA28OHznemMByD7/L8On0JHNbB9fSb X-Received: by 2002:a17:902:aa0a:: with SMTP id be10mr100228384plb.27.1560757371331; Mon, 17 Jun 2019 00:42:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560757371; cv=none; d=google.com; s=arc-20160816; b=qYnV5OEsscwuSod4P/ttVMgnFYNtOCUbd0/tvOx0YIWiD+My0CeLpRys1qNF/yQXnP G0bBmK8FIxK26vOSWcxQyYHdWyEMv+6m3a6O/xjMzCdMqNsKiUpkhAlLedxp31h8whFf QaqD9+j9bSgelBVcIzi20iRCSYE6YupKaOArx88zWQr8Rxl0FYAbfxVsTSVQJOzRtVz/ 4hlWtNNHHNYp2UddohJI5YsC9t9FcMi+riAgJ6u8c6DjTIY60F+7+ppHOa7j47IofZGR i3VhfrC0s8EllNH1DQlQuIxQBWe/oswOsfMtq+iRGyTYmoVkLEITP+0JWt+vBcNZgRM3 eELQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from; bh=5x3d/ryfP7t098jC9TOnatl0YHSS/ReJ+G+N63Njhio=; b=g1XVaPHLupoRvY8uZicCToSSPklR1QrRXkAd22+PN6OidtnN3QRSAdntKYBsMPfuwQ c5BPe/IbgnGph4YMpq0RVTvKl7qIqUABTaMDRjy5TNYEI3NBfxjsEMrFgXuBS6jvowJ1 MB3N6I4GI2c0LLpkFSNP7cQTJwFOK4v59vyANLXlCDit+bR4cuWv/4nzqkxk6vcMR/Lv j8ALsXwHP820zFkiByB1wMI5D/+wJu4Fknq8ccEhi6FH6fjIz++Pfe87D6N9sAF6IvNN h0om5QDp4awiyUZk3zpy18AYqonQxtGwyCY6huM37NmkmQZ8e/s5AfkVnpK/EsT6T5hV ON8w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g2si9546121plg.336.2019.06.17.00.42.36; Mon, 17 Jun 2019 00:42:51 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727140AbfFQHhH (ORCPT + 99 others); Mon, 17 Jun 2019 03:37:07 -0400 Received: from mga14.intel.com ([192.55.52.115]:55174 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726189AbfFQHhG (ORCPT ); Mon, 17 Jun 2019 03:37:06 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Jun 2019 00:37:06 -0700 X-ExtLoop1: 1 Received: from jnikula-mobl3.fi.intel.com (HELO localhost) ([10.237.66.150]) by fmsmga001.fm.intel.com with ESMTP; 17 Jun 2019 00:36:57 -0700 From: Jani Nikula To: Alastair D'Silva , alastair@d-silva.org Cc: Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter , Dan Carpenter , Karsten Keil , Jassi Brar , Tom Lendacky , "David S. Miller" , Jose Abreu , Kalle Valo , Stanislaw Gruszka , Benson Leung , Enric Balletbo i Serra , "James E.J. Bottomley" , "Martin K. Petersen" , Greg Kroah-Hartman , Alexander Viro , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , David Laight , Andrew Morton , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, linux-scsi@vger.kernel.org, linux-fbdev@vger.kernel.org, devel@driverdev.osuosl.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v3 4/7] lib/hexdump.c: Replace ascii bool in hex_dump_to_buffer with flags In-Reply-To: <20190617020430.8708-5-alastair@au1.ibm.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20190617020430.8708-1-alastair@au1.ibm.com> <20190617020430.8708-5-alastair@au1.ibm.com> Date: Mon, 17 Jun 2019 10:39:53 +0300 Message-ID: <87imt4vewm.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 17 Jun 2019, "Alastair D'Silva" wrote: > From: Alastair D'Silva > > In order to support additional features in hex_dump_to_buffer, replace > the ascii bool parameter with flags. > > Signed-off-by: Alastair D'Silva > --- > drivers/gpu/drm/i915/intel_engine_cs.c | 2 +- > drivers/isdn/hardware/mISDN/mISDNisar.c | 6 ++++-- > drivers/mailbox/mailbox-test.c | 2 +- > drivers/net/ethernet/amd/xgbe/xgbe-drv.c | 2 +- > drivers/net/ethernet/synopsys/dwc-xlgmac-common.c | 2 +- > drivers/net/wireless/ath/ath10k/debug.c | 3 ++- > drivers/net/wireless/intel/iwlegacy/3945-mac.c | 2 +- > drivers/platform/chrome/wilco_ec/debugfs.c | 2 +- > drivers/scsi/scsi_logging.c | 8 +++----- > drivers/staging/fbtft/fbtft-core.c | 2 +- > fs/seq_file.c | 3 ++- > include/linux/printk.h | 8 ++++---- > lib/hexdump.c | 15 ++++++++------- > lib/test_hexdump.c | 5 +++-- > 14 files changed, 33 insertions(+), 29 deletions(-) > > diff --git a/drivers/gpu/drm/i915/intel_engine_cs.c b/drivers/gpu/drm/i915/intel_engine_cs.c > index eea9bec04f1b..5df5fffdb848 100644 > --- a/drivers/gpu/drm/i915/intel_engine_cs.c > +++ b/drivers/gpu/drm/i915/intel_engine_cs.c > @@ -1340,7 +1340,7 @@ static void hexdump(struct drm_printer *m, const void *buf, size_t len) > WARN_ON_ONCE(hex_dump_to_buffer(buf + pos, len - pos, > rowsize, sizeof(u32), > line, sizeof(line), > - false) >= sizeof(line)); > + 0) >= sizeof(line)); > drm_printf(m, "[%04zx] %s\n", pos, line); > > prev = buf + pos; On i915, Acked-by: Jani Nikula -- Jani Nikula, Intel Open Source Graphics Center