Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp337752rwa; Sat, 20 Aug 2022 04:57:35 -0700 (PDT) X-Google-Smtp-Source: AA6agR5fINbEez+LrBbyH6Pl0g3aXvNY4+X4xoc1sovASucbaWlDKILLIAr8c2mIGbY3RFrSWyZV X-Received: by 2002:a17:902:9683:b0:172:a112:4fda with SMTP id n3-20020a170902968300b00172a1124fdamr11901896plp.8.1660996655683; Sat, 20 Aug 2022 04:57:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660996655; cv=none; d=google.com; s=arc-20160816; b=baTe6k9TZTD9jUVpxBGbMOPCtIP/gLX4rd1/g2ITZHLIDXtvtwDkVYICDPI9mEzNKw DsWiemL6rehIAHzTqm1ZGwuRBemG97wMTXZuX86dD4R9trzh3s4olC218zn5Gv7P147k b0qPW8wq5HHNgBVYl++XuL/fVEh9HraGLvA8NWtsYV8/lc4qxWO/E1RgnwHhGKrWoFZO 7Mcqb24RXSDG+wNgJnm5VIgsU7NIBbEevjLtQYkC4KnaIt5tGZNzah+qAQHx3WSvPGbY v+pkCon+BGep3Mv+0bFVXXrtNWG9PtIPRbOXWR5dI2F3kYeGv4yVc0Ab9xtMSwwx3ZgQ Jy0Q== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=qjGZYZ3MHGoKOipR57+LoVZTPnezDxowu+ju7sqYgiY=; b=gaCEhwNFzLXfqTx1FhQiswVH1BKur32/PoVTAZA7fU6s1I4abMCovZDgQyzozOaPai e0aSNF3ZJwyMtE5XfgcR07/tEq0B1LD1BGMxS4GTLtDoHT3pUBYNN2yE6iodrD69yqFJ 5Luuri67q0Emmm/A55GDD/q+34QPD5kR7V2VCn5eznrOLtFzR/085Tcz+XafOZUHYpt0 cDFPpYF9r1UpUFh8DjmX2wwGiHj5cPx/MfvLiuz6dH8ZAElOggTe3tTlvmsRHZyke3EJ Hze2Z4TZMbfSXMKIIitdyTm0+Xk/ZOfeNI8QCWTj8vJ4Z7qd3nF65MrRAed6FNB/g4so ffxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vJmQ9cp7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qi4-20020a17090b274400b001faefe1cbd7si3574300pjb.158.2022.08.20.04.57.24; Sat, 20 Aug 2022 04:57:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vJmQ9cp7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1345561AbiHTLqh (ORCPT + 99 others); Sat, 20 Aug 2022 07:46:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241192AbiHTLqf (ORCPT ); Sat, 20 Aug 2022 07:46:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3A539C2CE; Sat, 20 Aug 2022 04:46:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7EE4160C9B; Sat, 20 Aug 2022 11:46:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA217C433C1; Sat, 20 Aug 2022 11:46:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660995993; bh=KWya8Ir7VxqGsghF5iElXNfuH21OU6AhpqVzC3o0LYo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=vJmQ9cp7v+CbrquW5fjf4f9qTzptUSTBEtW3y07hTULnCx1gcBIJ1YEfkbHDWzSby 0ITtxpczsHUaf+wN0ev5KoyoIdCcZhqXjkO1gViZ5qPXjrgmPl+SnhW8qDKhL/Yf8/ Qa1EKlB9fKZWfWaAn0NcXQJwXn0KOZiIh1dd7Yb1xhjeJXJC5RrV1jhJHYDPlb7p0W mIc+XHCGSXMh5f4UcsxGoBz1dypWOa62ZyslAICmma9wCTc8HdVjdfBpTVUWnYUE5K CIwvMklQe6ow3g/hor/QDsYWbUFfDDbt8B6FqcUBZC5t/4UqtVyGJzfBM6xEkbDjOk lO319oG8j397A== Date: Sat, 20 Aug 2022 12:57:09 +0100 From: Jonathan Cameron To: sunliming Cc: ktsai@capellamicro.com, lars@metafoo.de, kai.heng.feng@canonical.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, kelulanainsley@gmail.com, kernel test robot Subject: Re: [PATCH] iio: light: cm32181: make cm32181_pm_ops static Message-ID: <20220820125709.7df567c1@jic23-huawei> In-Reply-To: <20220815012930.150078-1-sunliming@kylinos.cn> References: <20220815012930.150078-1-sunliming@kylinos.cn> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 15 Aug 2022 09:29:30 +0800 sunliming wrote: > This symbol is not used outside of cm32181.c, so marks it static. > > Fixes the following sparse warnings: > >> drivers/iio/light/cm32181.c:508:1: sparse: sparse: symbol 'cm32181_pm_ops' > was not declared. Should it be static? > > Reported-by: kernel test robot > Signed-off-by: sunliming Applied. Thanks, > --- > drivers/iio/light/cm32181.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iio/light/cm32181.c b/drivers/iio/light/cm32181.c > index edbe6a3138d0..001055d09750 100644 > --- a/drivers/iio/light/cm32181.c > +++ b/drivers/iio/light/cm32181.c > @@ -505,7 +505,7 @@ static int cm32181_resume(struct device *dev) > cm32181->conf_regs[CM32181_REG_ADDR_CMD]); > } > > -DEFINE_SIMPLE_DEV_PM_OPS(cm32181_pm_ops, cm32181_suspend, cm32181_resume); > +static DEFINE_SIMPLE_DEV_PM_OPS(cm32181_pm_ops, cm32181_suspend, cm32181_resume); > > static const struct of_device_id cm32181_of_match[] = { > { .compatible = "capella,cm3218" },