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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47482C433EF for ; Sat, 7 May 2022 03:08:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 67ECE6B0071; Fri, 6 May 2022 23:08:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 62E956B0073; Fri, 6 May 2022 23:08:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 51C846B0074; Fri, 6 May 2022 23:08:48 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 420A46B0071 for ; Fri, 6 May 2022 23:08:48 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay13.hostedemail.com (Postfix) with ESMTP id 0BD9A600E2 for ; Sat, 7 May 2022 03:08:48 +0000 (UTC) X-FDA: 79437464736.09.2B725ED Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by imf06.hostedemail.com (Postfix) with ESMTP id 1F0C8180024 for ; Sat, 7 May 2022 03:08:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651892924; x=1683428924; h=date:from:to:cc:subject:message-id:mime-version; bh=Xg/+15Z6oUDHgf/80gewwBoPHGeXBM6xzdqhzC2o6ng=; b=MLTh8zv3tIGLxVQhQpENeQra/7k/tZ0HZc2efCimV9+fWJ2yX/r/fToT gaz//tr4ySFz3y8lSNlB4p7/GCJoi6FhAj4vIdFt+aovlv0/MC0Inpjkt KVp+ZROGnFJ2PKnsqZHQ+pyH+c6xBG8Epz0RjQTV+XovJQpLgMeaiUOIf AvGc/X28ywsXtVIUGWaLrjKFUnVn/I9DUTXapbu0wc7LhASrnVbnaKeIW uwyc4sAeWMTZ9y9RYYV0FBeNatw7p0h0zrype+clL0JH7ORoqaeNOlKEL F+To5xdClP0hVB/L8MEcKGduEiVY4x82uLlsXI9T7EsmY7FwTW1xozC7W w==; X-IronPort-AV: E=McAfee;i="6400,9594,10339"; a="329185039" X-IronPort-AV: E=Sophos;i="5.91,205,1647327600"; d="scan'208";a="329185039" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2022 20:08:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,205,1647327600"; d="scan'208";a="695459926" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 06 May 2022 20:08:41 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1nnAoC-000EA6-GT; Sat, 07 May 2022 03:08:40 +0000 Date: Sat, 7 May 2022 11:07:47 +0800 From: kernel test robot To: Horatiu Vultur Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Linux Memory Management List Subject: [linux-next:master 6350/9759] drivers/net/ethernet/microchip/lan966x/lan966x_ptp.c:342:9: error: call to undeclared function 'ptp_find_pin_unlocked'; ISO C99 and later do not support implicit function declarations Message-ID: <202205071105.X9CbIhTA-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 1F0C8180024 X-Stat-Signature: miuaef5wzgzmod4spfhz8p44xbem5dwk X-Rspam-User: Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=MLTh8zv3; spf=none (imf06.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.31) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-HE-Tag: 1651892921-467481 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000439, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 38a288f5941ef03752887ad86f2d85442358c99a commit: f3d8e0a9c28ba0bb3716dd5e8697a075ea36fdd8 [6350/9759] net: lan966x: Add support for PTP_PF_EXTTS config: arm64-randconfig-r011-20220506 (https://download.01.org/0day-ci/archive/20220507/202205071105.X9CbIhTA-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 5e004fb787698440a387750db7f8028e7cb14cfc) 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 # install arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=f3d8e0a9c28ba0bb3716dd5e8697a075ea36fdd8 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout f3d8e0a9c28ba0bb3716dd5e8697a075ea36fdd8 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/net/ethernet/microchip/lan966x/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Note: the linux-next/master HEAD 38a288f5941ef03752887ad86f2d85442358c99a builds fine. It may have been fixed somewhere. All errors (new ones prefixed by >>): >> drivers/net/ethernet/microchip/lan966x/lan966x_ptp.c:342:9: error: call to undeclared function 'ptp_find_pin_unlocked'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] pin = ptp_find_pin_unlocked(phc->clock, PTP_PF_EXTTS, 0); ^ 1 error generated. vim +/ptp_find_pin_unlocked +342 drivers/net/ethernet/microchip/lan966x/lan966x_ptp.c 323 324 irqreturn_t lan966x_ptp_ext_irq_handler(int irq, void *args) 325 { 326 struct lan966x *lan966x = args; 327 struct lan966x_phc *phc; 328 unsigned long flags; 329 u64 time = 0; 330 time64_t s; 331 int pin, i; 332 s64 ns; 333 334 if (!(lan_rd(lan966x, PTP_PIN_INTR))) 335 return IRQ_NONE; 336 337 /* Go through all domains and see which pin generated the interrupt */ 338 for (i = 0; i < LAN966X_PHC_COUNT; ++i) { 339 struct ptp_clock_event ptp_event = {0}; 340 341 phc = &lan966x->phc[i]; > 342 pin = ptp_find_pin_unlocked(phc->clock, PTP_PF_EXTTS, 0); 343 if (pin == -1) 344 continue; 345 346 if (!(lan_rd(lan966x, PTP_PIN_INTR) & BIT(pin))) 347 continue; 348 349 spin_lock_irqsave(&lan966x->ptp_clock_lock, flags); 350 351 /* Enable to get the new interrupt. 352 * By writing 1 it clears the bit 353 */ 354 lan_wr(BIT(pin), lan966x, PTP_PIN_INTR); 355 356 /* Get current time */ 357 s = lan_rd(lan966x, PTP_TOD_SEC_MSB(pin)); 358 s <<= 32; 359 s |= lan_rd(lan966x, PTP_TOD_SEC_LSB(pin)); 360 ns = lan_rd(lan966x, PTP_TOD_NSEC(pin)); 361 ns &= PTP_TOD_NSEC_TOD_NSEC; 362 363 spin_unlock_irqrestore(&lan966x->ptp_clock_lock, flags); 364 365 if ((ns & 0xFFFFFFF0) == 0x3FFFFFF0) { 366 s--; 367 ns &= 0xf; 368 ns += 999999984; 369 } 370 time = ktime_set(s, ns); 371 372 ptp_event.index = pin; 373 ptp_event.timestamp = time; 374 ptp_event.type = PTP_CLOCK_EXTTS; 375 ptp_clock_event(phc->clock, &ptp_event); 376 } 377 378 return IRQ_HANDLED; 379 } 380 -- 0-DAY CI Kernel Test Service https://01.org/lkp