Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp736140ybi; Fri, 12 Jul 2019 03:53:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqydDbV1vV+e7mWcVRsaNZwILq50A1FC0iy5yXl8jpW6qDzsH1hhOum7azkivtNI6WsdC3vh X-Received: by 2002:a17:902:1e7:: with SMTP id b94mr10833854plb.333.1562928805306; Fri, 12 Jul 2019 03:53:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562928805; cv=none; d=google.com; s=arc-20160816; b=j2IND8Da/AS+nv5L85WKmj174gBXZ/q+vC1FRKGIiiW1rI3tFW1Ydz5ZgTaGzTTyRv EEhdxlbuteWEf2E7/LG7+9bW3kUqSYHL2kqxqTWEhTwUkM/+S5epaT6dh/bP8GW5iHsE OoQqRohZ1Cev3D84eG0YUXq8SE3OC9OSM6dR86J9gGjhmvkDlrOMqP8upw8MEaPx6QAq +RYa4u4Nc2KB2oWOo/y3DKPWjpvy1wstaIxWTfueCwavBS8cZ0kcyCwi9tr4MGvZRqH8 83L2+TRonIYVuvXVwE5Z5p6eLROA3LO2zCKx3w3ACq5SHG16jci/OkhsNt4J9Q0kyjxi sSqQ== 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 :content-language:mime-version:user-agent:date:message-id :organization:subject:from:to; bh=cmhWJgf5/9PhcsiFrX3Ju8a0yT+ZvYbE2XD22hhshO4=; b=PDUJsrHNORNKu/c1X2eL9OrQMBzoXQSDSkh73cWlqin7h3a+xNeUgEr69Lq0rT6vru FEMAiErLB9qKo3oUoIa8z9NHUSSn8zK9VF9LuuN8ku2cxaRPy3i+e4BmMqpKsRD/1PrS pQ3JXFKLWJyLhzBSaXI+CUqanBTx4n27UbsAucu8mWuM1Jcxl1zpGVdsRio10Q0gKe/N rDTk3w4TWj9BsoO6+QF6lwdV67RZW2khUGpPfNSSLa95F0AcwyFHX6ZARD63oA0ox+sK Xk115OqXIIw3apED3wIzEc763Jyl1h4wwv++o0bzrJ4x/Lwzqd0xMg50B5CByaX46Tl2 YZUw== 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 c7si7766912pfn.99.2019.07.12.03.53.09; Fri, 12 Jul 2019 03:53:25 -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 S1726264AbfGLKwR (ORCPT + 99 others); Fri, 12 Jul 2019 06:52:17 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:49909 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726096AbfGLKwR (ORCPT ); Fri, 12 Jul 2019 06:52:17 -0400 Received: from [192.168.1.110] ([77.9.38.202]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MIMOy-1hiZFD2G04-00EP0N; Fri, 12 Jul 2019 12:52:15 +0200 To: LKML , Coccinelle From: "Enrico Weigelt, metux IT consult" Subject: NULL pointer constraints vs. compiler checks Organization: metux IT consult Message-ID: <732996cf-5813-22a3-ee69-d8dc353845f4@metux.net> Date: Fri, 12 Jul 2019 12:52:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-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QmdF/24VeyIoVBxeHFckz+Q= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello folks, we recently have lots of patches for either adding missing NULL checks, removing unneeded ones, etc. It seems that's an non-trivial terrain, so I'm thinking about potential compiler support. Does anybody know whether gcc has some way for not-null constraints ? thx --mtx -- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering info@metux.net -- +49-151-27565287