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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28A0FC433EF for ; Tue, 15 Feb 2022 12:35:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237616AbiBOMgC (ORCPT ); Tue, 15 Feb 2022 07:36:02 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:40530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229824AbiBOMgB (ORCPT ); Tue, 15 Feb 2022 07:36:01 -0500 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93C15107D8C for ; Tue, 15 Feb 2022 04:35:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644928550; x=1676464550; h=date:from:to:cc:subject:message-id:mime-version; bh=nUPnPwPP8pRMKGQnEzBVfXeWVgFdKx7FESmHVob9CK8=; b=UM+qxhiCZ+Zk0/IkxSc97vz5jbRWD4ii/NJQyX+XHZuaGQ2XKUPO74TU lbm4dWsApVOQJyy74qws09CLPG4RmukJ7U8BxNnlE1vdu14gFKraYnnwK xX7tfXouW62nLH5ysMDDLHWd+LSB/KaI3mNWXK3E9ApiLEUzF/078A8oc Em+jN+Mbum6WBFIlyxYlt+zD1qqRyu+r2ZLZTWru851uFF7A4JJHPCNdf 8PKlD25LFiGVPMl+4cDm7gaI5791279Va9ckpm79iorN45cU7qbBE4ObZ k1fi7fr6LdwMYuCVMfUzWYNQxV1Qk2YtuEPzYSQGsjnDgIerWOZqnQB+z g==; X-IronPort-AV: E=McAfee;i="6200,9189,10258"; a="250285407" X-IronPort-AV: E=Sophos;i="5.88,370,1635231600"; d="scan'208";a="250285407" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2022 04:35:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,370,1635231600"; d="scan'208";a="635851648" Received: from lkp-server01.sh.intel.com (HELO d95dc2dabeb1) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 15 Feb 2022 04:35:48 -0800 Received: from kbuild by d95dc2dabeb1 with local (Exim 4.92) (envelope-from ) id 1nJx3b-0009eM-Rq; Tue, 15 Feb 2022 12:35:47 +0000 Date: Tue, 15 Feb 2022 20:34:58 +0800 From: kernel test robot To: Kevin Kim Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Dongjin Kim , Olliver Schinagl Subject: [tobetter:odroid-5.17.y 7/41] drivers/pwm/pwm-gpio.c:60:22: warning: no previous prototype for 'gpio_pwm_timer' Message-ID: <202202152016.BJIjKLQZ-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://github.com/tobetter/linux odroid-5.17.y head: 992855288ffabfafb16c8ed7ce9a81fc64cfc89a commit: 380f2027a31094e1f64a78ce0e424f02dea66bc7 [7/41] ODROID-COMMON: pwm: gpio: Add a generic gpio based PWM driver config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20220215/202202152016.BJIjKLQZ-lkp@intel.com/config) compiler: arceb-elf-gcc (GCC) 11.2.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/tobetter/linux/commit/380f2027a31094e1f64a78ce0e424f02dea66bc7 git remote add tobetter https://github.com/tobetter/linux git fetch --no-tags tobetter odroid-5.17.y git checkout 380f2027a31094e1f64a78ce0e424f02dea66bc7 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash drivers/pwm/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/pwm/pwm-gpio.c:60:22: warning: no previous prototype for 'gpio_pwm_timer' [-Wmissing-prototypes] 60 | enum hrtimer_restart gpio_pwm_timer(struct hrtimer *timer) | ^~~~~~~~~~~~~~ vim +/gpio_pwm_timer +60 drivers/pwm/pwm-gpio.c 59 > 60 enum hrtimer_restart gpio_pwm_timer(struct hrtimer *timer) 61 { 62 struct gpio_pwm_data *gpio_data = container_of(timer, 63 struct gpio_pwm_data, 64 timer); 65 if (!gpio_data->run) { 66 gpio_pwm_off(gpio_data); 67 gpio_data->pin_on = false; 68 return HRTIMER_NORESTART; 69 } 70 71 if (!gpio_data->pin_on) { 72 hrtimer_forward_now(&gpio_data->timer, 73 ns_to_ktime(gpio_data->on_time)); 74 gpio_pwm_on(gpio_data); 75 gpio_data->pin_on = true; 76 } else { 77 hrtimer_forward_now(&gpio_data->timer, 78 ns_to_ktime(gpio_data->off_time)); 79 gpio_pwm_off(gpio_data); 80 gpio_data->pin_on = false; 81 } 82 83 return HRTIMER_RESTART; 84 } 85 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org