Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp567024ybl; Fri, 10 Jan 2020 03:14:41 -0800 (PST) X-Google-Smtp-Source: APXvYqyY0rouXDPkWHjZb+OhstPRvsyqQ73pQMREBxsgMmxuGvH7M/TxHqgrQO/HPJoMz+lpB7/y X-Received: by 2002:a05:6830:4ca:: with SMTP id s10mr2151957otd.268.1578654881727; Fri, 10 Jan 2020 03:14:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578654881; cv=none; d=google.com; s=arc-20160816; b=iT+O9op+I0c0DadYojKT6y20DMrp8JV1g7xvUaymqqdhKh0Hgbgjiun+cd5tJcHmUf VeRLCMX0aFASfimd+TtGbyLGvMpUdUQEC/xorWz/opCs6hTdAwR12//riB1YJQ4PC/UA RoVafV8TE0tE1+DHQX5sBleJp68eBbQxKKJtBAePMcTHdJcXzF3N7LQUZ7U9inb1cv2w nR05FTx6hHdkeA/b5X8jqwiGFu5IlzAYlyAwjVljZ1EfS26k8iQzb4l6BhgjWa3GcoPP DtogWxSyqjKw5MhX59gGPJhyt45+EDvlVGCFB5QEDgHjHbjI124nsCx9ThHqFEeKVvaM LNqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=CiGz35L0V9Auq+B4EaNe1Z4ZWRbPZysYPkdJ0WZ7was=; b=eJWrmY5+9BoEak/ly2WEB1bz1Jes2MRvbqXYG0z71vzbxtnZapNhXeS9BkBHm6bjGD m/UUyF0wF7j//iQokqc82gF5qAINrgwmTEZ7sA5Anfoh3vu2sbAPWJGtdn4BDS/doguh qvYzW7WCaaP0P7ltIPcoY3S0hYAUTxo3aMvyMasMEBczMA3qyB2ySCwm/H5Vg9+ocWPY O39gmKEdvwXn87t2v7Xtfu1UU2REN4WGvT5tjpExMOyFQUmeaTihQxLAJNWZNRni3EfZ uZOMHzTj4bLpVjXsPiz/rzlW9hHcjWUv3bnp0UFxe77a96QEL14i6nEIKoZ7SsuzINXA NjbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=dsekrWCk; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v19si1324772otf.81.2020.01.10.03.14.28; Fri, 10 Jan 2020 03:14:41 -0800 (PST) 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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=dsekrWCk; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727758AbgAJLNU (ORCPT + 99 others); Fri, 10 Jan 2020 06:13:20 -0500 Received: from mail-qv1-f66.google.com ([209.85.219.66]:34792 "EHLO mail-qv1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727733AbgAJLNU (ORCPT ); Fri, 10 Jan 2020 06:13:20 -0500 Received: by mail-qv1-f66.google.com with SMTP id o18so554510qvf.1 for ; Fri, 10 Jan 2020 03:13:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=CiGz35L0V9Auq+B4EaNe1Z4ZWRbPZysYPkdJ0WZ7was=; b=dsekrWCkonGEpwQszzLZLwPzaaGTCOnxRZf8Ql1fxCu/YNGOhchf4gSlgHLnaoZgdn 4HJNQum2sOEc0fsiVBZDuWZwsiYzpDTx2Ic5suD+WOx5/OTHtYoihzC5EtG11HuA/gty hNAKSJsmD2sfg+XQvt+oNwUFhexMWviizz5Q3scJoAggYOpw3AKZNfOBPto5+KC5k+v9 +iQW5duiEpXFd5MCWFCrPm6VkM8Mgc8GscWzzzWshLcrBmgM5bUrq2dT2nNAbBa0e3mF CsLnWo0BQo4SZrZC6cVZs6L/jbY03DB0+ifE3AWElGdbRFA+J6sxor4URPMnoc0eDM4E 79Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=CiGz35L0V9Auq+B4EaNe1Z4ZWRbPZysYPkdJ0WZ7was=; b=GUJOzrt7wJrxuy5IE4sDIJO8JuRwMm381hIx3347SrY+uzxREGEh/sruKsO6MJQq4A R/7OiuWL/gqVAy4riYO/ghdD3+fqoK9tyrByf+itNK1jne8rAeDtdWAIO5G2L2cK8C1q N9Sh3HNQbitvULgx7nT1938ThAEfcC+J5RLI36p+UniElW/kE5VmpvOZfrKI4rV+6+2a muTYhHFD3qdQDxvt9/4KBG2I88XlXUpJG2uTtaO+aNKLsSYiJJ15PDMuXmnHyhsumiDI kJl1Hd49liKfGvodSR34KwyscX0VwWG/skWUxqNDLyiphl1oAQW6/E7ZWm+KZBlZB02d ovtw== X-Gm-Message-State: APjAAAWLFTL7by2Q6vovZxBNIU5SDayaK7mNH1jZ+LIUb+ZJymINJWg6 uiqcQxuGrMGGrZ/MhhMgLj2iPFKA44S1RHz9SYVxgQ== X-Received: by 2002:ad4:5429:: with SMTP id g9mr2110377qvt.134.1578654798994; Fri, 10 Jan 2020 03:13:18 -0800 (PST) MIME-Version: 1.0 References: <20200110082441.8300-1-brgl@bgdev.pl> In-Reply-To: From: Bartosz Golaszewski Date: Fri, 10 Jan 2020 12:13:08 +0100 Message-ID: Subject: Re: [PATCH -next] nvmem: fix a 'makes pointer from integer without a cast' build warning To: Srinivas Kandagatla Cc: Bartosz Golaszewski , Linus Walleij , Khouloud Touil , Stephen Rothwell , LKML , kbuild test robot Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org pt., 10 sty 2020 o 11:16 Srinivas Kandagatla napisa=C5=82(a): > > Thanks for the patch. > > On 10/01/2020 08:24, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > nvmem_register() returns a pointer, not a long int. Use ERR_CAST() to > > cast the struct gpio_desc pointer to struct nvmem_device. > > > > Reported-by: kbuild test robot > > Fixes: 2a127da461a9 ("nvmem: add support for the write-protect pin") > > Signed-off-by: Bartosz Golaszewski > > --- > > Acked-by: Srinivas Kandagatla > Thanks. This is rather uncontroversial, so applied right away. Bart