Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1763797pxb; Thu, 28 Oct 2021 09:35:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRvLgiz6IzJn5sVd3mxZwi2sdbvVcp/RNlokOE0zcnVNpfdeyHuxRU8Oak5IBC3LVONPv0 X-Received: by 2002:a63:bf4a:: with SMTP id i10mr4039249pgo.196.1635438938531; Thu, 28 Oct 2021 09:35:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635438938; cv=none; d=google.com; s=arc-20160816; b=A/XBRrWJ3ks2lFpXdcKJMTi53+8KexqMb9/7NcnOjbl9uXu/XjUMWSjNfMkR2JS1u0 +pn3MZcF3bzwxUhDVUVuCzY8JV4kfKtjc9FkFkzoKEw9/pAl+l+vfotVzsGry8iUXPIW Qu1tJD6yQmNKldl+vD+HrYLJ0fYu4aQAa8dlToAcGj0j4+gbOTGCjor0iEBiZ91Y42Mt /tp69SPchNox4wkkGq3SfKq7yT/MAwCAF9ICAYhnxw7cZbeZCxfviJ78Yjnr8AGiY666 uW2Qn8arkL02t58XWdCtKZRJ2oTLPbTIY1X2Fg9CVASXyJRyn975Mc1g08U3xVBQdDt6 mPBQ== 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=nem2XTY5QU11TIb5tpm+rntM/cfQ1YaYLiw0IXoaZ+w=; b=bkTVXVGV9FjGEwvWwUnpi+N075v7kcXLjw1lT6UU2UoaviKngJ22vmFOKWP2ySmLjU 1ntC+nj7vnsdJHJtVuwL3uOEk89vf+D7+rlpciOK3MNM/OPotIIIDIwQP6/M2QF+kADY xC2XkP5FRVHYRzs5I8byJ8CvZdnQYZCLe5HprB1Dl347PXr+DhE+BFK7VQRCHIo0H+eB MlIRUB4i2UgacJd2zaS0TWY/9uBxqtzuNOM9cbfI9iVuskkyasvooKjPz9duNlOAvONG tJP1l1AnEhQpC2DaCxkDSP0Y3YRp20TwC0y5HyS8aYC2OYiMHlCaD/WqH0JpAp7hx5ex N8CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y3qFNcE1; 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 o34si5292281pgm.500.2021.10.28.09.35.24; Thu, 28 Oct 2021 09:35:38 -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=Y3qFNcE1; 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 S230164AbhJ1Qg1 (ORCPT + 99 others); Thu, 28 Oct 2021 12:36:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229565AbhJ1Qg0 (ORCPT ); Thu, 28 Oct 2021 12:36:26 -0400 Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6ED92C061745 for ; Thu, 28 Oct 2021 09:33:59 -0700 (PDT) Received: by mail-oi1-x231.google.com with SMTP id q129so9159810oib.0 for ; Thu, 28 Oct 2021 09:33:59 -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=nem2XTY5QU11TIb5tpm+rntM/cfQ1YaYLiw0IXoaZ+w=; b=Y3qFNcE15hVggRrMhiAeClG/Hnfm+SplZEeWKDF6zQdWbTj1BeHIubrS60YhBSk9FD 6NshmXy756/SwcXKW7YKdIa1eKHzXYn7Sv0sCtio1Rc0MsZxsVULUDOTwj2Vue+T+FMI C0cChZdf1dEZGcbEFPab7NJ153OsC19SbmM88Xd5Zpe89W49OIEiFs4G8p3/Uui7TuXM e/F4QKlhelC1nXa0FSH5uWEaREI7Pg6Jhof/tmCZRqlp5X4XCAqpYVB8AiHqzG6LBzVu qhMe8xxNj6xIa1xQjFM3vadRTjG8vKWDaarULUoL6E1jbwVrc/sn9hdJGg0jBl/UKOaV e+Bw== 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=nem2XTY5QU11TIb5tpm+rntM/cfQ1YaYLiw0IXoaZ+w=; b=eovJWUgz63lt3ZTPP5wnTHLYmwh5iWcHVHsV9makv3Ojn7FKXoG5vFfLhCR68IAwn3 Mbod1RmTAweOTh5ds4d5A0+uq1wHzhV4phNGCPkJT/+A9ciGAiZ3xnFbutpiAdVMCFFk COu0zIBheBoHH3H3YKw/VZdDaYCahouTVs0UlyYjtnAKYM5ipKt54wsNXD898TFJ22D0 LZc/ihPoEcx8eBBYf7v+DO/mSBJPF/ixxeGhSBu5bBB7ErK+DYAQX9L5BZL+AAcXyeO5 13Am4kAptDLuTgrBf+6hk/0krbFiDeeI5g13302jllmySSiqX+xpmrHWv7raQ8YDIooQ I4ng== X-Gm-Message-State: AOAM533y08Jkd1T34Huj/i/EAHIMeyZlbu1BZQzF83wv7ckD2g7imv4B 2aieFX1gpwta3F0ffJNYWkWziQ== X-Received: by 2002:a05:6808:1a0c:: with SMTP id bk12mr3929768oib.48.1635438838563; Thu, 28 Oct 2021 09:33:58 -0700 (PDT) Received: from ripper.. (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id x13sm1058721ooj.37.2021.10.28.09.33.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Oct 2021 09:33:58 -0700 (PDT) From: Bjorn Andersson To: Robert Foss Cc: Andrzej Hajda , Neil Armstrong , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, kernel test robot Subject: [PATCH] drm/bridge: sn65dsi86: ti_sn65dsi86_read_u16() __maybe_unused Date: Thu, 28 Oct 2021 09:35:48 -0700 Message-Id: <20211028163548.273736-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When built without CONFIG_PWM there are no references to ti_sn65dsi86_read_u16(), avoid the W=1 build warning by marking the function as __maybe_unused. __maybe_unused is used insted of a #ifdef guard as it looks slighly cleaner and it avoids issues if in the future other permutations of the config options would use the function. Reported-by: kernel test robot Signed-off-by: Bjorn Andersson --- Robert, I believe you pushed out the driver patch introducing this issue yesterday. Can you please add the relevant Fixes? drivers/gpu/drm/bridge/ti-sn65dsi86.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c b/drivers/gpu/drm/bridge/ti-sn65dsi86.c index 430067a3071c..e1f43b73155b 100644 --- a/drivers/gpu/drm/bridge/ti-sn65dsi86.c +++ b/drivers/gpu/drm/bridge/ti-sn65dsi86.c @@ -215,8 +215,8 @@ static const struct regmap_config ti_sn65dsi86_regmap_config = { .cache_type = REGCACHE_NONE, }; -static int ti_sn65dsi86_read_u16(struct ti_sn65dsi86 *pdata, - unsigned int reg, u16 *val) +static int __maybe_unused ti_sn65dsi86_read_u16(struct ti_sn65dsi86 *pdata, + unsigned int reg, u16 *val) { u8 buf[2]; int ret; -- 2.33.1