<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/modules/tpm, branch release/13.2.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F13.2.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F13.2.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2020-02-01T16:57:04Z</updated>
<entry>
<title>Revert r357349, since the clang 10.0.0 warning was actually correct, and</title>
<updated>2020-02-01T16:57:04Z</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2020-02-01T16:57:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f6d5b31f8b3cf53bcf3ab7c12120c00f29de87b9'/>
<id>urn:sha1:f6d5b31f8b3cf53bcf3ab7c12120c00f29de87b9</id>
<content type='text'>
the ! operator should have been a ~ instead:

  Merge r357348 from the clang 10.0.0 import branch:

  Disable new clang 10.0.0 warnings about converting the result of
  shift operations to a boolean in tpm(4):

  sys/dev/tpm/tpm_crb.c:301:32: error: converting the result of '&lt;&lt;' to a boolean; did you mean '(1 &lt;&lt; (0)) != 0'? [-Werror,-Wint-in-bool-context]
	  WR4(sc, TPM_CRB_CTRL_CANCEL, !TPM_CRB_CTRL_CANCEL_CMD);
					^
  sys/dev/tpm/tpm_crb.c:73:34: note: expanded from macro 'TPM_CRB_CTRL_CANCEL_CMD'
  #define TPM_CRB_CTRL_CANCEL_CMD         BIT(0)
					  ^
  sys/dev/tpm/tpm20.h:60:19: note: expanded from macro 'BIT'
  #define BIT(x) (1 &lt;&lt; (x))
		    ^

  Such warnings can be useful in C++ contexts, but not so much in kernel
  drivers, where this type of bit twiddling is commonplace.  So disable
  it for this case.

Noticed by:	cem
MFC after:	3 days
</content>
</entry>
<entry>
<title>Disable new clang 10.0.0 warnings about converting the result of shift</title>
<updated>2020-01-31T19:35:21Z</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2020-01-31T19:35:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0a51af919165269e7fe82a972261a9180ab195a0'/>
<id>urn:sha1:0a51af919165269e7fe82a972261a9180ab195a0</id>
<content type='text'>
operations to a boolean in tpm(4):

sys/dev/tpm/tpm_crb.c:301:32: error: converting the result of '&lt;&lt;' to a boolean; did you mean '(1 &lt;&lt; (0)) != 0'? [-Werror,-Wint-in-bool-context]
        WR4(sc, TPM_CRB_CTRL_CANCEL, !TPM_CRB_CTRL_CANCEL_CMD);
                                      ^
sys/dev/tpm/tpm_crb.c:73:34: note: expanded from macro 'TPM_CRB_CTRL_CANCEL_CMD'
#define TPM_CRB_CTRL_CANCEL_CMD         BIT(0)
                                        ^
sys/dev/tpm/tpm20.h:60:19: note: expanded from macro 'BIT'
#define BIT(x) (1 &lt;&lt; (x))
                  ^

Such warnings can be useful in C++ contexts, but not so much in kernel
drivers, where this type of bit twiddling is commonplace.  So disable it
for this case.

MFC after:	3 days
</content>
</entry>
<entry>
<title>Fix `make` in sys/modules</title>
<updated>2019-03-28T08:59:11Z</updated>
<author>
<name>Li-Wen Hsu</name>
<email>lwhsu@FreeBSD.org</email>
</author>
<published>2019-03-28T08:59:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=dac21b8d149363b9322ad45dcc23c9b779870396'/>
<id>urn:sha1:dac21b8d149363b9322ad45dcc23c9b779870396</id>
<content type='text'>
Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>Include the new TPM 2.0 driver in the TPM module.</title>
<updated>2018-12-19T22:43:10Z</updated>
<author>
<name>Marcin Wojtas</name>
<email>mw@FreeBSD.org</email>
</author>
<published>2018-12-19T22:43:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=11721f6600806f3184be219432b7992ac6c7a042'/>
<id>urn:sha1:11721f6600806f3184be219432b7992ac6c7a042</id>
<content type='text'>
Update the appropriate Makefile to build the new driver
together with the old one.

Submitted by: Kornel Duleba &lt;mindal@semihalf.com&gt;
Reported by: kib
Obtained from: Semihalf
Sponsored by: Stormshield
</content>
</entry>
<entry>
<title>sys/modules: normalize .CURDIR-relative paths to SRCTOP</title>
<updated>2017-03-04T10:10:17Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2017-03-04T10:10:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=193d9e768ba63fcfb187cfd17f461f7d41345048'/>
<id>urn:sha1:193d9e768ba63fcfb187cfd17f461f7d41345048</id>
<content type='text'>
This simplifies make output/logic

Tested with:	`cd sys/modules; make ALL_MODULES=` on amd64
MFC after:	1 month
Sponsored by:	Dell EMC Isilon
</content>
</entry>
<entry>
<title>Hook tpm.4 manual to build.</title>
<updated>2010-08-13T04:00:35Z</updated>
<author>
<name>Takanori Watanabe</name>
<email>takawata@FreeBSD.org</email>
</author>
<published>2010-08-13T04:00:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f8645c900b72a4896b11c0c403decd1211c568e1'/>
<id>urn:sha1:f8645c900b72a4896b11c0c403decd1211c568e1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add tpm(4) driver for Trusted Platform Module.</title>
<updated>2010-08-12T00:16:18Z</updated>
<author>
<name>Takanori Watanabe</name>
<email>takawata@FreeBSD.org</email>
</author>
<published>2010-08-12T00:16:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=97f24f666faf69a512fc3c2bd8ee3d11b41e51ef'/>
<id>urn:sha1:97f24f666faf69a512fc3c2bd8ee3d11b41e51ef</id>
<content type='text'>
You may want to look at http://bsssd.sourceforge.net/ .

Submitted by: Hans-Joerg Hoexer &lt;Hans-Joerg_Hoexer@genua.de&gt;
</content>
</entry>
</feed>
