Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp993955rdf; Wed, 22 Nov 2023 02:44:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IH5zT0Zb9YHBSVnxc3FQQkqkQm/QAbmoZEoOP/Le3I2fTJDq/ws3wt+OQdV+KO/8sZ1YuPn X-Received: by 2002:a05:6a21:32a4:b0:18b:4226:5ffa with SMTP id yt36-20020a056a2132a400b0018b42265ffamr1357408pzb.15.1700649846777; Wed, 22 Nov 2023 02:44:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700649846; cv=none; d=google.com; s=arc-20160816; b=idk6+93z3tFEQM/d7C8xITpUzdlWNHkbB7PNzaXwfmvre2ks4BAOEHlHP1wvaABRAb IXZvNGhnIly6GfIaGY0k743IBLS/hHnzmJ+JuYorp9/4Bq+AXy2Ysxf+3g9z3JpvoVyX YpLc7sk0YnQfuSWT8FI+11kWtH7FrDIbPsvHNKQnJEEBoaIMVfA9pe0jHfWnFF7znbWO bUZZE7VhiqDZA52T8NUqHlYKll4QutEQnDJ44uGk+EbCI060C8lrjSr44/QgFpArp5Uo vuWFi6aURKxrcemdsazX+0dqpUwOaEdDu4/z1JesgpmnIvFsb4sY9/E8jDxU0wuM/o5w JvyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:date:from:dkim-signature; bh=RxvYEiAdK16hEUnfnJJGpW9bKts3DPTjhH3GkFHM2Cc=; fh=McPUcy/3OZdKsSd7uNq1KZEPCQ8PP7gWeJ5HwIAWAIU=; b=sTecLNWveuWp3lCgfAlONe+Ntxpd3y7XLwWMZEfbxVgnCiYBVixEvXKmX+oVIvPhWy 1w/UgbhOurvuNyarmj8op3YqHyp8tTijwmGlv91oPacgyq2PclakJb0CwssCgfbwT/2w 3/fHtwaHul6q7N6wkqeGNJ0L1bWPo7nQUJmd3KhtLtZxu0vUyXy1B6nGRZSDcGwnMB0T cEiLgpQ7laN6pEx6urfAFag4Z6ASz9Hd2ZWdEcOMdCN9BODM7L9tTaVudSp+y74m9UUo vqoNX1oXKA+2nkvj7h0Rf4O94jcKkLntFyZ4lrceEaOxyFLaC85Q0ba6YiIybBjLYdQ+ zPMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IwTq2dcz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id s9-20020a656449000000b0057745d87b50si11965009pgv.139.2023.11.22.02.44.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 02:44:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IwTq2dcz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id ECA4A811ADA0; Wed, 22 Nov 2023 02:44:03 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235073AbjKVKnt (ORCPT + 99 others); Wed, 22 Nov 2023 05:43:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235037AbjKVKnq (ORCPT ); Wed, 22 Nov 2023 05:43:46 -0500 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B64AC1 for ; Wed, 22 Nov 2023 02:43:41 -0800 (PST) Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-3316a4bc37dso3448238f8f.2 for ; Wed, 22 Nov 2023 02:43:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700649820; x=1701254620; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=RxvYEiAdK16hEUnfnJJGpW9bKts3DPTjhH3GkFHM2Cc=; b=IwTq2dczAN+R0LMrB5fzJDFtr3VSHl4PUfLGEG0GhaJpPRK+3c3tM94q+ORw2OL9tr 0uyvXFO9OYLDJQH6hO990ohLkxuRNneXNhOoLY4+BCyclfHfQIAv1Xz5ofkRv1o8EQsj AtZK1sSY99UfzlO4bF3F0bdfxrl2uhr9gHAdvnZmnVN6hkKexh7wqTCsexS/69FyIgzx k4q/iY+rNTVNQFfMdGSOH9WXxuYRroGRpjcvtQ4YQOfwXLE3DVCTdRYgxjOeoq6v7+9Y wS7WYz441iZl0dQpqrzFaocYiooaYUaKOVAB1HAa9jHPkTThfP8WSI1E+5NYuM3lTDxT d/yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700649820; x=1701254620; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RxvYEiAdK16hEUnfnJJGpW9bKts3DPTjhH3GkFHM2Cc=; b=Iv1O50QM6S4uOVo1W8fhgJPG8agII1cBbJjXl4lCbbAi13vQzy1fqO+CPRuPaRYnkW UqHOL0zNHpIMwzCaYxaMJU8hVLrDLWZJm8z7H4REOSqdFMOTTG4zDYo4v9zZV7qMbLhz G74osh81yNAqA3SrMnVE2zKF3V8Yek5E1+W8jyqOCSLYnqz+mHWzivh7N1gMWhzZqaAv wPzvKnoNgSGYKFtXacu2IjTHFoeYVJUAATfs/kBHAiHdoNNzZ3MEaVv78YlpkI6q0pys yGp4OBBHoqB4RULewPCKt04RPFCARZ0hqbwJtMpPlUdSSWArkDnt/tEXKyFMxA3GmnMt aWmg== X-Gm-Message-State: AOJu0Yz4wnOTVUyeG4SCTeFgFX6zd0uw2oI3v2BHpk0rH48spieXkmGx b9qA6KbBM3YMJI/vYuAAoI5KLg== X-Received: by 2002:a5d:6d8c:0:b0:332:c5f8:a082 with SMTP id l12-20020a5d6d8c000000b00332c5f8a082mr1469372wrs.13.1700649820030; Wed, 22 Nov 2023 02:43:40 -0800 (PST) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id t16-20020adff610000000b0032da4c98ab2sm16796346wrp.35.2023.11.22.02.43.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 02:43:39 -0800 (PST) From: Dan Carpenter X-Google-Original-From: Dan Carpenter Date: Wed, 22 Nov 2023 05:43:37 -0500 To: oe-kbuild@lists.linux.dev, Mehdi Djait , mchehab@kernel.org, heiko@sntech.de, hverkuil-cisco@xs4all.nl, laurent.pinchart@ideasonboard.com, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, conor+dt@kernel.org Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, alexandre.belloni@bootlin.com, maxime.chevallier@bootlin.com, paul.kocialkowski@bootlin.com, Mehdi Djait Subject: Re: [PATCH v9 3/3] media: i2c: Introduce a driver for the Techwell TW9900 decoder Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 22 Nov 2023 02:44:04 -0800 (PST) Hi Mehdi, kernel test robot noticed the following build warnings: https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Mehdi-Djait/dt-bindings-vendor-prefixes-Add-techwell-vendor-prefix/20231117-234411 base: git://linuxtv.org/media_tree.git master patch link: https://lore.kernel.org/r/dc65a89e7803782a75bf663158e031356ef7cb1a.1700235276.git.mehdi.djait%40bootlin.com patch subject: [PATCH v9 3/3] media: i2c: Introduce a driver for the Techwell TW9900 decoder config: powerpc-randconfig-r071-20231122 (https://download.01.org/0day-ci/archive/20231122/202311221134.0i9KavRs-lkp@intel.com/config) compiler: powerpc-linux-gcc (GCC) 13.2.0 reproduce: (https://download.01.org/0day-ci/archive/20231122/202311221134.0i9KavRs-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Reported-by: Dan Carpenter | Closes: https://lore.kernel.org/r/202311221134.0i9KavRs-lkp@intel.com/ New smatch warnings: drivers/media/i2c/tw9900.c:628 tw9900_runtime_resume() warn: inconsistent returns '&tw9900->mutex'. Old smatch warnings: drivers/media/i2c/tw9900.c:348 tw9900_s_std() error: uninitialized symbol 'mode'. vim +628 drivers/media/i2c/tw9900.c cf24af11e0a74c Mehdi Djait 2023-11-17 597 static int tw9900_runtime_resume(struct device *dev) cf24af11e0a74c Mehdi Djait 2023-11-17 598 { cf24af11e0a74c Mehdi Djait 2023-11-17 599 struct i2c_client *client = to_i2c_client(dev); cf24af11e0a74c Mehdi Djait 2023-11-17 600 struct v4l2_subdev *sd = i2c_get_clientdata(client); cf24af11e0a74c Mehdi Djait 2023-11-17 601 struct tw9900 *tw9900 = to_tw9900(sd); cf24af11e0a74c Mehdi Djait 2023-11-17 602 int ret; cf24af11e0a74c Mehdi Djait 2023-11-17 603 cf24af11e0a74c Mehdi Djait 2023-11-17 604 mutex_lock(&tw9900->mutex); cf24af11e0a74c Mehdi Djait 2023-11-17 605 cf24af11e0a74c Mehdi Djait 2023-11-17 606 if (tw9900->reset_gpio) cf24af11e0a74c Mehdi Djait 2023-11-17 607 gpiod_set_value_cansleep(tw9900->reset_gpio, 1); cf24af11e0a74c Mehdi Djait 2023-11-17 608 cf24af11e0a74c Mehdi Djait 2023-11-17 609 ret = regulator_enable(tw9900->regulator); cf24af11e0a74c Mehdi Djait 2023-11-17 610 if (ret < 0) cf24af11e0a74c Mehdi Djait 2023-11-17 611 return ret; mutex_unlock(&tw9900->mutex) before returning. cf24af11e0a74c Mehdi Djait 2023-11-17 612 cf24af11e0a74c Mehdi Djait 2023-11-17 613 usleep_range(50000, 52000); cf24af11e0a74c Mehdi Djait 2023-11-17 614 cf24af11e0a74c Mehdi Djait 2023-11-17 615 if (tw9900->reset_gpio) cf24af11e0a74c Mehdi Djait 2023-11-17 616 gpiod_set_value_cansleep(tw9900->reset_gpio, 0); cf24af11e0a74c Mehdi Djait 2023-11-17 617 cf24af11e0a74c Mehdi Djait 2023-11-17 618 usleep_range(1000, 2000); cf24af11e0a74c Mehdi Djait 2023-11-17 619 cf24af11e0a74c Mehdi Djait 2023-11-17 620 ret = tw9900_write_array(tw9900->client, tw9900_init_regs, cf24af11e0a74c Mehdi Djait 2023-11-17 621 ARRAY_SIZE(tw9900_init_regs)); cf24af11e0a74c Mehdi Djait 2023-11-17 622 cf24af11e0a74c Mehdi Djait 2023-11-17 623 mutex_unlock(&tw9900->mutex); cf24af11e0a74c Mehdi Djait 2023-11-17 624 cf24af11e0a74c Mehdi Djait 2023-11-17 625 /* This sleep is needed for the Horizontal Sync PLL to lock. */ cf24af11e0a74c Mehdi Djait 2023-11-17 626 msleep(300); cf24af11e0a74c Mehdi Djait 2023-11-17 627 cf24af11e0a74c Mehdi Djait 2023-11-17 @628 return ret; cf24af11e0a74c Mehdi Djait 2023-11-17 629 } -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki