From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C033C4332D for ; Wed, 6 Jan 2021 13:46:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1EB8A2311F for ; Wed, 6 Jan 2021 13:46:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727461AbhAFNpe (ORCPT ); Wed, 6 Jan 2021 08:45:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726709AbhAFNpd (ORCPT ); Wed, 6 Jan 2021 08:45:33 -0500 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71411C06135B; Wed, 6 Jan 2021 05:44:33 -0800 (PST) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kx96y-007MOe-Sh; Wed, 06 Jan 2021 13:44:28 +0000 Date: Wed, 6 Jan 2021 13:44:28 +0000 From: Al Viro To: Geert Uytterhoeven Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] binfmt_elf: Fix fill_prstatus() call in fill_note_info() Message-ID: <20210106134428.GB3579531@ZenIV.linux.org.uk> References: <20210106075112.1593084-1-geert@linux-m68k.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210106075112.1593084-1-geert@linux-m68k.org> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Wed, Jan 06, 2021 at 08:51:12AM +0100, Geert Uytterhoeven wrote: > On m68k, which does not define CORE_DUMP_USE_REGSET: > > fs/binfmt_elf.c: In function ‘fill_note_info’: > fs/binfmt_elf.c:2040:20: error: passing argument 1 of ‘fill_prstatus’ from incompatible pointer type [-Werror=incompatible-pointer-types] > 2040 | fill_prstatus(info->prstatus, current, siginfo->si_signo); > | ~~~~^~~~~~~~~~ > | | > | struct elf_prstatus * > fs/binfmt_elf.c:1498:55: note: expected ‘struct elf_prstatus_common *’ but argument is of type ‘struct elf_prstatus *’ > 1498 | static void fill_prstatus(struct elf_prstatus_common *prstatus, > | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ > > The fill_prstatus() signature was changed, but one caller was not > updated. > > Reported-by: noreply@ellerman.id.au > Fixes: 147d88b334cd5416 ("elf_prstatus: collect the common part (everything before pr_reg) into a struct") > Signed-off-by: Geert Uytterhoeven > --- > Compile-tested only. Feel free to fold into the original commit. Thanks, folded and pushed out...