Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1291929ybp; Fri, 11 Oct 2019 11:54:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGRC8CGsaO4jnj1o+SmNbwjZArtEbsHSA7+PokYAIeABcgMD7TIJeUoj9ea7Q9SQE1zeS1 X-Received: by 2002:aa7:d584:: with SMTP id r4mr14834150edq.92.1570820095660; Fri, 11 Oct 2019 11:54:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570820095; cv=none; d=google.com; s=arc-20160816; b=CRYmCxD/ZrP4SSS5FQTBWN2NbNCdxiknRlctWSGUuo3lxSaHA7f9N+YEawUHcil5nt cVlBzRcsw4V3W0UVbg7fx3yTKOlmN/RrVRQ8OFKrl+wlBD/Fnyfb260EA52mZ8J8KH36 jyPX9CuaeTbpv67nZXLxbNwx1GSdZPo3MyVD8oF37DQ2xXZ4UQzHvVzsXaTghPe+vOk1 0t/2Qc9qYwpnbq1gqoqtVwrhPkJshi97EH6t/IG48G8yfhEOTeFFjPyCueqzGu2fUwE4 X24qmYLewzuBFux47gdn5imV0h8MA1HlUiW6RsV2iu2Ytk8tFRci2hlvVtCj0vaLHH6Y VOjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=yMqI9DhuNoBVUsiF9tFhp/RMZZSSrTpL8PL6JDBT+0g=; b=oley/3oABi9uHeSCYaEpLXODK63OVcU4AqrymVBTXBn2+Z1sVXyg3vXYxEuIEynGrB rh4J0JKSmryguIVK5+cHRujTfxfgfXeUHlB/FLT8xj25hSi2YUKq+29mT6G/U4fnnKkf cBea1UG1rCmRMH1V664qjhOw4hhugwM/Eo3FCM5h21HPa1bmkmP1BAPA5SPydAtoSjLr fCsw5j2kugGjqWSppF01b/xAP4Jos2QtEMsxNlnVNIP5s39fI+w4yYQDdPvPyRZe3U32 ElvNdgiYIYZLvYhJEIHa05fgW4LcfpVzCAE60oIw6GSF0E8CsHxuPPHPElOsIUcaYBcO 0JWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MNLMy2N2; 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 v9si5594127eju.406.2019.10.11.11.54.31; Fri, 11 Oct 2019 11:54:55 -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=@gmail.com header.s=20161025 header.b=MNLMy2N2; 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 S1728854AbfJKSxz (ORCPT + 99 others); Fri, 11 Oct 2019 14:53:55 -0400 Received: from mail-ed1-f48.google.com ([209.85.208.48]:40873 "EHLO mail-ed1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728666AbfJKSxz (ORCPT ); Fri, 11 Oct 2019 14:53:55 -0400 Received: by mail-ed1-f48.google.com with SMTP id v38so9552386edm.7; Fri, 11 Oct 2019 11:53:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=yMqI9DhuNoBVUsiF9tFhp/RMZZSSrTpL8PL6JDBT+0g=; b=MNLMy2N2+o5YMbYOMxiLtlQckrQXS8x6ZfeVTup0DaxlaDhMMyJwMjb9dSzxL8B+fH VwtZZTh7iOKjGTm01nwZhXJh2nDxJhqngj6dJcuNofQE1IQ+pGyqhBpMFTsFSceVfBAW +SaQKU/vqS37iPFcdMCjVlswYepAfOxJc1utEZbVOsH2Qwuh1VIy6jJB1+ikp4l5tTGN R4mAiGh0guB8872men1diPWETn5zWD5RvPO8QuNzjuJu9sfJi86L/QOxWH7J31yqPlI1 3u/lm5rsqLq17kJteFIc7TKxaC4nRh4RoYIxdrNhLUiQG+UhJxNRd6pZvqcHxxr2G+jy 9XJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=yMqI9DhuNoBVUsiF9tFhp/RMZZSSrTpL8PL6JDBT+0g=; b=G+GM5VYqI0HK+PhLk2fyHMuBLZOe+e25sgTg32mwYgqVFjG2nbEN1wTbJS0tCpE27c Q3S3mz9wKjGGlC5b52im4iMO3jHRPg1mWAKQTc8TWFlYwMEn3Cu5tByGhCsdVHDVG0Mw cukxJJUugeXmMak00mqmdrM6dcF1PnPH1yIzWPZFfPWtCFgR30LM3eeDD4uRaoRBVAWC pt+kEGVp7dsJmdN+fzqC6MdxalNNNr7WCa9nHU2l8siSKEK6W2Bqfp4Gx1dLP0NXpyp7 9HN9c/47FP25FU5Fs0fA9oAzvQzpHGihFR+WmjMxZlt33FsATtE9NRuqZ5JF/hl6pE7i u5ug== X-Gm-Message-State: APjAAAV15ICs55nIzOFLAxNmhY0LuMSKGodGQUVV5ZjNriSYU26LGwUa YA5yti93mXWFZzEm12o0dyjse0fY X-Received: by 2002:a05:6402:7d2:: with SMTP id u18mr15510063edy.23.1570820031771; Fri, 11 Oct 2019 11:53:51 -0700 (PDT) Received: from ltop.local ([2a02:a03f:4080:1900:e095:3859:da44:d743]) by smtp.gmail.com with ESMTPSA id qn27sm1287269ejb.84.2019.10.11.11.53.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Oct 2019 11:53:50 -0700 (PDT) Date: Fri, 11 Oct 2019 20:53:49 +0200 From: Luc Van Oostenryck To: Ben Dooks Cc: "linux-kernel@vger.kernel.org" , linux-sparse@vger.kernel.org Subject: Re: sparse warnings on undeclared asmlinkage Message-ID: <20191011185348.pkfsexr742x5xwgm@ltop.local> References: <67799c6b-77c1-8488-9595-38ca734e8d5f@codethink.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <67799c6b-77c1-8488-9595-38ca734e8d5f@codethink.co.uk> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 11, 2019 at 05:18:58PM +0100, Ben Dooks wrote: > I was reviewing the sparse output for the current kernel release and > note there are a number of warnings about un-declared functions which > are only used for code in assembly. > > I was wondering if we should just ignore those, and have either a > new attribute for "undeclared is ok" or to make spare just ignore > anything with the syscall_linkage attribute? There is already an attribute and it's corresponding kernel define: __attribute__((__externally_visible__)), aka __visible. My point of view on the subject is more about the lines: * who knows about __visble/externally_visible? * what's wrong/are the disadvantge to adding the prototype? But it seems that some maintainers are against using prototypes for functions only used in assembly. Cheers, -- Luc