From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 71A9DC3DA4A for ; Sun, 11 Aug 2024 01:17:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=XPm0QEPFHaYMWKaXp44aJZ+nqqQP30OdSJKv05Rq4JA=; b=vhXLW59O0dovbmQaqP8OpuhyFT Iylil4ZATSR7XgTnZOyJg6aUdraQnlyz01VOdeJ6wLQNvDudSomSK6SkHH/YL5bbhJb/28m6jB7FU iBZHxN8dM+hQz5hIFi3WeqIPwXoE9gVmZKFdJqVb1gc7q60Spc6yr8BPLCM+ReikUpucCpiUmbcXc WDwqqdvGonfR708n1M0RGd6qm7u1Zt0AvQao97qgEdS3MFpPd36A2VXQqtKO27vNDvZCEICnaq7Cp dr2WArzwzAgB+w2/NrYM+6weOJP/1FEpMRy2UXif+ovl0Y5+QoRNMs2qRVfa9zX+fj4NIt3GN7Y+C Ncp3RVMg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1scxCf-0000000EpB0-281g; Sun, 11 Aug 2024 01:17:01 +0000 Received: from mgamail.intel.com ([198.175.65.20]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1scxC5-0000000Ep9V-2Q8V for linux-arm-kernel@lists.infradead.org; Sun, 11 Aug 2024 01:16:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723338986; x=1754874986; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=3TC40Bj7SfvFrdCPW3F0lPZBq4YcUtzaKyXJ1rYP0II=; b=DR+NAC/hcyyynS1kso2gqQXKe+2VDnD6cDmiGLgbsNyIRioj5HKAumCO V3Bcxtoc6O2X2RUgxu4ibow78NVjOLeGK7fA/CBTYT7XEFT+T0wTNCmTe KA9I8XZpHufRImisrZAhtFzOyTMqQnHco0TaqiW5p3I3dtCoqydGZQSqd vKgy+K4wemjL4yhtoQ6BZSOa70zxBb12V6JVGaqGYTKWEHw3f/t4e77PR vr7AJms5FVxuQF9xqJToPHx6IGPGkj9Kx8/6SzUEceBHyXQkKKfYsxy1b He3aBeS8FbiYukJ7UNBiO5MQHj8ZDl1OjRwu+R9z8c8zh7Ttun32Ah3/g Q==; X-CSE-ConnectionGUID: HR/YB7yhTGCSKRkeHLYJrg== X-CSE-MsgGUID: helAlTsuQja4eWRe9TpWSw== X-IronPort-AV: E=McAfee;i="6700,10204,11160"; a="21289865" X-IronPort-AV: E=Sophos;i="6.09,280,1716274800"; d="scan'208";a="21289865" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2024 18:16:22 -0700 X-CSE-ConnectionGUID: xeTS7v2OSYGPJ3Y8wISTDA== X-CSE-MsgGUID: r+CI+Az8TjmyOGPYlCSUwg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,280,1716274800"; d="scan'208";a="81144904" Received: from unknown (HELO b6bf6c95bbab) ([10.239.97.151]) by fmviesa002.fm.intel.com with ESMTP; 10 Aug 2024 18:16:18 -0700 Received: from kbuild by b6bf6c95bbab with local (Exim 4.96) (envelope-from ) id 1scxBw-000ASL-0R; Sun, 11 Aug 2024 01:16:16 +0000 Date: Sun, 11 Aug 2024 09:15:37 +0800 From: kernel test robot To: Lorenzo Bianconi , linux-pwm@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, ukleinek@kernel.org, lorenzo.bianconi83@gmail.com, krzk+dt@kernel.org, robh@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, upstream@airoha.com, angelogioacchino.delregno@collabora.com, benjamin.larsson@genexis.eu, conor+dt@kernel.org, ansuelsmth@gmail.com Subject: Re: [PATCH 2/2] pwm: airoha: Add support for EN7581 SoC Message-ID: <202408110920.KEW33sRE-lkp@intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240810_181625_689370_FF9C1590 X-CRM114-Status: GOOD ( 12.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Lorenzo, kernel test robot noticed the following build errors: [auto build test ERROR on robh/for-next] [also build test ERROR on linus/master thierry-reding-pwm/for-next v6.11-rc2 next-20240809] [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/Lorenzo-Bianconi/dt-bindings-pwm-Document-Airoha-EN7581-PWM/20240810-143716 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next patch link: https://lore.kernel.org/r/a03f5ea9291e39eab303696eb03fdd44cf04e8d9.1723264979.git.lorenzo%40kernel.org patch subject: [PATCH 2/2] pwm: airoha: Add support for EN7581 SoC config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20240811/202408110920.KEW33sRE-lkp@intel.com/config) compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project f86594788ce93b696675c94f54016d27a6c21d18) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240811/202408110920.KEW33sRE-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/202408110920.KEW33sRE-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from drivers/pwm/pwm-airoha.c:7: In file included from include/linux/io.h:14: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 548 | val = __raw_readb(PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 561 | val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' 37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) | ^ In file included from drivers/pwm/pwm-airoha.c:7: In file included from include/linux/io.h:14: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 574 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' 35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) | ^ In file included from drivers/pwm/pwm-airoha.c:7: In file included from include/linux/io.h:14: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 585 | __raw_writeb(value, PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 595 | __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 605 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ >> drivers/pwm/pwm-airoha.c:239:19: error: call to undeclared function '__bf_shf'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 239 | val = (period << __bf_shf(mask)) & mask; | ^ drivers/pwm/pwm-airoha.c:271:24: error: call to undeclared function '__bf_shf'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 271 | val = ((index & 7) << __bf_shf(mask)) & mask; | ^ 6 warnings and 2 errors generated. vim +/__bf_shf +239 drivers/pwm/pwm-airoha.c 231 232 static void airoha_pwm_config_waveform(struct airoha_pwm *pc, int index, 233 u32 duty, u32 period) 234 { 235 u32 mask, val; 236 237 /* Configure frequency divisor */ 238 mask = WAVE_GEN_CYCLE_MASK(index % 4); > 239 val = (period << __bf_shf(mask)) & mask; 240 airoha_pwm_cycle_rmw(pc, REG_CYCLE_CFG_VALUE(index / 4), mask, val); 241 242 /* Configure duty cycle */ 243 duty = ((DUTY_FULL - duty) << 8) | duty; 244 mask = GPIO_FLASH_PRD_MASK(index % 2); 245 val = (duty << __bf_shf(mask)) & mask; 246 airoha_pwm_flash_rmw(pc, REG_GPIO_FLASH_PRD_SET(index / 2), mask, val); 247 } 248 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki