* [frank-w-bpi-r2-4.14:6.5-dango-r4 7979/8003] drivers/mtd/mtdsplit/mtdsplit_fit.c:82: warning: expecting prototype for Get 'data(). Prototype was for fit_image_get_data_offset() instead
@ 2023-08-12 8:31 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-08-12 8:31 UTC (permalink / raw)
To: Frank Wunderlich; +Cc: oe-kbuild-all
tree: https://github.com/frank-w/BPI-R2-4.14 6.5-dango-r4
head: 33ae06cdbe7cdded20d1ac549403343243272109
commit: 1d762c3039f69d6949056a6da3a9817d37461036 [7979/8003] OWRT BUILD: mtd: mtdsplit support
config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20230812/202308121648.ezcYGmN6-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230812/202308121648.ezcYGmN6-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308121648.ezcYGmN6-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/mtd/mtdsplit/mtdsplit_fit.c:82: warning: expecting prototype for Get 'data(). Prototype was for fit_image_get_data_offset() instead
>> drivers/mtd/mtdsplit/mtdsplit_fit.c:107: warning: expecting prototype for Get 'data(). Prototype was for fit_image_get_data_position() instead
>> drivers/mtd/mtdsplit/mtdsplit_fit.c:131: warning: expecting prototype for Get 'data(). Prototype was for fit_image_get_data_size() instead
vim +82 drivers/mtd/mtdsplit/mtdsplit_fit.c
68
69
70 /**
71 * Get 'data-offset' property from a given image node.
72 *
73 * @fit: pointer to the FIT image header
74 * @noffset: component image node offset
75 * @data_offset: holds the data-offset property
76 *
77 * returns:
78 * 0, on success
79 * -ENOENT if the property could not be found
80 */
81 static int fit_image_get_data_offset(const void *fit, int noffset, int *data_offset)
> 82 {
83 const fdt32_t *val;
84
85 val = fdt_getprop(fit, noffset, FIT_DATA_OFFSET_PROP, NULL);
86 if (!val)
87 return -ENOENT;
88
89 *data_offset = fdt32_to_cpu(*val);
90
91 return 0;
92 }
93
94 /**
95 * Get 'data-position' property from a given image node.
96 *
97 * @fit: pointer to the FIT image header
98 * @noffset: component image node offset
99 * @data_position: holds the data-position property
100 *
101 * returns:
102 * 0, on success
103 * -ENOENT if the property could not be found
104 */
105 static int fit_image_get_data_position(const void *fit, int noffset,
106 int *data_position)
> 107 {
108 const fdt32_t *val;
109
110 val = fdt_getprop(fit, noffset, FIT_DATA_POSITION_PROP, NULL);
111 if (!val)
112 return -ENOENT;
113
114 *data_position = fdt32_to_cpu(*val);
115
116 return 0;
117 }
118
119 /**
120 * Get 'data-size' property from a given image node.
121 *
122 * @fit: pointer to the FIT image header
123 * @noffset: component image node offset
124 * @data_size: holds the data-size property
125 *
126 * returns:
127 * 0, on success
128 * -ENOENT if the property could not be found
129 */
130 static int fit_image_get_data_size(const void *fit, int noffset, int *data_size)
> 131 {
132 const fdt32_t *val;
133
134 val = fdt_getprop(fit, noffset, FIT_DATA_SIZE_PROP, NULL);
135 if (!val)
136 return -ENOENT;
137
138 *data_size = fdt32_to_cpu(*val);
139
140 return 0;
141 }
142
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-08-12 8:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-12 8:31 [frank-w-bpi-r2-4.14:6.5-dango-r4 7979/8003] drivers/mtd/mtdsplit/mtdsplit_fit.c:82: warning: expecting prototype for Get 'data(). Prototype was for fit_image_get_data_offset() instead kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).