Re: [RFC v5][PATCH 1/4] intel_txt: Intel(R) TXT boot support
From: James Morris
Date: Wed Jun 24 2009 - 06:45:00 EST
On Mon, 22 Jun 2009, Joseph Cihula wrote:
> +void tboot_copy_fadt(const struct acpi_table_fadt *fadt)
> +{
> +#define TB_COPY_GAS(tbg, g) \
> + tbg.space_id = g.space_id; \
> + tbg.bit_width = g.bit_width; \
> + tbg.bit_offset = g.bit_offset; \
> + tbg.access_width = g.access_width; \
> + tbg.address = g.address;
> +
> + TB_COPY_GAS(tboot_shared->acpi_sinfo.pm1a_cnt_blk,
> + fadt->xpm1a_control_block);
> + TB_COPY_GAS(tboot_shared->acpi_sinfo.pm1b_cnt_blk,
> + fadt->xpm1b_control_block);
> + TB_COPY_GAS(tboot_shared->acpi_sinfo.pm1a_evt_blk,
> + fadt->xpm1a_event_block);
> + TB_COPY_GAS(tboot_shared->acpi_sinfo.pm1b_evt_blk,
> + fadt->xpm1b_event_block);
Not a showstopper, but why not simply make a static tb_copy_gas()
function?
--
James Morris
<jmorris@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/