Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1968600pxb; Mon, 13 Sep 2021 09:09:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3xAvuxuE9wga80/ZWi/jvDKMj2/iQA0Uip3I+4lrpzBmckqrHIPET69mabGRYJAeoBSt6 X-Received: by 2002:a02:5442:: with SMTP id t63mr10317806jaa.7.1631549398764; Mon, 13 Sep 2021 09:09:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631549398; cv=none; d=google.com; s=arc-20160816; b=eJ5bsjP6SiL1JQnhjdciKEKdCPzd2pAbSuGeAjUJeLjgIWVHIuEyJh6HKeoaquFHMi Jt9bo3kfKKdLoVp+bsSFjXa85L7BqXX3nz/+NbAEhpzAWDLlm/F89PcPfLz+zIGoEDo8 g0eF2+Cwhzn1A+SwdOjQWzPY2vsxsYXoEgEqkS+DV+520JYFvdIQ2tzmIF9zkPjH6cBe o9YUXgnUeImdYAauJncr2mkcRtfSimZCEj5xtNwkoAmDZkEgWJdpDqirvQpP5RSypmLY 8gM5/s5EF7Y9Mag0pl2JH1BIwU6rNtgEzBY5y5Q7ebqML8ucSntrjga8qzepn427awJb WWAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Hye9+0ESN978kse1JBERjk4/GeLt0FiDWoDbiZyi6yc=; b=z2TTcrpX0msHb5jypAMfenW3hr27Z7/+lGU4KSZDo6QZOEcSrfn5m2CuZknzw9FIc4 JHm/DF1evpvdntWBdTo1fngahfKA1HEruMelG2TT1qDRJTOFs1QNJBuapJnMKJR6H8OK saNyOis75haIYNMtNd1BPmuS2YQxDY+90I6tfkdfzqCzJO7npeqqdu/hE0Rk6tJ83xTz ojVdLXi2o6VTRMrRySlFyDW3iglppv0DURSKGKVVLOHf80mFU322UaJvEhC1cmS2fTMC eSdQGhw9hYb4jwvpcZdh0Wn40XxUgMqO7nbnf49X3kpCDKLTMdGrsIveuRx+xOk5rWXv ngmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G+pHPkfP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u15si8070048jak.129.2021.09.13.09.09.46; Mon, 13 Sep 2021 09:09:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G+pHPkfP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344816AbhIMQHR (ORCPT + 99 others); Mon, 13 Sep 2021 12:07:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344265AbhIMQHQ (ORCPT ); Mon, 13 Sep 2021 12:07:16 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39D4FC061762 for ; Mon, 13 Sep 2021 09:06:00 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id s24so7035531wmh.4 for ; Mon, 13 Sep 2021 09:06:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Hye9+0ESN978kse1JBERjk4/GeLt0FiDWoDbiZyi6yc=; b=G+pHPkfP/QQN7qOvJ0aerpXpD+U/5j+A0CaeF9tdtQtxzzlEabGGj96ZotkV1LzzVk 76wvqQyOFlKIYGgtbdo3b7zCOUC1J9ALzsRO+pSvXHolXVU4IY2BVAv08fwiaHfdKdvG GLYfjI1B3z83PeWMrUziWshsSMW5SFIB+epp6BcwFsrR3AAi9JLpMzbWNWF7pR162dTO OVxdauZdtCrJaI+08khUtsZfT9ehk0A0hA1RUU/JbOKTOEVyVbwlHaniG0Crrc3+FX0B 8EASBk3Q0JlS8BKXFXrxki3/88A4VGkSvDRnkqRWy3cArCkm8BdvTKIyUKGA5V0g2fv+ NpwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Hye9+0ESN978kse1JBERjk4/GeLt0FiDWoDbiZyi6yc=; b=KW1+PXKFfKxJIF3ewIcJ3ztU3B+Niee8XjELhj2skpxQc5k3m4QVHah1f8xwMwndTb LT2Ss6LCGGzXT5a4ROrMaHt/MhySq0RIkGRJgkXz/uiKgtT9ycuN1pTfsUFxx4pQjmfD jS31r3Wam5Ee8KIX1gYsFQYzs/fHb7at1+DMZK+6cP8nvukmkKXZi/CUSZkzKjiJZ26h dysUZ07iZuASTOUdGpuQ8d+qxeJT2uQXor+43WGbQsCK9yEjWCVZ8z17rmHnSnZGJvcb rpojLAnvpMyw+GaSSlFM28T7QxLx53rxd1TXDJWY5yLjhed8RLcGqKhkjWW7fNVdgY+I dJtQ== X-Gm-Message-State: AOAM532Mnfe7NiorMtz3TTwXZmJotXCwaVF52A/yDBW0K3u9gsozvfKv RuYZ5AQ/qz9Cpi9Ex1L4yQ5Q1w== X-Received: by 2002:a05:600c:5123:: with SMTP id o35mr12281847wms.153.1631549158766; Mon, 13 Sep 2021 09:05:58 -0700 (PDT) Received: from srini-hackbox.lan (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.gmail.com with ESMTPSA id o17sm7771771wrj.96.2021.09.13.09.05.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Sep 2021 09:05:58 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Douglas Anderson , kernel test robot , Bjorn Andersson , Srinivas Kandagatla Subject: [PATCH] nvmem: core: Add stubs for nvmem_cell_read_variable_le_u32/64 if !CONFIG_NVMEM Date: Mon, 13 Sep 2021 17:05:51 +0100 Message-Id: <20210913160551.12907-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Douglas Anderson When I added nvmem_cell_read_variable_le_u32() and nvmem_cell_read_variable_le_u64() I forgot to add the "static inline" stub functions for when CONFIG_NVMEM wasn't defined. Add them now. This was causing problems with randconfig builds that compiled `drivers/soc/qcom/cpr.c`. Fixes: 6feba6a62c57 ("PM: AVS: qcom-cpr: Use nvmem_cell_read_variable_le_u32()") Fixes: a28e824fb827 ("nvmem: core: Add functions to make number reading easy") Reported-by: kernel test robot Signed-off-by: Douglas Anderson Reviewed-by: Bjorn Andersson Signed-off-by: Srinivas Kandagatla --- Hi Greg, Could you pick this up for next possible rc. Thanks, --srini include/linux/nvmem-consumer.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/linux/nvmem-consumer.h b/include/linux/nvmem-consumer.h index 923dada24eb4..c0c0cefc3b92 100644 --- a/include/linux/nvmem-consumer.h +++ b/include/linux/nvmem-consumer.h @@ -150,6 +150,20 @@ static inline int nvmem_cell_read_u64(struct device *dev, return -EOPNOTSUPP; } +static inline int nvmem_cell_read_variable_le_u32(struct device *dev, + const char *cell_id, + u32 *val) +{ + return -EOPNOTSUPP; +} + +static inline int nvmem_cell_read_variable_le_u64(struct device *dev, + const char *cell_id, + u64 *val) +{ + return -EOPNOTSUPP; +} + static inline struct nvmem_device *nvmem_device_get(struct device *dev, const char *name) { -- 2.21.0