Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 95031C433F5 for ; Thu, 25 Nov 2021 11:01:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354826AbhKYLFJ (ORCPT ); Thu, 25 Nov 2021 06:05:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354869AbhKYLDI (ORCPT ); Thu, 25 Nov 2021 06:03:08 -0500 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88966C0613FF for ; Thu, 25 Nov 2021 02:58:58 -0800 (PST) Received: by mail-pj1-x102f.google.com with SMTP id j6-20020a17090a588600b001a78a5ce46aso7543239pji.0 for ; Thu, 25 Nov 2021 02:58:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sCgAh/8By8wNIrpD9ZFYd1/D45MydwuRk8zcWPcXzGQ=; b=cLqXpIgXjTlGOz1+IBYb8VUFp+uxcoeg2qgpXuYboMkZ9nEN2PIueIvHrVwRREeLmb +MrF9p67VwUtwkCOKgMpKFHfMbgQKrRu3A4Ei5fZTDaW/5FP6BRBW4nGfIWSFpYZFNe8 0HSKyJrAk7bR75zNpuXPOvX7m7hC7BeqhRGcMfOrHH6huXvQNL5Az0dD8t07sD1vp6fW DSs5Sa4z5eLSfVWXh6wJRcbwCy9qkbxFE/5DrfUZkwUbQAyBimFVikRyc2tPk4rfv6vB IVnUrMjl/5tVH3g09/AQOnibornKoF23XfqUGYJTThaJBEa6V998JrI4MIc7OGUol2aZ HDyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sCgAh/8By8wNIrpD9ZFYd1/D45MydwuRk8zcWPcXzGQ=; b=iXWo258oiH9Or63KNLuj8PS+4CH0W2ckiEK7vSylUSKRfCY3v2MTYKx9YGiQyioMmv Im5ZUOJItw9Bsh/DXbNZZrxZwV1gSMGApbusRLbhM02HSsHH6jWd1fbazTNoXNPVPPt9 trILRvU8dwwJ6boWNU0lHnltMtHGKcC1lZeQz0FGz1+QnZDLcqO6xeB4zyBX7fvMKAY5 +dYXfS9g+QtoJcsao5t8ZO3WE8qsmVCVu+JYqrVpEZ5QvS7Qz8mmh2yaz5SzF0pDQkyK eFlER+KQi+0OExvzNvPRSQvg2zamER1ILezN9dxOep89eZGyBMtIu9NJCg/IyclUvjK3 L28Q== X-Gm-Message-State: AOAM530SgWLg2JPrXwQkUVIUOCX4vPiWHccj3+QaiVF3mvtgHlrGUMOI BwARJhSs8aj4xQEY+Gj3XQkJPvYPXtpX0W5qtUinTw== X-Google-Smtp-Source: ABdhPJzEuWLGFxkRno8JHC5jNEyjXKuuqBAtEaEU9SYXKzgCatvz+aOmCp4g+jj8lAIvVYTHHBWYGkqPHzjzHeAWsL4= X-Received: by 2002:a17:90b:4a05:: with SMTP id kk5mr5895404pjb.232.1637837938076; Thu, 25 Nov 2021 02:58:58 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Robert Foss Date: Thu, 25 Nov 2021 11:58:45 +0100 Message-ID: Subject: Re: [PATCH 17/20] media: qcom: camss: mark read reg function as __maybe_unused To: Mauro Carvalho Chehab Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Andy Gross , Bjorn Andersson , Mauro Carvalho Chehab , Nathan Chancellor , Nick Desaulniers , Todor Tomov , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for submitting this Mauro. On Wed, 24 Nov 2021 at 20:13, Mauro Carvalho Chehab wrote: > > Such function is currently unused, but could be needed in the > future. So, keep it, marking it as __maybe_unused, in order to > avoid a clang W=1 error. > > Signed-off-by: Mauro Carvalho Chehab > --- > > To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. > See [PATCH 00/20] at: https://lore.kernel.org/all/cover.1637781097.git.mchehab+huawei@kernel.org/ > > drivers/media/platform/qcom/camss/camss-vfe-170.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/qcom/camss/camss-vfe-170.c b/drivers/media/platform/qcom/camss/camss-vfe-170.c > index 5c083d70d495..455ae1a819e6 100644 > --- a/drivers/media/platform/qcom/camss/camss-vfe-170.c > +++ b/drivers/media/platform/qcom/camss/camss-vfe-170.c > @@ -191,7 +191,7 @@ static u32 vfe_hw_version(struct vfe_device *vfe) > return hw_version; > } > > -static inline void vfe_reg_clr(struct vfe_device *vfe, u32 reg, u32 clr_bits) > +static inline void __maybe_unused vfe_reg_clr(struct vfe_device *vfe, u32 reg, u32 clr_bits) > { > u32 bits = readl_relaxed(vfe->base + reg); > > -- > 2.33.1 > I've submitted a patch[1] for removing this function, with that patch applied, this patch is no longer needed. [1] https://lore.kernel.org/all/20211011121301.421410-1-robert.foss@linaro.org/