Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4825967ybe; Mon, 9 Sep 2019 15:29:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5SkY+CtW779TDN+jYmCcaF5HP0citEXkK9TKuR0PkLe3c+VL2ipqp/lDEL07HY6fVtRWk X-Received: by 2002:a05:6402:125a:: with SMTP id l26mr5110783edw.95.1568068185777; Mon, 09 Sep 2019 15:29:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568068185; cv=none; d=google.com; s=arc-20160816; b=Bn15wEDcYqoeyUxyqUNpDwu2P26TUmwn/q9siyN2YXmmgOCM82MGAt5ySzsuDN5QY4 xOTbV76JCLqj625ACC0e2qaAqPS7D5Y9EFTZbA+28clClI+yS5bjZH2kqXFY2A+dPbyN +3Veo2EhSPGw0Z+fLoRDLFAWfYNUyGiXGc9OEbpAXJkHwiYFL3XNb6m89Q0+OZUxS4UG cLA+JwyppSEc/geqdV5X3XoCwBZzMmDHv+VHbbJDQ6836AaXOjcpDx7paHiWOzvVZvNU mATTRdoTLrQazeRXD/Su7ufGIve7lxtFX+doQ/93Rx4ypVmKVPDdYhnjGexxzt2albee lP6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7/wPGsCwSeEQC8w+jMIVUIhhIEzjlUk5c5WeL1cI6Ak=; b=hRF7c411o2f5kKt4F08JDfKhDATVtC5akNp+wvS9oxkqNy9mPDTo2tWnDc+qS912XQ qLJ+Iab3VrY3iLTWhvy2wthcQrBp8GQrODCCYhd0QIsIdc7b1383Sd4zI/EN3N8UC82M oPjtycCJ4ecYXWLi/pa3BSA9ceAWe//6OEFsByc5sPWI1w0fcZJ1sWBKnI4LJcCJZUFv sRRCjXsJhs7WVp6OeSlVaT34+sFD1JTsMtcXDQq2J3IEF8YTLfO9i+g3DMB49vN/SxOY T4E6hlVD+BPaU6bZDc+HfgJBt9P1Xsq4o6Yzr0URj8jaev1qaGpliiZoOHYMp34Z1arX dUuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZiEFFr2w; 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 x3si9494850eda.285.2019.09.09.15.29.13; Mon, 09 Sep 2019 15:29:45 -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=ZiEFFr2w; 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 S2390394AbfIIKSN (ORCPT + 99 others); Mon, 9 Sep 2019 06:18:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:32778 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390297AbfIIKSM (ORCPT ); Mon, 9 Sep 2019 06:18:12 -0400 Received: from earth.universe (unknown [148.69.85.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 45A8F21924; Mon, 9 Sep 2019 10:18:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568024292; bh=0jzpYrQDQLNG9Dg32tb7hfka498MiOABCqXtbU9Cufg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZiEFFr2wi7KPPr/jhw/rQudOlUYSObafeuP85b44ybynxes97QfXWDi+gATuA/DvG A0HoIyCs4IIHY6VYWPewPtN50qeVJ29y7P8Hq5sj7r8nP310sVrWxDG0gnCJOMG3Oc V+uRmW/NmhE0w7YpYfva4dj5WmydyQMzoA4j1/HQ= Received: by earth.universe (Postfix, from userid 1000) id 2E8153C0CFA; Mon, 9 Sep 2019 12:18:10 +0200 (CEST) Date: Mon, 9 Sep 2019 11:18:10 +0100 From: Sebastian Reichel To: Nandor Han Cc: Srinivas Kandagatla , kbuild test robot , linux-kernel@vger.kernel.org Subject: Re: [PATCH] nvmem: core: fix nvmem_cell_write inline function Message-ID: <20190909101810.gtqouke7vyu63r7e@earth.universe> References: <20190908121038.6877-1-sre@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qss4xo2ixrxhdmym" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --qss4xo2ixrxhdmym Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Mon, Sep 09, 2019 at 12:26:06PM +0300, Nandor Han wrote: > On 9/8/19 3:10 PM, Sebastian Reichel wrote: > > From: Sebastian Reichel > >=20 > > nvmem_cell_write's buf argument uses different types based on > > the configuration of CONFIG_NVMEM. The function prototype for > > enabled NVMEM uses 'void *' type, but the static dummy function > > for disabled NVMEM uses 'const char *' instead. Fix the different > > behaviour by always expecting a 'void *' typed buf argument. > >=20 > > Fixes: 7a78a7f7695b ("power: reset: nvmem-reboot-mode: use NVMEM as reb= oot mode write interface") > > Reported-by: kbuild test robot > > Cc: Han Nandor > > Cc: Srinivas Kandagatla > > Cc: linux-kernel@vger.kernel.org > > Signed-off-by: Sebastian Reichel > > --- > > include/linux/nvmem-consumer.h | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > >=20 > > diff --git a/include/linux/nvmem-consumer.h b/include/linux/nvmem-consu= mer.h > > index 8f8be5b00060..5c17cb733224 100644 > > --- a/include/linux/nvmem-consumer.h > > +++ b/include/linux/nvmem-consumer.h > > @@ -118,7 +118,7 @@ static inline void *nvmem_cell_read(struct nvmem_ce= ll *cell, size_t *len) > > } > > static inline int nvmem_cell_write(struct nvmem_cell *cell, > > - const char *buf, size_t len) > > + void *buf, size_t len) >=20 > nitpick: alignment issue? This actually fixes the alignment issue as a side-effect. I guess I should have mentioned it in the changelog. > Review-By: Han Nandor I suppose you meant to write "Reviewed-by" instead of inventing your own tag? -- Sebastian --qss4xo2ixrxhdmym Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAl12JtgACgkQ2O7X88g7 +pq+5w//WFTsXR9hQ39fHiyVSsAdYdKNBuhCXUY94CzlZceJYrRB9YwbTP4lInFF bTgIrC3myS3qLqEcXEpXOdZZmAw/Y7FjQFDSXaAia8NLOQiBiwhVRPcWKCxk1jKS rHm2TIWPnTavtzQLI6m3xEcTpodfyYCrTVGRS12jNhQEokzuLrxEgP5xxX1d2KxT esYmPbnOyW95kzLhoHk0Wt1gq7AXDM0xc0HbKxGuyrHFfmwOBEQiIGlZwAjvrIIL ZD/EBfye7hNSAArgFz8ynehrj9vyxGPYUj7msIZYSk2u901MG7IaOVZpBYV9VBLe CDk+uN/klWJlbBFeV9IMJ4nzgX5H1Rm2iuJ/hMZVcLe8s00IsgDhDOPBfbPlTjVx IBZJMXog/ZQJxBsSycTPuT3swLRHvPQwnHjjxJYn6DkJYgY2xaBDwa/3d7t2FZvv a02mT3t+AWqylKACzEYuAN/1xCEwJAhLuJACn2YXKtj0J5kOzBxcg4Y8ViW4NEJX AFG7nqQ61hKhA0vljqUaWZDcfnNBM0szNISMqkd10YaOqBMRuUMATWsHr8cwd4L9 28ESIUYSBiapWFoPQByyq/plM25uhU3wCQ3oBqHsZE0cAoMzUE89qLMy9KFXoyvK EYaznGEjO2JeRk/dJXgGt8gJD1Wh9nm4XiNtbmCzUUwFPL0Gd+k= =5KCd -----END PGP SIGNATURE----- --qss4xo2ixrxhdmym--