https://github.com/torvalds/linux
Revision ec05b297f91a443aa26b74059b573bfad49c9ebb authored by Adrian Bunk on 30 July 2007, 06:24:27 UTC, committed by Jens Axboe on 11 August 2007, 20:34:47 UTC
This patch removes the no longer used file_send_actor().

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
1 parent ac07860
Raw File
Tip revision: ec05b297f91a443aa26b74059b573bfad49c9ebb authored by Adrian Bunk on 30 July 2007, 06:24:27 UTC
[PATCH] remove mm/filemap.c:file_send_actor()
Tip revision: ec05b29
check_signature.c
#include <linux/io.h>
#include <linux/module.h>

/**
 *	check_signature		-	find BIOS signatures
 *	@io_addr: mmio address to check
 *	@signature:  signature block
 *	@length: length of signature
 *
 *	Perform a signature comparison with the mmio address io_addr. This
 *	address should have been obtained by ioremap.
 *	Returns 1 on a match.
 */

int check_signature(const volatile void __iomem *io_addr,
			const unsigned char *signature, int length)
{
	while (length--) {
		if (readb(io_addr) != *signature)
			return 0;
		io_addr++;
		signature++;
	}
	return 1;
}
EXPORT_SYMBOL(check_signature);
back to top