mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [kbuild] x86_64/xen_shinfo_test.c:109:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result'
@ 2021-07-21  9:24 Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2021-07-21  9:24 UTC (permalink / raw)
  To: kbuild, David Woodhouse
  Cc: lkp, kbuild-all, linux-kernel, Paolo Bonzini, Joao Martins

Hi David,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git  master
head:   8cae8cd89f05f6de223d63e6d15e31c8ba9cf53b
commit: 30b5c851af7991ad08abe90c1e7c31615fa98a1a KVM: x86/xen: Add support for vCPU runstate information
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=30b5c851af7991ad08abe90c1e7c31615fa98a1a 
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
        git fetch --no-tags linus master
        git checkout 30b5c851af7991ad08abe90c1e7c31615fa98a1a
        # 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 >>):

   x86_64/xen_shinfo_test.c: In function 'get_run_delay':
>> x86_64/xen_shinfo_test.c:109:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
     109 |         fscanf(fp, "%ld %ld ", &val[0], &val[1]);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

_______________________________________________
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-leave@lists.01.org


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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-21  9:24 [kbuild] x86_64/xen_shinfo_test.c:109:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®