Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp974458rdb; Sun, 1 Oct 2023 13:48:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEdMmlQxohOCMdX9dbUit+CuKPSLVumDhx/tcQ4kb171cAZoM0eu5wO41otH+TPsxuQUZgp X-Received: by 2002:a05:620a:390f:b0:76f:9e:4f0 with SMTP id qr15-20020a05620a390f00b0076f009e04f0mr9915252qkn.58.1696193308695; Sun, 01 Oct 2023 13:48:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696193308; cv=none; d=google.com; s=arc-20160816; b=dXyA+6I/dHCYwYwbkvzB8z92KhPQh4uI84V+lrGeF+1pWmFvWXG6vZ+0YClhI9Pm0f 0cfn6UZ7le8h9dej4Px6YUq7grsFZs8hfTDtnuPSVDR34qv9Ddt6ii7N6y/2+79z5WOf yPbB5GBEq9vzC9f/3ZAxV3ZqraiQkCU5ugregfbVPbkl1S4gOo6kq6Fa/4QIZQgnCP8e MDbRNcI7ejvbifH1mQ0qgIse996WNfK7vVEqXZrVAvwg0WDKaTKosenZhhtVdzLFcIHC +bBv+m0jtMBA03AHgNDjfEsclTsUo98rTXhP+8C3ektkr+BhiMrVPEu0SJDUQNru5Tsz u+cw== 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 :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cAY6kK0FPiwfWVcrfGOUb8eHAQPHuMCGY6aaBBMjxLQ=; fh=puYbWDYgOruY+c+/ayEJuEbTpdmgsdN50K6QcJpvz6s=; b=J4qsBxxRin9twATlYIxYxKVfkdqnloGcSGsvIUR99yvhktBNpBtffrPaoytduyd+sv U94DIzDDsSEhwpb5arGEh8ZHUqVx1+Oz/aUQQJD3iVwk20hDIJiVhhgutAbaix9wyPqB MCc/HOyy0YzZgdn6BBO0pOvrKmJu4FN7fhlso66qOZHFWcIJjwPuVf/xNjgVR10QBQpj FuLBYvFahsddHAZvi8q7ZXqR44E2ZFQeixijKEOOjDzqxy1kYkDG7hyVclhUvi0tyre5 EAEjZXeg3F1PBmBwZrJCTgUGKBiSzBdwETHtbZ+E+38U2qSKhXHoT8PA3wd2zjC7aAcv IDhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mess.org header.s=2020 header.b=lf5hY5+i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mess.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id r9-20020a634409000000b005694492c259si25553513pga.282.2023.10.01.13.48.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Oct 2023 13:48:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@mess.org header.s=2020 header.b=lf5hY5+i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mess.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id CF7308029159; Sun, 1 Oct 2023 10:22:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235213AbjJARWA (ORCPT + 99 others); Sun, 1 Oct 2023 13:22:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233932AbjJARV7 (ORCPT ); Sun, 1 Oct 2023 13:21:59 -0400 X-Greylist: delayed 24047 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 01 Oct 2023 10:21:56 PDT Received: from gofer.mess.org (gofer.mess.org [88.97.38.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74F2383; Sun, 1 Oct 2023 10:21:56 -0700 (PDT) Received: by gofer.mess.org (Postfix, from userid 1000) id 6AC07100092; Sun, 1 Oct 2023 18:21:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mess.org; s=2020; t=1696180914; bh=fmmbBcKFOGuzoHOa2DXFF4bJYUXHzDbTMg4QwhNR9/g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lf5hY5+iOE0ePrLTAj1raG3VeaKenQpZ4y1toKOxf4a+wxUW/K6lyp1W5qX4czCeg 2WUiacdaqdef9XjlBlvLraa6gYtvycdPM7oCM8j111y1mNHTmEapQsWz0cvEvfK+0f RCJk5Xhnd0ONZvBalMt7zuVja88EHL92lHsPCJcJM0C0xX9zXrPcGxZ2lU0Kyq37RB 04rMcZCwhODjLsW7F1gBuIoeXzysulxOBxoEDbMNWcure0ghIvjMvKy3sJDvgFethQ 2K63Mwb4NZVmLkj4oip8jxh5L5Yp1+9mDS9L9EjuAlJMX+5Onp7H8s4KyzKanFhjc5 Ehed2s+3JgOlA== Date: Sun, 1 Oct 2023 18:21:54 +0100 From: Sean Young To: kernel test robot Cc: Thierry Reding , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Vladimir Zapolskiy , Conor Dooley , Daire McNamara , Palmer Dabbelt , Paul Walmsley , Fabrice Gasnier , Maxime Coquelin , Alexandre Torgue , oe-kbuild-all@lists.linux.dev, Ivaylo Dimitrov , linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: Re: [PATCH 1/2] pwm: make it possible to apply pwm changes in atomic context Message-ID: References: <1bd5241d584ceb4d6b731c4dc3203fb9686ee1d1.1696156485.git.sean@mess.org> <202310012348.puyNjoMk-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202310012348.puyNjoMk-lkp@intel.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 01 Oct 2023 10:22:01 -0700 (PDT) On Mon, Oct 02, 2023 at 12:07:58AM +0800, kernel test robot wrote: > Hi Sean, > > kernel test robot noticed the following build errors: > > [auto build test ERROR on thierry-reding-pwm/for-next] > [also build test ERROR on shawnguo/for-next atorgue-stm32/stm32-next media-tree/master linus/master v6.6-rc3 next-20230929] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch#_base_tree_information] There are indeed some configs in which there are build errors if CONFIG_PWM is disabled, I'll fix it in the next version. In the mean time it would be great to have some feedback on this patch, and see if there is any other rework needed. Thanks Sean > > url: https://github.com/intel-lab-lkp/linux/commits/Sean-Young/media-pwm-ir-tx-trigger-edges-from-hrtimer-interrupt-context/20231001-194056 > base: https://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm.git for-next > patch link: https://lore.kernel.org/r/1bd5241d584ceb4d6b731c4dc3203fb9686ee1d1.1696156485.git.sean%40mess.org > patch subject: [PATCH 1/2] pwm: make it possible to apply pwm changes in atomic context > config: i386-buildonly-randconfig-004-20231001 (https://download.01.org/0day-ci/archive/20231001/202310012348.puyNjoMk-lkp@intel.com/config) > compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231001/202310012348.puyNjoMk-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 > | Closes: https://lore.kernel.org/oe-kbuild-all/202310012348.puyNjoMk-lkp@intel.com/ > > All errors (new ones prefixed by >>): > > In file included from arch/x86/include/asm/percpu.h:27:0, > from arch/x86/include/asm/current.h:10, > from include/linux/sched.h:12, > from include/linux/ratelimit.h:6, > from include/linux/dev_printk.h:16, > from include/linux/device.h:15, > from include/linux/backlight.h:12, > from drivers/video/fbdev/ssd1307fb.c:8: > include/linux/pwm.h: In function 'pwm_apply_state': > include/linux/pwm.h:428:17: error: implicit declaration of function 'pwm_can_sleep'; did you mean 'gpiod_cansleep'? [-Werror=implicit-function-declaration] > might_sleep_if(pwm_can_sleep(pwm)); > ^ > include/linux/kernel.h:194:39: note: in definition of macro 'might_sleep_if' > #define might_sleep_if(cond) do { if (cond) might_sleep(); } while (0) > ^~~~ > In file included from drivers/video/fbdev/ssd1307fb.c:16:0: > include/linux/pwm.h: At top level: > >> include/linux/pwm.h:455:20: error: conflicting types for 'pwm_can_sleep' > static inline bool pwm_can_sleep(struct pwm_device *pwm) > ^~~~~~~~~~~~~ > In file included from arch/x86/include/asm/percpu.h:27:0, > from arch/x86/include/asm/current.h:10, > from include/linux/sched.h:12, > from include/linux/ratelimit.h:6, > from include/linux/dev_printk.h:16, > from include/linux/device.h:15, > from include/linux/backlight.h:12, > from drivers/video/fbdev/ssd1307fb.c:8: > include/linux/pwm.h:428:17: note: previous implicit declaration of 'pwm_can_sleep' was here > might_sleep_if(pwm_can_sleep(pwm)); > ^ > include/linux/kernel.h:194:39: note: in definition of macro 'might_sleep_if' > #define might_sleep_if(cond) do { if (cond) might_sleep(); } while (0) > ^~~~ > cc1: some warnings being treated as errors > -- > In file included from arch/x86/include/asm/percpu.h:27:0, > from arch/x86/include/asm/preempt.h:6, > from include/linux/preempt.h:79, > from include/linux/spinlock.h:56, > from include/linux/mmzone.h:8, > from include/linux/gfp.h:7, > from include/linux/slab.h:16, > from include/linux/resource_ext.h:11, > from include/linux/acpi.h:13, > from include/linux/i2c.h:13, > from drivers/mfd/intel_soc_pmic_crc.c:11: > include/linux/pwm.h: In function 'pwm_apply_state': > include/linux/pwm.h:428:17: error: implicit declaration of function 'pwm_can_sleep'; did you mean 'cant_sleep'? [-Werror=implicit-function-declaration] > might_sleep_if(pwm_can_sleep(pwm)); > ^ > include/linux/kernel.h:194:39: note: in definition of macro 'might_sleep_if' > #define might_sleep_if(cond) do { if (cond) might_sleep(); } while (0) > ^~~~ > In file included from drivers/mfd/intel_soc_pmic_crc.c:18:0: > include/linux/pwm.h: At top level: > >> include/linux/pwm.h:455:20: error: conflicting types for 'pwm_can_sleep' > static inline bool pwm_can_sleep(struct pwm_device *pwm) > ^~~~~~~~~~~~~ > In file included from arch/x86/include/asm/percpu.h:27:0, > from arch/x86/include/asm/preempt.h:6, > from include/linux/preempt.h:79, > from include/linux/spinlock.h:56, > from include/linux/mmzone.h:8, > from include/linux/gfp.h:7, > from include/linux/slab.h:16, > from include/linux/resource_ext.h:11, > from include/linux/acpi.h:13, > from include/linux/i2c.h:13, > from drivers/mfd/intel_soc_pmic_crc.c:11: > include/linux/pwm.h:428:17: note: previous implicit declaration of 'pwm_can_sleep' was here > might_sleep_if(pwm_can_sleep(pwm)); > ^ > include/linux/kernel.h:194:39: note: in definition of macro 'might_sleep_if' > #define might_sleep_if(cond) do { if (cond) might_sleep(); } while (0) > ^~~~ > cc1: some warnings being treated as errors > > > vim +/pwm_can_sleep +455 include/linux/pwm.h > > 454 > > 455 static inline bool pwm_can_sleep(struct pwm_device *pwm) > 456 { > 457 return true; > 458 } > 459 > > -- > 0-DAY CI Kernel Test Service > https://github.com/intel/lkp-tests/wiki