mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 12:43:55 +08:00
174cd4b1e5
Fix up affected files that include this signal functionality via sched.h. Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
24 lines
696 B
C
24 lines
696 B
C
#include <linux/mtd/mtd.h>
|
|
#include <linux/sched/signal.h>
|
|
|
|
static inline int mtdtest_relax(void)
|
|
{
|
|
cond_resched();
|
|
if (signal_pending(current)) {
|
|
pr_info("aborting test due to pending signal!\n");
|
|
return -EINTR;
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|
|
int mtdtest_erase_eraseblock(struct mtd_info *mtd, unsigned int ebnum);
|
|
int mtdtest_scan_for_bad_eraseblocks(struct mtd_info *mtd, unsigned char *bbt,
|
|
unsigned int eb, int ebcnt);
|
|
int mtdtest_erase_good_eraseblocks(struct mtd_info *mtd, unsigned char *bbt,
|
|
unsigned int eb, int ebcnt);
|
|
|
|
int mtdtest_read(struct mtd_info *mtd, loff_t addr, size_t size, void *buf);
|
|
int mtdtest_write(struct mtd_info *mtd, loff_t addr, size_t size,
|
|
const void *buf);
|