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 1D86BC433F5 for ; Thu, 10 Mar 2022 08:45:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240493AbiCJIqv (ORCPT ); Thu, 10 Mar 2022 03:46:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240497AbiCJIqq (ORCPT ); Thu, 10 Mar 2022 03:46:46 -0500 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97316A66F8 for ; Thu, 10 Mar 2022 00:45:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646901946; x=1678437946; h=date:from:to:cc:subject:message-id:mime-version; bh=4i/2eeImYjknEWIhRQmXUuA5/J5BsCM2h33VWH6yLWI=; b=Kg7IqBkqWaZVMOUQyYzoUtzS4DEDAzIePY7tqywqVdHM1jS7q5UWVZDB +U8P5FInJrq2sys+RauX1NXMoojLQtMfrCvMq+Kgu++FrkzLPwIez5OrB jnABckkQlBSgjVuo+o/4sAtOyA7HwyNM3RqJfPizFt2U+/hVcCUwTQZun VigXmf/8IgB5+ibvpAOcZNzpkI6Ni2/XysMhUMHe16bWF85us9ql69GAv JilcmWlNXGC4O8A0/y0c/uwWGFmk1S2e1hdpZ0sZm5fCJu/DJa+vgE4Qi opADPP8p8h7E7C9BEa6Z9dA4T4yG6xb9C0Z62cPaS81SIs9nz5v9GWn1h g==; X-IronPort-AV: E=McAfee;i="6200,9189,10281"; a="235802447" X-IronPort-AV: E=Sophos;i="5.90,169,1643702400"; d="scan'208";a="235802447" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2022 00:45:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,169,1643702400"; d="scan'208";a="632915314" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by FMSMGA003.fm.intel.com with ESMTP; 10 Mar 2022 00:45:45 -0800 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nSEQa-0004ff-D4; Thu, 10 Mar 2022 08:45:44 +0000 Date: Thu, 10 Mar 2022 16:45:02 +0800 From: kernel test robot To: Dai Ngo Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Chuck Lever Subject: [cel:nfsd-courteous-server 39/39] fs/nfsd/nfs4state.c:2460:44: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'u64' {aka 'long long unsigned int'} Message-ID: <202203101651.SDV0fBRF-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: git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux nfsd-courteous-server head: 25cf03b50a8a38217a4e1a9b178af4d9afa2b9ea commit: 25cf03b50a8a38217a4e1a9b178af4d9afa2b9ea [39/39] NFSD: Show state of courtesy clients in client info config: x86_64-rhel-8.3-kunit (https://download.01.org/0day-ci/archive/20220310/202203101651.SDV0fBRF-lkp@intel.com/config) compiler: gcc-9 (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git/commit/?id=25cf03b50a8a38217a4e1a9b178af4d9afa2b9ea git remote add cel git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux git fetch --no-tags cel nfsd-courteous-server git checkout 25cf03b50a8a38217a4e1a9b178af4d9afa2b9ea # save the config file to linux build tree mkdir build_dir make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash fs/nfsd/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): fs/nfsd/nfs4state.c: In function 'client_info_show': >> fs/nfsd/nfs4state.c:2460:44: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 2460 | seq_printf(m, "time since last renew: %02ld:%02d:%02d\n", hrs, mins, secs); | ~~~~^ ~~~ | | | | long int u64 {aka long long unsigned int} | %02lld vim +2460 fs/nfsd/nfs4state.c 2437 2438 static int client_info_show(struct seq_file *m, void *v) 2439 { 2440 struct inode *inode = m->private; 2441 struct nfs4_client *clp; 2442 u64 clid, hrs; 2443 u32 mins, secs; 2444 2445 clp = get_nfsdfs_clp(inode); 2446 if (!clp) 2447 return -ENXIO; 2448 memcpy(&clid, &clp->cl_clientid, sizeof(clid)); 2449 seq_printf(m, "clientid: 0x%llx\n", clid); 2450 seq_printf(m, "address: \"%pISpc\"\n", (struct sockaddr *)&clp->cl_addr); 2451 if (test_bit(NFSD4_CLIENT_CONFIRMED, &clp->cl_flags)) 2452 seq_puts(m, "status: confirmed\n"); 2453 else 2454 seq_puts(m, "status: unconfirmed\n"); 2455 seq_printf(m, "courtesy client: %s\n", 2456 test_bit(NFSD4_CLIENT_COURTESY, &clp->cl_flags) ? "yes" : "no"); 2457 hrs = div_u64_rem(ktime_get_boottime_seconds() - clp->cl_time, 2458 3600, &secs); 2459 mins = div_u64_rem((u64)secs, 60, &secs); > 2460 seq_printf(m, "time since last renew: %02ld:%02d:%02d\n", hrs, mins, secs); 2461 seq_printf(m, "name: "); 2462 seq_quote_mem(m, clp->cl_name.data, clp->cl_name.len); 2463 seq_printf(m, "\nminor version: %d\n", clp->cl_minorversion); 2464 if (clp->cl_nii_domain.data) { 2465 seq_printf(m, "Implementation domain: "); 2466 seq_quote_mem(m, clp->cl_nii_domain.data, 2467 clp->cl_nii_domain.len); 2468 seq_printf(m, "\nImplementation name: "); 2469 seq_quote_mem(m, clp->cl_nii_name.data, clp->cl_nii_name.len); 2470 seq_printf(m, "\nImplementation time: [%lld, %ld]\n", 2471 clp->cl_nii_time.tv_sec, clp->cl_nii_time.tv_nsec); 2472 } 2473 seq_printf(m, "callback state: %s\n", cb_state2str(clp->cl_cb_state)); 2474 seq_printf(m, "callback address: %pISpc\n", &clp->cl_cb_conn.cb_addr); 2475 drop_client(clp); 2476 2477 return 0; 2478 } 2479 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org