Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp928025rdb; Sun, 1 Oct 2023 11:20:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGmdrMxBYdtxg6jp+zWFUCF3/h2ANn91fsHs2ByKGN/Yreh4W5VTDUShmAdGEEhmlDh64aG X-Received: by 2002:a05:6a00:1789:b0:68f:e0f0:85f4 with SMTP id s9-20020a056a00178900b0068fe0f085f4mr9441108pfg.25.1696184448533; Sun, 01 Oct 2023 11:20:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696184448; cv=none; d=google.com; s=arc-20160816; b=uqvzTtPpK83sFtY5+/7rnWuSHUq/OBRD1tj9rlE8mhkmsLnubBiFcxUvf5EG3pgdje SYHtR8wme1LhMhhNew/Wa7Y3/t+jlt8TF2Xasnn2Zry6EIEufymV6P6q2JmOmVtuF7Gj 4nKWSzKp0SqTbLIpKaRvlr+sEEth+LHpwMwlQnqTFGQuHPRWRMQe+Zxe7KRHr31Ci8gG RVUPEdmnPiCN9/czdI2Zj6DF5H63cN1omlm+ySl27YuePxGoen/X3a7ruNuDSfJz1AC7 WJ5Mw4wEVFvULoI2XcdZQniftgY9DdCHuBM5ZOV0jsx14w9R6rK6YgvqlwWX75gf2frw dhdA== 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=0msJDcnUXRQlvYdASzbPQ5WQ8AqXls+zPhi/gcrSlio=; fh=EO0/heRns+OnpU/dlZ8Lecz6jsmwHZ9gnCsW+Q2G1/E=; b=XRlPJyWcG+nEDhiu9LfvY5gHzJkXHEvqpWKcnK20IgkBJTReYUqdUjBeQl+uJTUV/W DH2IVP55RK7I8RKGdZJ/KJYP+iAJx22jFpyLx5fUYtlyGigQACyoTvtGpxCHqE2F9aCa vifM4OsjW+oJ0gmQR5I8IQ1vDmNjaaLtc7ZRyWpFKTv3QZPRbby0c/U3OvWrAqLuhhM5 NWIHuGDxr+JJJMQgrrZzYDao86m/A4FuejqB0CxmoxJ6303BOpfSgCeZXARUpHSm50av Dzlb8leqvVlTNRKMEMlqUzX3iIgOgwPxfrQGKdTfrV0MVy7Ptqw0q9GzoboZuYBgHoq1 sSyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PKzuV8KY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id cq6-20020a056a00330600b00691018e3f4dsi7978845pfb.201.2023.10.01.11.20.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Oct 2023 11:20:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PKzuV8KY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 1EDBF801E5F1; Sun, 1 Oct 2023 07:44:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235080AbjJAOoM (ORCPT + 99 others); Sun, 1 Oct 2023 10:44:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230173AbjJAOoL (ORCPT ); Sun, 1 Oct 2023 10:44:11 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D189183; Sun, 1 Oct 2023 07:44:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696171449; x=1727707449; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=eaZ6EntjZndNXd4oKfdQ0McHn3ig2hRV/qhNZ2cj228=; b=PKzuV8KYQ74I0pZl59PncDSnGTv4sVzjyLM9d/FjJyi02NkcAnE2VuX7 OgslZok12MS0MXyxkMk4A+HlnocuV/+GCQhOP6Xg/MxQ6LZoRR24P1Pev fIRo18K04oBjIne4niWQRKPSeT8NRpe9Ic7UxboOWR+y73X/IA+cGuVVz sVazSTmTwcxSvXjXOJsnhfkwLEl4D+4yUOcPiiTYu9/fyjialLHH5iOuq aynHYy8WN+4T2gVu3Q3ZcCV47zuR3kLFQrtfAhA141rKHOa7tzGoTO8wu t5AaaQNLWWMgb+QfYVFHm5b9X3VBiBLrXBKuxHF0v6LFohZ6VaWbdxRzz A==; X-IronPort-AV: E=McAfee;i="6600,9927,10850"; a="361906869" X-IronPort-AV: E=Sophos;i="6.03,191,1694761200"; d="scan'208";a="361906869" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Oct 2023 07:44:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10850"; a="840769901" X-IronPort-AV: E=Sophos;i="6.03,191,1694761200"; d="scan'208";a="840769901" Received: from lkp-server02.sh.intel.com (HELO c3b01524d57c) ([10.239.97.151]) by FMSMGA003.fm.intel.com with ESMTP; 01 Oct 2023 07:44:02 -0700 Received: from kbuild by c3b01524d57c with local (Exim 4.96) (envelope-from ) id 1qmxfo-00058N-1r; Sun, 01 Oct 2023 14:43:57 +0000 Date: Sun, 1 Oct 2023 22:43:51 +0800 From: kernel test robot To: Sean Young , 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 Cc: oe-kbuild-all@lists.linux.dev, Sean Young , 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: <202310012229.ldJwkjOY-lkp@intel.com> References: <1bd5241d584ceb4d6b731c4dc3203fb9686ee1d1.1696156485.git.sean@mess.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1bd5241d584ceb4d6b731c4dc3203fb9686ee1d1.1696156485.git.sean@mess.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 (howler.vger.email [0.0.0.0]); Sun, 01 Oct 2023 07:44:15 -0700 (PDT) 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] 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: arm-randconfig-002-20231001 (https://download.01.org/0day-ci/archive/20231001/202310012229.ldJwkjOY-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231001/202310012229.ldJwkjOY-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/202310012229.ldJwkjOY-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from include/linux/cpumask.h:10, from include/linux/smp.h:13, from include/linux/lockdep.h:14, from include/linux/spinlock.h:63, 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/input/misc/da7280.c:12: include/linux/pwm.h: In function 'pwm_apply_state': >> include/linux/pwm.h:428:24: error: implicit declaration of function 'pwm_can_sleep'; did you mean 'cant_sleep'? [-Werror=implicit-function-declaration] 428 | might_sleep_if(pwm_can_sleep(pwm)); | ^~~~~~~~~~~~~ include/linux/kernel.h:194:39: note: in definition of macro 'might_sleep_if' 194 | #define might_sleep_if(cond) do { if (cond) might_sleep(); } while (0) | ^~~~ In file included from drivers/input/misc/da7280.c:16: include/linux/pwm.h: At top level: >> include/linux/pwm.h:455:20: error: conflicting types for 'pwm_can_sleep'; have 'bool(struct pwm_device *)' {aka '_Bool(struct pwm_device *)'} 455 | static inline bool pwm_can_sleep(struct pwm_device *pwm) | ^~~~~~~~~~~~~ include/linux/pwm.h:428:24: note: previous implicit declaration of 'pwm_can_sleep' with type 'int()' 428 | might_sleep_if(pwm_can_sleep(pwm)); | ^~~~~~~~~~~~~ include/linux/kernel.h:194:39: note: in definition of macro 'might_sleep_if' 194 | #define might_sleep_if(cond) do { if (cond) might_sleep(); } while (0) | ^~~~ cc1: some warnings being treated as errors vim +428 include/linux/pwm.h 419 420 struct pwm_device *devm_pwm_get(struct device *dev, const char *con_id); 421 struct pwm_device *devm_fwnode_pwm_get(struct device *dev, 422 struct fwnode_handle *fwnode, 423 const char *con_id); 424 #else 425 static inline int pwm_apply_state(struct pwm_device *pwm, 426 const struct pwm_state *state) 427 { > 428 might_sleep_if(pwm_can_sleep(pwm)); 429 return -ENOTSUPP; 430 } 431 432 static inline int pwm_adjust_config(struct pwm_device *pwm) 433 { 434 return -ENOTSUPP; 435 } 436 437 static inline int pwm_config(struct pwm_device *pwm, int duty_ns, 438 int period_ns) 439 { 440 might_sleep_if(pwm_can_sleep(pwm)); 441 return -EINVAL; 442 } 443 444 static inline int pwm_enable(struct pwm_device *pwm) 445 { 446 might_sleep_if(pwm_can_sleep(pwm)); 447 return -EINVAL; 448 } 449 450 static inline void pwm_disable(struct pwm_device *pwm) 451 { 452 might_sleep_if(pwm_can_sleep(pwm)); 453 } 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