mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
drivers: block: fix placement of parameters
Signed-off-by: Eric Nelson <eric@nelint.com>
This commit is contained in:
@@ -96,10 +96,9 @@ struct blk_desc {
|
|||||||
*
|
*
|
||||||
* @return - '1' if block returned from cache, '0' otherwise.
|
* @return - '1' if block returned from cache, '0' otherwise.
|
||||||
*/
|
*/
|
||||||
int blkcache_read
|
int blkcache_read(int iftype, int dev,
|
||||||
(int iftype, int dev,
|
lbaint_t start, lbaint_t blkcnt,
|
||||||
lbaint_t start, lbaint_t blkcnt,
|
unsigned long blksz, void *buffer);
|
||||||
unsigned long blksz, void *buffer);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* blkcache_fill() - make data read from a block device available
|
* blkcache_fill() - make data read from a block device available
|
||||||
@@ -113,10 +112,9 @@ int blkcache_read
|
|||||||
* @param buf - buffer containing data to cache
|
* @param buf - buffer containing data to cache
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void blkcache_fill
|
void blkcache_fill(int iftype, int dev,
|
||||||
(int iftype, int dev,
|
lbaint_t start, lbaint_t blkcnt,
|
||||||
lbaint_t start, lbaint_t blkcnt,
|
unsigned long blksz, void const *buffer);
|
||||||
unsigned long blksz, void const *buffer);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* blkcache_invalidate() - discard the cache for a set of blocks
|
* blkcache_invalidate() - discard the cache for a set of blocks
|
||||||
@@ -125,8 +123,7 @@ void blkcache_fill
|
|||||||
* @param iftype - IF_TYPE_x for type of device
|
* @param iftype - IF_TYPE_x for type of device
|
||||||
* @param dev - device index of particular type
|
* @param dev - device index of particular type
|
||||||
*/
|
*/
|
||||||
void blkcache_invalidate
|
void blkcache_invalidate(int iftype, int dev);
|
||||||
(int iftype, int dev);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* blkcache_configure() - configure block cache
|
* blkcache_configure() - configure block cache
|
||||||
@@ -156,21 +153,18 @@ void blkcache_stats(struct block_cache_stats *stats);
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
static inline int blkcache_read
|
static inline int blkcache_read(int iftype, int dev,
|
||||||
(int iftype, int dev,
|
lbaint_t start, lbaint_t blkcnt,
|
||||||
lbaint_t start, lbaint_t blkcnt,
|
unsigned long blksz, void *buffer)
|
||||||
unsigned long blksz, void *buffer)
|
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void blkcache_fill
|
static inline void blkcache_fill(int iftype, int dev,
|
||||||
(int iftype, int dev,
|
lbaint_t start, lbaint_t blkcnt,
|
||||||
lbaint_t start, lbaint_t blkcnt,
|
unsigned long blksz, void const *buffer) {}
|
||||||
unsigned long blksz, void const *buffer) {}
|
|
||||||
|
|
||||||
static inline void blkcache_invalidate
|
static inline void blkcache_invalidate(int iftype, int dev) {}
|
||||||
(int iftype, int dev) {}
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user