All of lore.kernel.org
 help / color / mirror / Atom feed
* lib/test_util.c:143:2: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result'
@ 2021-07-21 20:37 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-07-21 20:37 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 1847 bytes --]

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Yanan Wang <wangyanan55@huawei.com>
CC: Paolo Bonzini <pbonzini@redhat.com>
CC: Ben Gardon <bgardon@google.com>
CC: Andrew Jones <drjones@redhat.com>

Hi Yanan,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   8cae8cd89f05f6de223d63e6d15e31c8ba9cf53b
commit: 3b70c4d128a7781f507fa072d60ce5df3fdfcaa6 KVM: selftests: Add a helper to get system configured THP page size
date:   3 months ago
:::::: branch date: 2 days ago
:::::: commit date: 3 months ago
config: x86_64-rhel-8.3-kselftests (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-341-g8af24329-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3b70c4d128a7781f507fa072d60ce5df3fdfcaa6
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 3b70c4d128a7781f507fa072d60ce5df3fdfcaa6
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   lib/test_util.c: In function 'get_trans_hugepagesz':
>> lib/test_util.c:143:2: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
     143 |  fscanf(f, "%ld", &size);
         |  ^~~~~~~~~~~~~~~~~~~~~~~

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 41611 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-21 20:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-21 20:37 lib/test_util.c:143:2: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.