Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1300992ybg; Fri, 18 Oct 2019 15:29:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxvEQEKnUWRCDnFyTww9u9j7JP2uDGp2yG5GPgUkZ/1T7x6TR3x+yFaW0b/rN+F1nz/6IXe X-Received: by 2002:a17:907:366:: with SMTP id rs6mr10934232ejb.232.1571437773073; Fri, 18 Oct 2019 15:29:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571437773; cv=none; d=google.com; s=arc-20160816; b=q70O+02hR9+nsDrl2Y9II67X+NrWqpju92QN4kS8AIwUcVPtRjmseMduNk4dZiduiG QxjTaiqnCrq//ahfx6+cNW4o7R/XfUphN+HGkq6tG9XW6wOivJGH+QDiN1Lvr159N5jQ PxlrUuFy81t5Jxc9abV9+7eHpyfDrWF9YPM3+3/AJ9RTM7QUGiOWfl6tPsfgofhtZiWx RViqPLo+lMsQ0nHrdZvPkuvOwO5wP0KmNkNuG+nu3BqqcBXnCNZuRWZ8awvz4fJEE/RL lLft1x/6FM5PbsPx/fB1kjIm+mT4pfNB1c7rwAA/WnrxGInlNLUE9KyxNo85HL4UztNH QHTw== 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:dkim-signature; bh=w0COLG3bzK0o6jYLfbxydoFv6NkgXFj1ig3oopc83YI=; b=SrDZGEKkml6nNdPi3Fvi0fCpwanLgwYbYj8GHQHSqSrKHsm703zoAkEKmSKyOsu6i3 I+EsHCzezQNG/Do6wUu/TKddI2cbdLodxHeVnq4dyNaRVYnkasYpI1j+yVCO2wF+jEZh uxGriXYHIZugX6DMslzrCMnRzaXYw7aW+z+oQQ5iZUeHH1+57yt3k2DkeM88EU2GKPVd jnAyOFFY6ZZKiw+rPfhVHAZcU5evr7rS84oq61eO9kMOtUKht0zma5F/ACKdGxF17yOw wQlL0kpoIoxTDSrf5qXAvQJXn212DZPLvhnAyZcHcyfOPLGC0NKckH6cCyqIe6fe1b1g zTnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=e+okOhtz; 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 x19si4235764eju.15.2019.10.18.15.29.10; Fri, 18 Oct 2019 15:29:33 -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=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=e+okOhtz; 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 S2504221AbfJRFFz (ORCPT + 99 others); Fri, 18 Oct 2019 01:05:55 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:55093 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391511AbfJRFFy (ORCPT ); Fri, 18 Oct 2019 01:05:54 -0400 Received: by mail-wm1-f66.google.com with SMTP id p7so4696427wmp.4 for ; Thu, 17 Oct 2019 22:05:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=w0COLG3bzK0o6jYLfbxydoFv6NkgXFj1ig3oopc83YI=; b=e+okOhtzP6+13ZVb52oUedSHNdXUvAj+AaZgTFlk49vnQCzXFWXRCp9LgLioHHfXd8 P0+MALJgEg5o7L5bPbaStznc4116PcXBbQ4NkJPUE9uzUlYWAoX3j0Zd3SxFoaEwRDlY /2/myoHstRdz1soYjTJxepkrx+jWOHP8oQbO6rxJWdSA/hgTHt6qQEQRbZr9o4iHGci2 RYqKDsnIRRBm+lSwMsEDA8DLEcdoDIUTzVuQTGQI8+aFconpNYREGVcZqXfgOXPLdMuV /lnMuNyyTT4C4UK/2V6PLZ57g0/mS5ZC6y9K9caJ5eyIc7+HuQdgcWfupFikyGTHtclB +L6g== 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=w0COLG3bzK0o6jYLfbxydoFv6NkgXFj1ig3oopc83YI=; b=MDCTtiUMUXUzKaX8eEDIPSeEzWs5VbHgi2w6DrZEAv/LUxWwm6Ct6WLgOnFNBe7UG4 nyTawtbfPOGeEWLUAWyT0FB+fA0t//GFCC6I+GN1Ggc0kulBVFX38Vwk38p/B8nYwvfp QCRN41dre/s6m0iagnwSvDA9G9qW8LCl1O1vJjcpqYUZV57VYYUt9SIMczA0KOwZoZQG tr2lDorURienPFHAwtiRjlqo2l5pwsF48knR9nj11IY+JvB0V1baGKGDt9YdmXNtWJT1 Qcrg3FqEVIvhMpltAwIKYDYoGI/RvdFWBNQc/g5IwkdksWVsa+9IAWA86XisnbKRLnov RPLw== X-Gm-Message-State: APjAAAUk9TWbzyy48jNcBZPCa/1FosTFFgoKSja4EMqUTgwnX8599VIW /AwmDYSHLAejrZzM8bp3vv3V1yRnBvgZehzzh+A5BzeL X-Received: by 2002:a7b:c775:: with SMTP id x21mr5632921wmk.52.1571368385118; Thu, 17 Oct 2019 20:13:05 -0700 (PDT) MIME-Version: 1.0 References: <20191018004929.3445-1-paul.walmsley@sifive.com> In-Reply-To: <20191018004929.3445-1-paul.walmsley@sifive.com> From: Anup Patel Date: Fri, 18 Oct 2019 08:42:54 +0530 Message-ID: Subject: Re: [PATCH 0/8] riscv: resolve most warnings from sparse To: Paul Walmsley Cc: linux-riscv , "linux-kernel@vger.kernel.org List" 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 Fri, Oct 18, 2019 at 6:19 AM Paul Walmsley wrote: > > Resolve most warnings from the 'sparse' static analysis tool for the > arch/riscv codebase. This makes life easier for us as maintainers, > and makes it easier for developers to use static analysis tools on > their own changes. > > This patch series incorporates some changes based on feedback from > Christoph Hellwig . > > Applies on the current riscv fixes branch that is based on v5.4-rc3. This series certainly conflict's with Christoph's NOMMU series so please rebase it on NOMMU series. Regards, Anup > > > - Paul > > > Paul Walmsley (8): > riscv: add prototypes for assembly language functions from entry.S > riscv: add prototypes for assembly language functions from head.S > riscv: init: merge split string literals in preprocessor directive > riscv: ensure RISC-V C model definitions are passed to static > analyzers > riscv: add missing prototypes > riscv: mark some code and data as file-static > riscv: add missing header file includes > riscv: fp: add missing __user pointer annotations > > Kernel object size difference: > text data bss dec hex filename > 6664206 2136568 312608 9113382 8b0f26 vmlinux.orig > 6664186 2136552 312608 9113346 8b0f02 vmlinux.patched > > arch/riscv/Makefile | 2 ++ > arch/riscv/include/asm/irq.h | 6 ++++++ > arch/riscv/include/asm/pgtable.h | 2 ++ > arch/riscv/include/asm/processor.h | 4 ++++ > arch/riscv/include/asm/ptrace.h | 4 ++++ > arch/riscv/include/asm/smp.h | 2 ++ > arch/riscv/include/asm/switch_to.h | 1 + > arch/riscv/kernel/cpufeature.c | 1 + > arch/riscv/kernel/entry.h | 29 +++++++++++++++++++++++++++++ > arch/riscv/kernel/head.h | 21 +++++++++++++++++++++ > arch/riscv/kernel/module-sections.c | 1 + > arch/riscv/kernel/process.c | 2 ++ > arch/riscv/kernel/reset.c | 1 + > arch/riscv/kernel/setup.c | 2 ++ > arch/riscv/kernel/signal.c | 6 ++++-- > arch/riscv/kernel/smp.c | 2 ++ > arch/riscv/kernel/smpboot.c | 3 +++ > arch/riscv/kernel/stacktrace.c | 6 ++++-- > arch/riscv/kernel/syscall_table.c | 1 + > arch/riscv/kernel/time.c | 1 + > arch/riscv/kernel/traps.c | 2 ++ > arch/riscv/kernel/vdso.c | 3 ++- > arch/riscv/mm/context.c | 1 + > arch/riscv/mm/fault.c | 2 ++ > arch/riscv/mm/init.c | 17 ++++++++++------- > arch/riscv/mm/sifive_l2_cache.c | 2 +- > 26 files changed, 111 insertions(+), 13 deletions(-) > create mode 100644 arch/riscv/kernel/entry.h > create mode 100644 arch/riscv/kernel/head.h > > -- > 2.23.0 >