Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3373552imm; Fri, 25 May 2018 04:45:31 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqwVjnLZI5dWpbY4Xii22JeQjCgkFHnSsIU3GMRyKfZFwDWwMlOgZC3wxW3XICYcyBvtADL X-Received: by 2002:a63:5fc4:: with SMTP id t187-v6mr1682525pgb.183.1527248731401; Fri, 25 May 2018 04:45:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527248731; cv=none; d=google.com; s=arc-20160816; b=UBcDDIBbSqIGyt6QFENmi9s8qc8LwBnwsLOBASvTXznL8H4gXNtmqqcTPDn9sFLB+2 OEqxXdho9XqCXegk3lnTdMFyTOtllOQ68wc+PMVkvs9GeAbtPyhYfeZtaLFjeuZ7rX8B NqxbydnQiVfJhPdPfNOYML+xP4cqy6SJ0EU7h+twsi5tAuKFWezg5WPM35wP9hHTYDI7 225uLrwaOSUtuA3xSirrBCZAEXjA4MMmwabgNlLaq5g2sDVrWjqFEcAgAAJ87eptcf7r gm11UNl3OSj/TVm4T+GKDs5sQ3NfW0j7jMXa2+ZMqtvQEfRVsrxttkOl0065/CorFe8z gIjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:cc:from:to :in-reply-to:arc-authentication-results; bh=NP7TAif1U4lNFSxUNSKI+vmL0+IsoezuhMk9INijV7U=; b=pY0OU14qsNmQsBigcZ6HDERNgJx65+PDIqRLVAVnDvvwM9GDARYvvYILCHpBTpORLo JaOR0Km+2ifNEcZHFG/n3iW8j1zOiXbXset0+TIdmiTAkA7cFmfHYP5DMxfKmdgpytvs hjnt0LlNa317TnClwr0ZIpQFh/rKMQI8gOj9aK/AlQju1Vi2xXBL8knfw0aLjSIK5jTx Jpj74xj4t/HS9cD5AF7L8ve0E4cVfqPDWvhiLRugTNnV5wlycsMfVSVmpjONCCA5ug0t x8xc+3V2K0qjR+nHxi32THwxq6Oxg8SGvdQE6FPpYsNqOEhjnr01ElTtV+d8UpcMKWz0 yU/Q== ARC-Authentication-Results: i=1; mx.google.com; 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 o12-v6si23499167plg.463.2018.05.25.04.45.16; Fri, 25 May 2018 04:45:31 -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; 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 S966768AbeEYLoR (ORCPT + 99 others); Fri, 25 May 2018 07:44:17 -0400 Received: from ozlabs.org ([203.11.71.1]:38925 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966560AbeEYLli (ORCPT ); Fri, 25 May 2018 07:41:38 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 40skqN5jpmz9s3x; Fri, 25 May 2018 21:41:35 +1000 (AEST) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: eae5f709a4d738c52b6ab636981755d76349ea9e In-Reply-To: <20180406201220.31957-1-malat@debian.org> To: Mathieu Malaterre From: Michael Ellerman Cc: Mathieu Malaterre , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: powerpc: add __printf verification to prom_printf Message-Id: <40skqN5jpmz9s3x@ozlabs.org> Date: Fri, 25 May 2018 21:41:35 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2018-04-06 at 20:12:19 UTC, Mathieu Malaterre wrote: > __printf is useful to verify format and arguments. Fix arg mismatch > reported by gcc, remove the following warnings (with W=1): > > arch/powerpc/kernel/prom_init.c:1467:31: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ [-Werror=format=] > arch/powerpc/kernel/prom_init.c:1471:31: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ [-Werror=format=] > arch/powerpc/kernel/prom_init.c:1504:33: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ [-Werror=format=] > arch/powerpc/kernel/prom_init.c:1505:33: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ [-Werror=format=] > arch/powerpc/kernel/prom_init.c:1506:33: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ [-Werror=format=] > arch/powerpc/kernel/prom_init.c:1507:33: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ [-Werror=format=] > arch/powerpc/kernel/prom_init.c:1508:33: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ [-Werror=format=] > arch/powerpc/kernel/prom_init.c:1509:33: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ [-Werror=format=] > arch/powerpc/kernel/prom_init.c:1975:39: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘unsigned int’ [-Werror=format=] > arch/powerpc/kernel/prom_init.c:1986:27: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ [-Werror=format=] > arch/powerpc/kernel/prom_init.c:2567:38: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ [-Werror=format=] > arch/powerpc/kernel/prom_init.c:2567:46: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘long unsigned int’ [-Werror=format=] > arch/powerpc/kernel/prom_init.c:2569:38: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ [-Werror=format=] > arch/powerpc/kernel/prom_init.c:2569:46: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘long unsigned int’ [-Werror=format=] > > The patch also include arg mismatch fix for case with #define DEBUG_PROM > (warning not listed here). > > This patch fix also the following warnings revealed by checkpatch: > > WARNING: Prefer using '"%s...", __func__' to using 'alloc_up', this function's name, in a string > #101: FILE: arch/powerpc/kernel/prom_init.c:1235: > + prom_debug("alloc_up(%lx, %lx)\n", size, align); > > and > > WARNING: Prefer using '"%s...", __func__' to using 'alloc_down', this function's name, in a string > #138: FILE: arch/powerpc/kernel/prom_init.c:1278: > + prom_debug("alloc_down(%lx, %lx, %s)\n", size, align, > > Signed-off-by: Mathieu Malaterre Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/eae5f709a4d738c52b6ab636981755 cheers