Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5527405imm; Mon, 23 Jul 2018 01:00:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfI0lQZ2MLCHnokqHfp/oE3QwhSIrBtoJ4sATBdjNQnZJpp6ykwjXbBH24eW+icH9EWNVyV X-Received: by 2002:a63:f309:: with SMTP id l9-v6mr11010863pgh.369.1532332831165; Mon, 23 Jul 2018 01:00:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532332831; cv=none; d=google.com; s=arc-20160816; b=oI0U8WqiW+zgcWI5BJovTu53hZW/FKFGtkmDa7ySjYU0yqGgG14vhOo2sGmArjtFfA BwiAl/CEL6i6wD3wut5WHtfOQKEXZMAmOvPfTWBiQA9EjN7eHjz9KR6QEkZvRC5cOqKe 5VwKVN/OnXmHoTm+msTB9LMQtoAQdX7hu4RXYJwtpe1nlRt4LqfSnQGAau2GHHZRq/wa QjfPAdhOFcnxnZmcWjK8bKBb47KV2wgnxQl1ngLzfIl/24/fMFuGXOO1TKReGfGe8WDB wZjSJXe+VXdz9OAUkCEkbJ6usOdgak8hy/M96OIUgj23+/1nWuC83aonZvurT35qhAIP sLgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:arc-authentication-results; bh=v7l5XOdK80jU/5VgIe/luxqJ93Lr7SlF0hs5eH6TtRc=; b=KA7WQGF8PHq4SPpmWUxQf7cRykhuafmsWB1hyLxm5tUjmee+x6D/TRsg1jMYcjqPaK ZsDEj7bN+Elmlg6YhIKIMQi1YHTuOprjqZurHmftfuaLYR9x29wSbDRuwI3n6fE3Cnge 7pGMAi+7yfehpmmbd5a7LCR9S3O0ywcWthm/s85IGfTHzcdP9bdpQ3txc9F5XJOBad+B EHfdINpEE4NGhCuPODk+iNV/pfnyY0xgIDMGq+lf0C3MQWytPB0thGxkR4aRlh3lYcf1 0Ps+9AESjdH9Ef+BgxcqRguijMxD/0SVitwVoh9css4lFC+W7l5WFuZflzvI4hQcdcrj HvaA== 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 w2-v6si7567300plp.441.2018.07.23.01.00.16; Mon, 23 Jul 2018 01:00: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 S2388021AbeGWI6n (ORCPT + 99 others); Mon, 23 Jul 2018 04:58:43 -0400 Received: from mail-ua0-f195.google.com ([209.85.217.195]:43564 "EHLO mail-ua0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387991AbeGWI6n (ORCPT ); Mon, 23 Jul 2018 04:58:43 -0400 Received: by mail-ua0-f195.google.com with SMTP id x24-v6so11161596ual.10; Mon, 23 Jul 2018 00:58:46 -0700 (PDT) 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; bh=v7l5XOdK80jU/5VgIe/luxqJ93Lr7SlF0hs5eH6TtRc=; b=lK3y5i/uGnqJilG1wP5AF2l/FDmZgWFlmhqTTqFjiMI+gEWmNUCToNTLm+/KZVZsS1 7G1xDnTfG0qLCjOcoJtwD26JOXURQEe5fco72n8go1r5JgjQ/rljDy9bmNUxtFpZYGZa jtr3TkPWEIAIs2Sgt4jq1UV2hawsVoZTuZht9avclyQQeH8VoWrOyJdr6B0rkizhIO/c J4LRtal3cxRBlIV9DX/wCNg5mOVmLCNY/CfO/cIpuzYRUV0LEySfe/xZiRxn46jPJybS V+G9FpycHWPvz+yHkKNY2AoRJCL0tsh4+5lUmu9gGE0qFbqN4q2/yVLUHd2xqqrBkCNI lRIw== X-Gm-Message-State: AOUpUlGlH7JQ4oL46coMvfGCBH6ZvCmHEqvlhUr+6AY8ypK0C4pAlEMa uArnCmmAjwB7pqT9xuK7fEb12haTozdI26qXwcs= X-Received: by 2002:ab0:80e:: with SMTP id a14-v6mr8551931uaf.114.1532332726152; Mon, 23 Jul 2018 00:58:46 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Geert Uytterhoeven Date: Mon, 23 Jul 2018 09:58:33 +0200 Message-ID: Subject: Re: [PATCH v2] hexagon: modify ffs() and fls() to return int To: Randy Dunlap Cc: Linux Kernel Mailing List , Richard Kuo , "open list:QUALCOMM HEXAGON..." Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 23, 2018 at 1:04 AM Randy Dunlap wrote: > From: Randy Dunlap > > Building drivers/mtd/nand/raw/nandsim.c on arch/hexagon/ produces a > printk format build warning. This is due to hexagon's ffs() being > coded as returning long instead of int. > > Fix the printk format warning by changing all of hexagon's ffs() and > fls() functions to return int instead of long. The variables that > they return are already int instead of long. This return type > matches the return type in . > > ../drivers/mtd/nand/raw/nandsim.c: In function 'init_nandsim': > ../drivers/mtd/nand/raw/nandsim.c:760:2: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat] > > There are no ffs() or fls() allmodconfig build errors after making this > change. > > Signed-off-by: Randy Dunlap > Cc: Richard Kuo > Cc: linux-hexagon@vger.kernel.org > Cc: Geert Uytterhoeven Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds