CC: [email protected]
TO: [email protected]
TO: Guenter Roeck <[email protected]>

tree:   https://chromium.googlesource.com/chromiumos/third_party/kernel 
chromeos-4.14
head:   8f2a6784b462f026ff627cc3d58ffd9310c4d9e5
commit: d05f1e1c98a8d866bbc252dc69e236890a87a122 [29993/30000] CHROMIUM: Merge 
'v4.14.184' into chromeos-4.14
:::::: branch date: 4 hours ago
:::::: commit date: 28 hours ago
config: 
arm64-chromiumos-qualcomm-customedconfig-chrome-os:chromeos-4.14:8f2a6784b462f026ff627cc3d58ffd9310c4d9e5
 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 7.5.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
        git checkout d05f1e1c98a8d866bbc252dc69e236890a87a122
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross 
ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>

All errors (new ones prefixed by >>, old ones prefixed by <<):

drivers/base/cpu.c: In function '__cpu_device_create':
drivers/base/cpu.c:420:2: error: function '__cpu_device_create' might be a 
candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format]
retval = kobject_set_name_vargs(&dev->kobj, fmt, args);
^~~~~~
drivers/base/cpu.c: At top level:
>> drivers/base/cpu.c:556:16: error: no previous prototype for 'cpu_show_srbds' 
>> [-Werror=missing-prototypes]
ssize_t __weak cpu_show_srbds(struct device *dev,
^~~~~~~~~~~~~~
cc1: all warnings being treated as errors

git remote add chrome-os 
https://chromium.googlesource.com/chromiumos/third_party/kernel
git remote update chrome-os
git checkout d05f1e1c98a8d866bbc252dc69e236890a87a122
vim +/cpu_show_srbds +556 drivers/base/cpu.c

3d52943b3a5149 Sudeep Holla          2014-09-30  398  
3d52943b3a5149 Sudeep Holla          2014-09-30  399  static struct device *
3d52943b3a5149 Sudeep Holla          2014-09-30  400  
__cpu_device_create(struct device *parent, void *drvdata,
3d52943b3a5149 Sudeep Holla          2014-09-30  401                const 
struct attribute_group **groups,
3d52943b3a5149 Sudeep Holla          2014-09-30  402                const char 
*fmt, va_list args)
3d52943b3a5149 Sudeep Holla          2014-09-30  403  {
3d52943b3a5149 Sudeep Holla          2014-09-30  404    struct device *dev = 
NULL;
3d52943b3a5149 Sudeep Holla          2014-09-30  405    int retval = -ENODEV;
3d52943b3a5149 Sudeep Holla          2014-09-30  406  
3d52943b3a5149 Sudeep Holla          2014-09-30  407    dev = 
kzalloc(sizeof(*dev), GFP_KERNEL);
3d52943b3a5149 Sudeep Holla          2014-09-30  408    if (!dev) {
3d52943b3a5149 Sudeep Holla          2014-09-30  409            retval = 
-ENOMEM;
3d52943b3a5149 Sudeep Holla          2014-09-30  410            goto error;
3d52943b3a5149 Sudeep Holla          2014-09-30  411    }
3d52943b3a5149 Sudeep Holla          2014-09-30  412  
3d52943b3a5149 Sudeep Holla          2014-09-30  413    device_initialize(dev);
3d52943b3a5149 Sudeep Holla          2014-09-30  414    dev->parent = parent;
3d52943b3a5149 Sudeep Holla          2014-09-30  415    dev->groups = groups;
3d52943b3a5149 Sudeep Holla          2014-09-30  416    dev->release = 
device_create_release;
7fff20613e14f4 Sudeep Holla          2019-02-14  417    
device_set_pm_not_required(dev);
3d52943b3a5149 Sudeep Holla          2014-09-30  418    dev_set_drvdata(dev, 
drvdata);
3d52943b3a5149 Sudeep Holla          2014-09-30  419  
3d52943b3a5149 Sudeep Holla          2014-09-30 @420    retval = 
kobject_set_name_vargs(&dev->kobj, fmt, args);
3d52943b3a5149 Sudeep Holla          2014-09-30  421    if (retval)
3d52943b3a5149 Sudeep Holla          2014-09-30  422            goto error;
3d52943b3a5149 Sudeep Holla          2014-09-30  423  
3d52943b3a5149 Sudeep Holla          2014-09-30  424    retval = 
device_add(dev);
3d52943b3a5149 Sudeep Holla          2014-09-30  425    if (retval)
3d52943b3a5149 Sudeep Holla          2014-09-30  426            goto error;
3d52943b3a5149 Sudeep Holla          2014-09-30  427  
3d52943b3a5149 Sudeep Holla          2014-09-30  428    return dev;
3d52943b3a5149 Sudeep Holla          2014-09-30  429  
3d52943b3a5149 Sudeep Holla          2014-09-30  430  error:
3d52943b3a5149 Sudeep Holla          2014-09-30  431    put_device(dev);
3d52943b3a5149 Sudeep Holla          2014-09-30  432    return ERR_PTR(retval);
3d52943b3a5149 Sudeep Holla          2014-09-30  433  }
3d52943b3a5149 Sudeep Holla          2014-09-30  434  
3d52943b3a5149 Sudeep Holla          2014-09-30  435  struct device 
*cpu_device_create(struct device *parent, void *drvdata,
3d52943b3a5149 Sudeep Holla          2014-09-30  436                            
 const struct attribute_group **groups,
3d52943b3a5149 Sudeep Holla          2014-09-30  437                            
 const char *fmt, ...)
3d52943b3a5149 Sudeep Holla          2014-09-30  438  {
3d52943b3a5149 Sudeep Holla          2014-09-30  439    va_list vargs;
3d52943b3a5149 Sudeep Holla          2014-09-30  440    struct device *dev;
3d52943b3a5149 Sudeep Holla          2014-09-30  441  
3d52943b3a5149 Sudeep Holla          2014-09-30  442    va_start(vargs, fmt);
3d52943b3a5149 Sudeep Holla          2014-09-30  443    dev = 
__cpu_device_create(parent, drvdata, groups, fmt, vargs);
3d52943b3a5149 Sudeep Holla          2014-09-30  444    va_end(vargs);
3d52943b3a5149 Sudeep Holla          2014-09-30  445    return dev;
3d52943b3a5149 Sudeep Holla          2014-09-30  446  }
3d52943b3a5149 Sudeep Holla          2014-09-30  447  
EXPORT_SYMBOL_GPL(cpu_device_create);
3d52943b3a5149 Sudeep Holla          2014-09-30  448  
2b9c1f03278ab7 Ard Biesheuvel        2014-02-08  449  #ifdef 
CONFIG_GENERIC_CPU_AUTOPROBE
67bad2fdb754db Ard Biesheuvel        2014-02-08  450  static 
DEVICE_ATTR(modalias, 0444, print_cpu_modalias, NULL);
fad12ac8c8c259 Thomas Renninger      2012-01-26  451  #endif
fad12ac8c8c259 Thomas Renninger      2012-01-26  452  
8a25a2fd126c62 Kay Sievers           2011-12-21  453  static struct attribute 
*cpu_root_attrs[] = {
8a25a2fd126c62 Kay Sievers           2011-12-21  454  #ifdef 
CONFIG_ARCH_CPU_PROBE_RELEASE
8a25a2fd126c62 Kay Sievers           2011-12-21  455    &dev_attr_probe.attr,
8a25a2fd126c62 Kay Sievers           2011-12-21  456    &dev_attr_release.attr,
8a25a2fd126c62 Kay Sievers           2011-12-21  457  #endif
8a25a2fd126c62 Kay Sievers           2011-12-21  458    &cpu_attrs[0].attr.attr,
8a25a2fd126c62 Kay Sievers           2011-12-21  459    &cpu_attrs[1].attr.attr,
8a25a2fd126c62 Kay Sievers           2011-12-21  460    &cpu_attrs[2].attr.attr,
8a25a2fd126c62 Kay Sievers           2011-12-21  461    
&dev_attr_kernel_max.attr,
8a25a2fd126c62 Kay Sievers           2011-12-21  462    &dev_attr_offline.attr,
59f30abe94bff5 Rik van Riel          2015-04-24  463    &dev_attr_isolated.attr,
6570a9a1ce3a1d Rik van Riel          2015-04-24  464  #ifdef CONFIG_NO_HZ_FULL
6570a9a1ce3a1d Rik van Riel          2015-04-24  465    
&dev_attr_nohz_full.attr,
6570a9a1ce3a1d Rik van Riel          2015-04-24  466  #endif
2b9c1f03278ab7 Ard Biesheuvel        2014-02-08  467  #ifdef 
CONFIG_GENERIC_CPU_AUTOPROBE
fad12ac8c8c259 Thomas Renninger      2012-01-26  468    &dev_attr_modalias.attr,
fad12ac8c8c259 Thomas Renninger      2012-01-26  469  #endif
8a25a2fd126c62 Kay Sievers           2011-12-21  470    NULL
8a25a2fd126c62 Kay Sievers           2011-12-21  471  };
8a25a2fd126c62 Kay Sievers           2011-12-21  472  
8a25a2fd126c62 Kay Sievers           2011-12-21  473  static struct 
attribute_group cpu_root_attr_group = {
8a25a2fd126c62 Kay Sievers           2011-12-21  474    .attrs = cpu_root_attrs,
8a25a2fd126c62 Kay Sievers           2011-12-21  475  };
8a25a2fd126c62 Kay Sievers           2011-12-21  476  
8a25a2fd126c62 Kay Sievers           2011-12-21  477  static const struct 
attribute_group *cpu_root_attr_groups[] = {
8a25a2fd126c62 Kay Sievers           2011-12-21  478    &cpu_root_attr_group,
8a25a2fd126c62 Kay Sievers           2011-12-21  479    NULL,
8a25a2fd126c62 Kay Sievers           2011-12-21  480  };
^1da177e4c3f41 Linus Torvalds        2005-04-16  481  
2987557f52b97f Josh Triplett         2011-12-03  482  bool 
cpu_is_hotpluggable(unsigned cpu)
2987557f52b97f Josh Triplett         2011-12-03  483  {
7affca3537d743 Linus Torvalds        2012-01-07  484    struct device *dev = 
get_cpu_device(cpu);
7affca3537d743 Linus Torvalds        2012-01-07  485    return dev && 
container_of(dev, struct cpu, dev)->hotpluggable;
2987557f52b97f Josh Triplett         2011-12-03  486  }
2987557f52b97f Josh Triplett         2011-12-03  487  
EXPORT_SYMBOL_GPL(cpu_is_hotpluggable);
2987557f52b97f Josh Triplett         2011-12-03  488  
9f13a1fd452f11 Ben Hutchings         2012-01-10  489  #ifdef 
CONFIG_GENERIC_CPU_DEVICES
9f13a1fd452f11 Ben Hutchings         2012-01-10  490  static 
DEFINE_PER_CPU(struct cpu, cpu_devices);
9f13a1fd452f11 Ben Hutchings         2012-01-10  491  #endif
9f13a1fd452f11 Ben Hutchings         2012-01-10  492  
9f13a1fd452f11 Ben Hutchings         2012-01-10  493  static void __init 
cpu_dev_register_generic(void)
9f13a1fd452f11 Ben Hutchings         2012-01-10  494  {
9f13a1fd452f11 Ben Hutchings         2012-01-10  495  #ifdef 
CONFIG_GENERIC_CPU_DEVICES
9f13a1fd452f11 Ben Hutchings         2012-01-10  496    int i;
9f13a1fd452f11 Ben Hutchings         2012-01-10  497  
9f13a1fd452f11 Ben Hutchings         2012-01-10  498    
for_each_possible_cpu(i) {
9f13a1fd452f11 Ben Hutchings         2012-01-10  499            if 
(register_cpu(&per_cpu(cpu_devices, i), i))
9f13a1fd452f11 Ben Hutchings         2012-01-10  500                    
panic("Failed to register CPU device");
9f13a1fd452f11 Ben Hutchings         2012-01-10  501    }
9f13a1fd452f11 Ben Hutchings         2012-01-10  502  #endif
9f13a1fd452f11 Ben Hutchings         2012-01-10  503  }
9f13a1fd452f11 Ben Hutchings         2012-01-10  504  
5a3e4b399ebc99 Thomas Gleixner       2018-01-07  505  #ifdef 
CONFIG_GENERIC_CPU_VULNERABILITIES
5a3e4b399ebc99 Thomas Gleixner       2018-01-07  506  
5a3e4b399ebc99 Thomas Gleixner       2018-01-07  507  ssize_t __weak 
cpu_show_meltdown(struct device *dev,
5a3e4b399ebc99 Thomas Gleixner       2018-01-07  508                            
 struct device_attribute *attr, char *buf)
5a3e4b399ebc99 Thomas Gleixner       2018-01-07  509  {
5a3e4b399ebc99 Thomas Gleixner       2018-01-07  510    return sprintf(buf, 
"Not affected\n");
5a3e4b399ebc99 Thomas Gleixner       2018-01-07  511  }
5a3e4b399ebc99 Thomas Gleixner       2018-01-07  512  
5a3e4b399ebc99 Thomas Gleixner       2018-01-07  513  ssize_t __weak 
cpu_show_spectre_v1(struct device *dev,
5a3e4b399ebc99 Thomas Gleixner       2018-01-07  514                            
   struct device_attribute *attr, char *buf)
5a3e4b399ebc99 Thomas Gleixner       2018-01-07  515  {
5a3e4b399ebc99 Thomas Gleixner       2018-01-07  516    return sprintf(buf, 
"Not affected\n");
5a3e4b399ebc99 Thomas Gleixner       2018-01-07  517  }
5a3e4b399ebc99 Thomas Gleixner       2018-01-07  518  
5a3e4b399ebc99 Thomas Gleixner       2018-01-07  519  ssize_t __weak 
cpu_show_spectre_v2(struct device *dev,
5a3e4b399ebc99 Thomas Gleixner       2018-01-07  520                            
   struct device_attribute *attr, char *buf)
5a3e4b399ebc99 Thomas Gleixner       2018-01-07  521  {
5a3e4b399ebc99 Thomas Gleixner       2018-01-07  522    return sprintf(buf, 
"Not affected\n");
5a3e4b399ebc99 Thomas Gleixner       2018-01-07  523  }
5a3e4b399ebc99 Thomas Gleixner       2018-01-07  524  
c6dc89dd04e3ad Konrad Rzeszutek Wilk 2018-04-25  525  ssize_t __weak 
cpu_show_spec_store_bypass(struct device *dev,
c6dc89dd04e3ad Konrad Rzeszutek Wilk 2018-04-25  526                            
          struct device_attribute *attr, char *buf)
c6dc89dd04e3ad Konrad Rzeszutek Wilk 2018-04-25  527  {
c6dc89dd04e3ad Konrad Rzeszutek Wilk 2018-04-25  528    return sprintf(buf, 
"Not affected\n");
c6dc89dd04e3ad Konrad Rzeszutek Wilk 2018-04-25  529  }
c6dc89dd04e3ad Konrad Rzeszutek Wilk 2018-04-25  530  
3d98de691c013e Andi Kleen            2018-06-13  531  ssize_t __weak 
cpu_show_l1tf(struct device *dev,
3d98de691c013e Andi Kleen            2018-06-13  532                         
struct device_attribute *attr, char *buf)
3d98de691c013e Andi Kleen            2018-06-13  533  {
3d98de691c013e Andi Kleen            2018-06-13  534    return sprintf(buf, 
"Not affected\n");
3d98de691c013e Andi Kleen            2018-06-13  535  }
3d98de691c013e Andi Kleen            2018-06-13  536  
644386d19f4beb Thomas Gleixner       2019-02-18  537  ssize_t __weak 
cpu_show_mds(struct device *dev,
644386d19f4beb Thomas Gleixner       2019-02-18  538                        
struct device_attribute *attr, char *buf)
644386d19f4beb Thomas Gleixner       2019-02-18  539  {
644386d19f4beb Thomas Gleixner       2019-02-18  540    return sprintf(buf, 
"Not affected\n");
644386d19f4beb Thomas Gleixner       2019-02-18  541  }
644386d19f4beb Thomas Gleixner       2019-02-18  542  
79373f485f7be0 Pawan Gupta           2019-10-23  543  ssize_t __weak 
cpu_show_tsx_async_abort(struct device *dev,
79373f485f7be0 Pawan Gupta           2019-10-23  544                            
        struct device_attribute *attr,
79373f485f7be0 Pawan Gupta           2019-10-23  545                            
        char *buf)
79373f485f7be0 Pawan Gupta           2019-10-23  546  {
79373f485f7be0 Pawan Gupta           2019-10-23  547    return sprintf(buf, 
"Not affected\n");
79373f485f7be0 Pawan Gupta           2019-10-23  548  }
79373f485f7be0 Pawan Gupta           2019-10-23  549  
56a0f3867c1bc4 Vineela Tummalapalli  2019-11-04  550  ssize_t __weak 
cpu_show_itlb_multihit(struct device *dev,
56a0f3867c1bc4 Vineela Tummalapalli  2019-11-04  551                        
struct device_attribute *attr, char *buf)
56a0f3867c1bc4 Vineela Tummalapalli  2019-11-04  552  {
56a0f3867c1bc4 Vineela Tummalapalli  2019-11-04  553    return sprintf(buf, 
"Not affected\n");
56a0f3867c1bc4 Vineela Tummalapalli  2019-11-04  554  }
56a0f3867c1bc4 Vineela Tummalapalli  2019-11-04  555  
9ecf57e4aaca71 Mark Gross            2020-04-16 @556  ssize_t __weak 
cpu_show_srbds(struct device *dev,
9ecf57e4aaca71 Mark Gross            2020-04-16  557                          
struct device_attribute *attr, char *buf)
9ecf57e4aaca71 Mark Gross            2020-04-16  558  {
9ecf57e4aaca71 Mark Gross            2020-04-16  559    return sprintf(buf, 
"Not affected\n");
9ecf57e4aaca71 Mark Gross            2020-04-16  560  }
9ecf57e4aaca71 Mark Gross            2020-04-16  561  

:::::: The code at line 556 was first introduced by commit
:::::: 9ecf57e4aaca7197ab0f196e8a7b74d57e974ad9 x86/speculation: Add Special 
Register Buffer Data Sampling (SRBDS) mitigation

:::::: TO: Mark Gross <[email protected]>
:::::: CC: Greg Kroah-Hartman <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to