Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5252052yba; Wed, 10 Apr 2019 15:04:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzae6uc2fL3jep1wjezYQ54lNZSsvf67p1qlJhHDmodPg2xu0+4tlW+xoIxS9gg9fHakyLx X-Received: by 2002:a63:5947:: with SMTP id j7mr42533841pgm.62.1554933890072; Wed, 10 Apr 2019 15:04:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554933890; cv=none; d=google.com; s=arc-20160816; b=LXZI1UNgv1iHHWfS3bfl3gQ6Y/pc4YB6bUPeG3gh0B0Y/e57XD89uvQVVf0nKx+J26 zLiJrXCDKud6YYhtTl8oJ2GYJG9NeXCqAgzmC7n02wBLk+8C4JeiJJLblPmaJOcY7OK9 K1j97CIz4Og8ROMWa7rf494ET7qUmJfbBdsvrRO21ejp7LqVh3S1Rz9qbfsu8nEZ4Uow YUBmEVbrzOAlB5UkOQ55u6J9q4uXj7XAPF+stxtCdn/Z1cL8KqSCDWtGXyASzwPTY6t7 2u2aQeLNz/LGOmyXsecwY3Kf7NfFQ36YWASdbP+74/TtRWc7cPUdEXHQ8FkICkmq+9Yj k06A== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=hq3GlPsvwpTCVfi2lanoAJH6xzEgHr4jpS+LbkBKqmI=; b=uaOFI1Ib+fe1SV7wRiTADAY9014jOVf0r3dpoWniWE1R51Sqhf969/tSbpG2m2b2YF t6ZV4tyBa/+5lS9r8fJQbwqqrDOcJO4YwLqhOgyTzCit2gaNflbC0yY8wMlBeUwiNCrq x5zMjHqNKXRwuR4hPbUn0GFNJqDAH6N4a4nHB4iGHRFUdUfsGtcmZpE+5X/DKqmTSjWe ZeA+JmGa2fPOEMFRDIAU5MyPIzkJOD2IH7IMy/EE4V+IqQ3DOfJ36w6MG7zeXmSTnvjZ SFuNZpqVOEyKEpOKIZGcmj0nrz7fF4NpurBmXX6/+d1uUGTfuG89lKlRCYTLMqUgkLul QSwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kragniz.eu header.s=google header.b=WPuRVxJR; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h185si33116175pfc.241.2019.04.10.15.04.34; Wed, 10 Apr 2019 15:04:50 -0700 (PDT) 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=@kragniz.eu header.s=google header.b=WPuRVxJR; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726230AbfDJWD7 (ORCPT + 99 others); Wed, 10 Apr 2019 18:03:59 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:45560 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725982AbfDJWD7 (ORCPT ); Wed, 10 Apr 2019 18:03:59 -0400 Received: by mail-wr1-f67.google.com with SMTP id s15so4654258wra.12 for ; Wed, 10 Apr 2019 15:03:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kragniz.eu; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hq3GlPsvwpTCVfi2lanoAJH6xzEgHr4jpS+LbkBKqmI=; b=WPuRVxJRivFPjjCdQfmmaS0CrfLqcY/WlDrt1L0JfjgxRQcK0o6r3E+Oy+PgKDZljO W28D8vz3zVV9EfEUUvuQV09uJPeV+z6qH2FBWMhoappFrwsMB6ADmDqntwBT7zUBgdvE Cvk/4rtW5YG+wi2NlWs6mFlqMc4BE+bwjKWBg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hq3GlPsvwpTCVfi2lanoAJH6xzEgHr4jpS+LbkBKqmI=; b=rMQTbwAcV/Cwzb/rtaf8oPZe0EW6SpiDSnNqHQhXQbXGcqdr781+ZpCRWX+RxsBp3n sF4BzsgB54cmdFZ/en003FsDLBclI5vJGrT3MA6NmqMkfd3HhOzC15YVcBIYHISMJzq8 dTBpmos+zPTCvU1nAWoWOptqlvlEPPFGTbKWHRoX5s/E+6Xghja1Bo/E0v9q+WRFFuXK FWh8MokuBuv6EapK8rc5I7GH1dTkZI2Xc4clYtNRdi5ndIkYks7wQsNvPV9L164t7Cct Lu4xiiFTPjUhfQgAW4JcvLifyki6lD6I0N1tM78JpAQTuObOYjtZU5utKA236gRj/300 bR2w== X-Gm-Message-State: APjAAAVDg4JvDEd3ffmUYZT5G6VsrH2Tylndk+95tkGq6Zy3jPx7Kd85 MGe/7kPoXXiB6eMkhBjN30AwRQ== X-Received: by 2002:adf:d848:: with SMTP id k8mr29500390wrl.185.1554933837415; Wed, 10 Apr 2019 15:03:57 -0700 (PDT) Received: from localhost.localdomain ([95.149.160.82]) by smtp.gmail.com with ESMTPSA id c2sm27565107wrr.13.2019.04.10.15.03.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Apr 2019 15:03:56 -0700 (PDT) From: Louis Taylor To: dhowells@redhat.com Cc: linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Louis Taylor Subject: [PATCH] afs: use correct format characters Date: Wed, 10 Apr 2019 23:03:01 +0100 Message-Id: <20190410220301.2332-1-louis@kragniz.eu> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When compiling with -Wformat, clang warns: fs/afs/flock.c:632:29: warning: format specifies type 'short' but the argument has type 'unsigned char' [-Wformat] _leave(" = %d [%hd]", ret, fl->fl_type); ~~~ ^~~~~~~~~~~ fl_type is declared as an unsigned char unconditionally in include/linux/fs.h, so use the correct format characters. Link: https://github.com/ClangBuiltLinux/linux/issues/378 Signed-off-by: Louis Taylor --- fs/afs/flock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/afs/flock.c b/fs/afs/flock.c index 6a0174258382..be4c3f6a3178 100644 --- a/fs/afs/flock.c +++ b/fs/afs/flock.c @@ -629,7 +629,7 @@ static int afs_do_getlk(struct file *file, struct file_lock *fl) ret = 0; error: - _leave(" = %d [%hd]", ret, fl->fl_type); + _leave(" = %d [%hhu]", ret, fl->fl_type); return ret; } -- 2.21.0