Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8560376ybl; Thu, 16 Jan 2020 19:36:53 -0800 (PST) X-Google-Smtp-Source: APXvYqzgBQ1fyHJVnC0M8q40yeFfr09VYO+hPH8z+9hzmLhFvMfSaF4bTgX2uuIFhMrt5tAuhrPV X-Received: by 2002:aca:530e:: with SMTP id h14mr1921957oib.105.1579232213529; Thu, 16 Jan 2020 19:36:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579232213; cv=none; d=google.com; s=arc-20160816; b=wxQUzj2dRNBA24tgBAZg4PEOIzZqMx23dQzsZg5l+tEqcvBaNjmlqizJw5zHB3Rvm/ 4Gs//EQbtbHM0FzD600CSMlbncFb9Zmi45mrFUeyxwxPkbltGST2rEtvSEXc5s6NOU6b CndO7J7EBY/kXq6fAdpncnjzfS0EC6LqFDIdl1faByBUvXJxRW4fpm9lY9RqRuJyb9FL RcQuQraeZOg4+arHiQW3EOTOLFTBFuu9tdKDjodSY6JWJJvI7zxN4St82J475Ntjhk1P v3lo17e9jAgwEbXiiP4pwSWbUhxJARQ/60JBXmAUSKbuHWCcpfcrhiXOr/qRGDxlGKh5 zoVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=dHTGBkgzigId/zi0TOnYQjBsf6HAV19Aov7etVocQr4=; b=cD9MxDPlqbXBGIfWUddQeepRk9h6uqo/HvlMsWXmX9LQwJd6dGb7WxHGBF+k/68Kq8 HlI7Xd7UvYK2MKdvls3UFeg1Y2Y0kjO8xnp4yiXy7MK9YYsV3qL/C8IkpwN1rTMuImt8 sWmiQAKl3+YZ8cOzkshUTfEZK7eKx7zmag+Sfl2CGg6VpDXPR5H3JMLm9SV9sO5wTvzT L+ZdSYu6XuOOxWnTmGzO000c8Yxz+UNTXzh+vEEiZsXw41OWyKugL77OD6h3lvjXpAtN bc5Xu36O/80vDSmvoMpLmFMII+7TDnXQ0m+LJBLkQ6rRjs12PspVFZiekIss1l3kl31U Unag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nkMxee7m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c126si12962244oib.239.2020.01.16.19.36.42; Thu, 16 Jan 2020 19:36:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nkMxee7m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388048AbgAPXoT (ORCPT + 99 others); Thu, 16 Jan 2020 18:44:19 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:42704 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729354AbgAPXoR (ORCPT ); Thu, 16 Jan 2020 18:44:17 -0500 Received: by mail-wr1-f65.google.com with SMTP id q6so20861155wro.9; Thu, 16 Jan 2020 15:44:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=dHTGBkgzigId/zi0TOnYQjBsf6HAV19Aov7etVocQr4=; b=nkMxee7mkhPsFnsTSgqVfS0Up+8cTe72MvM/2bMae4kd1D0j7q1OUOdW0oLJxBbSIK 9Bi90ue3VO7d+kNj/BGIwnKKDFCAeb3JxpNleXMZETVXxztv1FIZFCIO66SPBeHDnkXJ WDA0TAbej0BCxjfO9HgpdHtEkdbpsP2wkxY/ktTPOF9jGQpd5h0kup9rrP8UKQ+AEy9B xzLvt3IZ71WZZRPbY9DQFQrKlS5Qf9aZSejvh9ePXKBHpsxk695jLXQSpp9oGijyPgno CECYx2xCkwz1/b/1dPu/WExst1CjFWG8F8q7i4DfSFwFRLPE9uSSS7gyOHJu+f0PCG6F 1iRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=dHTGBkgzigId/zi0TOnYQjBsf6HAV19Aov7etVocQr4=; b=afV3VYKGK5218MYzMGyt18Ek89FQBZP7TdmhlXWt53us5TUNdgmLdLu3GjQjBRL/h9 GzR1TUyf1ZbNNj4up3oLDSIco36BYQwvQB+YG3L5MVqRto5Q10GHlVRNE6WsC+1DSv+K z5GR8wGXtQYD2NXWIysRUb7mz5+1DDO4Ic+LHO5kDR0snieLtW1dfEW9BScIuqmK4q/B Tky3v4X+KdZ9SmHv0iTX3w+BNw13BNxg+rSfhxkzI8WvwOJDHYzKMNDMGUAtbY/onMff hyWfnFtlLbQ/eUotKBw5QJG8kUg3b5/xpGk6FUyCgNKqILek4btRopbPvOnHpvZmJ9pQ ZCuA== X-Gm-Message-State: APjAAAVrVS33ee6z61JGJWNNp4tVDEgk2G1DCv5+PSRPngVYSn76CBsq imGdQZ+D1tK7T1Bdwec2MUbkkpzd9dIpKA6IqG7/bsFa X-Received: by 2002:adf:f606:: with SMTP id t6mr5632437wrp.85.1579218254750; Thu, 16 Jan 2020 15:44:14 -0800 (PST) MIME-Version: 1.0 References: <20200113105156.25945-1-geert@linux-m68k.org> In-Reply-To: <20200113105156.25945-1-geert@linux-m68k.org> From: Richard Weinberger Date: Fri, 17 Jan 2020 00:44:03 +0100 Message-ID: Subject: Re: [PATCH] ubifs: Fix ino_t format warnings in orphan_delete() To: Geert Uytterhoeven Cc: Richard Weinberger , linux-s390@vger.kernel.org, linux-mtd@lists.infradead.org, LKML , linux-alpha@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 13, 2020 at 11:52 AM Geert Uytterhoeven wrote: > > On alpha and s390x: > > fs/ubifs/debug.h:158:11: warning: format =E2=80=98%lu=E2=80=99 expect= s argument of type =E2=80=98long unsigned int=E2=80=99, but argument 4 has = type =E2=80=98ino_t {aka unsigned int}=E2=80=99 [-Wformat=3D] > ... > fs/ubifs/orphan.c:132:3: note: in expansion of macro =E2=80=98dbg_gen= =E2=80=99 > dbg_gen("deleted twice ino %lu", orph->inum); > ... > fs/ubifs/orphan.c:140:3: note: in expansion of macro =E2=80=98dbg_gen= =E2=80=99 > dbg_gen("delete later ino %lu", orph->inum); > > __kernel_ino_t is "unsigned long" on most architectures, but not on > alpha and s390x, where it is "unsigned int". Hence when printing an > ino_t, it should always be cast to "unsigned long" first. > > Fix this by re-adding the recently removed casts. > > Fixes: 8009ce956c3d2802 ("ubifs: Don't leak orphans on memory during comm= it") > Signed-off-by: Geert Uytterhoeven > --- > fs/ubifs/orphan.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Applied! Thank you, Geert. --=20 Thanks, //richard