From patchwork Mon Apr 27 03:38:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 1277298 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 499Vr51mNtz9sRY for ; Mon, 27 Apr 2020 13:39:01 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=dHko9Ejd; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 499Vr50vklzDqB0 for ; Mon, 27 Apr 2020 13:39:01 +1000 (AEST) X-Original-To: petitboot@lists.ozlabs.org Delivered-To: petitboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=geoff@infradead.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=dHko9Ejd; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 499Vqf6BPWzDqV9 for ; Mon, 27 Apr 2020 13:38:37 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Date:Cc:To:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:From:References:In-Reply-To:Message-Id: Sender:Reply-To:Content-ID:Content-Description; bh=fQLHqxerTDjXAfaw8486fghVFtbYTWhlnZ1rt+P3KDk=; b=dHko9EjdUJdkcufDDB8yDqAWxr 44lsW2ISBOwPUOdL/R/OSHoBagtHOSh34si7MYVHI42r9B7AQvy4pgkwhhfahQn8MjS/bgbatS5m9 R7VU/+2xS4SJCbgaZWixJ6JINrWnYsFYeu6+I8YdSsU1w89nDeaFqdEUc3lrzMGBcAXITmW+MR0qZ +g038Viv71Zpnha4YxyQ4vnofFLRyz/UxyxWJ28ZEQ6re8eUeaA2ViXP/CYpbRL8Zay0e/hynigTb f8RDGYTkclX++INfE+Ys7mBgu8gKNN9b6JPcaNvgafJEp6F12y7T7uVm3P8HYb3zd0W3ygJBgCi4R QS7vTQRQ==; Received: from geoff by merlin.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jSubH-0005VN-23; Mon, 27 Apr 2020 03:38:31 +0000 Message-Id: <42d8c424b52852beefce0885095886edf1ef6eb3.1587958237.git.geoff@infradead.org> In-Reply-To: References: From: Geoff Levand Patch-Date: Sun, 26 Apr 2020 20:14:07 -0700 Subject: [PATCH v1 2/5] discover/platform-powerpc: Fix build warning MIME-Version: 1.0 To: Jeremy Kerr Date: Mon, 27 Apr 2020 03:38:31 +0000 X-BeenThere: petitboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Petitboot bootloader development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: petitboot@lists.ozlabs.org Errors-To: petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Petitboot" Fix bad pointer assignment when coping mailbox data: warning: assignment to ‘uint8_t *’ from incompatible pointer type ‘uint8_t (*)[13]’ Signed-off-by: Geoff Levand --- discover/platform-powerpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discover/platform-powerpc.c b/discover/platform-powerpc.c index c6ab416..bcb18e1 100644 --- a/discover/platform-powerpc.c +++ b/discover/platform-powerpc.c @@ -564,7 +564,7 @@ static int get_ipmi_boot_mailbox(struct platform_powerpc *platform, * Enterprise ID number */ block_size -= CHASSIS_BOOT_MBOX_IANA_SZ; - boot_opt_data = &mailbox.b0.data; + boot_opt_data = mailbox.b0.data; /* Check IANA matches the IBM number, '2' */ if (mailbox.b0.iana[0] != 0x02 || @@ -577,7 +577,7 @@ static int get_ipmi_boot_mailbox(struct platform_powerpc *platform, return -1; } } else { - boot_opt_data = &mailbox.data; + boot_opt_data = mailbox.data; } mailbox_buffer = talloc_realloc(platform, mailbox_buffer,